:root{
    /* Modern Gray Theme with Blue Accents */
    --bg: #0a0b0d; /* Deep charcoal background */
    --bg-2: #12141a; /* Slightly lighter surface */
    --bg-3: #1a1d26; /* Card backgrounds */
    --ink: #e8eaed; /* Light text */
    --muted: #9aa0a6; /* Muted text */
    --line: #2d3139; /* Subtle borders */
    --brand: #4285f4; /* Modern blue primary */
    --brand-2: #1a73e8; /* Darker blue accent */
    --brand-glow: #4285f4; /* Glow color */
    --radius-xl: 16px;
    --radius-lg: 12px;
    --radius: 8px;
    --shadow: 0 8px 32px rgba(0,0,0,.4), 0 2px 16px rgba(0,0,0,.2);
    --glow: 0 0 20px rgba(66, 133, 244, 0.3);
}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;font:16px/1.6 'Inter', system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;color:var(--ink);
        background:
            radial-gradient(1400px 800px at 15% -25%,
                rgba(66, 133, 244, 0.08) 0%,
                transparent 50%),
            radial-gradient(1200px 600px at 85% -15%,
                rgba(26, 115, 232, 0.06) 0%,
                transparent 45%),
            linear-gradient(135deg,
                var(--bg) 0%,
                #0c0e12 50%,
                var(--bg) 100%);
        background-repeat:no-repeat;
        background-attachment: fixed;
    }
