@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
  --bg: #f8f9fc;
  --fg: #1a2240;
  --card: #ffffff;
  --card-fg: #1a2240;
  --primary: #1e2d5a;
  --primary-fg: #f8f9fc;
  --secondary: #eef0f6;
  --secondary-fg: #1e2d5a;
  --muted: #e5e8f0;
  --muted-fg: #5a6380;
  --accent: #2a3f7a;
  --accent-fg: #f8f9fc;
  --border: #dde0ea;
  --destructive: #dc3545;
  --radius: 0.5rem;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--fg); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
/* img[src]::after { content: attr(alt); display: flex; align-items: center; justify-content: center; position: absolute; inset: 0; background: #e5e8f000; color: var(--muted-fg); font-size: 0.875rem; text-align: center; padding: 1rem; } */
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; border-radius: var(--radius); font-weight: 500; font-size: 0.875rem; letter-spacing: 0.05em; text-transform: uppercase; border: none; transition: all 0.3s ease; }
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { background: var(--accent); }
.btn-outline { background: transparent; color: var(--fg); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--muted-fg); }
.btn-white { background: var(--card); color: var(--fg); }
.btn-white:hover { background: var(--secondary); }
.btn-destructive { background: var(--destructive); color: #fff; }
.btn-destructive:hover { opacity: 0.9; }
.btn-ghost { background: transparent; color: var(--muted-fg); }
.btn-ghost:hover { background: var(--secondary); color: var(--fg); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8125rem; }
.btn:disabled { opacity: 0.6; pointer-events: none; }

/* Inputs */
.input, .textarea, .select { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); color: var(--fg); font-size: 0.9375rem; transition: border-color 0.2s; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(42,63,122,0.1); }
.textarea { resize: vertical; min-height: 120px; }
.label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.5rem; color: var(--fg); }

/* Cards */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all 0.3s ease; }
.card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.card-body { padding: 1.5rem; }

/* Badges */
.badge { display: inline-flex; align-items: center; padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.badge-green { background: #16a34a; color: #fff; }
.badge-blue { background: #2563eb; color: #fff; }
.badge-amber { background: #d97706; color: #fff; }
.badge-gray { background: #6b7280; color: #fff; }
.badge-secondary { background: var(--secondary); color: var(--secondary-fg); }

/* Section styles */
.section { padding: 5rem 0; }
.section-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }
.section-title { font-family: var(--font-serif); font-size: 2.25rem; font-weight: 500; color: var(--fg); margin-bottom: 1rem; line-height: 1.2; }
.section-subtitle { color: var(--muted-fg); font-size: 1.0625rem; max-width: 600px; }

/* Grid */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Navigation */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 1.25rem 0; transition: all 0.3s ease; }
.nav.scrolled { background: rgba(255,255,255,0.95); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); padding: 0.75rem 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 0.75rem; }
.nav-logo img { height: 36px; width: auto; border-radius: 4px; }
.nav-logo span { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-link { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary-fg); transition: opacity 0.2s; position: relative; }
.nav-link::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: currentColor; transition: width 0.3s; }
.nav-link:hover::after { width: 100%; }
.nav.scrolled .nav-link { color: var(--fg); }
.nav-lang { display: flex; border: 1px solid rgba(255,255,255,0.3); border-radius: var(--radius); overflow: hidden; }
.nav.scrolled .nav-lang { border-color: var(--border); }
.nav-lang button { padding: 0.375rem 0.75rem; font-size: 0.75rem; font-weight: 600; background: transparent; border: none; color: rgba(255,255,255,0.7); transition: all 0.2s; }
.nav-lang button.active { background: rgba(255,255,255,0.2); color: #fff; }
.nav.scrolled .nav-lang button { color: var(--muted-fg); }
.nav.scrolled .nav-lang button.active { background: var(--primary); color: var(--primary-fg); }
.nav-hamburger { display: none; background: none; border: none; padding: 0.5rem; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--primary-fg); margin: 5px 0; transition: all 0.3s; }
.nav.scrolled .nav-hamburger span { background: var(--fg); }
/* --- MOBILE MENU FIX (Final) --- */

/* Fundalul intunecat */
.nav-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 2000; /* Z-index mare sa fie peste tot */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
}

