/* ═══════════════════════════════════════════
   DESIGN TOKENS — Google Material 3 inspired
═══════════════════════════════════════════ */
:root {
  /* Google Brand Colors */
  --blue:       #1a73e8;
  --blue-dark:  #1557b0;
  --blue-light: #e8f0fe;
  --green:      #1e8e3e;
  --green-light:#e6f4ea;
  --red:        #d93025;
  --red-light:  #fce8e6;
  --yellow:     #f9ab00;
  --yellow-light:#fef7e0;

  /* Surface */
  --white:      #ffffff;
  --surface:    #f8f9fa;
  --surface2:   #f1f3f4;
  --surface3:   #e8eaed;
  --outline:    #dadce0;

  /* Text */
  --text-primary:   #202124;
  --text-secondary: #5f6368;
  --text-tertiary:  #80868b;

  /* Elevation shadows (Material) */
  --shadow-1: 0 1px 2px rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
  --shadow-2: 0 1px 2px rgba(60,64,67,.3), 0 2px 6px 2px rgba(60,64,67,.15);
  --shadow-3: 0 4px 8px 3px rgba(60,64,67,.15), 0 1px 3px rgba(60,64,67,.3);

  --font-display: 'Nunito', sans-serif;
  --font-body:    'Nunito Sans', sans-serif;
  --font-mono:    'Source Code Pro', monospace;
  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    16px;
  --radius-xl:    24px;
  --radius-full:  100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ═══════════════════════════════════════════
   NAV — Google top bar style
═══════════════════════════════════════════ 
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--outline);
  height: 64px;
  display: flex; align-items: center;
  padding: 0 24px;
  gap: 0;
  transition: box-shadow .2s;
}
nav.scrolled { box-shadow: var(--shadow-1); }

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; margin-right: 32px;
}
.nav-logo-mark {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1rem;
  color: white; letter-spacing: -.02em; flex-shrink: 0;
}
.nav-logo-text {
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  color: var(--text-primary); letter-spacing: -.01em;
}
.nav-logo-text span { color: var(--blue); }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none; flex: 1;
}
.nav-links a {
  color: var(--text-secondary); font-size: .9rem; font-weight: 600;
  text-decoration: none; padding: 8px 16px; border-radius: var(--radius-full);
  transition: all .15s; letter-spacing: .01em;
}
.nav-links a:hover { background: var(--surface2); color: var(--text-primary); }
.nav-links a.active { color: var(--blue); background: var(--blue-light); }

.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.btn-text {
  color: var(--blue); font-family: var(--font-body); font-weight: 600;
  font-size: .9rem; padding: 9px 20px; border-radius: var(--radius-full);
  text-decoration: none; border: none; cursor: pointer; background: transparent;
  transition: background .15s;
}*/
.btn-text:hover { background: var(--blue-light); }
.btn-filled {
  background: var(--blue); color: white; font-family: var(--font-body);
  font-weight: 600; font-size: .9rem; padding: 9px 20px;
  border-radius: var(--radius-full); text-decoration: none; border: none;
  cursor: pointer; transition: all .15s; box-shadow: var(--shadow-1);
}
.btn-filled:hover { background: var(--blue-dark); box-shadow: var(--shadow-2); }


/* ═══ NAV ═══════════════════════════════════════════════════ */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 64px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e8eaed;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 8px;
}

/* Logo */
.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: 8px;
}


.nav-logo svg {
  width: auto;
  max-width: 180px;
  height: 36px;
}
/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2px;
  margin: 0;
  padding: 0;
  flex: 1;
}

.nav-links li a {
  display: block;
  padding: 7px 12px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #5f6368;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.nav-links li a:hover {
  background: #f1f3f4;
  color: #202124;
}

/* Nav actions — Browse Shop + Hire Me */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-actions .btn-text {
  padding: 7px 14px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #5f6368;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.nav-actions .btn-text:hover {
  background: #f1f3f4;
  color: #202124;
}

.nav-actions .btn-filled {
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  background: #EA4335;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(234,67,53,0.3);
}

.nav-actions .btn-filled:hover {
  background: #c5352a;
  box-shadow: 0 2px 8px rgba(234,67,53,0.4);
}

