/* ============================================
   CSS Custom Properties (Theming)
   ============================================ */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #16213e;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --text-muted: #606060;
    --accent: #00d4ff;
    --accent-dark: #0099cc;
    --accent-glow: rgba(0, 212, 255, 0.3);
    --success: #00ff88;
    --error: #ff4444;
    --gradient-dark: linear-gradient(180deg, rgba(10, 10, 15, 0.9) 0%, rgba(10, 10, 15, 0.5) 50%, transparent 100%);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px var(--accent-glow);
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --nav-height: 70px;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--text-primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   Scroll Progress Bar
   ============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    z-index: 10000;
    transition: width 0.1s linear;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo i {
    color: var(--accent);
    font-size: 1.5rem;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-menu a {
    display: block;
    padding: 10px 15px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition);
}

.nav-menu a:hover {
    color: var(--accent);
    background: rgba(0, 212, 255, 0.1);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
        rgba(10, 10, 15, 0.8) 0%,
        rgba(10, 10, 15, 0.6) 50%,
        rgba(10, 10, 15, 0.9) 100%);
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    min-height: 1.2em;
}

.typing-text {
    color: var(--accent);
}

.typing-cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent);
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-15px); }
    60% { transform: translateX(-50%) translateY(-7px); }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--bg-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
    color: var(--bg-primary);
}

.btn-block {
    width: 100%;
}

/* ============================================
   Section Styles
   ============================================ */