a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:1120px;margin:0 auto;padding:0 24px}
.stack{display:flex;flex-direction:column;gap:12px}
.cluster{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.pill{padding:8px 16px;border:1px solid var(--line);border-radius:999px;color:var(--muted);background:var(--bg-3);backdrop-filter:blur(10px);transition:all 0.3s ease}
.pill:hover{border-color:var(--brand);color:var(--brand);box-shadow:var(--glow)}
header.site{position:sticky;top:0;z-index:30;background:rgba(10, 11, 13, 0.85);backdrop-filter:saturate(1.2) blur(20px);border-bottom:1px solid var(--line)}
header .inner{display:flex;align-items:center;justify-content:space-between;padding:16px 0}
.logo{display:flex;align-items:center}
.logo img{height:52px;width:auto;filter:brightness(1.1)}
.tagline{font-weight:500;color:var(--muted);font-size:16px;letter-spacing:0.5px}
nav a{color:var(--muted);font-weight:500;transition:all 0.3s ease;position:relative}
nav a:hover{color:var(--brand);text-decoration:none;text-shadow:0 0 8px rgba(66, 133, 244, 0.5)}
nav a::after{content:'';position:absolute;bottom:-4px;left:0;width:0;height:2px;background:var(--brand);transition:width 0.3s ease}
nav a:hover::after{width:100%}
.cta{padding:12px 20px;border-radius:8px;background:var(--brand);color:white;border:1px solid var(--brand);font-weight:600;transition:all 0.3s ease;box-shadow:0 4px 16px rgba(66, 133, 244, 0.3)}
.cta:hover{background:var(--brand-2);border-color:var(--brand-2);box-shadow:var(--glow);transform:translateY(-2px)}
.cta.secondary{background:transparent;color:var(--brand);border:1px solid var(--brand);box-shadow:none}
.cta.secondary:hover{background:var(--brand);color:white;box-shadow:var(--glow)}

/* Hero */
.hero{position:relative;isolation:isolate;overflow:hidden}
.hero::before{content:'';position:absolute;top:0;left:0;right:0;height:1px;background:linear-gradient(90deg, transparent, var(--brand), transparent);opacity:0.6}
.hero .wrap{padding:80px 0 64px;display:grid;grid-template-columns:1.1fr .9fr;gap:32px}
.hero-card{background:var(--bg-3);border:1px solid var(--line);border-radius:var(--radius-xl);padding:32px;box-shadow:var(--shadow);position:relative;overflow:hidden}
.hero-card::before{content:'';position:absolute;top:0;left:0;right:0;height:1px;background:linear-gradient(90deg, transparent, var(--brand), transparent);opacity:0.4}
h1{font-size:clamp(36px,5vw,56px);line-height:1.1;margin:0 0 16px;font-weight:700;letter-spacing:-0.02em}
h1.brand{background:linear-gradient(135deg,var(--brand) 0%,var(--brand-2) 50%,#00d4ff 100%);-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:0 0 30px rgba(66, 133, 244, 0.3)}

.lede{color:var(--muted);font-size:20px;line-height:1.5;font-weight:400}
.badges{margin-top:16px}
.lede .profile-thumb{float:left;position:relative; top: .5rem; border-radius:.25rem; display:block;width:96px;height:auto;margin:4px 16px 8px 0;border:1px solid var(--line);}
@media (max-width: 640px){.lede .profile-thumb{float:none;display:block;margin:0 auto 12px;}}

.lede + p{clear:left;}

.hero-illus{position:relative;min-height:400px;border-radius:var(--radius-xl);overflow:hidden;border:1px solid var(--line);box-shadow:var(--shadow);display:flex;align-items:center;justify-content:center;background:var(--bg-3)}
.hero-illus img{max-width:100%;max-height:100%;object-fit:contain}
.geo-bg{position:absolute;inset:0}
.hero-note{position:absolute;bottom:20px;left:20px;background:rgba(18, 20, 26, 0.9);border:1px solid var(--line);padding:12px 16px;border-radius:12px;color:var(--muted);backdrop-filter:blur(20px)}

/* Sections */
section{padding:80px 0;border-top:1px solid var(--line);position:relative}
section::before{content:'';position:absolute;top:0;left:50%;transform:translateX(-50%);width:200px;height:1px;background:linear-gradient(90deg, transparent, var(--brand), transparent);opacity:0.3}
h2{font-size:32px;margin:0 0 12px;font-weight:700;letter-spacing:-0.01em}
.sub{color:var(--muted);margin:0 0 32px;font-size:18px;line-height:1.6}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}
.card{background:var(--bg-3);border:1px solid var(--line);border-radius:var(--radius-lg);padding:28px;box-shadow:var(--shadow);transition:all 0.3s ease;position:relative;overflow:hidden}
.card::before{content:'';position:absolute;top:0;left:0;right:0;height:1px;background:linear-gradient(90deg, transparent, var(--brand), transparent);opacity:0;transition:opacity 0.3s ease}
.card:hover{transform:translateY(-4px);box-shadow:0 12px 40px rgba(0,0,0,.5), var(--glow);border-color:var(--brand)}
.card:hover::before{opacity:0.6}
.card h3{margin:0 0 8px;font-size:22px;font-weight:600}
.list{margin:0;padding-left:0;list-style:none}
.list li{margin:12px 0;color:var(--muted);display:flex;gap:12px;align-items:flex-start;transition:color 0.3s ease}
.list li:hover{color:var(--ink)}
.list li i{font-size:18px;line-height:1;margin-top:2px;color:var(--brand)}
.list li i.fa-duotone{--fa-primary-color: var(--brand); --fa-secondary-color: var(--brand-2); --fa-secondary-opacity:.4}

/* Why choose */
.ticks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.tick{display:flex;gap:10px;align-items:flex-start}
.tick .icon{height:28px;width:28px;display:grid;place-items:center}
.tick .icon i{font-size:14px;line-height:1;color:color-mix(in oklab, var(--brand) 68%, var(--brand-2) 32%)}
.tick .icon i.fa-duotone{--fa-primary-color: color-mix(in oklab, var(--brand) 68%, var(--brand-2) 32%); --fa-secondary-color: color-mix(in oklab, var(--brand) 8%, var(--brand-2) 92%); --fa-secondary-opacity:.55}

/* Contact block */
.contact-card{display:block;text-align:center}

/* Footer */
footer{padding:48px 0;border-top:1px solid var(--line);color:var(--muted);background:var(--bg-2)}

/* Background canvas */
.bg3d{position:fixed;top:0;left:0;width:100%;height:100%;z-index:-1;pointer-events:none}

/* Additional modern elements */
.hero-illus .geo-bg{background:linear-gradient(135deg, var(--bg-3) 0%, var(--bg-2) 100%);opacity:0.8}

/* Responsive */
@media (max-width: 980px){
    .hero .wrap{grid-template-columns:1fr}
    nav{display:none}
    section{padding:64px 0}
    .grid-3{grid-template-columns:1fr}
    .grid-2{grid-template-columns:1fr}
    .ticks{grid-template-columns:1fr}
    .contact-card{grid-template-columns:1fr}
    h1{font-size:clamp(28px,8vw,42px)}
    .hero-card{padding:24px}
}

/* Full-screen interactive 3D background layer */
.bg3d{position:fixed;inset:0;z-index:0;pointer-events:none;
    background:
        radial-gradient(1200px 700px at 12% -20%, transparent 0%, color-mix(in oklab,var(--brand) 18%, transparent) 22%, transparent 58%),
        radial-gradient(1000px 600px at 108% -10%, transparent 0%, color-mix(in oklab,var(--brand-2) 16%, transparent) 26%, transparent 60%),
        radial-gradient(900px 480px at -8% 110%, transparent 0%, color-mix(in oklab,var(--brand) 14%, transparent) 22%, transparent 58%),
        radial-gradient(820px 420px at 110% 92%, transparent 0%, color-mix(in oklab,var(--brand-2) 14%, transparent) 24%, transparent 60%);
    background-repeat:no-repeat;
}
header.site, main, footer{position:relative;z-index:1}

/* Brand-forward accents */
.cta{background:linear-gradient(135deg,var(--brand),var(--brand-2));color:#fff;border:none}
.cta:hover{filter:brightness(1.05)}
.cta.secondary{background:transparent;color:var(--ink);border:1px solid color-mix(in oklab, var(--brand) 50%, var(--brand-2) 50%);display:inline-block}


/* Hero video styling */
.hero-video{position:relative;border-radius:var(--radius-xl);overflow:hidden;border:1px solid var(--line);box-shadow:var(--shadow);background:color-mix(in oklab, var(--bg-2), transparent 20%);padding:24px;display:flex;flex-direction:column;justify-content:center;min-height:360px}
.hero-video h2{margin:0 0 8px;font-size:24px;color:var(--ink);text-align:center}
.video-subtitle{margin:0 0 20px;color:var(--muted);text-align:center;font-size:16px}
.video-container{position:relative;width:100%;aspect-ratio:16/9;border-radius:12px;overflow:hidden}
.video-container iframe{position:absolute;top:0;left:0;width:100%;height:100%}

/* Subtle text shadows for better readability over animated background */
body{text-shadow:0 1px 2px rgba(0,0,0,0.02)}
h1, h2, h3{text-shadow:0 1px 3px rgba(0,0,0,0.04)}
.tagline{text-shadow:0 1px 2px rgba(0,0,0,0.03)}

/* Articles page layout */
.articles-layout{position:relative;isolation:isolate;padding:40px 0}
.articles-wrap{display:grid;grid-template-columns:320px 1fr;gap:32px;align-items:start}

/* Left sidebar styling */
.articles-sidebar{position:sticky;top:100px}
.sidebar-card{background:var(--bg-2);border:1px solid var(--line);border-radius:var(--radius-xl);padding:24px;box-shadow:var(--shadow)}
.sidebar-card h2{margin:0 0 20px;font-size:20px;color:var(--ink)}
.article-nav{display:flex;flex-direction:column;gap:12px}
.article-link{display:block;padding:16px;border-radius:12px;border:1px solid transparent;transition:all 0.2s ease;text-decoration:none}
.article-link:hover{background:var(--bg);border-color:var(--line)}
.article-link.active{background:linear-gradient(135deg,var(--brand)/.1,var(--brand-2)/.1);border-color:color-mix(in oklab,var(--brand) 30%,var(--brand-2) 30%)}
.article-title{font-size:15px;font-weight:500;color:var(--ink);line-height:1.3;margin-bottom:4px}
.article-date{font-size:13px;color:var(--muted)}

/* Article content styling */
.article-content{min-width:0}
.article-card{background:var(--bg-2);border:1px solid var(--line);border-radius:var(--radius-xl);padding:40px;box-shadow:var(--shadow)}
.article-header{margin-bottom:32px}
.article-header h1{margin:0 0 12px;font-size:clamp(28px,4vw,42px);line-height:1.2}
.article-meta-full{display:flex;gap:16px;color:var(--muted);font-size:14px}
.article-hero{margin-bottom:32px;border-radius:12px;overflow:hidden}
.article-hero img{width:100%;height:auto;display:block}
.article-body{line-height:1.7;color:var(--ink)}
.article-body p{margin:0 0 20px}
.article-body h2{margin:32px 0 16px;font-size:24px;color:var(--ink)}
.article-body h3{margin:24px 0 12px;font-size:20px;color:var(--ink)}
.article-lead{font-size:18px;color:var(--muted);font-weight:500;margin-bottom:32px!important}
.article-body blockquote{margin:32px 0;padding:20px 24px;background:var(--bg);border-left:4px solid var(--brand);border-radius:8px}
.article-body blockquote p{margin:0;font-style:italic;color:var(--muted)}
.article-body ol,.article-body ul{margin:0 0 20px;padding-left:24px}
.article-body li{margin-bottom:8px}
.article-footer{margin-top:40px;padding-top:24px;border-top:1px solid var(--line)}
.article-tags{display:flex;gap:8px;flex-wrap:wrap}
.tag{padding:4px 12px;background:var(--bg);border:1px solid var(--line);border-radius:20px;font-size:13px;color:var(--muted)}

/* Responsive articles */
@media (max-width: 768px) {
    .articles-wrap{grid-template-columns:1fr;gap:24px}
    .articles-sidebar{position:static}
    .article-card{padding:24px}
}

/* Portfolio page styling */
.portfolio-hero{position:relative;isolation:isolate;padding:40px 0 20px}
.portfolio-hero .hero-card{background:var(--bg-2);border:1px solid var(--line);border-radius:var(--radius-xl);padding:28px;box-shadow:var(--shadow);max-width:800px;margin:0 auto}

.portfolio-grid{padding:40px 0}
.projects-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(350px,1fr));gap:24px}

/* Project cards */
.project-card-link{text-decoration:none;color:inherit;display:block}
.project-card{background:var(--bg-2);border:1px solid var(--line);border-radius:var(--radius-xl);overflow:hidden;box-shadow:var(--shadow);transition:all 0.2s ease}
.project-card-link:hover .project-card{transform:translateY(-2px);box-shadow:0 8px 25px rgba(0,0,0,0.1)}

.project-image{position:relative;aspect-ratio:16/10;overflow:hidden}
.project-image img{width:100%;height:100%;object-fit:cover;transition:transform 0.3s ease}
.project-card-link:hover .project-image img{transform:scale(1.05)}

.project-overlay{position:absolute;top:12px;left:12px;background:rgba(0,0,0,0.7);color:white;padding:4px 12px;border-radius:20px;font-size:12px;font-weight:500}

.project-content{padding:24px}
.project-content h3{margin:0 0 8px;font-size:20px;color:var(--ink);line-height:1.3}
.project-summary{margin:0 0 16px;color:var(--muted);line-height:1.5;font-size:15px}

.project-tech{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:16px}
.tech-tag{padding:3px 8px;background:var(--bg);border:1px solid var(--line);border-radius:12px;font-size:12px;color:var(--muted)}

.project-link{display:inline-flex;align-items:center;gap:6px;color:var(--brand);font-weight:500;text-decoration:none;font-size:14px}
.project-link:hover{color:var(--brand-2)}
.project-link i{font-size:12px}

/* Portfolio CTA */
.portfolio-cta{padding:40px 0}
.cta-card{background:var(--bg-2);border:1px solid var(--line);border-radius:var(--radius-xl);padding:40px;box-shadow:var(--shadow);text-align:center;max-width:600px;margin:0 auto}
.cta-card h2{margin:0 0 12px;color:var(--ink)}
.cta-card p{margin:0 0 24px;color:var(--muted);font-size:16px}

/* Responsive portfolio */
@media (max-width: 768px) {
    .projects-grid{grid-template-columns:1fr;gap:20px}
    .project-content{padding:20px}
    .portfolio-hero .hero-card{padding:24px}
    .cta-card{padding:28px}
}

/* Individual project page styling */
.project-detail{position:relative;isolation:isolate;padding:40px 0}
.project-wrap{display:flex;flex-direction:column;gap:32px}

/* Project header card */
.project-header-card{background:var(--bg-2);border:1px solid var(--line);border-radius:var(--radius-xl);padding:32px;box-shadow:var(--shadow)}
.project-breadcrumb{margin-bottom:16px;font-size:14px;color:var(--muted)}
.project-breadcrumb a{color:var(--brand);text-decoration:none}
.project-breadcrumb a:hover{color:var(--brand-2)}
.project-breadcrumb i{margin:0 8px;font-size:12px}
.project-header-card h1{margin:0 0 12px;font-size:clamp(28px,4vw,42px);line-height:1.2}
.project-subtitle{margin:0 0 24px;font-size:18px;color:var(--muted);line-height:1.4}
.project-meta{display:flex;gap:32px;flex-wrap:wrap}
.meta-item{display:flex;flex-direction:column;gap:4px}
.meta-label{font-size:12px;color:var(--muted);text-transform:uppercase;font-weight:500;letter-spacing:0.5px}
.meta-value{font-size:16px;color:var(--ink);font-weight:500}

/* Project gallery card */
.project-gallery-card{background:var(--bg-2);border:1px solid var(--line);border-radius:var(--radius-xl);padding:24px;box-shadow:var(--shadow)}
.gallery-main{margin-bottom:16px;border-radius:12px;overflow:hidden}
.gallery-featured{width:100%;height:auto;display:block}
.gallery-thumbnails{display:flex;gap:12px;overflow-x:auto;padding:4px}
.gallery-thumb{width:80px;height:60px;object-fit:cover;border-radius:8px;cursor:pointer;opacity:0.7;transition:opacity 0.2s ease}
.gallery-thumb:hover,.gallery-thumb.active{opacity:1}

/* Project content grid */
.project-content-grid{display:grid;grid-template-columns:1fr 300px;gap:32px;align-items:start}

/* Main content card */
.project-main-card{background:var(--bg-2);border:1px solid var(--line);border-radius:var(--radius-xl);padding:32px;box-shadow:var(--shadow)}
.content-section{margin-bottom:32px}
.content-section:last-child{margin-bottom:0}
.content-section h2{margin:0 0 16px;font-size:24px;color:var(--ink)}
.content-section h3{margin:24px 0 12px;font-size:20px;color:var(--ink)}
.content-section p{margin:0 0 16px;line-height:1.6;color:var(--ink)}
.content-section ul,.content-section ol{margin:0 0 16px;padding-left:24px}
.content-section li{margin-bottom:8px;line-height:1.5}
.implementation-phases{display:grid;gap:16px;margin-top:16px}
.phase{padding:16px;background:var(--bg);border:1px solid var(--line);border-radius:12px}
.phase h4{margin:0 0 8px;color:var(--ink);font-size:16px}
.phase p{margin:0;color:var(--muted);font-size:14px}
.results-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:16px;margin:16px 0}
.result-item{text-align:center;padding:16px;background:var(--bg);border:1px solid var(--line);border-radius:12px}
.result-number{font-size:24px;font-weight:700;color:var(--brand);margin-bottom:4px}
.result-label{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:0.5px}