/* Auth area */
#authArea {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: 4px;
  padding-left: 12px;
  border-left: 1px solid #e8eaed;
}

/* Sign In button */
#signInBtn {
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  background: #fff;
  color: #1a73e8;
  border: 1.5px solid #1a73e8;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  font-family: inherit;
}

#signInBtn:hover {
  background: #e8f0fe;
  box-shadow: 0 1px 4px rgba(26,115,232,0.2);
}

/* User menu (shown when signed in) */
#userMenu {
  display: none;
  align-items: center;
  gap: 8px;
}

#userAvatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e8eaed;
  flex-shrink: 0;
}

#userName {
  font-size: 0.85rem;
  font-weight: 500;
  color: #202124;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Sign Out button */
#userMenu button {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  background: #f1f3f4;
  color: #5f6368;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
  white-space: nowrap;
}

#userMenu button:hover {
  background: #e8eaed;
  color: #202124;
}

/* ═══ MOBILE HAMBURGER ═══════════════════════════════════════ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
  transition: background 0.15s;
}

.nav-hamburger:hover {
  background: #f1f3f4;
}

.nav-hamburger span {
  display: block;
  height: 2px;
  background: #5f6368;
  border-radius: 2px;
  transition: all 0.25s;
}

/* Mobile drawer */
.nav-mobile-drawer {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid #e8eaed;
  padding: 12px 16px 20px;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  flex-direction: column;
  gap: 4px;
}

.nav-mobile-drawer.open {
  display: flex;
}

.nav-mobile-drawer a,
.nav-mobile-drawer button {
  display: block;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #202124;
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background 0.12s;
  width: 100%;
}

.nav-mobile-drawer a:hover,
.nav-mobile-drawer button:hover {
  background: #f1f3f4;
}

.nav-mobile-drawer .mobile-divider {
  height: 1px;
  background: #e8eaed;
  margin: 8px 0;
}

.nav-mobile-drawer .btn-filled-mobile {
  background: #EA4335 !important;
  color: #fff !important;
  font-weight: 600 !important;
  text-align: center !important;
  margin-top: 4px;
}

.nav-mobile-drawer .btn-signin-mobile {
  background: #fff !important;
  color: #1a73e8 !important;
  border: 1.5px solid #1a73e8 !important;
  font-weight: 600 !important;
  text-align: center !important;
}

/* ═══ RESPONSIVE BREAKPOINTS ════════════════════════════════ */

/* Hide some links on medium screens */
@media (max-width: 1024px) {
  .nav-links li:nth-child(5),
  .nav-links li:nth-child(6) {
    display: none;
  }

  #userName {
    display: none;
  }
}

/* Switch to hamburger on mobile */
@media (max-width: 768px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  #authArea {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  #nav {
    padding: 0 16px;
  }

  .nav-logo svg {
    height: 28px;
  }
}

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  padding: 80px 24px 72px;
  text-align: center;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

/* Soft background blobs — very subtle, Google Workspace style */
.hero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(26,115,232,.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(30,142,62,.05) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 60% 10%, rgba(249,171,0,.04) 0%, transparent 70%);
}

.hero-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-light); color: var(--green);
  font-size: .82rem; font-weight: 600; padding: 6px 16px;
  border-radius: var(--radius-full); margin-bottom: 28px;
  border: 1px solid rgba(30,142,62,.2);
  animation: fadeUp .6s ease both;
}
.hero-chip .dot {
  width: 7px; height: 7px; background: var(--green);
  border-radius: 50%; animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.7)} }

.hero-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 5rem);
  color: var(--text-primary); line-height: 1.1;
  letter-spacing: -.03em; margin-bottom: 24px;
  animation: fadeUp .6s .1s ease both;
}
.hero-title .word-blue { color: var(--blue); }
.hero-title .word-green { color: var(--green); }

.hero-sub {
  font-size: 1.15rem; color: var(--text-secondary);
  max-width: 580px; margin: 0 auto 40px;
  line-height: 1.7; font-weight: 400;
  animation: fadeUp .6s .2s ease both;
}

