:root {
  --bg:#0b1020;
  --panel:#121936;
  --text:#ebefff;
  --muted:#b6c0e9;
  --brand-2:#6AA6ff; /* HOVER COLOR */
  --radius:16px;
  --shadow:0 10px 30px rgba(0,0,0,.25);
}

/* Basics */
* { box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  margin:0;
  font:16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial;
  color:var(--text);
  background:var(--bg);
}
.container { width:min(1100px, 92%); margin-inline:auto; padding:0 0 40px 0; }
a { color:inherit; text-decoration:none; }

/* ============================= */
/* Header Navigation – Premium */
/* ============================= */

.links {
  display: flex;
  gap: 12px;
}

.nav-link {
  position: relative;
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,.08);
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

/* Hover effect */
.nav-link:hover {
  background: var(--panel);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    
}

/* Active page (current page) */
.nav-link.active {
  background: var(--brand-2);
  color: #0b1020;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}


/* Header */
header {
  position:sticky; top:0; z-index:1000;
  backdrop-filter: blur(8px);
  background: rgba(11,16,32,.85);
  border-bottom:1px solid rgba(255,255,255,.07);
}
.nav { display:flex; justify-content:space-between; align-items:center; padding:16px 0; }
.brand { display:flex; align-items:center; gap:10px; font-weight:600; font-size:20px; }
.logo { width:50px; height:50px; border-radius:8px; background:linear-gradient(135deg,var(--brand),var(--brand-2)); }
.links { display:flex; gap:20px; }

/* Hero */
.hero { display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:center; padding:60px 0; }
.hero .hero-text h1 { font-size:clamp(28px,5vw,44px); margin:0 0 10px; }
.lead { color:var(--muted); margin-bottom:20px; }
.hero-card .hero-img { width:100%; height:380px; object-fit:cover; border-radius:14px; box-shadow:var(--shadow); }

.project-hero {
  padding: 60px 0 40px;   /* top | bottom */
  min-height: auto;       /* remove forced tall height */
}

.project-hero {
  min-height: 10vh;
  align-items: center;
}

section {
  padding: 18px 0;
}


/* What I Do (grid) */
#whatido { padding:0px 0; }
.grid { display:grid; gap:20px; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); }
.card { background:var(--panel); border:1px solid rgba(255,255,255,.06); padding:20px; border-radius:12px; box-shadow:var(--shadow); }
.muted { color:var(--muted); }

/* Tabs (Carousel-style filter) */
.tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding: 0.5rem;
  scrollbar-width: none; /* Firefox */
}

.tabs::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

/* ============================= */
/* Project Tabs – Grid Style */
/* ============================= */

.tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.tab {
  background: var(--panel);
  color: var(--brand-2);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 16px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 400;
  text-align: center;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

/* Hover */
.tab:hover {
  background: rgba(141, 245, 248, 0.08);
  color: var(--text);
  transform: translateY(-2px);
}

/* Active tab */
.tab.active {
  background: var(--brand-2);
  color: #0b1020;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

#projects h2 {
  margin-bottom: 10px;
}


.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 320px); /* FIXED column width */
  gap: 24px;
  justify-content: start; /* pack to the left */
}


.project-card {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;                 /* ← THIS controls vertical rhythm */
  transition: transform 0.3s, box-shadow 0.3s;
  align-items: flex-start;
  text-align: left;
}


.project-card img {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.project-card h3 {
  margin: 4px 0 4px;    /* top | bottom */
  font-size: 1.05rem;   /* slightly smaller */
  color: #6AA6ff;
}


.project-card p {
  font-size: 0.95rem;   /* cleaner, more modern */
  line-height: 1.5;
  margin: 0 0 6px;
  color: var(--muted);
}


.project-card .btn {
  background: var(--bg);
  color: #0b1020;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.project-card:hover {
  background: var(--bg);
  color: #0b1020;
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 220px); /* ~30% smaller than 320px */
  gap: 24px;
  justify-content: start;
  margin-top: 20px;
}

.tool-card {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 14px; /* Reduced padding a bit */
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 7px; /* Reduced vertical gap */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  align-items: flex-start;
  text-align: left;
}

.tool-card img {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 12px;
  object-fit: contain;
  height: 85px; /* ~30% smaller than 120px */
}

.tool-card p {
  font-size: 0.85rem; /* Slightly smaller text */
  line-height: 1.4;
  margin: 0 0 4px;
  color: var(--muted);
  font-weight: 500;
}

.tool-card:hover {
  background: var(--bg);
  color: #0b1020;
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
  transform: translateY(-4px);
}

/* small screens */
@media (max-width:900px) {
  .hero { grid-template-columns:1fr; padding:40px 0; }
  .hero-card .hero-img { height:260px; }
}
@media (max-width:640px) {
  .carousel .card { flex: 0 0 80%; }  /* cards take most of the viewport on small phones */
  .carousel .carousel-track { gap:12px; padding-left:6px; }
  #projects .tab { margin-right:12px; font-size:15px; }
}


/* ----------------------------- */
/* MODERN HOVER EFFECT (Scale + Shadow) */
/* ----------------------------- */

.hover-grow {
  transition: all 0.25s ease;
  display: inline-block;
}

.hover-grow:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

/* Center Navigation Active State */
nav .active {
  font-weight: bold;
  opacity: 1;
}

/* Keep visual harmony with homepage */
.about-hero,
.about-wrapper,
.about-text {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

/* ============================= */
/* Page Entrance Animation */
/* ============================= */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.7s ease forwards;
  opacity: 0;
}

/* ============================= */
/* Scroll Reveal Animation */
/* ============================= */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}



