@import url("./lights.css");

:root{
/* palette derived from logo2.jpeg */
--bg: #041027;

    --card: #16181c;
    --muted: #9ea7b6; /* softer blue-gray from logo */
    --accent: #b2b8c6; /* primary accent taken from logo */
    --accent-2: #aab0be;
    --glass: rgba(255,255,255,0.03);
    --radius: 14px;
    --maxw: 1200px;
    --muted-2: #8f97a4;
    --accent-3: #6fd7c1;
    /* Navy blue accent palette for richer background tones */
    --purple-1: #000d1a; /* very dark navy */
    --purple-2: #001f3f; /* navy blue */
    --purple-3: #003366; /* lighter navy */
    --lights-duration: 60s;
    --lights-duration-2: 42s;
    /* Enhanced shadows for depth */
    --shadow-light: 0 4px 12px rgba(0,0,0,0.3);
    --shadow-medium: 0 8px 24px rgba(0,0,0,0.4);
    --shadow-heavy: 0 16px 48px rgba(0,0,0,0.5);
    --border-soft: rgba(189, 217, 255, 0.12);
    --cyan: #6fd7c1;
    --blue: #67a7ff;
}

/* Reset */
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
html{background:transparent;}
body{
    position: relative;
    /* allow background overlays (dust/canvas) to show through */
    /* restored to original so the look matches your current design */
    background: #041027 !important;


    color:#eef2f3;
    font-family: Inter, Poppins, Segoe UI, Arial, sans-serif;
    line-height:1.5;
    -webkit-font-smoothing:antialiased;
}

/* Smooth scrolling for anchor navigation */
html{
    scroll-behavior:smooth;
}

/* Moving white stage lights */
/* place main content above background */
main, header, footer, section{position:relative;z-index:2}

/* Qualities boxes */
.qualities{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-top:16px}
.quality-box{background:linear-gradient(180deg,rgba(255,255,255,0.02),transparent);padding:12px;border-radius:12px;border:1px solid rgba(255,255,255,0.03)}
.quality-box strong{display:block;margin-bottom:6px;color:var(--accent)}