.hero-btns {
  display: flex; gap: 12px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 64px;
  animation: fadeUp .6s .3s ease both;
}
.btn-hero-primary {
  background: var(--blue); color: white;
  font-family: var(--font-body); font-weight: 600;
  font-size: 1rem; padding: 14px 32px;
  border-radius: var(--radius-full); text-decoration: none;
  box-shadow: var(--shadow-2); transition: all .2s;
  border: none; cursor: pointer;
}
.btn-hero-primary:hover { background: var(--blue-dark); box-shadow: var(--shadow-3); transform: translateY(-1px); }
.btn-hero-outlined {
  background: transparent; color: var(--blue);
  font-family: var(--font-body); font-weight: 600;
  font-size: 1rem; padding: 13px 32px;
  border-radius: var(--radius-full); text-decoration: none;
  border: 1.5px solid var(--blue); transition: all .2s; cursor: pointer;
}
.btn-hero-outlined:hover { background: var(--blue-light); transform: translateY(-1px); }

/* Stats row */
.hero-stats {
  display: flex; justify-content: center; gap: 0;
  border: 1px solid var(--outline); border-radius: var(--radius-xl);
  overflow: hidden; max-width: 680px; margin: 0 auto;
  box-shadow: var(--shadow-1);
  animation: fadeUp .6s .4s ease both;
}
.stat {
  flex: 1; padding: 24px 20px; text-align: center;
  border-right: 1px solid var(--outline);
  background: var(--white); transition: background .15s;
}
.stat:last-child { border-right: none; }
.stat:hover { background: var(--surface); }
.stat-num {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.9rem; color: var(--text-primary); line-height: 1;
  margin-bottom: 4px;
}
.stat-num .accent { color: var(--blue); }
.stat-label { font-size: .8rem; color: var(--text-secondary); font-weight: 500; }

/* Tech chips */
.tech-row {
  display: flex; gap: 8px; flex-wrap: wrap;
  justify-content: center; margin-top: 48px;
  animation: fadeUp .6s .5s ease both;
}
.tech-chip {
  display: flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--outline);
  border-radius: var(--radius-full); padding: 7px 16px;
  font-size: .82rem; font-weight: 600; color: var(--text-secondary);
  transition: all .15s;
}
.tech-chip:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.tech-chip .dot { width: 6px; height: 6px; border-radius: 50%; }

/* ═══════════════════════════════════════════
   SECTION COMMONS
═══════════════════════════════════════════ */
section { padding: 80px 24px; }
.container { max-width: 1120px; margin: 0 auto; }
.section-eyebrow {
  font-size: .82rem; font-weight: 700; color: var(--blue);
  letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--text-primary); line-height: 1.15;
  letter-spacing: -.02em; margin-bottom: 14px;
}
.section-sub {
  font-size: 1.05rem; color: var(--text-secondary);
  max-width: 520px; line-height: 1.7; margin-bottom: 48px;
}
.divider { border: none; border-top: 1px solid var(--outline); margin: 0; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ═══════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════ */
#about { background: var(--surface); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 64px; align-items: center;
}
.about-card {
  background: var(--white); border-radius: var(--radius-xl);
  padding: 40px; box-shadow: var(--shadow-2);
  display: flex; flex-direction: column; gap: 24px;
}
.about-avatar {
  width: 88px; height: 88px; border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow), #f9ab00);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem;
}
.about-avatar img{
  border-radius: 50%;
  object-fit: cover;
  width: 87px;
  z-index: 10;
  height: 87px;
}
.about-name {
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem;
  color: var(--text-primary); letter-spacing: -.01em;
}
.about-role {
  font-size: .95rem; color: var(--blue); font-weight: 600;
  margin-top: 2px;
}
.about-loc {
  display: flex; align-items: center; gap: 6px;
  font-size: .88rem; color: var(--text-secondary); margin-top: 4px;
}

.about-chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.about-chip {
  font-size: .8rem; font-weight: 600; padding: 5px 14px;
  border-radius: var(--radius-full); border: 1.5px solid;
}
.chip-blue  { color: var(--blue);  background: var(--blue-light);  border-color: rgba(26,115,232,.3); }
.chip-green { color: var(--green); background: var(--green-light); border-color: rgba(30,142,62,.3); }
.chip-red   { color: var(--red);   background: var(--red-light);   border-color: rgba(217,48,37,.3); }
.chip-yellow{ color: #b06000; background: var(--yellow-light); border-color: rgba(249,171,0,.4); }

.about-content h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: 2rem; color: var(--text-primary);
  letter-spacing: -.02em; margin-bottom: 16px;
}
.about-content p {
  color: var(--text-secondary); line-height: 1.8;
  margin-bottom: 16px; font-size: 1.02rem;
}