.nav-mobile-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Meniul lateral (Sertar) */
.nav-mobile {
    position: fixed;
    top: 0;
    right: -300px; /* Ascuns in dreapta */
    width: 280px;
    height: 100vh;
    background: #ffffff;
    z-index: 2001; /* Peste overlay */
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
}

.nav-mobile.open {
    transform: translateX(-300px); /* Vine in ecran */
}

.nav-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    background: #f8f9fa;
}

.nav-mobile-content {
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Link-uri in meniul mobil */
.mobile-nav-link {
    display: block;
    padding: 0.8rem 1rem;
    color: var(--fg);
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.2s;
    font-size: 1.05rem;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    background: #f0f4ff;
    color: var(--primary);
}

.mobile-nav-link.sub-link {
    font-size: 0.95rem;
    padding-left: 1.5rem;
    color: var(--muted-fg);
}

.mobile-nav-group {
    padding: 0.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 0.5rem 0;
}

.mobile-nav-label {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--muted-fg);
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* Ascundem meniul desktop pe mobil */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-hamburger { display: flex; align-items: center; justify-content: center; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
}

/* Hero */
.hero { position: relative; height: 100vh; min-height: 600px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,34,64,0.85) 0%, rgba(42,63,122,0.7) 100%); }
.hero-content { position: relative; z-index: 1; text-align: center; color: #fff; }
.hero-title { font-family: var(--font-serif); font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; letter-spacing: 0.05em; margin-bottom: 1rem; opacity: 0; animation: fadeInUp 0.8s ease forwards; }
.hero-subtitle { font-size: clamp(1rem, 2vw, 1.375rem); font-weight: 300; opacity: 0.9; margin-bottom: 2.5rem; opacity: 0; animation: fadeInUp 0.8s ease 0.2s forwards; }
.hero-cta { opacity: 0; animation: fadeInUp 0.8s ease 0.4s forwards; }
.hero-scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.7); display: flex; flex-direction: column; align-items: center; gap: 0.5rem; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.hero-scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent); animation: scrollPulse 2s ease infinite; }