/* Header social */
.header-social{display:flex;gap:10px;align-items:center}
.header-social a,.header-social button{color:var(--muted);background:transparent;border:none;padding:6px 8px;border-radius:8px}
.header-social a:hover,.header-social button:hover{color:#fff}

/* Social icon brand colors */
.header-social .fa-x-twitter{color:#fff}
.header-social .fa-linkedin{color:#0077B5}
.header-social .fa-discord{color:#5865F2}
.hero-social .fa-github{color:#181717}
.hero-social .fa-linkedin{color:#0077B5}
.hero-social .fa-envelope{color:#EA4335}
.footer-socials p a{border:none}
.footer-socials .fa-x-twitter{color:#000000}
.footer-socials .fa-linkedin{color:#0077B5}
.footer-socials .fa-github{color:#181717}


/* Reveal / motion system */
.reveal{opacity:0;transform:translateY(12px);transition:opacity .6s ease, transform .6s cubic-bezier(.2,.9,.3,1)}
.reveal.revealed{opacity:1;transform:none}

/* Card hover smoothing */
.project-card, .service-card, .featured-card{transition:transform .28s cubic-bezier(.2,.9,.3,1), box-shadow .28s ease}
.project-card:hover, .service-card:hover, .featured-card:hover{transform:translateY(-8px);box-shadow:var(--shadow-heavy)}

/* Link transitions */
a{transition:color .18s ease}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce){
    :root{scroll-behavior:auto}
    .reveal{transition:none!important;transform:none!important;opacity:1!important}
    .project-card, .service-card, .featured-card{transition:none!important}
    /* disable background lights animation for reduced motion */
    .bg-light{animation: none;}
}


.container{width:90%;max-width:var(--maxw);margin:0 auto}

/* Make header sticky */
.site-header{position:sticky;top:0;z-index:40;}

/* Header / nav */
.site-header{background:linear-gradient(180deg, rgba(255,255,255,0.005), transparent)}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:14px 0;position:relative}
.brand{display:flex;align-items:center;gap:12px;color:var(--accent);text-decoration:none}
.brand-icon{width:40px;height:40px;object-fit:contain;border-radius:8px}
.brand-title{font-weight:700;font-size:1.1rem}
.main-nav{display:flex;gap:14px;align-items:center}
.main-nav a{color:var(--muted);text-decoration:none;padding:8px 12px;border-radius:8px;font-weight:600}
.main-nav a:hover{color:#fff;background:linear-gradient(180deg, rgba(110,210,255,0.05), rgba(255,255,255,0.01));border:1px solid rgba(255,255,255,0.06);box-shadow:0 8px 24px rgba(2,6,23,0.45);backdrop-filter:blur(10px)}
.btn.small{padding:6px 12px;border-radius:8px}

/* mobile nav toggle */
.nav-toggle{display:none;background:transparent;border:1px solid rgba(255,255,255,0.06);color:var(--muted);padding:8px 10px;border-radius:8px;font-size:18px}


/* Hero */
.hero{display:flex;gap:40px;align-items:center;padding:72px 0}
.hero-content{flex:1}
.hero h1{font-family:Poppins,Inter,Segoe UI,Arial,sans-serif;font-weight:700;font-size:clamp(2.2rem,4.2vw,3.8rem);color:#fff;margin-bottom:10px;letter-spacing:-0.02em}
.tagline{color:var(--muted);margin-bottom:20px;font-size:1.05rem}

.hero-top .role{font-weight:600;color:var(--accent-2);margin-bottom:8px}
.hero-ctas{display:flex;gap:12px;align-items:center;margin-top:8px}
.hero-social a{color:var(--muted);text-decoration:none;margin-right:8px}
.hero-social a:hover{color:var(--accent)}
.hero-visual{width:320px;display:flex;align-items:center;justify-content:center}
.visual-box{width:260px;height:260px;border-radius:var(--radius);background:linear-gradient(135deg,rgba(255,255,255,0.02),rgba(255,255,255,0.01));display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:2rem;border:1px solid rgba(255,255,255,0.02);box-shadow:var(--shadow-heavy);overflow:hidden}

.visual-logo{width:100%;height:100%;object-fit:cover;border-radius:calc(var(--radius) - 4px)}

/* Liquid glass effect for containers */
.glass{
    background:linear-gradient(180deg, rgba(110,210,255,0.05), rgba(255,255,255,0.01));
    border:1px solid rgba(110,210,255,0.18);
    backdrop-filter: blur(8px) saturate(1.2);
    -webkit-backdrop-filter: blur(8px) saturate(1.2);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), var(--shadow-medium);
    border-radius:var(--radius)
}


/* Liquid glass (animated refraction/surface shimmer) */
.liquid-glass{
    /* convert "liquid glassmorphism" into a more purely static liquid-glass look */
    position:relative;
    overflow:hidden;
    border-radius:var(--radius);

    background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.008));
    border:0;
    outline:0;
    box-shadow:none;
    backdrop-filter: blur(8px) saturate(1.1);
    -webkit-backdrop-filter: blur(8px) saturate(1.1);
}

.liquid-glass::before{
    /* keep subtle shimmer, but remove animation */
    content:"";
    position:absolute;
    inset:-30%;
    background:
        radial-gradient(900px 320px at 20% 15%, rgba(183,210,255,0.12), rgba(255,255,255,0) 60%),
        radial-gradient(700px 280px at 85% 30%, rgba(111,215,193,0.10), rgba(255,255,255,0) 62%),
        linear-gradient(115deg, rgba(255,255,255,0.00) 10%, rgba(255,255,255,0.10) 35%, rgba(255,255,255,0.00) 58%);
    opacity:0.75;
    mix-blend-mode: screen;
    animation:none;
    pointer-events:none;
}

.liquid-glass::after{
    /* reduce grain intensity */
    content:"";
    position:absolute;
    inset:0;
    background:
        repeating-linear-gradient(0deg, rgba(255,255,255,0.02), rgba(255,255,255,0.02) 1px, rgba(0,0,0,0) 2px, rgba(0,0,0,0) 7px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.015), rgba(255,255,255,0.015) 1px, rgba(0,0,0,0) 2px, rgba(0,0,0,0) 10px);
    opacity:0.12;
    filter: blur(0.25px);
    pointer-events:none;
}

.liquid-glass > *{ position:relative; z-index:1; }

@keyframes liquid-glass-shimmer{
    /* retained for compatibility; not used anymore */
    0%{ transform:none; }
    100%{ transform:none; }
}


/* apply glass to common card containers */
.service-card, .featured-card, .project-card, .about-skills, .quality-box, .footer-about, .footer-links, .footer-contact, .footer-socials{background:transparent}
.service-card.glass, .featured-card.glass, .project-card.glass, .about-skills.glass, .quality-box.glass, .footer-about.glass, .footer-links.glass, .footer-contact.glass, .footer-socials.glass{background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));border:1px solid rgba(255,255,255,0.04);backdrop-filter:blur(8px);box-shadow:var(--shadow-medium);}


/* Prevent project title overlap by ensuring body has padding and media has fixed height */
.project-card .project-body{padding:16px;min-height:120px}
.project-media{min-height:140px}

.btn{display:inline-block;padding:10px 18px;border-radius:999px;color:#0b0b0b;background:linear-gradient(90deg,var(--accent),var(--accent-2));text-decoration:none;font-weight:700}
.btn.ghost{background:transparent;border:2px solid rgba(255,255,255,0.06);color:var(--muted)}

/* Featured projects CTA: remove any filled/grey backing and highlight in liquid-glass on hover */
#featured .featured-body .btn{background:transparent !important; border:1px solid rgba(255,255,255,0.08) !important; box-shadow:none !important; color:#fff !important;}
#featured .featured-body .btn::after{content:none;}
#featured .featured-body .btn:hover,
#featured .featured-body .btn:focus-visible{
    background:linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)) !important;
    border:1px solid rgba(255,255,255,0.14) !important;
    backdrop-filter: blur(10px) saturate(1.15);
    -webkit-backdrop-filter: blur(10px) saturate(1.15);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 12px 36px rgba(2,6,23,0.55);
}
#featured .featured-body .btn{position:relative; overflow:hidden;}
#featured .featured-body .btn:hover::before,
#featured .featured-body .btn:focus-visible::before{
    content:"";
    position:absolute;
    inset:-40%;
    background:
        radial-gradient(900px 320px at 25% 20%, rgba(183,210,255,0.16), rgba(255,255,255,0) 55%),
        radial-gradient(700px 280px at 85% 35%, rgba(111,215,193,0.12), rgba(255,255,255,0) 62%),
        linear-gradient(115deg, rgba(255,255,255,0.00) 10%, rgba(255,255,255,0.16) 35%, rgba(255,255,255,0.00) 58%);
    mix-blend-mode: screen;
    opacity:0.9;
    pointer-events:none;
}
#featured .featured-body .btn:hover,
#featured .featured-body .btn:focus-visible{color:#fff}

/* Keep liquid-glass clean: remove any grain/line/construction artifacts */
.liquid-glass::after{display:none;}
.liquid-glass::before{opacity:0.55;}

.btn:hover{transform:none;transition:none;background:linear-gradient(180deg, rgba(110,210,255,0.05), rgba(255,255,255,0.01));border:1px solid rgba(255,255,255,0.06);backdrop-filter:blur(10px)}

/* About */
.about{padding:48px 0}
.about-inner{display:flex;gap:32px;align-items:flex-start;flex-wrap:wrap}
.about-text{flex:2;min-width:300px}
/* Make skills section occupy the full width under the about text */
.about-skills{flex:1 1 100%;width:100%;margin-top:18px}
.about-text h2{font-size:1.9rem;color:var(--accent);margin-bottom:12px}
.about-text p{color:var(--muted);margin-bottom:12px}
.about-skills{flex:1;background:linear-gradient(180deg,rgba(255,255,255,0.01),transparent);padding:18px;border-radius:var(--radius);border:1px solid rgba(255,255,255,0.02)}
.about-skills h3{margin-bottom:8px}
.about-skills ul{list-style:none;padding-left:0}
.about-skills li{padding:6px 0;color:var(--muted)}

/* Skills grid */
.skills{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;padding:18px;}
.skill-card{padding:24px;border-radius:16px;display:flex;flex-direction:column;align-items:center;gap:16px;min-height:300px;justify-content:space-between;}
.skill-logo{width:80px;height:80px;object-fit:contain;font-size:80px}
.skill-card h3{color:var(--accent);font-size:1.25rem;font-weight:600;margin:0}
.skill-bar{position:relative;width:100%;height:12px;background:rgba(255,255,255,0.1);border-radius:999px;overflow:hidden}
.skill-fill{height:100%;background:linear-gradient(90deg, #3aa0ff, #1e66ff);border-radius:999px}
.skill-pct{position:absolute;right:8px;top:50%;transform:translateY(-50%);font-weight:700;color:#ffffff;font-size:0.85rem;pointer-events:none}

/* percent label inside skill bar */
.skill-bar{position:relative}
.skill-bar-label{position:absolute;right:8px;top:50%;transform:translateY(-50%);font-weight:700;color:#ffffff;font-size:0.85rem;pointer-events:none}

/* Services / offerings */
.services{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px;margin-top:18px}
.service-card{background:linear-gradient(180deg,rgba(255,255,255,0.005),rgba(255,255,255,0.002));padding:16px;border-radius:12px;border:1px solid rgba(255,255,255,0.02);box-shadow:0 8px 24px rgba(2,6,23,0.45)}
.service-card h4{margin:6px 0;color:var(--accent)}
.service-card p{color:var(--muted);font-size:0.95rem}

/* Experience timeline - standard bullets with proper spacing */
#experience .timeline {
  list-style: disc outside;
  margin-top: 18px;
  padding-left: 2.2em;
  border-left: none;
}
#experience .timeline-item {
  position: relative;
  padding:12px 0;
  margin-bottom: 1em;
  overflow: visible;
}
#experience .timeline-date {
  display: block;
  color: var(--accent-2);
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 0.95rem;
}
#experience .timeline-content {
  margin-left: -0.5em; /* Align content under bullet */
}
#experience .timeline-content h4 {
  margin: 0 0 6px 0;
  color: var(--accent);
  font-size: 1rem;
}
#experience .timeline-content p {
  color: var(--muted);
  margin: 0;
}