.skills-list {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin-top: 24px;
}
.skill-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: var(--surface);
  border-radius: var(--radius-md); border: 1px solid var(--outline);
  font-size: .88rem; font-weight: 600; color: var(--text-secondary);
  transition: all .15s;
}
.skill-item:hover { border-color: var(--blue); color: var(--text-primary); background: var(--blue-light); }
.skill-item .si { font-size: 1.1rem; }


.members-only {
  display: none;
}


/* ═══════════════════════════════════════════
   PROJECTS
═══════════════════════════════════════════ */
#projects { background: var(--white); }

.filter-row {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px;
}
.filter-btn {
  font-family: var(--font-body); font-size: .88rem; font-weight: 600;
  padding: 8px 20px; border-radius: var(--radius-full);
  border: 1.5px solid var(--outline); background: var(--white);
  color: var(--text-secondary); cursor: pointer; transition: all .15s;
}
.filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.filter-btn.active {
  background: var(--blue); color: white; border-color: var(--blue);
}

.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.project-card {
  background: var(--white); border: 1px solid var(--outline);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all .2s; cursor: pointer;
  box-shadow: var(--shadow-1);
}
.project-card:hover {
  box-shadow: var(--shadow-3); transform: translateY(-4px);
  border-color: transparent;
}

.proj-cover {
  height: 180px; display: flex; align-items: center;
  justify-content: center; font-size: 3.5rem;
  position: relative;
}
.proj-cover-label {
  position: absolute; top: 12px; left: 12px;
  font-size: .72rem; font-weight: 700; padding: 4px 10px;
  border-radius: var(--radius-full);
}

.proj-body { padding: 20px 20px 16px; }
.proj-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.proj-tag {
  font-size: .72rem; font-weight: 700; padding: 3px 10px;
  border-radius: var(--radius-full); letter-spacing: .02em;
}

.proj-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.05rem; color: var(--text-primary);
  margin-bottom: 6px; letter-spacing: -.01em;
}
.proj-desc {
  font-size: .88rem; color: var(--text-secondary);
  line-height: 1.6; margin-bottom: 16px;
}
.proj-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px; border-top: 1px solid var(--outline);
}
.proj-stats { display: flex; gap: 14px; }
.proj-stat {
  display: flex; align-items: center; gap: 5px;
  font-size: .82rem; color: var(--text-secondary);
  cursor: pointer; transition: color .15s; font-weight: 500;
}
.proj-stat:hover { color: var(--red); }
.proj-links { display: flex; gap: 6px; }
.proj-link-btn {
  font-size: .8rem; font-weight: 600; padding: 6px 14px;
  border-radius: var(--radius-full); text-decoration: none;
  transition: all .15s; border: 1.5px solid var(--outline);
  color: var(--text-secondary); background: var(--white);
}
.proj-link-btn:hover { border-color: var(--blue); color: var(--blue); }
.proj-link-btn.primary-link {
  background: var(--blue); color: white; border-color: var(--blue);
}
.proj-link-btn.primary-link:hover { background: var(--blue-dark); }

/* ═══════════════════════════════════════════
   SHOP
═══════════════════════════════════════════ */
#shop { background: var(--surface); }
.shop-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.shop-card {
  background: var(--white); border: 1px solid var(--outline);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all .2s; box-shadow: var(--shadow-1);
}
.shop-card:hover { box-shadow: var(--shadow-3); transform: translateY(-3px); border-color: transparent; }

.shop-cover {
  height: 140px; display: flex; align-items: center;
  justify-content: center; font-size: 3rem; position: relative;
}
.shop-badge {
  position: absolute; top: 12px; right: 12px;
  font-size: .72rem; font-weight: 700; padding: 4px 10px;
  border-radius: var(--radius-full);
}
.badge-free  { background: var(--green-light);  color: var(--green); }
.badge-paid  { background: var(--blue-light);   color: var(--blue);  }