/* Sidebar card */
.project-sidebar-card{background:var(--bg-2);border:1px solid var(--line);border-radius:var(--radius-xl);padding:24px;box-shadow:var(--shadow);position:sticky;top:100px}
.sidebar-section{margin-bottom:24px}
.sidebar-section:last-child{margin-bottom:0}
.sidebar-section h3{margin:0 0 12px;font-size:16px;color:var(--ink)}
.tech-stack{display:flex;flex-wrap:wrap;gap:6px}
.tech-item{padding:4px 8px;background:var(--bg);border:1px solid var(--line);border-radius:8px;font-size:12px;color:var(--muted)}
.metrics-list{display:flex;flex-direction:column;gap:8px}
.metric{display:flex;justify-content:space-between;align-items:center;padding:8px 0;border-bottom:1px solid var(--line)}
.metric:last-child{border-bottom:none}
.metric-label{font-size:13px;color:var(--muted)}
.metric-value{font-size:13px;font-weight:500;color:var(--ink)}
.project-links{display:flex;flex-direction:column;gap:8px}
.project-link-item{display:flex;align-items:center;gap:8px;padding:8px 12px;background:var(--bg);border:1px solid var(--line);border-radius:8px;text-decoration:none;color:var(--ink);font-size:13px;transition:all 0.2s ease}
.project-link-item:hover{background:var(--line);color:var(--brand)}
.project-link-item i{color:var(--muted)}

