/* Theme */
:root {
  --accent: #0ea5e9; /* cyan-500 */
  --ink: #0f172a; /* slate-900 */
  --ink-2: #1f2937; /* gray-800 */
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f7f7f9;
}

html, body {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji';
  color: var(--ink-2);
  background: var(--bg);
  scroll-behavior: smooth;
}

/* Navbar */
.nav-elevated { background: rgba(255,255,255,0.8); backdrop-filter: saturate(1.2) blur(6px); border-bottom: 1px solid var(--line); }
.nav-elevated.scrolled { box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06); }
.navbar-brand { color: var(--ink); }
.navbar .nav-link { color: #4b5563; }
.navbar .nav-link.active, .navbar .nav-link:hover { color: var(--ink); }

/* Modern mobile menu button */
.mobile-menu-btn {
  border: none;
  background: none;
  padding: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 20px;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-btn[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-btn[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile menu styling */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    margin-top: 8px;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.1);
    border: 1px solid var(--line);
  }
  
  .navbar-nav {
    gap: 8px;
  }
  
  .nav-link {
    padding: 12px 16px !important;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
  }
  
  .nav-link:hover {
    background: var(--bg-soft);
    transform: translateX(4px);
  }
  
  .nav-link.active {
    background: var(--ink);
    color: white !important;
  }
}

/* Underline animation */
.nav-underline .nav-link { position: relative; padding-bottom: .25rem; }
.nav-underline .nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--ink);
  transition: width .25s ease;
}
.nav-underline .nav-link:hover::after, .nav-underline .nav-link.active::after { width: 100%; }

/* Scroll progress */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--ink), #94a3b8);
  z-index: 1080;
}

/* Hero */
.hero-section { position: relative; min-height: 92vh; background: var(--bg); padding-top: 88px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: #6b7280; }
.btn-accent { background: var(--ink); color: #fff; border: 1px solid var(--ink); }
.btn-accent:hover { background: #111827; color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.hero-media { position: relative; }
.hero-photo { 
  width: 280px; 
  height: 280px; 
  border-radius: 20px; 
  overflow: hidden; 
  background: var(--bg-soft); 
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08), 0 8px 24px rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin: 0 auto;
  position: relative;
}
.hero-photo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(0,0,0,0.05));
  border-radius: 20px;
  z-index: 1;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  position: relative;
  z-index: 0;
}
.scroll-down {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-block;
}
.scroll-down span {
  display: block;
  width: 30px;
  height: 50px;
  border: 2px solid #fff;
  border-radius: 50px;
  position: relative;
}
.scroll-down span::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  transform: translateX(-50%);
  animation: wheel 1.6s ease-in-out infinite;
}
@keyframes wheel {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 18px); opacity: 0; }
}

/* Sections */
.section-padding { padding: 88px 0; }
.bg-subtle { background: var(--bg-soft); }
.section-title { margin-bottom: 24px; font-weight: 700; }

/* Cards */
.hover-lift { transition: transform .22s ease, box-shadow .22s ease; }
.hover-lift:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(0,0,0,0.08) !important; }

/* Minimal cards */
.card-minimal { border: 1px solid var(--line); box-shadow: none; border-radius: 16px; }
.card-minimal .card-title { color: var(--ink); margin-bottom: .25rem; }
.card-minimal .card-body { padding: 20px; }

/* Brand logos in awards */
.brand-logo { width: 32px; height: 32px; object-fit: contain; filter: grayscale(100%) contrast(1.05); opacity: .9; }
.brand-logo:hover { filter: grayscale(0%); opacity: 1; }


/* Projects */
.project-card { border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.project-minimal .project-body { padding: 16px; }
.project-media { height: 128px; background: #f2f3f6; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.media-neutral { background: linear-gradient(180deg, #fafafa, #f1f3f5); }
.tag { border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: .8rem; color: #475569; }

/* Project logos */
.logo-wrap { padding: 8px; }
.project-logo { max-height: 64px; max-width: 70%; object-fit: contain; filter: grayscale(100%) contrast(1.05); opacity: .95; transition: filter .2s ease, opacity .2s ease, transform .2s ease; }
.project-card:hover .project-logo { filter: grayscale(0%); opacity: 1; transform: translateY(-2px); }

/* Footer */
footer { color: #475569; }

/* Utilities */
.text-bg-dark { background-color: #0f172a !important; color: #e5e7eb !important; }

@media (max-width: 576px) {
  .hero-photo { width: 240px; height: 240px; }
  .section-padding { padding: 64px 0; }
}


