body {
    background-color: rgb(3, 0, 8);
}

*{
    text-decoration: none;
}

.navbar{
    background: linear-gradient(135deg, rgba(10,12,16,0.95) 0%, rgba(8,12,22,0.6) 100%);
    backdrop-filter: blur(4px);
    font-family: calibri;
    width: 940px;                /* larger centered rectangle */
    max-width: calc(100% - 64px);
    padding: 18px 28px;          /* taller, roomier */
    border-radius: 18px;         /* slightly less rounded */
    border: 1px solid rgba(20,120,180,0.12);
    box-shadow: 0 8px 22px rgba(10,70,100,0.08);
    transition: all 0.18s ease;
    margin: 28px auto;           /* center on screen */
    position: relative;
    z-index: 20; /* keep navbar above the big text */
}

.navbar:hover {
    border-color: rgba(20,140,200,0.18);
    box-shadow: 0 10px 28px rgba(20,120,180,0.08);
}

.navdiv{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;                   /* more breathing room */
}

.logo a{
    font-size: 34px;            /* larger logo text */
    font-weight: 800;
    text-decoration: none;
    color: #86d6ff;
    text-shadow: 0 0 12px rgba(134,214,255,0.18);
    transition: transform .16s ease, text-shadow .16s ease;
}

.logo a:hover {
    transform: translateY(-2px) scale(1.02);
    text-shadow: 0 0 14px rgba(134,214,255,0.28);
}

li{
    list-style: none;
    display: inline-block;
}

li a{
    color: #86d6ff;
    font-size: 20px;            /* larger nav text */
    font-weight: 700;
    margin-right: 24px;         /* slightly more spacing */
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.03);
    padding: 10px 14px;         /* bigger click area */
    transition: all 0.16s ease;
    background: transparent;
}

li a:hover {
    background: rgba(120,200,255,0.06);
    border-color: rgba(134,214,255,0.16);
    box-shadow: 0 6px 14px rgba(18,120,160,0.05);
    transform: translateY(-2px);
}

/* Responsive: scale the larger navbar down on small screens */
@media (max-width: 640px) {
    .navbar { width: calc(100% - 32px); padding: 12px 14px; border-radius: 12px; margin: 18px auto; }
    .logo a { font-size: 26px; }
    li a { font-size: 16px; margin-right: 12px; padding: 8px 10px; }
}


.introduction{
    max-width: 920px;
    margin: 60px auto;
    padding: 40px 36px;
    background: linear-gradient(135deg, rgba(10,20,40,0.4) 0%, rgba(5,10,25,0.5) 100%);
    border: 1px solid rgba(134,214,255,0.08);
    border-left: 4px solid rgba(134,214,255,0.25);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
    backdrop-filter: blur(8px);
}

.introduction .introductiontitle{
    font-size: clamp(32px, 5vw, 52px);
    margin: 0 0 14px 0;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.015em;
    text-align: left;
    background: linear-gradient(180deg, #ffffff 0%, #b0d9ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.introduction .introductiondescription{
    margin: 0;
    font-size: clamp(16px, 2.2vw, 18px);
    color: rgba(190,220,255,0.9);
    line-height: 1.7;
    max-width: 75ch;
    font-weight: 400;
    letter-spacing: 0.3px;
    text-align: left;
}

/* responsive adjustments */
@media (max-width: 768px) {
    .introduction { max-width: calc(100% - 40px); margin: 40px auto; padding: 28px 24px; }
    .introduction .introductiontitle { font-size: clamp(26px, 6vw, 40px); margin-bottom: 12px; }
}

.project{
    max-width: 920px;
    margin: 40px auto;
    padding: 32px;
    background: linear-gradient(135deg, rgba(10,20,40,0.35) 0%, rgba(5,15,30,0.45) 100%);
    border: 1px solid rgba(134,214,255,0.1);
    border-radius: 14px;
    box-shadow: 0 10px 36px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.04);
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.project:hover {
    border-color: rgba(134,214,255,0.2);
    box-shadow: 0 16px 48px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.06);
    transform: translateY(-4px);
}

/* centered CTA button for projects */
.project-cta {
    display: flex;
    justify-content: center;
    margin-top: 14px;
    pointer-events: auto;
}

.project-button {
    background: linear-gradient(90deg, #3a8bd8, #86d6ff);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
    transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
    display: inline-block;
}

.project-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 44px rgba(58,139,216,0.14);
    opacity: 0.98;
}