.section {
    padding: 100px 20px;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-title i {
    color: var(--accent);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 50px;
    font-size: 1.1rem;
}

/* ============================================
   Audio Section
   ============================================ */
.audio-section {
    background: var(--bg-secondary);
}

.audio-player-container {
    max-width: 500px;
    margin: 50px auto 0;
    text-align: center;
}

.audio-player {
    background: var(--bg-tertiary);
    padding: 30px;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.audio-play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border: none;
    color: var(--bg-primary);
    font-size: 1.8rem;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-play-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

.audio-play-btn.playing i::before {
    content: "\f04c";
}

.audio-waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 40px;
}

.wave-bar {
    width: 4px;
    height: 10px;
    background: var(--accent);
    border-radius: 2px;
    transition: height 0.1s ease;
}

.audio-player.playing .wave-bar {
    animation: wave 0.5s ease-in-out infinite;
}

.wave-bar:nth-child(1) { animation-delay: 0s; }
.wave-bar:nth-child(2) { animation-delay: 0.1s; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; }
.wave-bar:nth-child(5) { animation-delay: 0.4s; }
.wave-bar:nth-child(6) { animation-delay: 0.3s; }
.wave-bar:nth-child(7) { animation-delay: 0.2s; }
.wave-bar:nth-child(8) { animation-delay: 0.1s; }
.wave-bar:nth-child(9) { animation-delay: 0s; }
.wave-bar:nth-child(10) { animation-delay: 0.1s; }
.wave-bar:nth-child(11) { animation-delay: 0.2s; }
.wave-bar:nth-child(12) { animation-delay: 0.3s; }
.wave-bar:nth-child(13) { animation-delay: 0.4s; }
.wave-bar:nth-child(14) { animation-delay: 0.3s; }
.wave-bar:nth-child(15) { animation-delay: 0.2s; }

@keyframes wave {
    0%, 100% { height: 10px; }
    50% { height: 35px; }
}

.audio-time {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-family: monospace;
}

.audio-caption {
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ============================================
   Weather Section
   ============================================ */
.weather-section {
    background: var(--bg-primary);
    overflow: hidden;
}

.weather-section .animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
        rgba(0, 212, 255, 0.05) 0%,
        transparent 50%,
        rgba(0, 212, 255, 0.05) 100%);
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.weather-card {
    max-width: 400px;
    margin: 50px auto 0;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.weather-loading,
.weather-error {
    padding: 40px;
}

.weather-loading i,
.weather-error i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.weather-error i {
    color: var(--error);
}

.weather-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.weather-icon {
    font-size: 4rem;
    color: var(--accent);
}

.weather-temp {
    display: flex;
    align-items: flex-start;
}

.temp-value {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
}

.temp-unit {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.weather-location {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.weather-condition {
    color: var(--text-secondary);
    text-transform: capitalize;
    margin-bottom: 25px;
}

.weather-details {
    display: flex;
    justify-content: space-around;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.weather-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.weather-detail i {
    color: var(--accent);
    font-size: 1.2rem;
}

.weather-detail small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.weather-api-note {
    text-align: center;
    margin-top: 30px;
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ============================================
   Gallery Section
   ============================================ */
.gallery-section {
    background: var(--bg-secondary);
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.gallery-item {
    flex: 1 1 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    min-width: 280px;
}

.gallery-item a {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 212, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-overlay i {
    font-size: 2rem;
    color: white;
    transform: scale(0.5);
    transition: transform var(--transition);
}

.gallery-item a:hover img {
    transform: scale(1.1);
}

.gallery-item a:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item a:hover .gallery-overlay i {
    transform: scale(1);
}

.gallery-caption {
    text-align: center;
    padding: 15px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ============================================
   Stats Section
   ============================================ */
.stats-section {
    background: var(--bg-primary);
}

.stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 50px;
}

.stat-card {
    flex: 1 1 200px;
    max-width: 250px;
    background: var(--bg-secondary);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all var(--transition);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    display: inline;
}

.stat-prefix,
.stat-suffix {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    display: block;
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ============================================
   Timeline Section
   ============================================ */
.timeline-section {
    background: var(--bg-secondary);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 50px auto 0;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent), var(--accent-dark));
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    display: flex;
    justify-content: flex-end;
    padding-right: calc(50% + 40px);
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: calc(50% + 40px);
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--bg-tertiary);
    border: 3px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.timeline-marker i {
    color: var(--accent);
    font-size: 1.2rem;
}

.timeline-content {
    background: var(--bg-tertiary);
    padding: 25px;
    border-radius: var(--border-radius);
    max-width: 350px;
    box-shadow: var(--shadow-md);
}

.timeline-content h3 {
    color: var(--accent);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ============================================
   Features Section
   ============================================ */
.features-section {
    background: var(--bg-primary);
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 50px;
}

.feature-card {
    flex: 1 1 calc(33.333% - 30px);
    max-width: 350px;
    min-width: 280px;
    background: var(--bg-secondary);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover .feature-icon {
    background: var(--accent);
    color: var(--bg-primary);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.feature-icon i {
    font-size: 2rem;
    color: var(--accent);
    transition: color var(--transition);
}

.feature-card:hover .feature-icon i {
    color: var(--bg-primary);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials-section {
    background: var(--bg-secondary);
}

.testimonials-carousel {
    max-width: 700px;
    margin: 50px auto 0;
    position: relative;
}

.testimonial-slides {
    position: relative;
    min-height: 350px;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(50px);
    transition: all var(--transition-slow);
    pointer-events: none;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.testimonial-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-slide blockquote {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.8;
}

.testimonial-slide cite {
    display: block;
    text-align: center;
}

.testimonial-slide cite strong {
    display: block;
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.testimonial-slide cite span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition);
}

.dot.active,
.dot:hover {
    background: var(--accent);
}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
    background: var(--bg-primary);
}

.contact-content {
    max-width: 500px;
    margin: 50px auto 0;
}

.contact-form {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.form-group label i {
    color: var(--accent);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: var(--bg-tertiary);
    border: 2px solid transparent;
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.error-message {
    display: block;
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 8px;
    min-height: 1.2em;
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--error);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all var(--transition);
}

.social-links a:hover {
    background: var(--accent);
    color: var(--bg-primary);
    transform: translateY(-5px);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--bg-secondary);
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer p {
    color: var(--text-secondary);
}

.footer strong {
    color: var(--accent);
}

.footer-sub {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent);
    border: none;
    border-radius: 50%;
    color: var(--bg-primary);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

/* ============================================
   Animations
   ============================================ */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   Responsive - Tablet (768px)
   ============================================ */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .gallery-item {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        padding-left: 70px;
        padding-right: 0;
        justify-content: flex-start;
    }

    .timeline-marker {
        left: 20px;
        width: 40px;
        height: 40px;
    }

    .timeline-content {
        max-width: 100%;
    }

    .feature-card {
        flex: 1 1 calc(50% - 30px);
    }
}

/* ============================================
   Responsive - Mobile (480px)
   ============================================ */
@media (max-width: 480px) {
    .section {
        padding: 70px 15px;
    }

    .gallery-item {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .stats-grid {
        gap: 20px;
    }

    .stat-card {
        flex: 1 1 calc(50% - 10px);
        padding: 25px 15px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .feature-card {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .weather-details {
        flex-direction: column;
        gap: 20px;
    }

    .contact-form {
        padding: 25px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}