/* Promo Banner */
.promo { background: var(--primary); color: var(--primary-fg); padding: 0.875rem 0; position: relative; }
.promo-inner { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; text-align: center; }
.promo-badge { background: rgba(255,255,255,0.2); padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.promo-text { font-size: 0.875rem; }
.promo-close { position: absolute; right: 1.5rem; top: 50%; transform: translateY(-50%); background: none; border: none; color: rgba(255,255,255,0.7); font-size: 1.25rem; cursor: pointer; }
.promo-close:hover { color: #fff; }

/* Stats */
.stats { background: var(--primary); color: var(--primary-fg); padding: 5rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-number { font-family: var(--font-serif); font-size: 3rem; font-weight: 700; margin-bottom: 0.25rem; }
.stat-label { font-size: 0.875rem; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.1em; }
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* Page Header */
.page-header { position: relative; height: 50vh; min-height: 350px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.page-header-bg { position: absolute; inset: 0; }
.page-header-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-header-overlay { position: absolute; inset: 0; background: rgba(26,34,64,0.8); }
.page-header-content { position: relative; z-index: 1; text-align: center; color: #fff; }
.page-header-title { font-family: var(--font-serif); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 600; margin-bottom: 0.75rem; }
.page-header-subtitle { font-size: 1.125rem; opacity: 0.85; max-width: 600px; margin: 0 auto; }

/* Project Cards */
.project-card { position: relative; overflow: hidden; border-radius: var(--radius); }
.project-card-img { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.project-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.project-card:hover .project-card-img img { transform: scale(1.05); }
.project-card-badge { position: absolute; top: 1rem; left: 1rem; z-index: 2; }
.project-card-body { padding: 1.5rem; }
.project-card-title { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 500; margin-bottom: 0.5rem; }
.project-card-meta { display: flex; align-items: center; gap: 1rem; color: var(--muted-fg); font-size: 0.875rem; }

/* Blog Cards */
.blog-card { overflow: hidden; }
.blog-card-img { aspect-ratio: 16/10; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 1.5rem; }
.blog-card-cat { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.blog-card-title { font-family: var(--font-serif); font-size: 1.125rem; font-weight: 500; margin: 0.75rem 0; line-height: 1.4; }
.blog-card-excerpt { font-size: 0.875rem; color: var(--muted-fg); line-height: 1.6; }

/* Footer */
.footer { background: var(--primary); color: var(--primary-fg); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { opacity: 0.7; font-size: 0.875rem; line-height: 1.7; margin-top: 1rem; }
.footer h4 { font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.25rem; opacity: 0.9; }
.footer-links a { display: block; font-size: 0.875rem; opacity: 0.7; padding: 0.25rem 0; transition: opacity 0.2s; }
.footer-links a:hover { opacity: 1; }
.footer-newsletter { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.footer-newsletter input { flex: 1; padding: 0.625rem 1rem; border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius); background: rgba(255,255,255,0.1); color: #fff; font-size: 0.875rem; }
.footer-newsletter input::placeholder { color: rgba(255,255,255,0.5); }
.footer-newsletter input:focus { outline: none; border-color: rgba(255,255,255,0.5); }
.footer-newsletter button { padding: 0.625rem 1.25rem; background: rgba(255,255,255,0.2); color: #fff; border: none; border-radius: var(--radius); font-size: 0.8125rem; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.footer-newsletter button:hover { background: rgba(255,255,255,0.3); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding: 1.5rem 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.8125rem; opacity: 0.7; }
.footer-bottom a:hover { opacity: 1; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes scrollPulse { 0%,100% { opacity: 0.5; transform: scaleY(1); } 50% { opacity: 1; transform: scaleY(1.2); } }

.animate-on-scroll { opacity: 0; transform: translateY(20px); transition: all 0.6s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
.animate-on-scroll.delay-1 { transition-delay: 100ms; }
.animate-on-scroll.delay-2 { transition-delay: 200ms; }
.animate-on-scroll.delay-3 { transition-delay: 300ms; }
.animate-on-scroll.delay-4 { transition-delay: 400ms; }

/* Two column layout */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; gap: 2rem; } }
.img-cover { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }

/* Admin Styles */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 260px; background: var(--card); border-right: 1px solid var(--border); padding: 1.5rem 0; position: fixed; top: 0; bottom: 0; overflow-y: auto; }
.admin-sidebar-logo { display: flex; align-items: center; gap: 0.75rem; padding: 0 1.5rem; margin-bottom: 2rem; }
.admin-sidebar-logo img { height: 28px; width: auto; border-radius: 3px; }
.admin-sidebar-logo span { font-weight: 700; font-size: 1.125rem; }
.admin-sidebar-label { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-fg); padding: 0 1.5rem; margin: 1.5rem 0 0.5rem; }
.admin-nav a { display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 1.5rem; font-size: 0.875rem; color: var(--muted-fg); transition: all 0.2s; }
.admin-nav a:hover, .admin-nav a.active { color: var(--fg); background: var(--secondary); }
.admin-nav a svg { width: 18px; height: 18px; }
.admin-main { flex: 1; margin-left: 260px; padding: 2rem; background: var(--bg); }
@media (max-width: 768px) { .admin-sidebar { display: none; } .admin-main { margin-left: 0; } }

/* Table */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; padding: 0.75rem 1rem; font-size: 0.8125rem; font-weight: 600; color: var(--muted-fg); border-bottom: 1px solid var(--border); }
.table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.875rem; }
.table tr:hover { background: var(--secondary); }

/* Alert / Toast */
.toast { position: fixed; bottom: 2rem; right: 2rem; padding: 1rem 1.5rem; border-radius: var(--radius); background: var(--primary); color: var(--primary-fg); font-size: 0.875rem; z-index: 9999; animation: fadeInUp 0.3s ease; box-shadow: 0 8px 30px rgba(0,0,0,0.15); }
.toast.error { background: var(--destructive); }
.toast.hidden { display: none; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 9998; display: none; align-items: center; justify-content: center; }
.modal-overlay.open { display: flex; }
.modal { background: var(--card); border-radius: var(--radius); padding: 2rem; max-width: 480px; width: 90%; box-shadow: 0 20px 60px rgba(0,0,0,0.2); }
.modal h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
.modal p { color: var(--muted-fg); font-size: 0.875rem; margin-bottom: 1.5rem; }
.modal-actions { display: flex; gap: 0.75rem; justify-content: flex-end; }

/* ====================== */
/* RESPONSIVE / MOBILE    */
/* ====================== */
@media (max-width: 768px) {
  .container { padding: 0 1rem; }
  .section { padding: 3rem 0; }
  .section-title { font-size: 1.75rem; }
  .section-subtitle { font-size: 0.9375rem; }

  /* Hero */
  .hero { height: 80vh; min-height: 500px; }
  .hero-title { font-size: 2rem !important; letter-spacing: 0.02em; }
  .hero-subtitle { font-size: 1rem !important; }
  .hero-cta { display: flex; flex-direction: column; gap: 0.75rem; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 280px; justify-content: center; }
  .hero-scroll { display: none; }

  /* Page Header */
  .page-header { height: 40vh; min-height: 280px; }
  .page-header-title { font-size: 1.75rem !important; }
  .page-header-subtitle { font-size: 0.9375rem; }

  /* Promo */
  .promo-inner { font-size: 0.8125rem; gap: 0.5rem; }
  .promo-badge { display: none; }
  .promo-close { right: 0.75rem; }

  /* Stats */
  .stats { padding: 3rem 0; }
  .stat-number { font-size: 2rem; }
  .stat-label { font-size: 0.75rem; }

  /* Two Column */
  .two-col { grid-template-columns: 1fr !important; gap: 2rem !important; }

  /* Cards */
  .card-body { padding: 1rem; }
  .project-card-body { padding: 1rem; }
  .project-card-title { font-size: 1.125rem; }
  .blog-card-body { padding: 1rem; }

  /* Contact grid */
  .contact-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }

  /* Footer */
  .footer { padding: 3rem 0 0; }
  .footer-grid { grid-template-columns: 1fr !important; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.75rem; }
  .footer-bottom > div { flex-wrap: wrap; justify-content: center; }

  /* Form two-col inputs */
  .contact-form-row { grid-template-columns: 1fr !important; }

  /* Buttons */
  .btn { font-size: 0.8125rem; padding: 0.625rem 1.25rem; }

  /* Admin */
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; }
}

@media (max-width: 480px) {
  .hero { height: 70vh; min-height: 400px; }
  .hero-title { font-size: 1.75rem !important; }
  .section-title { font-size: 1.5rem; }
  .stat-number { font-size: 1.75rem; }
  .stats-grid { gap: 1.5rem; }
  .page-header { height: 35vh; min-height: 240px; }
  .page-header-title { font-size: 1.5rem !important; }
}

/* Utility */
.text-center { text-align: center; }
.text-muted { color: var(--muted-fg); }
.text-sm { font-size: 0.875rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.flex-1 { flex: 1; }
.hidden { display: none !important; }

/* Dropdown Menu Styles */
.nav-item-dropdown { position: relative; display: inline-block; }
.nav-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 200px; z-index: 1000; overflow: hidden;
}
.nav-item-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-item {
  display: block; padding: 0.75rem 1rem; color: var(--fg);
  font-size: 0.875rem; border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.nav-dropdown-item:hover { background: var(--secondary); color: var(--primary); }
.nav-dropdown-item:last-child { border-bottom: none; }

/* Accordion / Dropdown Table for Projects */
.project-accordion { margin-top: 1rem; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-item:last-child { border-bottom: none; }
.accordion-header {
  width: 100%; text-align: left; padding: 1rem 1.5rem; background: var(--card);
  border: none; font-weight: 600; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center;
}
.accordion-header:hover { background: var(--secondary); }
.accordion-content {
  display: none; padding: 1.5rem; background: #fff; border-top: 1px solid var(--border);
  font-size: 0.9rem; line-height: 1.6;
}
.accordion-item.active .accordion-content { display: block; }
.accordion-icon { transition: transform 0.3s; }
.accordion-item.active .accordion-icon { transform: rotate(180deg); }