/* ================================
   RESET & BASE STYLES
   ================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - CSCQC School Colors with Earthquake Theme */
    --primary-green: #2d7a3e;
    --secondary-green: #1a5c2a;
    --accent-gold: #ffd700;
    --accent-yellow: #ffeb3b;
    --warning-orange: #ff9800;
    --dark-bg: #0a1f0f;
    --darker-bg: #051408;
    --card-bg: #1a3a24;
    --border-color: #2d5a3d;
    --text-primary: #ffffff;
    --text-secondary: #b8d4b8;
    --success-green: #4caf50;
    
    /* Fonts */
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    
    /* Spacing */
    --section-padding: 100px 20px;
    
    /* Effects */
    --shadow-strong: 0 10px 40px rgba(45, 122, 62, 0.3);
    --shadow-medium: 0 5px 20px rgba(0, 0, 0, 0.5);
    --glow-red: 0 0 20px rgba(45, 122, 62, 0.5);
}

html {
    scroll-behavior: smooth;
}

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

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

/* ================================
   NAVIGATION
   ================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary-green);
    padding: 15px 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-primary);
}

.logo-img {
    height: 55px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.logo-text {
    background: linear-gradient(135deg, var(--primary-green), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-divider {
    color: var(--accent-gold);
    font-size: 2rem;
    font-weight: 700;
    margin: 0 5px;
    opacity: 0.8;
}

.bsit-logo-img {
    height: 45px;
    width: 45px;
    object-fit: contain;
    background: white;
    padding: 1px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.alert-icon {
    font-size: 1.8rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.logo-text {
    background: linear-gradient(135deg, var(--primary-green), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: width 0.3s ease;
}

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

.nav-menu a:hover::after {
    width: 100%;
}

/* ================================
   HERO SECTION
   ================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--darker-bg);
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 0;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(68, 136, 83, 0.7) 0%, rgba(5, 20, 8, 0.85) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.warning-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(45, 122, 62, 0.2);
    border: 2px solid var(--primary-green);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 30px;
    animation: slideInDown 1s ease;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: var(--primary-green);
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 5px;
}

.glitch {
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-gold), var(--accent-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glitch-text 5s infinite;
}

@keyframes glitch-text {
    0%, 90%, 100% {
        filter: none;
    }
    92% {
        filter: drop-shadow(2px 2px 0 var(--primary-green));
    }
    94% {
        filter: drop-shadow(-2px -2px 0 var(--accent-gold));
    }
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 3px;
}

.hero-description {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green), var(--accent-gold));
    color: var(--text-primary);
    box-shadow: var(--shadow-strong);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(45, 122, 62, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary-green);
}

.btn-secondary:hover {
    background: var(--primary-green);
    transform: translateY(-3px);
}

.btn-icon {
    font-size: 1.4rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-green);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ================================
   SECTION HEADERS
   ================================ */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    background: rgba(45, 122, 62, 0.2);
    border: 2px solid var(--primary-green);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ================================
   ABOUT SECTION
   ================================ */
.about {
    padding: var(--section-padding);
    background: var(--dark-bg);
}

.about-content {
    display: grid;
    gap: 30px;
}

.about-main {
    margin-bottom: 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.feature-box {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-box:hover {
    border-color: var(--primary-green);
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.feature-box:hover::before {
    transform: scaleX(1);
}

.feature-box.featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(45, 122, 62, 0.1), rgba(255, 215, 0, 0.05));
    border: 2px solid var(--primary-green);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-box h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.feature-box p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Safety Protocol Box */
.safety-protocol {
    margin-top: 50px;
    background: var(--card-bg);
    border: 3px solid var(--primary-green);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-strong);
}

.protocol-header {
    text-align: center;
    margin-bottom: 30px;
}

.protocol-header h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--primary-green);
}

.protocol-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.protocol-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
}

.step-content h4 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

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

/* ================================
   TRAILER SECTION
   ================================ */
.trailer {
    padding: var(--section-padding);
    background: var(--darker-bg);
}

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

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    border: 3px solid var(--primary-green);
    box-shadow: var(--shadow-strong);
}

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

.video-note {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: rgba(45, 122, 62, 0.1);
    border: 1px solid var(--primary-green);
    border-radius: 10px;
    color: var(--text-secondary);
}