.projecttitle{
    font-size: clamp(24px, 4vw, 36px);
    margin: 0 0 16px 0;
    font-weight: 700;
    letter-spacing: -0.01em;
    background: linear-gradient(180deg, #ffffff 0%, #a8d8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.projectimage{
    display: flex;
    width: 100%;
    justify-content: center;
    margin: 0 0 20px 0;
    background: linear-gradient(135deg, rgba(30,60,100,0.2) 0%, rgba(10,30,60,0.3) 100%);
    border-radius: 10px;
    border: 1px solid rgba(134,214,255,0.08);
}

.projectdescription{
    font-size: clamp(20px, 2vw, 16px);
    color: rgba(190,220,255,0.85);
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.2px;
}

/* responsive adjustments */
@media (max-width: 768px) {
    .project { max-width: calc(100% - 40px); margin: 28px auto; padding: 24px; }
    .projectimage { height: 180px; }
}

/* new hero styles */
.hero{
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible; /* ensure image can extend outside */
    position: relative;
    pointer-events: none; /* make nav links still easy to click if overlaps */
}

.hero-text{
    /* fill viewport while remaining responsive */
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8rem;
    line-height: 0.9;
    white-space: nowrap;
    padding: 0 24px;
    text-align: center;
    z-index: 10;
    pointer-events: none;

    /* big responsive size to cover page length (tall writing) */
    font-size: clamp(72px, 18vw, 220px);

    /* subtle white -> grey gradient for the text */
    background: linear-gradient(180deg, #ffffff 0%, #cfcfcf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #e6e6e6; /* fallback */

    /* slight glow to fit web3 aesthetic */
    text-shadow: 0 6px 30px rgba(0,0,0,0.6);
}

/* image placed on top of the headline and scaled big by viewport height */
.hero-image{
    position: absolute;
    z-index: 18;                 /* above the text but below navbar (navbar z-index:20) */
    left: 50%;
    transform: translateX(-50%);
    top: 22vh;                   /* nudge higher to overlap more */
    height: clamp(420px, 75vh, 1600px); /* much larger, height-driven */
    width: auto;
    pointer-events: auto;
    mix-blend-mode: normal;
}

/* tweak for small screens so image remains large but not overpowering */
@media (max-width: 640px) {
    .hero-image {
        top: 18vh;
        height: clamp(220px, 50vh, 600px);
    }
}

/* ensure hero scales on small screens */
@media (max-width: 420px) {
    .hero-text { letter-spacing: 0.3rem; font-size: clamp(48px, 20vw, 120px); }
}

.hero-sub{
    position: relative;
    z-index: 19; /* above .hero-image (18) but below navbar (20) */
    margin-top: 0.5rem;
    margin-bottom: 0;
    pointer-events: none;

    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.12rem;
    line-height: 1;
    font-size: clamp(20px, 3.5vh, 44px);

    /* same white -> grey gradient as main headline */
    background: linear-gradient(180deg, #ffffff 0%, #cfcfcf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #e6e6e6; /* fallback */
}

/* About section: modern professional card with right image */
.about-section{
    max-width: 980px;
    margin: 28px auto 80px auto;
    padding: 0 18px;
}
.about-card{
    display: flex;
    align-items: center;
    gap: 28px;
    background: linear-gradient(180deg, rgba(12,18,30,0.55), rgba(6,10,18,0.45));
    border: 1px solid rgba(134,214,255,0.06);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 14px 40px rgba(2,8,20,0.6), inset 0 1px 0 rgba(255,255,255,0.02);
}
.about-content{ /* left column */
    flex: 1 1 55%;
}
.about-title{
    margin: 0 0 12px 0;
    font-size: clamp(26px, 4.5vw, 40px);
    font-weight: 900;
    color: #e9f7ff;
    letter-spacing: -0.01em;
    background: linear-gradient(180deg, #ffffff 0%, #bfe8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.about-text{
    margin: 0;
    color: rgba(200,225,255,0.92);
    line-height: 1.7;
    font-size: clamp(15px, 2.2vw, 17px);
    max-width: 68ch;
}
.about-photo{ /* right column */
    flex: 0 0 240px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.about-photo img{
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 18px 50px rgba(0,0,0,0.6), 0 6px 18px rgba(6,20,40,0.6);
    transform: translateY(-6px);
}

/* small screens: stack with image below text */
@media (max-width: 820px) {
    .about-card{ flex-direction: column-reverse; padding: 22px; }
    .about-photo{ width: 100%; flex: none; margin-bottom: 6px; }
    .about-photo img{ width: min(56vw, 320px); height: auto; border-radius: 12px; }
    .about-content{ width: 100%; }
}

.about-subtitle{
    margin: 0 0 12px 0;
    font-size: clamp(20px, 4.5vw, 40px);
    font-weight: 900;
    color: #264c62;
    letter-spacing: -0.01em;
    background: linear-gradient(180deg, #461c5b 0%, #2490ce 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#container3D {
    position: fixed;
    inset: 0;
    z-index: 5;
    pointer-events: none; /* keeps UI clickable above the scene */
    background: radial-gradient(circle at 50% 35%, rgba(30,40,70,0.18), rgba(0,0,0,0.6) 40%, rgba(0,0,0,0.95) 80%);
    overflow: hidden;
}

/* soft spotlight + subtle noise behind the model */
#container3D::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 35%;
    transform: translate(-50%, -50%);
    width: 70vw;
    height: 70vh;
    background-image: radial-gradient(closest-side, rgba(255,255,255,0.06), rgba(255,255,255,0.02) 30%, transparent 60%), url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.06'/></svg>");
    background-repeat: no-repeat, repeat;
    background-size: cover, 180px 180px;
    filter: blur(64px);
    pointer-events: none;
    z-index: 6;
    mix-blend-mode: screen;
    opacity: 0.95;
}

/* subtle vignette to darken edges */
#container3D::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0) 40%, rgba(0,0,0,0.6) 100%);
    pointer-events: none;
    z-index: 8;
}

#container3D canvas {
    width: 100vw !important;
    height: 100vh !important;
    position: absolute;
    top: 0;
    left:  0;
    filter: drop-shadow(0 24px 40px rgba(0,0,0,0.6));
    transform: translateZ(0); /* promote to its own layer for smoother animation */
    z-index: 5;
}