/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
.header {
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
}

.logo-icon {
    font-size: 2rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Main Content */
.main {
    padding: 4rem 0;
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 70vh;
    margin-bottom: 4rem;
}

.hero-content {
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.btn-github {
    background: #24292e;
    color: #fff;
    border: none;
    margin-left: 0.5rem;
    display: inline-block;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(36,41,46,0.15);
    transition: background 0.3s, transform 0.2s;
}
.btn-github:hover {
    background: #444d56;
    color: #fff;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 24px rgba(36,41,46,0.18);
}
.btn-github:active {
    background: #1b1f23;
    color: #fff;
    transform: scale(0.98);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    color: white;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.floating-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.floating-card p {
    opacity: 0.8;
}

/* Features Section */
.features {
    margin-bottom: 4rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    opacity: 0.8;
    line-height: 1.6;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0;
    color: white;
    opacity: 0.8;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* History Section */
.history-section {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin: 2rem 0;
}

.section-title {
    text-align: center;
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-date {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    position: relative;
    z-index: 2;
    min-width: 80px;
    text-align: center;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 2rem;
    margin: 0 2rem;
    color: white;
    flex: 1;
    max-width: 400px;
    position: relative;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.timeline-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #fff;
}

.timeline-content p {
    opacity: 0.9;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .feature-card {
        padding: 2rem;
    }
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        margin-left: 40px;
    }
    
    .timeline-date {
        margin-bottom: 1rem;
        align-self: flex-start;
    }
    
    .timeline-content {
        margin: 0;
        max-width: 100%;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.hero-visual,
.feature-card {
    animation: fadeInUp 0.8s ease-out;
} 

/* --- Mobile enhancements & utilities --- */
/* Ensure gallery images scale nicely */
.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Mobile menu button base style (also reinforced by JS-injected styles) */
.mobile-menu-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: none; /* default hidden on desktop */
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  /* Show mobile menu button on small screens */
  .mobile-menu-btn {
    display: block;
  }

  /* Slide-down mobile menu overlay (hidden by default) */
  .nav-menu {
    position: fixed;
    top: 64px; /* below sticky header */
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1rem 1.25rem 1.5rem;
    transform: translateY(-12px);
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
    z-index: 9999;
    display: flex; /* ensure layout */
    gap: 0.75rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-link {
    padding: 0.75rem 1rem;
  }

  /* Tweak hero spacing on small screens */
  .hero {
    margin-bottom: 2rem;
  }

  /* Slightly smaller feature card padding */
  .feature-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  /* Smaller gallery nav arrows on very small screens */
  .gallery-nav {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
} 

/* === Global Modern Upgrade Layer === */
:root {
  --bg-gradient: linear-gradient(135deg, #121826 0%, #1b2134 50%, #0e1220 100%);
  --surface-1: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.18);
  --text-primary: #f5f7fb;
  --text-secondary: #c9cfdb;
  --brand-1: #6c8cff; /* primary */
  --brand-1-strong: #4d6dff;
  --brand-2: #00d1b2; /* accent */
  --warning: #ffb84d;
  --danger: #ff6b6b;
  --shadow-1: 0 12px 40px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 6px 20px rgba(0, 0, 0, 0.25);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

/* Background and base text */
body {
  background: var(--bg-gradient);
  color: var(--text-primary);
}

/* Container spacing */
.main { padding: 4.5rem 0; }
.container { padding-left: 20px; padding-right: 20px; }

/* Header/Nav refinement */
.header {
  backdrop-filter: blur(14px);
  background: rgba(15, 18, 32, 0.55);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-2);
}
.nav-link {
  color: var(--text-primary);
}
.nav-link:hover,
.nav-link.active {
  background: var(--surface-2);
}

/* Hero */
.hero-title { letter-spacing: 0.3px; }
.hero-subtitle { color: var(--text-secondary); }

/* Buttons */
.btn {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-2);
}
.btn-primary {
  background: linear-gradient(45deg, var(--brand-1), var(--brand-1-strong));
  box-shadow: 0 12px 30px rgba(108, 140, 255, 0.35);
}
.btn-primary:hover { box-shadow: 0 16px 36px rgba(108, 140, 255, 0.45); }
.btn-secondary {
  background: var(--surface-1);
  border: 1px solid var(--glass-border);
}
.btn-github {
  background: #24292e;
}
.btn:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 2px;
}

/* Cards */
.feature-card,
.floating-card,
.timeline-content {
  background: var(--surface-1);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
}
.feature-card:hover {
  transform: translateY(-8px);
}

/* Section shells */
.history-section {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}
.section-title {
  color: var(--text-primary);
}

/* Gallery polish */
.gallery-section { border: 1px solid var(--glass-border); }
.gallery-caption { border-top: 1px solid rgba(255,255,255,0.12); }
.gallery-nav { border: 1px solid var(--glass-border); }
.gallery-dot { background: rgba(255,255,255,0.35); }
.gallery-dot.active { background: var(--text-primary); }

/* Footer */
.footer {
  border-top: 1px solid var(--glass-border);
  color: var(--text-secondary);
}

/* Accessibility & Motion */
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.show { opacity: 1; transform: translateY(0); }

/* Utilities */
.text-muted { color: var(--text-secondary); }
.surface-card { background: var(--surface-1); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); }

/* Mobile polish */
@media (max-width: 768px) {
  .hero-title { font-size: 2.25rem; }
  .nav-menu { box-shadow: var(--shadow-1); }
} 

/* === New Nav Menu UI === */
@media (min-width: 769px) {
  .nav-menu {
    background: var(--surface-1);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 6px 10px;
    gap: 0.5rem;
    box-shadow: var(--shadow-2);
  }
  .nav-link {
    position: relative;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    color: var(--text-primary);
    transition: color .2s ease, background .2s ease, transform .2s ease;
  }
  .nav-link:hover { background: rgba(255,255,255,0.08); transform: translateY(-1px); }
  .nav-link.active { background: rgba(255,255,255,0.12); }
  .nav-link::after {
    content: '';
    position: absolute;
    left: 10px; right: 10px; bottom: 6px;
    height: 2px; border-radius: 2px;
    background: transparent;
    transform: scaleX(0); transform-origin: left;
    transition: transform .25s ease, background .25s ease;
  }
  .nav-link:hover::after,
  .nav-link.active::after {
    background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
    transform: scaleX(1);
  }
}

/* Mobile overlay polish already defined; add item styling */
@media (max-width: 768px) {
  .nav-menu {
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    background: rgba(10, 13, 24, 0.92);
  }
  .nav-link {
    display: block;
    width: 100%;
    background: transparent;
    border-radius: 10px;
  }
  .nav-link:hover { background: rgba(255,255,255,0.08); }
}

/* Position mobile toggle nicely inside header */
.header .mobile-menu-btn { position: absolute; right: 16px; top: 14px; } 

/* === Remake Theme (Preview) === */
/* Scoped design overrides activated with body.remake */
body.remake {
  /* Updated color system */
  --bg-gradient: linear-gradient(135deg, #0b1022 0%, #111936 50%, #0a0f24 100%);
  --surface-1: rgba(255, 255, 255, 0.10);
  --surface-2: rgba(255, 255, 255, 0.16);
  --glass-border: rgba(255, 255, 255, 0.22);
  --text-primary: #f7f9ff;
  --text-secondary: #d2d8e6;
  --brand-1: #8aa2ff;
  --brand-1-strong: #6b86ff;
  --brand-2: #14deb3;
  --warning: #ffc266;
  --danger: #ff7a7a;
}

/* Subtle motion and elevation refinements */
body.remake .header {
  background: rgba(12, 16, 36, 0.6);
  border-bottom: 1px solid var(--glass-border);
}

body.remake .feature-card,
body.remake .floating-card,
body.remake .timeline-content {
  background: var(--surface-1);
  border: 1px solid var(--glass-border);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  transform-style: preserve-3d;
}

body.remake .feature-card:hover {
  transform: translateY(-10px) scale(1.01);
}

body.remake .btn-primary {
  background: linear-gradient(45deg, var(--brand-1), var(--brand-1-strong));
  box-shadow: 0 14px 34px rgba(108, 140, 255, 0.42);
}

body.remake .btn-secondary {
  background: var(--surface-1);
  border: 1px solid var(--glass-border);
}

body.remake .nav-link:hover,
body.remake .nav-link.active { background: var(--surface-2); }

/* Remake badge */
.remake-badge {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 10000;
  background: linear-gradient(135deg, rgba(108, 140, 255, 0.18), rgba(20, 222, 179, 0.18));
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  letter-spacing: 0.3px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-2);
  pointer-events: none;
}

/* === Minimal Flat NavBar === */
.header { padding: 0.10rem 0 0.10rem 0; border-radius: 0 0 12px 12px; background: var(--surface-1); border-bottom: 1.3px solid var(--glass-border); min-height: initial; box-shadow: none; }
.nav { display: flex; justify-content: center; align-items: center; min-height: 36px; gap: 0.2rem; margin-top: 1px; }
.logo { font-weight: 800; font-size: 1.11rem; color: var(--brand-1-strong,#7ca9fd); letter-spacing: .1px; display: flex; align-items: center; gap: 0.5rem; margin-right: 12px; }
.nav-menu { display: flex; align-items: center; gap: 0.82rem; min-height: 36px; background: var(--surface-1); border-radius: 12px; border: 1.3px solid var(--glass-border); box-shadow: none; padding: 5px 13px; }
.nav-link { font-size: 1rem; font-weight: 600; color: var(--text-primary); padding: 7px 13px; height: 36px; border-radius: 7px; background: none; margin: 0; display: flex; align-items: center; transition: background .14s, color .15s; }
.nav-link .icon, .nav-link svg { margin-right: 0.17em; vertical-align: middle; }
.nav-link:hover, .nav-link.active { background: rgba(120,170,255,0.11); color: var(--brand-1-strong); transform: none; box-shadow: none; }
.nav-link:active { background: var(--brand-2,#11eec2); color: #fff; }
.nav-menu li:last-child { margin-left: auto; }
@media(max-width:800px){ .header{border-radius:0;} .nav-menu{border-radius:0 0 10px 10px; width:96vw; padding:7px 0;} .nav-link{padding:12px 0;font-size:.975rem;width:99vw;max-width:99vw;justify-content:flex-start;} }