/* Featured projects */
.featured-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:18px;margin-top:18px}
.featured-card{background:linear-gradient(180deg,rgba(255,255,255,0.005),rgba(255,255,255,0.002));border-radius:12px;border:1px solid rgba(255,255,255,0.02);overflow:hidden;display:flex;flex-direction:column}
.featured-media{height:180px;background:#0b0d10;display:flex;align-items:center;justify-content:center}
.featured-media img{width:100%;height:100%;object-fit:cover}
.featured-body{padding:14px}

/* Illustration helpers */
.illustration{max-width:420px;width:100%;border-radius:12px;border:1px solid rgba(255,255,255,0.02);box-shadow:0 14px 40px rgba(2,6,23,0.6)}


/* Projects */
.projects{padding:48px 0}
.projects h2{text-align:center;font-size:1.9rem;color:var(--accent);margin-bottom:20px}
.project-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px}
.project-card{position:relative;overflow:hidden;border-radius:12px;background:linear-gradient(180deg,rgba(255,255,255,0.005),rgba(255,255,255,0.002));transition:transform .28s,box-shadow .28s;border:1px solid rgba(255,255,255,0.02)}
.project-card:hover{transform:translateY(-10px);box-shadow:0 20px 60px rgba(2,6,23,0.6)}
.project-media{height:180px;border-radius:0;background:#0b0d10;display:flex;align-items:center;justify-content:center;color:var(--accent);font-weight:800;margin-bottom:0}
.project-card .project-body{padding:14px}
.project-card h3{margin:0 0 8px}
.project-card .overlay{position:absolute;left:0;right:0;bottom:0;padding:14px;background:linear-gradient(180deg,transparent,rgba(0,0,0,0.6));color:#fff}
.project-meta{display:flex;gap:12px;align-items:center;color:var(--muted);font-weight:600;font-size:0.9rem;margin-top:10px}
.project-card h3{margin-bottom:6px}
.muted{color:var(--muted);font-size:0.95rem}

/* Contact & Footer */
.contact{padding:40px 0;background:transparent}
footer{background:#0b0b0b;padding:18px 0;margin-top:30px;text-align:center;color:var(--muted)}

/* Detailed footer */
.site-footer{background:linear-gradient(180deg,rgba(0,0,0,0.3),rgba(0,0,0,0.5));padding:36px 0;margin-top:36px}
.footer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:18px;margin-bottom:18px}
.footer-grid h4{color:var(--accent);margin-bottom:8px}
.footer-grid a{color:var(--muted);text-decoration:none}
.footer-bottom{display:flex;justify-content:space-between;align-items:center;padding-top:8px}
#back-to-top{background:transparent;border:1px solid rgba(255,255,255,0.06);color:var(--muted);padding:8px 10px;border-radius:8px}
#back-to-top:hover{color:#fff;background:linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));border:1px solid rgba(255,255,255,0.10);backdrop-filter:blur(10px);box-shadow:0 12px 36px rgba(2,6,23,0.55)}


/* Contact form styles */
.contact-form label{display:block;margin-bottom:10px;color:var(--muted)}
.contact-form input,.contact-form textarea{width:100%;padding:10px;border-radius:8px;border:1px solid rgba(255,255,255,0.04);background:transparent;color:#eaf6f1}


/* Responsive */
@media (max-width:800px){
    .about-inner{flex-direction:column}
    .hero{flex-direction:column}
    .hero-visual{order:-1}
    .header-inner{flex-direction:column;gap:12px}
}

@media (max-width:820px){
    .main-nav{position:absolute;right:16px;top:64px;display:flex;flex-direction:row;justify-content:center;align-items:center;flex-wrap:nowrap;gap:4px;background:var(--bg);padding:8px;border-radius:999px;box-shadow:0 10px 30px rgba(2,6,23,0.6);opacity:0;transform:translateY(-6px);pointer-events:none;transition:all .18s}
    body.nav-open .main-nav{opacity:1;transform:none;pointer-events:auto}
    .nav-toggle{display:inline-block}
    .featured-media{height:120px}
    .project-grid{grid-template-columns:repeat(1,1fr)}
}

/* Tablet and small laptop: two-column grids */
@media (max-width:1024px){
    .featured-grid{grid-template-columns:repeat(2,1fr)}
    .project-grid{grid-template-columns:repeat(2,1fr)}
}

/* Mobile-specific usability tweaks */
@media (max-width:720px){
    .container{width:94%}
    .hero{padding:36px 0;gap:18px}
    .hero h1{font-size:1.8rem}
    .hero-ctas{flex-direction:column;align-items:stretch}
    .hero-ctas .btn{width:100%;text-align:center}
    .btn{padding:12px 14px;font-size:1rem}
    .nav-toggle{padding:12px 14px;font-size:20px}
    .main-nav a{display:inline-flex;align-items:center;justify-content:center;padding:8px 9px;font-size:0.86rem;white-space:nowrap}
    .featured-media{height:140px}
    .project-media{min-height:120px}
    .visual-box{width:200px;height:200px}
    .visual-logo{border-radius:10px}
    /* make touch targets comfortable */
    .header-social a,.header-social button{padding:10px 12px}
    /* stack footer content */
    .footer-grid{grid-template-columns:repeat(1,1fr)}
}

/* Very small screens */
@media (max-width:420px){
    .hero h1{font-size:1.4rem}
    .visual-box{width:160px;height:160px}
    .featured-media{height:110px}
    .btn{padding:12px;font-size:0.98rem}
}

/* Lessen heavy glass effects on mobile for performance */
@media (max-width:820px){
    .glass, .glass *{
        backdrop-filter:none !important;
        box-shadow:none !important;
        border:1px solid rgba(255,255,255,0.03) !important
    }

    .liquid-glass, .liquid-glass::before, .liquid-glass::after{
        backdrop-filter:none !important;
        animation:none !important;
        box-shadow:none !important;
        border:1px solid rgba(255,255,255,0.03) !important;
        mix-blend-mode: normal;
    }
}


/* Improve the mobile nav appearance when open */
@media (max-width:820px){
    .main-nav{right:12px;left:12px;top:64px;padding:8px;}
    .main-nav a{border-radius:999px;margin-bottom:0}
}

/* Keyframes for moving lights animation */
@keyframes moveLights1 {
    0% {
        background-position: 0% 0%, 100% 100%;
    }
    10% {
        background-position: 20% 30%, 80% 70%;
    }
    20% {
        background-position: 40% 60%, 60% 40%;
    }
    30% {
        background-position: 60% 20%, 40% 80%;
    }
    40% {
        background-position: 80% 50%, 20% 50%;
    }
    50% {
        background-position: 100% 100%, 0% 0%;
    }
    60% {
        background-position: 70% 30%, 30% 70%;
    }
    70% {
        background-position: 50% 80%, 50% 20%;
    }
    80% {
        background-position: 30% 40%, 70% 60%;
    }
    90% {
        background-position: 10% 70%, 90% 30%;
    }
    100% {
        background-position: 0% 0%, 100% 100%;
    }
}

@keyframes moveLights2 {
    0% {
        background-position: 100% 0%, 0% 100%;
    }
    15% {
        background-position: 80% 40%, 20% 60%;
    }
    30% {
        background-position: 60% 80%, 40% 20%;
    }
    45% {
        background-position: 40% 30%, 60% 70%;
    }
    60% {
        background-position: 20% 90%, 80% 10%;
    }
    75% {
        background-position: 0% 50%, 100% 50%;
    }
    90% {
        background-position: 50% 20%, 50% 80%;
    }
    100% {
        background-position: 100% 0%, 0% 100%;
    }
}

@keyframes moveLights3 {
    0% {
        background-position: 50% 50%;
    }
    12% {
        background-position: 30% 70%;
    }
    25% {
        background-position: 70% 30%;
    }
    37% {
        background-position: 10% 90%;
    }
    50% {
        background-position: 90% 10%;
    }
    62% {
        background-position: 40% 60%;
    }
    75% {
        background-position: 60% 40%;
    }
    87% {
        background-position: 80% 80%;
    }
    100% {
        background-position: 50% 50%;
    }
}

@keyframes moveLights4 {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 100%; }
    50% { background-position: 50% 0%; }
    75% { background-position: 25% 75%; }
    100% { background-position: 0% 50%; }
}

@keyframes moveLights5 {
    0% { background-position: 100% 50%; }
    20% { background-position: 0% 0%; }
    40% { background-position: 100% 0%; }
    60% { background-position: 0% 100%; }
    80% { background-position: 50% 50%; }
    100% { background-position: 100% 50%; }
}

/* Modern visual refresh */
html{
    background:#020714;
}

body{
    overflow-x:hidden;
    background:
        radial-gradient(900px 520px at 18% 10%, rgba(103,167,255,0.20), transparent 62%),
        radial-gradient(760px 460px at 84% 22%, rgba(111,215,193,0.15), transparent 58%),
        radial-gradient(740px 520px at 50% 100%, rgba(178,184,198,0.09), transparent 64%),
        linear-gradient(180deg, #06142d 0%, #030816 45%, #02050d 100%) !important;
}

body::before{
    content:"";
    position:fixed;
    inset:0;
    z-index:0;
    pointer-events:none;
    background:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size:72px 72px;
    mask-image:linear-gradient(to bottom, rgba(0,0,0,0.55), transparent 72%);
}

body::after{
    content:"";
    position:fixed;
    inset:0;
    z-index:0;
    pointer-events:none;
    background:
        radial-gradient(circle at var(--cursor-x, 50%) var(--cursor-y, 20%), rgba(111,215,193,0.13), transparent 22rem);
    opacity:0.8;
    transition:opacity .25s ease;
}

main, header, footer, section{
    position:relative;
    z-index:2;
}

.bg-line{
    z-index:1;
    height:2px;
    opacity:0.42;
    filter:blur(.2px);
    background:linear-gradient(90deg, transparent, rgba(255,255,255,0.15), rgba(255,255,255,0.92), rgba(111,215,193,0.42), transparent);
    box-shadow:0 0 18px rgba(255,255,255,0.55), 0 0 36px rgba(103,167,255,0.18);
}

.site-header{
    background:rgba(3, 8, 22, 0.56);
    border-bottom:1px solid rgba(255,255,255,0.07);
    backdrop-filter:blur(18px) saturate(1.25);
    -webkit-backdrop-filter:blur(18px) saturate(1.25);
    box-shadow:0 14px 42px rgba(0,0,0,0.24);
}

.header-inner{
    padding:12px 0;
}

.brand-icon{
    border:1px solid rgba(255,255,255,0.12);
    box-shadow:0 0 0 4px rgba(255,255,255,0.03), 0 12px 28px rgba(0,0,0,0.36);
}

.brand-title{
    color:#f7fbff;
}

.main-nav{
    padding:5px;
    border:1px solid rgba(255,255,255,0.06);
    border-radius:999px;
    background:rgba(255,255,255,0.025);
}

.main-nav a{
    border:1px solid transparent;
    border-radius:999px;
}

.main-nav a:hover,
.main-nav a.active{
    color:#fff;
    background:rgba(255,255,255,0.075);
    border-color:rgba(255,255,255,0.11);
    box-shadow:inset 0 1px 0 rgba(255,255,255,0.09), 0 10px 28px rgba(0,0,0,0.24);
}

.hero{
    min-height:calc(100vh - 68px);
    padding:82px 0 64px;
}

.hero-content{
    max-width:780px;
}

.hero-top .role{
    display:inline-flex;
    align-items:center;
    gap:9px;
    padding:7px 12px;
    margin-bottom:16px;
    border:1px solid rgba(111,215,193,0.22);
    border-radius:999px;
    background:rgba(111,215,193,0.055);
    color:#c9fff5;
    box-shadow:0 0 28px rgba(111,215,193,0.08);
}

.hero-top .role::before{
    content:"";
    width:8px;
    height:8px;
    border-radius:50%;
    background:var(--cyan);
    box-shadow:0 0 16px var(--cyan);
}

.hero h1{
    max-width:850px;
    letter-spacing:0;
    line-height:1.03;
    text-wrap:balance;
    text-shadow:0 18px 70px rgba(103,167,255,0.22);
}

.tagline{
    max-width:680px;
    font-size:1.12rem;
    color:#b8c4d6;
}

.hero-ctas{
    flex-wrap:wrap;
    gap:14px;
}

.btn{
    position:relative;
    isolation:isolate;
    overflow:hidden;
    border:1px solid rgba(255,255,255,0.14);
    color:#07101f;
    box-shadow:0 14px 36px rgba(103,167,255,0.22);
    transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}

.btn::after{
    content:"";
    position:absolute;
    inset:0;
    z-index:-1;
    background:linear-gradient(110deg, transparent 0 25%, rgba(255,255,255,0.55) 43%, transparent 62% 100%);
    transform:translateX(-125%);
    transition:transform .65s ease;
}

.btn:hover,
.btn:focus-visible{
    transform:translateY(-2px);
    box-shadow:0 18px 48px rgba(103,167,255,0.30);
}

.btn:hover::after,
.btn:focus-visible::after{
    transform:translateX(125%);
}

.btn.ghost{
    color:#e9f2ff;
    background:rgba(255,255,255,0.035);
    border:1px solid rgba(255,255,255,0.12);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
    box-shadow:0 14px 36px rgba(0,0,0,0.22);
}

.hero-social a,
.header-social a,
.header-social button{
    transition:transform .18s ease, color .18s ease, background .18s ease;
}

.hero-social .fa-github,
.footer-socials .fa-github{
    color:#dfe8f7;
}

.hero-social a:hover,
.header-social a:hover,
.header-social button:hover{
    transform:translateY(-2px);
}

.hero-visual{
    perspective:900px;
}

.visual-box{
    border-radius:28px;
    border:1px solid rgba(255,255,255,0.13);
    background:rgba(255,255,255,0.045);
    box-shadow:0 26px 90px rgba(0,0,0,0.48), 0 0 70px rgba(103,167,255,0.14);
    animation:float-card 7s ease-in-out infinite;
}

.visual-box::before{
    content:"";
    position:absolute;
    inset:-1px;
    border-radius:inherit;
    padding:1px;
    background:linear-gradient(135deg, rgba(255,255,255,0.46), rgba(111,215,193,0.16), rgba(103,167,255,0.22));
    mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite:exclude;
    pointer-events:none;
}

.visual-logo{
    transform:scale(1.01);
    transition:transform .6s cubic-bezier(.2,.9,.3,1);
}

.visual-box:hover .visual-logo{
    transform:scale(1.07);
}

section{
    scroll-margin-top:96px;
}

.about,
.projects,
.skills-section{
    padding:64px 0;
}

.about h2,
.skills-section h2,
.projects h2,
main > h1{
    color:#f8fbff !important;
    letter-spacing:0;
    text-shadow:0 12px 42px rgba(103,167,255,0.16);
}

.about .container > h2,
.skills-section .container > h2,
.projects .container > h2{
    margin-bottom:12px;
}

.quality-box,
.service-card,
.featured-card,
.project-card,
.footer-about,
.footer-links,
.footer-contact,
.footer-socials,
.contact-form{
    border:1px solid var(--border-soft);
    background:linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025));
    box-shadow:0 20px 60px rgba(0,0,0,0.26), inset 0 1px 0 rgba(255,255,255,0.08);
    backdrop-filter:blur(14px) saturate(1.2);
    -webkit-backdrop-filter:blur(14px) saturate(1.2);
}

.quality-box,
.service-card,
.featured-card,
.project-card{
    transform-style:preserve-3d;
}

.project-card:hover,
.service-card:hover,
.featured-card:hover,
.quality-box:hover{
    border-color:rgba(111,215,193,0.28);
    box-shadow:0 26px 80px rgba(0,0,0,0.34), 0 0 42px rgba(111,215,193,0.08);
}

.service-card,
.quality-box,
.featured-body,
.project-body{
    padding:20px;
}

.services,
.featured-grid,
.project-grid,
.qualities{
    gap:20px;
}

.featured-media,
.project-media{
    background:
        radial-gradient(circle at 30% 20%, rgba(111,215,193,0.16), transparent 34%),
        radial-gradient(circle at 76% 20%, rgba(103,167,255,0.16), transparent 38%),
        rgba(2,7,18,0.88);
}

.featured-media img,
.project-media img{
    width:100%;
    height:100%;
    object-fit:cover;
    transform:scale(1.01);
    transition:transform .55s cubic-bezier(.2,.9,.3,1), filter .55s ease;
}

.featured-card:hover .featured-media img,
.project-card:hover .project-media img{
    transform:scale(1.08);
    filter:saturate(1.18) contrast(1.05);
}

.project-card .overlay{
    transform:translateY(100%);
    transition:transform .28s ease;
    background:linear-gradient(180deg, transparent, rgba(2,7,18,0.92));
}

.project-card:hover .overlay,
.project-card:focus-within .overlay{
    transform:translateY(0);
}

.skills{
    padding:22px 0 0;
}

.skill-card{
    position:relative;
    min-height:250px;
    border:1px solid var(--border-soft);
    background:linear-gradient(180deg, rgba(255,255,255,0.065), rgba(255,255,255,0.022));
    box-shadow:0 18px 54px rgba(0,0,0,0.24);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
    transition:transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.skill-card::before{
    content:"";
    position:absolute;
    inset:0;
    border-radius:inherit;
    background:radial-gradient(circle at 50% 0%, rgba(111,215,193,0.12), transparent 38%);
    opacity:0;
    transition:opacity .25s ease;
    pointer-events:none;
}

.skill-card:hover{
    transform:translateY(-6px);
    border-color:rgba(111,215,193,0.26);
    box-shadow:0 24px 70px rgba(0,0,0,0.34), 0 0 36px rgba(103,167,255,0.08);
}

.skill-card:hover::before{
    opacity:1;
}

.skill-logo{
    filter:drop-shadow(0 12px 22px rgba(0,0,0,0.35));
}

.skill-bar{
    height:13px;
    background:rgba(255,255,255,0.075);
    border:1px solid rgba(255,255,255,0.08);
    box-shadow:inset 0 1px 2px rgba(0,0,0,0.32);
}

.skill-fill{
    position:relative;
    width:0;
    background:linear-gradient(90deg, var(--blue), var(--cyan));
    box-shadow:0 0 18px rgba(111,215,193,0.45);
    transition:width 1.1s cubic-bezier(.19,1,.22,1);
}

.skill-fill::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(90deg, transparent, rgba(255,255,255,0.42), transparent);
    animation:bar-sheen 1.8s linear infinite;
}

#experience .timeline{
    list-style:none;
    padding-left:0;
    border-left:1px solid rgba(255,255,255,0.12);
}