/* Project navigation */
.project-navigation{display:flex;justify-content:space-between;align-items:center;background:var(--bg-2);border:1px solid var(--line);border-radius:var(--radius-xl);padding:20px 24px;box-shadow:var(--shadow)}
.nav-link{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink);transition:color 0.2s ease}
.nav-link:hover{color:var(--brand)}
.nav-link.center{flex-direction:column;gap:4px;text-align:center}
.nav-label{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:0.5px}
.nav-title{font-size:14px;font-weight:500}

/* Responsive project detail */
@media (max-width: 768px) {
    .project-content-grid{grid-template-columns:1fr;gap:24px}
    .project-sidebar-card{position:static}
    .project-header-card,.project-main-card{padding:24px}
    .project-meta{gap:20px}
    .project-navigation{flex-direction:column;gap:16px;text-align:center}
    .nav-link.prev,.nav-link.next{order:2}
    .nav-link.center{order:1}
}



/* Project detail slider (Swiper) */
.project-gallery-card{background:var(--bg-2);border:1px solid var(--line);border-radius:var(--radius-xl);padding:16px;box-shadow:var(--shadow)}
.project-swiper{width:100%}
.project-swiper .swiper-slide{position:relative;border-radius:12px;overflow:hidden}
.project-swiper .swiper-slide img{width:100%;height:auto;display:block}

/* Thumbnails under the hero image */
.project-thumbnails{display:flex;justify-content:space-between;margin-top:12px}
.thumbnail-item{width:auto;height:80px;border:1px solid var(--line);border-radius:8px;overflow:hidden;opacity:.7;background:var(--bg);cursor:pointer;transition:all 0.2s ease}
.thumbnail-item:hover{opacity:.9}
.thumbnail-item.active{opacity:1;border-color:color-mix(in oklab, var(--brand) 50%, var(--brand-2) 50%)}
.thumbnail-item img{max-height:80px;width:auto;display:block}

@media (max-width: 640px){
  .project-thumbnails{gap:6px}
  .thumbnail-item{height:48px}
}


