/* =========================================
   Design System & Variables
   ========================================= */
:root {
    /* Primary Brand Colors */
    --color-primary: #40BAD5; /* BGMEA Cyan/Blue */
    --color-primary-dark: #0f2e4a; /* Deep Navy */
    --color-secondary: #00b386; /* Fresh Green */
    
    /* Neutral Colors */
    --color-bg: #f8fbff;
    --color-surface: #ffffff;
    --color-text: #334155;
    --color-text-light: #64748b;
    --color-text-heading: #0f172a;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0f2e4a 0%, #1e4b78 100%);
    --gradient-accent: linear-gradient(135deg, #40BAD5 0%, #00b386 100%);
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Lato', sans-serif;
    
    /* Shadows & Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --shadow-glow: 0 0 20px rgba(64, 186, 213, 0.3);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.18);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

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

ul {
    list-style: none;
}

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

/* =========================================
   Layout & Utility
   ========================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.text-center { text-align: center; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-4 { margin-top: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-800 { max-width: 800px; }

.bg-light { background-color: #f1f5f9; }
.bg-gradient { background: var(--gradient-primary); }
.text-white h2, .text-white h3, .text-white p { color: #ffffff; }

/* =========================================
   Components
   ========================================= */
/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.btn i { margin-left: 8px; transition: transform 0.3s; }
.btn:hover i { transform: translateX(5px); }

.btn-primary {
    background: var(--gradient-accent);
    color: white;
    box-shadow: 0 4px 15px rgba(64, 186, 213, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(64, 186, 213, 0.6);
    transform: translateY(-2px);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: 0.6rem 1.5rem;
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

.btn-light {
    background: white;
    color: var(--color-primary-dark);
}

.btn-light:hover {
    background: #f8fafc;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
    color: var(--color-primary);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

/* =========================================
   Navigation
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.navbar.scrolled {
    padding: 0.8rem 0;
    box-shadow: var(--shadow-md);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--color-primary-dark);
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--color-text-light);
    font-size: 1rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--color-text-heading);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
}

.nav-links a:not(.btn-outline):hover {
    color: var(--color-primary);
}

.mobile-menu-icon {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-primary-dark);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 80px; /* Offset for navbar */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/hero_bg.jpg') no-repeat center center/cover;
    z-index: -2;
    transform: scale(1.05); /* Slight zoom for animation effect */
    animation: slowZoom 20s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.1); }
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 46, 74, 0.85) 0%, rgba(64, 186, 213, 0.7) 100%);
    z-index: -1;
}

.hero-content {
    color: white;
    max-width: 900px;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero .subtitle {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 300;
}

/* =========================================
   About Section
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(64, 186, 213, 0.1);
    color: var(--color-primary);
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-info {
    position: relative;
    border-left: 4px solid var(--color-primary);
}

.about-info h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-primary-dark);
}

.about-info h3 i {
    color: var(--color-primary);
}

.aims-container {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    margin-top: 2rem;
}

.aims-container h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.aims-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.aims-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1.1rem;
    color: var(--color-text);
}

.aims-list li i {
    color: var(--color-secondary);
    font-size: 1.5rem;
    margin-top: 3px;
}

/* =========================================
   Benefits Section
   ========================================= */
.section-header p {
    color: var(--color-text-light);
    font-size: 1.2rem;
    margin-bottom: 4rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

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

.benefit-card:hover::before {
    transform: scaleX(1);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(64, 186, 213, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--color-primary);
    transition: var(--transition-normal);
}

.benefit-card:hover .icon-wrapper {
    background: var(--color-primary);
    color: white;
    transform: rotateY(180deg);
}

.benefit-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.benefit-card p {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: 0;
}

.dpp-card {
    grid-column: 1 / -1;
    max-width: 600px;
    margin: 0 auto;
    background: var(--gradient-primary);
    color: white;
}

.dpp-card::before { display: none; }
.dpp-card h3, .dpp-card p { color: white; }
.dpp-card .icon-wrapper {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* =========================================
   How to Claim (Timeline) Section
   ========================================= */
.claim-section {
    position: relative;
}

.claim-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(64, 186, 213, 0.1) 0%, rgba(255,255,255,0) 70%);
    z-index: -1;
}

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

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: rgba(64, 186, 213, 0.2);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 4px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    margin-bottom: 2rem;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-number {
    position: absolute;
    width: 40px;
    height: 40px;
    right: -20px;
    background: var(--color-primary);
    border: 4px solid white;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-family: var(--font-heading);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.timeline-item:nth-child(even) .timeline-number {
    left: -20px;
}

.timeline-item:hover .timeline-number {
    transform: scale(1.2);
    background: var(--color-secondary);
}

.timeline-content {
    padding: 20px 30px;
    border-radius: 15px;
    position: relative;
    transition: transform 0.3s;
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-content h3 {
    color: var(--color-primary-dark);
    font-size: 1.25rem;
}

.timeline-content p {
    font-size: 1rem;
    margin-bottom: 0;
}

/* Iframe Section */
.iframe-container {
    margin-top: 4rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #f8fbff;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

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

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

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

.is-visible {
    opacity: 1;
    transform: translate(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* =========================================
   Responsive Design
   ========================================= */
@media screen and (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem 0;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        opacity: 0;
        transition: 0.4s ease-in-out;
        z-index: -1;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .mobile-menu-icon {
        display: block;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0%;
    }
    
    .timeline-item:nth-child(odd) .timeline-number,
    .timeline-item:nth-child(even) .timeline-number {
        left: 11px;
        top: 15px;
    }
}