/* Footer */
footer { padding:28px 0; color:var(--muted); border-top:1px solid rgba(255,255,255,.08); font-size:14px; }
.footer-inner { display:flex; justify-content:space-between; gap:18px; flex-wrap:wrap; }


/* About Page Layout */
/* ----------------------------- */
/* ABOUT PAGE                    */
/* ----------------------------- */

.about-hero {
  padding: 6rem 0;
}

.about-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  align-items: center;
}

.about-text h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1.2rem;
  line-height: 1.7;
  color: #ffffff;
  max-width: 650px;
}

.about-buttons {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Style subtle button */
.btn.subtle {
  background: #121936;               /* deep navy like your screenshot */
  color: #e8ecff;                    /* soft light text */
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 14px;
  font-size: 0.95rem;
  text-emphasis-color: var(--muted);
  display: inline-block;
  transition: transform 0.25s ease, 
              box-shadow 0.25s ease,
              background 0.25s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn.subtle:hover{
  border-color: rgba(0,0,0,0.2);
  transform: translateY(-3px);        /* gentle lift, not chunky */
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Minimal pill-style CTA */
.btn.primary {
background: #121936;               /* deep navy like your screenshot */
  color: #e8ecff;                    /* soft light text */
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 14px;
  font-size: 0.95rem;
  text-emphasis-color: var(--muted);
  display: inline-block;
  transition: transform 0.25s ease, 
              box-shadow 0.25s ease,
              background 0.25s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Soft, smooth hover */
.btn.primary:hover {
  border-color: rgba(0,0,0,0.2);
  transform: translateY(-3px);        /* gentle lift, not chunky */
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}


/* Image */
.about-photo img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0px 8px 20px rgba(0,0,0,0.08);
}

/* ============================= */
/* Unified Button System */
/* ============================= */

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  background: var(--panel);
  color: var(--text);
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

/* Hover = brand color */
.btn:hover {
  background-color: var(--brand-2);
  color: #0b1020;                 /* readable contrast */
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}


/* ========================= */
/* CONTACT PAGE */
/* ========================= */

.contact-hero {
  padding: 80px 0 40px;
  max-width: 700px;
}

.contact-hero h1 {
  font-size: clamp(32px, 5vw, 46px);
  margin-bottom: 10px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  padding: 10px 0;
  color: var(--muted);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-cta {
  margin-top: 10px;
  padding: 40px 0;
  text-align: left;
}

.contact-cta .btn {
  margin-top: 10px;
}

.contact-email {
  margin-top: 16px;
  color: var(--brand-2);
  font-size: 18px;
  font-kerning: 2px;
  font-weight: 400;

}


/* ============================= */
/* Case Study Feature Images */
/* ============================= */

.card img.feature-img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 12px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

/* ============================= */
/* Feature Image Lightbox */
/* ============================= */

.feature-img {
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.feature-img:hover {
  transform: scale(1.02);
}



/* Overlay */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(11,16,32,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}


.lightbox.active img {
  transform: scale(1);
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

/* Image inside modal */
.lightbox img {
  max-width: 95vw;
  max-height: 95vh;

  width: auto;
  height: auto;

  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);

  transform: scale(0.98);
  transition: transform 0.25s ease;
}

/* Close hint */
.lightbox::after {
  content: "Click anywhere to close";
  position: absolute;
  bottom: 24px;
  color: var(--muted);
  font-size: 14px;
  opacity: 0.7;
}

/* Zoom animation */
@keyframes zoomIn {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox img {
  max-width: 96vw !important;
  max-height: 96vh !important;
  width: auto !important;
  height: auto !important;
}


/* ============================= */
/* Case Study Preview */
/* ============================= */

.case-preview {
  margin-top: 40px;
  text-align: center;
}

.preview-tabs {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 24px 0;
}

.preview-content {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.preview-content img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--panel);
  border: none;
  color: white;
  font-size: 36px;
  padding: 12px 18px;
  border-radius: 12px;
  cursor: pointer;
}

.carousel-btn.prev { left: -60px; }
.carousel-btn.next { right: -60px; }

.hidden {
  display: none;
}

.demo-gif {
  max-width: 900px;
}


/* ============================= */
/* Fullscreen Modal */
/* ============================= */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(11,16,32,0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}

/* Close button */
.modal-close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 36px;
  color: white;
  cursor: pointer;
}

/* Arrows */
.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--panel);
  border: none;
  color: white;
  font-size: 40px;
  padding: 12px 20px;
  border-radius: 12px;
  cursor: pointer;
}

.modal-nav.prev { left: 40px; }
.modal-nav.next { right: 40px; }


.grid .card {
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.grid .card:hover {
  background: rgba(141,245,248,0.05);
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
}


/* ============================= */
/* Eden Gallery Duo – Large Art */
/* ============================= */

.eden-duo {
  padding: 2rem 2rem;
}

.eden-duo-header {
  max-width: 1200px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.eden-duo-grid {
  max-width: 1400px;     /* ⬅️ MUCH wider container */
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;             /* ⬅️ tighter gap */
}

/* The "frame" */
.eden-art {
  background: #121936;
  padding: 10px;         /* ⬅️ thinner frame */
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  transition: transform .4s ease, box-shadow .4s ease;
}

/* The image itself */
.eden-art img {
  width: 100%;
  height: 250px;         /* ⬅️ FORCE BIG VISUAL PRESENCE */
  object-fit: cover;
  border-radius: 16px;
  display: block;
}


/* Hover = subtle museum movement */
.eden-art:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 45px 120px rgba(0,0,0,.6);
}

.goal-list {
  margin-top: 1rem;
  padding-left: 1.2rem;
  color: var(--muted);
}

.goal-list li {
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

.card-list {
  margin: 0.8rem 0 1rem;
  padding-left: 1.2rem;
  color: var(--muted);
}

.card-list li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}