#experience .timeline-item{
    padding:12px 0 18px 24px;
}

#experience .timeline-item::before{
    content:"";
    position:absolute;
    left:-6px;
    top:18px;
    width:11px;
    height:11px;
    border-radius:50%;
    background:var(--cyan);
    box-shadow:0 0 18px rgba(111,215,193,0.75);
}

#experience .timeline-content{
    margin-left:0;
}

.contact-form{
    max-width:760px;
    padding:22px;
    border-radius:var(--radius);
}

.contact-form input,
.contact-form textarea{
    margin-top:6px;
    border-color:rgba(255,255,255,0.12);
    background:rgba(0,0,0,0.18);
    transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.contact-form input:focus,
.contact-form textarea:focus{
    outline:none;
    border-color:rgba(111,215,193,0.52);
    box-shadow:0 0 0 4px rgba(111,215,193,0.08);
    background:rgba(0,0,0,0.26);
}

.site-footer{
    border-top:1px solid rgba(255,255,255,0.08);
    background:linear-gradient(180deg, rgba(3,8,22,0.55), rgba(2,5,13,0.88));
}

@keyframes float-card{
    0%,100%{ transform:translateY(0) rotateX(0deg) rotateY(0deg); }
    50%{ transform:translateY(-12px) rotateX(2deg) rotateY(-3deg); }
}

@keyframes bar-sheen{
    from{ transform:translateX(-100%); }
    to{ transform:translateX(100%); }
}

@media (max-width:820px){
    body::after{display:none}
    .site-header{position:sticky}
    .header-inner{flex-direction:row}
    .header-social{display:none}
    .main-nav{
        border-radius:14px;
        background:rgba(3,8,22,0.94);
        backdrop-filter:blur(18px);
        -webkit-backdrop-filter:blur(18px);
    }
    .hero{
        min-height:auto;
        padding:42px 0 54px;
    }
    .hero-visual{
        width:100%;
    }
    .skills{
        grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
    }
}

@media (max-width:720px){
    .hero h1{
        font-size:2rem;
        line-height:1.08;
    }
    .tagline{
        font-size:1rem;
    }
    .featured-grid,
    .project-grid{
        grid-template-columns:1fr;
    }
}

@media (prefers-reduced-motion: reduce){
    body::after,
    .visual-box,
    .skill-fill::after{
        animation:none !important;
        transition:none !important;
    }
}
