
:root {
  --bg: #07111f;
  --bg-2: #091322;
  --panel: rgba(255,255,255,0.05);
  --panel-2: rgba(255,255,255,0.07);
  --line: rgba(255,255,255,0.08);
  --text: #f5f7fb;
  --muted: rgba(245,247,251,0.72);
  --primary: #44f3c6;
  --primary-2: #4e7bff;
  --shadow: 0 20px 60px rgba(0,0,0,0.35);
  --radius: 26px;
  --container: 1240px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(68,243,198,0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(78,123,255,0.14), transparent 30%),
    linear-gradient(180deg, #08111e 0%, #091322 100%);
  line-height:1.6;
}
a{text-decoration:none;color:inherit}
img{display:block;max-width:100%}
.container{width:min(var(--container), calc(100% - 32px));margin:0 auto}
.topbar{position:sticky;top:0;z-index:40;backdrop-filter:blur(18px);background:rgba(7,17,31,.78);border-bottom:1px solid rgba(255,255,255,.06)}
.topbar-inner{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.brand{font-size:20px;font-weight:900;letter-spacing:-0.8px}.brand span{color:var(--primary)}
.nav-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;justify-content:center;padding:13px 22px;border-radius:999px;border:1px solid var(--line);font-size:14px;font-weight:700;transition:.28s ease;cursor:pointer}
.btn-outline{background:rgba(255,255,255,.03)}
.btn-outline:hover{transform:translateY(-2px);border-color:rgba(68,243,198,.32);background:rgba(255,255,255,.06)}
.btn-primary{background:var(--primary);color:#07111f;border-color:transparent;box-shadow:0 10px 30px rgba(68,243,198,.22)}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 14px 35px rgba(68,243,198,.34)}
.eyebrow{display:inline-flex;align-items:center;gap:10px;padding:10px 16px;border-radius:999px;border:1px solid rgba(68,243,198,.18);background:rgba(68,243,198,.08);color:var(--primary);font-size:12px;font-weight:800;letter-spacing:.9px;text-transform:uppercase}
.page-hero{padding:78px 0 36px}
.page-hero-grid{display:grid;grid-template-columns:1.08fr .92fr;gap:32px;align-items:center}
.page-title{font-size:clamp(40px,6vw,74px);line-height:.95;font-weight:900;letter-spacing:-2.8px;margin:18px 0}
.page-title em{font-style:normal;color:var(--primary)}
.page-sub{max-width:710px;color:var(--muted);font-size:16px;line-height:1.9}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:26px}
.stat{padding:18px;border-radius:20px;background:var(--panel);border:1px solid var(--line);box-shadow:var(--shadow)}
.stat span{display:block;color:var(--muted);font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:1px;margin-bottom:8px}
.stat strong{display:block;font-size:24px;font-weight:900}
.hero-visual,.hero-image-wrap{position:relative}
.hero-image-wrap{overflow:hidden;border-radius:30px;border:1px solid var(--line);background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));box-shadow:var(--shadow)}
.hero-image-wrap img{width:100%;height:100%;min-height:430px;object-fit:cover;object-position:center}
.float-note{position:absolute;left:18px;bottom:18px;max-width:280px;padding:14px 16px;border-radius:18px;background:rgba(7,17,31,.88);border:1px solid rgba(255,255,255,.08);box-shadow:var(--shadow);backdrop-filter:blur(15px)}
.float-note small{display:block;color:var(--primary);font-size:11px;font-weight:800;letter-spacing:1px;text-transform:uppercase;margin-bottom:6px}
.float-note p{font-size:13px;color:rgba(255,255,255,.82);line-height:1.55}
.section{padding:28px 0 88px}
.section-title{font-size:32px;line-height:1.05;font-weight:900;letter-spacing:-1px;margin-bottom:14px}.section-title em{font-style:normal;color:var(--primary)}
.section-copy{max-width:720px;color:var(--muted);font-size:15px;line-height:1.85;margin-bottom:24px}
.grid-2{display:grid;grid-template-columns:.8fr 1.2fr;gap:28px;align-items:start}
.stack{display:grid;gap:24px}
.card{padding:26px;border-radius:26px;background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));border:1px solid var(--line);box-shadow:var(--shadow)}
.card h3{font-size:24px;line-height:1.15;margin-bottom:18px;font-weight:800;letter-spacing:-.7px}.card p{color:var(--muted);font-size:15px;line-height:1.9}
.details-list{display:grid;gap:14px}.details-item{padding:14px 16px;border-radius:16px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06)}
.details-item span{display:block;color:var(--muted);font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.8px;margin-bottom:6px}.details-item strong{display:block;font-size:15px;font-weight:800}
.chips,.tech-row{display:flex;flex-wrap:wrap;gap:10px}.chip{padding:10px 14px;border-radius:999px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);font-size:13px;font-weight:700}
.feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px}.feature{padding:18px;border-radius:18px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.07)}.feature h4{font-size:16px;font-weight:800;margin-bottom:8px}.feature p{font-size:14px;line-height:1.7;color:var(--muted)}
.projects-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:22px}
.project-card{overflow:hidden;border-radius:28px;background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));border:1px solid var(--line);box-shadow:var(--shadow);transition:.28s ease}
.project-card:hover{transform:translateY(-6px);border-color:rgba(68,243,198,.18)}
.project-card .thumb{aspect-ratio: 16/10; overflow:hidden; border-bottom:1px solid rgba(255,255,255,.06)}
.project-card .thumb img{width:100%;height:100%;object-fit:cover;object-position:center;transition:.4s ease}
.project-card:hover .thumb img{transform:scale(1.03)}
.project-card .body{padding:22px}
.project-card .meta{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:12px;flex-wrap:wrap}
.pill{padding:8px 12px;border-radius:999px;background:rgba(68,243,198,.08);border:1px solid rgba(68,243,198,.16);color:var(--primary);font-size:12px;font-weight:800;letter-spacing:.3px}
.duration{color:var(--muted);font-size:13px;font-weight:700}
.project-card h3{font-size:22px;line-height:1.15;font-weight:900;letter-spacing:-.6px;margin-bottom:10px}
.project-card p{color:var(--muted);font-size:14px;line-height:1.8;margin-bottom:16px}
.actions{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-top:16px}
.link-arrow{display:inline-flex;align-items:center;gap:8px;font-weight:800;color:var(--primary)}
.result-row{display:flex;gap:10px;flex-wrap:wrap}
.result-badge{padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06);font-size:12px;font-weight:800;color:var(--text)}
.tabs{margin-top:18px}.tab-buttons{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:18px}.tab-btn{padding:11px 16px;border-radius:999px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.04);color:var(--text);font-size:13px;font-weight:800;cursor:pointer;transition:.25s ease}.tab-btn:hover{transform:translateY(-2px);border-color:rgba(68,243,198,.22)}.tab-btn.active{background:rgba(68,243,198,.12);border-color:rgba(68,243,198,.22);color:var(--primary)}
.tab-panel{display:none}.tab-panel.active{display:block}
.gallery-card{overflow:hidden;border-radius:22px;border:1px solid var(--line);background:rgba(255,255,255,.04);box-shadow:var(--shadow)}
.gallery-card img{width:100%;height:360px;object-fit:cover;object-position:center}.gallery-card .caption{padding:16px 18px 18px}.gallery-card .caption h5{font-size:16px;font-weight:800;margin-bottom:6px}.gallery-card .caption p{font-size:14px;line-height:1.7;color:var(--muted)}
.gallery-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;margin-top:18px}.gallery-grid .gallery-card img{height:250px}
.results-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:18px}.result-box{padding:22px 18px;border-radius:18px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);text-align:center}.result-box strong{display:block;font-size:28px;font-weight:900;color:var(--primary);margin-bottom:6px}.result-box span{font-size:14px;color:var(--muted);font-weight:600}
.bottom-cta{margin-top:26px;padding:30px;border-radius:28px;background:linear-gradient(135deg, rgba(68,243,198,.12), rgba(255,255,255,.03));border:1px solid rgba(68,243,198,.16);display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.bottom-cta h4{font-size:24px;font-weight:900;letter-spacing:-.6px;margin-bottom:6px}.bottom-cta p{color:var(--muted);font-size:15px;line-height:1.75;max-width:650px}
.bullets{display:grid;gap:10px;margin-top:14px}.bullets li{margin-left:18px;color:var(--muted);font-size:14px;line-height:1.8}
.footer{padding:0 0 46px}.footer-note{padding:18px 20px;border-radius:20px;border:1px solid rgba(255,255,255,.06);background:rgba(255,255,255,.03);color:var(--muted);font-size:14px;line-height:1.8}
@media (max-width: 1100px){.page-hero-grid,.grid-2,.projects-grid{grid-template-columns:1fr}.stats,.results-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width: 768px){.page-title{letter-spacing:-1.6px}.stats,.feature-grid,.gallery-grid,.results-grid{grid-template-columns:1fr}.gallery-card img,.gallery-grid .gallery-card img{height:220px}.hero-image-wrap img{min-height:300px}.card{padding:22px 18px}.topbar-inner{min-height:70px}.brand{font-size:18px}.btn{padding:12px 18px;font-size:13px}}

/* ===== LIGHT / DARK THEME TOGGLE FOR PROJECT DETAIL PAGES ===== */
.theme-toggle{
  width:48px;
  height:48px;
  padding:0;
  border-radius:50%;
  background:rgba(255,255,255,.04);
  color:var(--text);
}
.theme-toggle i{font-size:18px;line-height:1}
.theme-toggle:hover{transform:translateY(-2px);border-color:rgba(68,243,198,.32);background:rgba(255,255,255,.07)}
body.light-theme{
  --bg: #F7FAFC;
  --bg-2: #EAF0F8;
  --panel: rgba(255,255,255,0.72);
  --panel-2: rgba(255,255,255,0.9);
  --line: rgba(7,16,28,.13);
  --text: #07101C;
  --muted: rgba(7,16,28,.68);
  --shadow: 0 22px 60px rgba(7,16,28,.13);
  background:
    radial-gradient(circle at top left, rgba(68,243,198,0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(78,123,255,0.12), transparent 30%),
    linear-gradient(180deg, #F7FAFC 0%, #EAF0F8 100%);
}
body.light-theme .topbar{background:rgba(247,250,252,.82);border-bottom-color:rgba(7,16,28,.1)}
body.light-theme .btn-outline,
body.light-theme .theme-toggle,
body.light-theme .card,
body.light-theme .project-card,
body.light-theme .gallery-card,
body.light-theme .footer-note{background:rgba(255,255,255,.68)}
body.light-theme .details-item,
body.light-theme .feature,
body.light-theme .result-box,
body.light-theme .result-badge,
body.light-theme .chip,
body.light-theme .tab-btn{background:rgba(7,16,28,.035);border-color:rgba(7,16,28,.08)}
body.light-theme .float-note{background:rgba(255,255,255,.88);border-color:rgba(7,16,28,.1)}
body.light-theme .float-note p{color:rgba(7,16,28,.78)}
body.light-theme .project-card .thumb{border-bottom-color:rgba(7,16,28,.08)}
@media (max-width: 768px){.theme-toggle{width:44px;height:44px}.nav-actions{gap:10px}}

/* ===== ENHANCED RESPONSIVE — ALL SCREENS ===== */

/* Ultra-wide monitors (2560px+) */
@media (min-width: 2560px) {
  :root { --container: 1600px; }
  .page-title { font-size: 90px; }
  .section-title { font-size: 42px; }
  body { font-size: 18px; }
}

/* Large desktops / 4K monitors (1920px+) */
@media (min-width: 1920px) {
  :root { --container: 1440px; }
  .page-title { font-size: 80px; }
  .hero-image-wrap img { min-height: 520px; }
  .gallery-card img { height: 420px; }
}

/* Standard desktop (1440px) */
@media (min-width: 1440px) and (max-width: 1919px) {
  :root { --container: 1320px; }
}

/* Laptop screens (1280px–1439px) */
@media (max-width: 1280px) {
  :root { --container: 1100px; }
  .page-title { font-size: clamp(38px, 5.5vw, 68px); }
}

/* Tablet landscape (1024px–1099px) */
@media (max-width: 1024px) {
  .page-hero { padding: 60px 0 28px; }
  .section { padding: 20px 0 64px; }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet portrait (768px–1023px) */
@media (max-width: 768px) {
  .page-title { font-size: clamp(32px, 6.5vw, 52px); letter-spacing: -1.6px; }
  .page-sub { font-size: 15px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-card img, .gallery-grid .gallery-card img { height: 220px; }
  .hero-image-wrap img { min-height: 300px; }
  .card { padding: 22px 18px; }
  .topbar-inner { min-height: 70px; flex-wrap: wrap; gap: 10px; }
  .brand { font-size: 18px; }
  .btn { padding: 12px 18px; font-size: 13px; }
  .bottom-cta { flex-direction: column; text-align: center; }
  .bottom-cta h4 { font-size: 20px; }
  .projects-grid { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-actions { gap: 8px; }
}

/* Large phones (480px–767px) */
@media (max-width: 480px) {
  .container { width: calc(100% - 24px); }
  .page-hero { padding: 40px 0 20px; }
  .page-title { font-size: clamp(28px, 8vw, 42px); letter-spacing: -1px; margin: 12px 0; }
  .page-sub { font-size: 14px; line-height: 1.75; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 14px; }
  .stat strong { font-size: 20px; }
  .results-grid { grid-template-columns: 1fr; }
  .result-box strong { font-size: 24px; }
  .section-title { font-size: 26px; }
  .card h3 { font-size: 20px; }
  .gallery-card img { height: 180px; }
  .tab-btn { padding: 9px 13px; font-size: 12px; }
  .chips, .tech-row { gap: 8px; }
  .chip { padding: 8px 12px; font-size: 12px; }
  .actions { flex-direction: column; align-items: flex-start; }
  .bottom-cta { padding: 22px 18px; }
  .topbar-inner { min-height: 60px; }
}

/* Small phones (360px–479px) */
@media (max-width: 380px) {
  .page-title { font-size: clamp(24px, 7.5vw, 36px); }
  .stats { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .tab-buttons { gap: 8px; }
  .nav-actions .btn-outline { display: none; }
}

@media (max-width: 768px){.theme-toggle{width:34px;height:34px;flex-shrink:0}.theme-toggle i{font-size:14px}.nav-actions{gap:6px;flex-wrap:nowrap;flex-shrink:0}.topbar-inner{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;align-items:center;padding:10px 16px;gap:6px;width:100%;min-height:60px}.brand{font-size:14px;white-space:nowrap;flex-shrink:0}.btn{padding:7px 10px;font-size:11px;white-space:nowrap;flex-shrink:0;border-radius:20px}}
/* iPad Mini, iPad Air, iPad Pro, Surface Pro 7, Surface Duo, Galaxy Z Fold5, Asus Zenbook Fold */
@media (min-width: 768px) and (max-width: 1024px) {
  .gallery-grid{grid-template-columns:1fr!important;}
  .gallery-card img,.gallery-grid .gallery-card img{height:300px!important;}
  .hero-image-wrap img{min-height:320px!important;height:auto!important;}
  .projects-grid{grid-template-columns:1fr!important;}
  .project-card .thumb{aspect-ratio:16/9!important;}
  .project-card .thumb img{height:auto!important;width:100%!important;}
}
/* Samsung Galaxy A51/71 (412px), Nest Hub (600px) */
@media (min-width: 540px) and (max-width: 767px) {
  .gallery-card img,.gallery-grid .gallery-card img{height:250px!important;}
  .hero-image-wrap img{min-height:260px!important;height:auto!important;}
  .project-card .thumb img{width:100%!important;height:auto!important;}
}
/* Nest Hub Max (1280px) */
@media (min-width: 1024px) and (max-width: 1280px) {
  .gallery-grid{grid-template-columns:repeat(2,1fr)!important;}
  .gallery-card img,.gallery-grid .gallery-card img{height:280px!important;}
  .hero-image-wrap img{min-height:360px!important;}
}


.topbar-inner{
  margin-left: 5px;
  margin-right: 5px;
}



.nav-actions{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;visibility:visible!important;opacity:1!important;}
.btn{display:inline-flex!important;visibility:visible!important;opacity:1!important;white-space:nowrap!important;}
.theme-toggle{display:inline-flex!important;visibility:visible!important;opacity:1!important;flex-shrink:0!important;}
@media (max-width: 380px){.nav-actions{gap:4px!important}.btn{padding:5px 7px!important;font-size:10px!important}.theme-toggle{width:28px!important;height:28px!important}.brand{font-size:11px!important}}
@media (max-width: 320px){.btn{padding:4px 6px!important;font-size:9px!important}.brand{font-size:10px!important}.theme-toggle{width:24px!important;height:24px!important}}