.shop-body { padding: 18px; }
.shop-stars { color: var(--yellow); font-size: .88rem; margin-bottom: 2px; }
.shop-reviews { font-size: .75rem; color: var(--text-tertiary); margin-bottom: 10px; }
.shop-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1rem; color: var(--text-primary); margin-bottom: 6px;
}
.shop-desc {
  font-size: .85rem; color: var(--text-secondary);
  line-height: 1.5; margin-bottom: 16px;
}
.shop-footer { display: flex; align-items: center; justify-content: space-between; }
.shop-price {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.3rem; color: var(--text-primary);
}
.shop-price .free-txt { color: var(--green); }

.btn-shop-buy {
  background: var(--blue); color: white;
  font-family: var(--font-body); font-weight: 600;
  font-size: .82rem; padding: 8px 18px; border-radius: var(--radius-full);
  border: none; cursor: pointer; transition: all .15s;
}
.btn-shop-buy:hover { background: var(--blue-dark); }
.btn-shop-free {
  background: var(--white); color: var(--green);
  font-family: var(--font-body); font-weight: 600;
  font-size: .82rem; padding: 8px 18px; border-radius: var(--radius-full);
  border: 1.5px solid rgba(30,142,62,.4); cursor: pointer; transition: all .15s;
}
.btn-shop-free:hover { background: var(--green-light); }

/* ═══════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════ */
#services { background: var(--white); }
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px; margin-bottom: 56px;
}
.service-card {
  background: var(--surface); border: 1px solid var(--outline);
  border-radius: var(--radius-lg); padding: 28px;
  transition: all .2s;
}
.service-card:hover {
  box-shadow: var(--shadow-2); background: var(--white);
  border-color: transparent; transform: translateY(-2px);
}
.svc-icon-wrap {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 16px;
}
.svc-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.05rem; color: var(--text-primary); margin-bottom: 8px;
}
.svc-desc {
  font-size: .88rem; color: var(--text-secondary); line-height: 1.65;
}

/* Pricing */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.pricing-card {
  background: var(--surface); border: 1.5px solid var(--outline);
  border-radius: var(--radius-xl); padding: 36px 28px; text-align: center;
  transition: all .2s; position: relative;
}
.pricing-card:hover { box-shadow: var(--shadow-2); background: var(--white); }
.pricing-card.recommended {
  background: var(--blue); border-color: var(--blue); color: white;
  box-shadow: var(--shadow-3); transform: scale(1.03);
}
.pricing-card.recommended:hover { transform: scale(1.03) translateY(-2px); box-shadow: 0 8px 24px rgba(26,115,232,.4); }
.rec-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--yellow); color: #5a3a00;
  font-size: .72rem; font-weight: 700; padding: 4px 14px;
  border-radius: var(--radius-full); white-space: nowrap;
}
.pkg-tier {
  font-size: .78rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 6px;
}
.pricing-card:not(.recommended) .pkg-tier { color: var(--text-secondary); }
.pricing-card.recommended .pkg-tier { color: rgba(255,255,255,.8); }
.pkg-price {
  font-family: var(--font-display); font-weight: 800; font-size: 3rem;
  line-height: 1; margin-bottom: 4px;
}
.pricing-card:not(.recommended) .pkg-price { color: var(--text-primary); }
.pricing-card.recommended .pkg-price { color: white; }
.pkg-price small { font-size: 1rem; font-weight: 500; }
.pkg-tagline { font-size: .85rem; margin-bottom: 24px; }
.pricing-card:not(.recommended) .pkg-tagline { color: var(--text-secondary); }
.pricing-card.recommended .pkg-tagline { color: rgba(255,255,255,.75); }

.pkg-features { list-style: none; margin-bottom: 28px; text-align: left; }
.pkg-features li {
  padding: 9px 0; font-size: .9rem;
  border-bottom: 1px solid rgba(0,0,0,.06);
  display: flex; align-items: center; gap: 10px;
}
.pricing-card.recommended .pkg-features li { border-bottom-color: rgba(255,255,255,.15); color: rgba(255,255,255,.9); }
.pricing-card:not(.recommended) .pkg-features li { color: var(--text-primary); }
.pkg-features li::before { content: '✓'; font-weight: 700; font-size: .9rem; flex-shrink: 0; }
.pricing-card:not(.recommended) .pkg-features li::before { color: var(--green); }
.pricing-card.recommended .pkg-features li::before { color: rgba(255,255,255,.9); }