.video-note strong {
    color: var(--primary-green);
}

/* ================================
   DOWNLOAD SECTION
   ================================ */
.download {
    padding: var(--section-padding);
    background: var(--dark-bg);
}

.download-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 30px;
    padding: 60px;
    box-shadow: var(--shadow-medium);
    max-width: 900px;
    margin: 0 auto;
}

.download-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.info-item {
    background: var(--dark-bg);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.info-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.info-value {
    display: block;
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 700;
}

.download-buttons {
    margin: 30px 0;
}

.btn-download {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-gold));
    color: var(--text-primary);
    padding: 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-strong);
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(45, 122, 62, 0.5);
}

.download-icon {
    font-size: 3rem;
}

.download-text {
    text-align: left;
}

.download-title {
    display: block;
    font-size: 1.5rem;
    font-weight: 900;
    font-family: var(--font-display);
}

.download-subtitle {
    display: block;
    font-size: 1rem;
    opacity: 0.8;
}

.download-warning {
    background: rgba(255, 235, 59, 0.1);
    border: 2px solid var(--accent-yellow);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin: 30px 0;
}

.warning-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.warning-text {
    flex: 1;
}

.warning-text strong {
    color: var(--accent-yellow);
}

.system-requirements {
    background: var(--dark-bg);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.system-requirements h4 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-green);
}

.system-requirements ul {
    list-style: none;
}

.system-requirements li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-secondary);
}

.system-requirements li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-green);
    font-weight: 900;
}

/* Phone Mockup */
.download-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: relative;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.phone-frame {
    width: 280px;
    height: 560px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 8px solid #2a2a2a;
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 25px;
    background: #1a1a1a;
    border-radius: 0 0 20px 20px;
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--darker-bg);
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.app-preview {
    padding: 50px 20px 20px;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 122, 62, 0.1), rgba(13, 17, 23, 1));
}

.preview-header {
    text-align: center;
    padding: 20px;
    border-bottom: 2px solid var(--primary-green);
    margin-bottom: 30px;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.2rem;
}

.preview-logo {
    height: 35px;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto 10px;
}

.preview-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 10px;
}

.preview-menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.menu-item {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    text-align: center;
    font-weight: 700;
    transition: all 0.3s ease;
}

.menu-item:hover {
    border-color: var(--primary-green);
    background: rgba(45, 122, 62, 0.1);
}

/* ================================
   FOOTER
   ================================ */
.footer {
    background: var(--darker-bg);
    border-top: 2px solid var(--primary-green);
    padding: 60px 20px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.footer-cscqc-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    margin-left: 50px;
    margin-top: 15px;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.footer-section h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-green);
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 10px;
}

.footer-tagline {
    font-style: italic;
    color: var(--primary-green);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-green);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.footer-disclaimer {
    font-size: 0.9rem;
    font-style: italic;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 968px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .download-card {
        grid-template-columns: 1fr;
    }
    
    .phone-mockup {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .logo {
        gap: 10px;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .bsit-logo-img {
        height: 38px;
        width: 38px;
        padding: 6px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .logo-divider {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .protocol-steps {
        grid-template-columns: 1fr;
    }
    
    .download-card {
        padding: 30px;
    }
    
    .download-info {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 60px 15px;
    }
    
    .logo {
        gap: 6px;
    }
    
    .logo-img {
        height: 32px;
    }
    
    .bsit-logo-img {
        height: 30px;
        width: 30px;
        padding: 5px;
    }
    
    .logo-text {
        font-size: 0.9rem;
    }
    
    .logo-divider {
        font-size: 1.2rem;
    }
    
    .hero-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .phone-frame {
        width: 240px;
        height: 480px;
    }
}

/* ================================
   ANIMATIONS & UTILITIES
   ================================ */
.fade-in {
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.8s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth scrolling offset for fixed navbar */
section {
    scroll-margin-top: 80px;
}
/* ================================
   SCROLL TO TOP BUTTON
   ================================ */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-gold));
    color: var(--text-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(45, 122, 62, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(45, 122, 62, 0.7);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-arrow {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
}

@media (max-width: 768px) {
    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .scroll-arrow {
        font-size: 1.3rem;
    }
}