.btn-pkg {
  display: block; width: 100%; padding: 13px;
  border-radius: var(--radius-full); font-family: var(--font-body);
  font-weight: 700; font-size: .95rem; text-decoration: none;
  cursor: pointer; border: none; transition: all .15s;
}
.pricing-card:not(.recommended) .btn-pkg {
  background: var(--white); color: var(--blue);
  border: 1.5px solid var(--blue);
}
.pricing-card:not(.recommended) .btn-pkg:hover { background: var(--blue-light); }
.pricing-card.recommended .btn-pkg {
  background: white; color: var(--blue);
}
.pricing-card.recommended .btn-pkg:hover { background: var(--blue-light); }

/* ═══════════════════════════════════════════
   BLOG
═══════════════════════════════════════════ */
#blog { background: var(--surface); }
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.blog-card {
  background: var(--white); border: 1px solid var(--outline);
  border-radius: var(--radius-lg); overflow: hidden;
  text-decoration: none; transition: all .2s;
  box-shadow: var(--shadow-1); display: flex; flex-direction: column;
}
.blog-card:hover { box-shadow: var(--shadow-3); transform: translateY(-4px); border-color: transparent; }
.blog-cover {
  height: 160px; display: flex; align-items: center;
  justify-content: center; font-size: 3rem;
}
.blog-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.blog-cat {
  font-size: .72rem; font-weight: 700; padding: 3px 10px;
  border-radius: var(--radius-full); display: inline-block;
  margin-bottom: 12px; letter-spacing: .04em;
}
.blog-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.05rem; color: var(--text-primary);
  line-height: 1.4; margin-bottom: 8px; letter-spacing: -.01em;
}
.blog-excerpt {
  font-size: .88rem; color: var(--text-secondary);
  line-height: 1.6; flex: 1; margin-bottom: 16px;
}
.blog-meta {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px; border-top: 1px solid var(--outline);
}
.blog-date { font-size: .78rem; color: var(--text-tertiary); font-weight: 500; }
.blog-read-btn {
  font-size: .82rem; font-weight: 700; color: var(--blue);
  display: flex; align-items: center; gap: 4px;
}

/* ═══════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════ */
#reviews { background: var(--white); }
.reviews-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.review-card {
  background: var(--surface); border: 1px solid var(--outline);
  border-radius: var(--radius-lg); padding: 28px; transition: all .2s;
}
.review-card:hover { box-shadow: var(--shadow-2); background: var(--white); }
.review-stars { color: var(--yellow); font-size: .95rem; margin-bottom: 14px; }
.review-text {
  font-size: .95rem; color: var(--text-primary); line-height: 1.75;
  margin-bottom: 20px; font-style: italic;
}
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .95rem;
  font-family: var(--font-display);
}
.review-name { font-weight: 700; font-size: .92rem; color: var(--text-primary); }
.review-company { font-size: .78rem; color: var(--text-secondary); margin-top: 1px; }

/* ═══════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════ */
#contact { background: var(--surface); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 56px; align-items: start;
}
.contact-info-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.8rem; color: var(--text-primary);
  letter-spacing: -.02em; margin-bottom: 12px;
}
.contact-info p { color: var(--text-secondary); line-height: 1.75; margin-bottom: 28px; }
.contact-items { display: flex; flex-direction: column; gap: 10px; }
.contact-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--white); border: 1px solid var(--outline);
  border-radius: var(--radius-md); padding: 14px 18px;
  text-decoration: none; color: var(--text-primary); transition: all .15s;
}
.contact-item:hover { border-color: var(--blue); box-shadow: var(--shadow-1); }
.ci-icon {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.ci-label { font-size: .75rem; color: var(--text-secondary); }
.ci-value { font-size: .9rem; font-weight: 600; }

.contact-form {
  background: var(--white); border: 1px solid var(--outline);
  border-radius: var(--radius-xl); padding: 36px;
  box-shadow: var(--shadow-1);
}
.form-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.2rem; margin-bottom: 24px; color: var(--text-primary);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: .8rem; font-weight: 700;
  color: var(--text-secondary); margin-bottom: 6px; letter-spacing: .02em;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--outline); border-radius: var(--radius-md);
  background: var(--surface); color: var(--text-primary);
  font-family: var(--font-body); font-size: .95rem;
  transition: all .15s; outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--blue); background: var(--white);
  box-shadow: 0 0 0 3px rgba(26,115,232,.1);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select { cursor: pointer; }
.btn-form-submit {
  width: 100%; padding: 14px; border-radius: var(--radius-full);
  background: var(--blue); color: white; font-family: var(--font-body);
  font-weight: 700; font-size: 1rem; border: none; cursor: pointer;
  transition: all .2s; box-shadow: var(--shadow-1);
}
.btn-form-submit:hover { background: var(--blue-dark); box-shadow: var(--shadow-2); transform: translateY(-1px); }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
footer {
  background: var(--text-primary); padding: 56px 24px 32px;
  color: rgba(255,255,255,.7);
}
.footer-grid {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand-logo {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.footer-brand-logo img{
  width: 70%;
}
.footer-logo-mark {
  width: 32px; height: 32px; border-radius: 7px;
  background: var(--blue); display: flex; align-items: center;
  justify-content: center; font-family: var(--font-display);
  font-weight: 800; font-size: .9rem; color: white;
}
.footer-logo-text {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.05rem; color: white;
}
.footer-desc { font-size: .88rem; line-height: 1.7; max-width: 280px; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 8px; }
.footer-social {
  width: 36px; height: 36px; background: rgba(255,255,255,.1);
  border-radius: var(--radius-sm); display: flex; align-items: center;
  justify-content: center; text-decoration: none; color: rgba(255,255,255,.7);
  font-size: .9rem; transition: all .15s;
}
.footer-social:hover { background: var(--blue); color: white; }
.footer-col h4 {
  font-family: var(--font-display); font-weight: 700;
  font-size: .85rem; color: white; margin-bottom: 16px;
  letter-spacing: .05em; text-transform: uppercase;
}
.footer-col a {
  display: block; color: rgba(255,255,255,.6); font-size: .88rem;
  text-decoration: none; margin-bottom: 10px; transition: color .15s;
}
.footer-col a:hover { color: white; }
.footer-bottom {
  max-width: 1120px; margin: 0 auto;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
}
.footer-bottom p { font-size: .82rem; }

/* ═══════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity:0; transform: translateY(20px); }
  to   { opacity:1; transform: none; }
}

/* ═══════════════════════════════════════════
   SCROLL PROGRESS
═══════════════════════════════════════════ */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: var(--blue); z-index: 9999; width: 0;
  transition: width .1s linear;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-card { flex-direction: row; gap: 20px; align-items: flex-start; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.recommended { transform: scale(1); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .hero-stats { flex-direction: column; border-radius: var(--radius-lg); }
  .stat { border-right: none; border-bottom: 1px solid var(--outline); }
  .stat:last-child { border-bottom: none; }
  .about-card { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 56px 16px; }
}

/* ═══════════════════════════════════════════════════════════
   COMMENT MODAL — Instagram style
   Add to style.css
═══════════════════════════════════════════════════════════ */

/* Overlay */
.cm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: cmFadeIn 0.2s ease;
}

.cm-overlay.open {
  display: flex;
}

@keyframes cmFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Dialog box */
.cm-dialog {
  display: flex;
  width: 100%;
  max-width: 900px;
  height: 560px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  animation: cmSlideUp 0.25s ease;
}

@keyframes cmSlideUp {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ── LEFT PANEL ─────────────────────────────────────────── */
.cm-left {
  width: 340px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: #f8f9fa;
  border-right: 1px solid #e8eaed;
}

.cm-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  flex-shrink: 0;
}

.cm-project-info {
  padding: 16px 20px 12px;
  border-bottom: 1px solid #e8eaed;
}

.cm-project-title {
  font-size: 1rem;
  font-weight: 700;
  color: #202124;
  margin-bottom: 8px;
  line-height: 1.3;
}

.cm-project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cm-project-tags span {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 100px;
  background: #e8eaed;
  color: #5f6368;
}

.cm-project-stats {
  display: flex;
  gap: 20px;
  padding: 14px 20px;
  font-size: 0.875rem;
  color: #5f6368;
}

.cm-project-stats span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cm-project-stats i {
  font-size: 0.95rem;
}

/* ── RIGHT PANEL ────────────────────────────────────────── */
.cm-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Header */
.cm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e8eaed;
  flex-shrink: 0;
}

.cm-header-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #202124;
}

.cm-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: none;
  color: #5f6368;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.15s;
}

.cm-close:hover {
  background: #f1f3f4;
  color: #202124;
}

/* Comments list */
.cm-comments-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Empty state */
.cm-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #9aa0a6;
  text-align: center;
  gap: 12px;
}

.cm-empty i {
  font-size: 2.5rem;
  opacity: 0.4;
}

.cm-empty p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* Individual comment */
.cm-comment {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.cm-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid #e8eaed;
  background: #f1f3f4;
}

/* Fallback avatar when no photo */
.cm-avatar-initial {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #4285F4;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cm-comment-body {
  flex: 1;
  min-width: 0;
}

.cm-comment-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #202124;
  margin-bottom: 3px;
}

.cm-comment-text {
  font-size: 0.875rem;
  color: #3c4043;
  line-height: 1.5;
  word-break: break-word;
}

.cm-comment-time {
  font-size: 0.75rem;
  color: #9aa0a6;
  margin-top: 4px;
}

/* Loading spinner */
.cm-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.cm-spinner {
  width: 24px;
  height: 24px;
  border: 2.5px solid #e8eaed;
  border-top-color: #4285F4;
  border-radius: 50%;
  animation: cmSpin 0.7s linear infinite;
}

@keyframes cmSpin {
  to { transform: rotate(360deg); }
}

/* ── INPUT AREA ─────────────────────────────────────────── */
.cm-input-area {
  border-top: 1px solid #e8eaed;
  padding: 14px 20px;
  flex-shrink: 0;
}

.cm-input-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.cm-input-wrap {
  flex: 1;
  min-width: 0;
}

.cm-textarea {
  width: 100%;
  border: 1.5px solid #e8eaed;
  border-radius: 12px;
  padding: 9px 13px;
  font-size: 0.875rem;
  font-family: inherit;
  color: #202124;
  resize: none;
  outline: none;
  line-height: 1.5;
  min-height: 40px;
  max-height: 120px;
  overflow-y: auto;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.cm-textarea:focus {
  border-color: #4285F4;
}

.cm-input-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.cm-char-count {
  font-size: 0.75rem;
  color: #9aa0a6;
}

.cm-post-btn {
  padding: 7px 18px;
  border-radius: 100px;
  background: #4285F4;
  color: #fff;
  border: none;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, opacity 0.15s;
}

.cm-post-btn:hover {
  background: #1a73e8;
}

.cm-post-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Sign-in prompt inside modal */
.cm-signin-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cm-signin-prompt p {
  font-size: 0.875rem;
  color: #5f6368;
  margin: 0;
}

.cm-signin-prompt button {
  padding: 8px 16px;
  border-radius: 100px;
  background: #fff;
  color: #1a73e8;
  border: 1.5px solid #1a73e8;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background 0.15s;
}

.cm-signin-prompt button:hover {
  background: #e8f0fe;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 700px) {
  .cm-dialog {
    flex-direction: column;
    height: 92vh;
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
  }

  .cm-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .cm-left {
    width: 100%;
    flex-direction: row;
    align-items: center;
    border-right: none;
    border-bottom: 1px solid #e8eaed;
    padding: 12px 16px;
    gap: 12px;
  }

  .cm-thumb {
    width: 56px;
    height: 56px;
    aspect-ratio: unset;
    border-radius: 10px;
    font-size: 1.8rem;
    flex-shrink: 0;
  }

  .cm-project-info {
    padding: 0;
    border-bottom: none;
    flex: 1;
  }

  .cm-project-stats {
    padding: 0;
    flex-direction: column;
    gap: 4px;
    font-size: 0.8rem;
  }
}
.cm-delete-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: #9aa0a6;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.75rem;
  transition: color 0.15s, background 0.15s;
  opacity: 0;
}

.cm-comment:hover .cm-delete-btn {
  opacity: 1;
}

.cm-delete-btn:hover {
  color: #EA4335;
  background: #fce8e6;
}

.cm-comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}