/* ===== GLOBAL STYLES - COMPLETE CREST COLLEGE CSS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background: linear-gradient(135deg, #f5f7fa 0%, #eef2f7 100%);
    overflow-x: hidden;
}

:root {
    --primary-blue: #1a4d8c;
    --primary-dark: #0f3a6b;
    --accent-red: #c62828;
    --accent-gold: #ffc107;
    --light-bg: #f8fafc;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-hover: 0 12px 28px rgba(0,0,0,0.15);
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    color: var(--primary-blue);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.8rem; border-left: 5px solid var(--accent-red); padding-left: 1rem; margin: 1.5rem 0 1rem; }
h3 { font-size: 1.3rem; color: var(--primary-blue); }

p { margin-bottom: 1rem; color: #334155; }

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

a:hover {
    color: var(--accent-red);
}

/* ===== STICKY HEADER ===== */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* ===== STICKY HEADER WITH ANIMATED GRADIENT ===== */
.top-bar {
    background: linear-gradient(
        135deg,
        var(--primary-blue) 0%,
        var(--primary-dark) 25%,
        var(--accent-red) 50%,
        var(--primary-blue) 75%,
        var(--primary-dark) 100%
    );
    background-size: 300% 300%;
    animation: headerGradientShift 8s ease infinite;
    color: white;
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

/* Slightly different animation speed for header (optional) */
@keyframes headerGradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
/* Scrolled header effect - less intense gradient */
.top-bar.scrolled {
    background: linear-gradient(
        135deg,
        var(--primary-blue) 0%,
        var(--primary-dark) 100%
    );
    animation: none;
    padding: 0.5rem 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* Add transition for smooth scrolled effect */
.top-bar {
    transition: all 0.3s ease;
}

.left-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    width: 60px;
    height: 60px;
}

.logo-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    transition: transform 0.3s ease;
}

.logo-img img:hover {
    transform: scale(1.05);
}

.text-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.school-name-area h1 {
    color: white;
    margin-bottom: 0;
    font-size: 1.6rem;
    letter-spacing: 1px;
}

.badge {
    display: inline-block;
    background: var(--accent-red);
    color: white;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 0.1rem 0.5rem;
    border-radius: 20px;
    text-transform: uppercase;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.motto {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.motto span {
    color: var(--accent-red);
    font-weight: bold;
}

/* ===== HAMBURGER MENU ===== */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: var(--transition-smooth);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    color: white;
    font-weight: 600;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition-smooth);
}

.nav-links li a:hover,
.nav-links li a.active {
    border-bottom-color: var(--accent-red);
    color: #ffd700;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    .nav-links li a.active {
        border-bottom-color: var(--accent-red);
        color: var(--primary-blue);
    }
    .nav-links {
        position: absolute;
        top: 100%;
        right: 0;
        width: auto;
        min-width: 220px;
        background: #f1f5f9;
        flex-direction: column;
        gap: 0;
        z-index: 1000;
        box-shadow: var(--shadow-lg);
        border-radius: 0 0 20px 20px;
        padding: 0.5rem 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }
    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    .nav-links li a {
        display: block;
        padding: 0.75rem 1.5rem;
        color: #1e293b;
        font-weight: 600;
    }
    .nav-links li a:hover {
        background: var(--primary-blue);
        color: white;
    }
    .top-bar {
        position: relative;
        z-index: 1002;
        padding: 0.75rem 1rem;
    }
    .left-section {
        flex: 1;
    }
    .school-name-area h1 {
        font-size: 1.2rem;
    }
    .logo-img {
        width: 45px;
        height: 45px;
    }
    main {
        padding: 1rem;
    }
    h2 {
        font-size: 1.4rem;
    }
}

/* ===== MAIN CONTENT ===== */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 70vh;
}

/* ===== HERO SECTION ===== */
.hero {
    border-radius: 24px;
    padding: 4rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.8s ease-out;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-text {
    color: rgba(255,255,255,0.95);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

.btn {
    display: inline-block;
    background-color: #c62828;
    color: white;
    padding: 0.75rem 1.8rem;
    border-radius: 40px;
    font-weight: bold;
    margin-top: 1rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #8b0000;
    transform: scale(1.02);
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #c62828;
    color: #c62828;
}

.btn-outline:hover {
    background-color: #c62828;
    color: white;
}

/* ===== CARD GRID ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
    margin: 2rem 0;
}

.card {
    background: white;
    padding: 1.8rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border-top: 4px solid var(--accent-red);
}

.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.card h3 {
    margin-top: 0;
    color: var(--primary-blue);
}

.card ul {
    margin-left: 1.2rem;
    color: #475569;
}

.goal-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.info-banner {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    padding: 1.8rem;
    border-radius: 20px;
    margin-top: 1rem;
    border-left: 5px solid var(--primary-blue);
}

.info-banner p {
    margin: 0;
    font-size: 1rem;
    color: #0f3a6b;
}

/* ===== TABLE STYLES (Academics) ===== */
.subjects-wrapper {
    overflow-x: auto;
    margin: 1rem 0;
}

.subjects-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.subjects-table th,
.subjects-table td {
    padding: 1rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #e2e8f0;
}

.subjects-table th {
    background: var(--primary-dark);
    color: white;
    font-weight: 600;
}

.subject-area {
    background: var(--primary-blue);
    color: white;
    font-weight: bold;
    width: 30%;
}

.subjects-list ul {
    margin: 0;
    padding-left: 1.2rem;
}

.subjects-list li {
    margin-bottom: 0.3rem;
}

.subjects-table tr:hover {
    background: #f1f5f9;
}

/* ===== FORM STYLES ===== */
.form-group {
    margin-bottom: 1.2rem;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #1e293b;
}

input, select, textarea {
    width: 100%;
    padding: 0.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--transition-smooth);
    background: white;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(198,40,40,0.1);
}

/* ===== RESOURCES PAGE ===== */
.subject-resource-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--accent-red);
    transition: var(--transition-smooth);
}

.subject-resource-card:hover {
    box-shadow: var(--shadow-md);
}

.subject-resource-card h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.resource-files {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.file-link {
    display: inline-block;
    background: #f1f5f9;
    color: var(--primary-blue);
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    border: 1px solid #e2e8f0;
}

.file-link:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
}

/* ===== DIRECTORS SECTION ===== */
.directors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.director-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    text-align: center;
    transition: var(--transition-smooth);
    padding: 1.8rem 1.2rem;
    box-shadow: var(--shadow-sm);
}

.director-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.director-image {
    width: 130px;
    height: 130px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-red);
}

.director-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.director-card:hover .director-image img {
    transform: scale(1.08);
}

.director-card h3 {
    color: var(--primary-blue);
    margin: 0.75rem 0 0.25rem;
}

.director-title {
    color: var(--accent-red);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.director-bio {
    color: #64748b;
    font-size: 0.85rem;
    padding: 0 0.5rem;
}

/* ===== CONTACT PAGE MAP ===== */
.map-container {
    margin-top: 1.5rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-container iframe {
    width: 100%;
    height: 350px;
    border: 0;
    display: block;
}

/* ===== FOOTER ===== */
footer {
    background: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 1.8rem;
    margin-top: 3rem;
}

footer p {
    color: #cbd5e1;
}

footer a {
    color: var(--accent-gold);
}

footer a:hover {
    color: white;
}

/* ===== ANIMATIONS ===== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE TOUCHUPS ===== */
@media (max-width: 480px) {
    .hero {
        padding: 2rem 1rem;
    }
    .hero-title {
        font-size: 1.6rem;
    }
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    .card {
        padding: 1.2rem;
    }
    .subjects-table th,
    .subjects-table td {
        padding: 0.7rem;
        font-size: 0.85rem;
    }
}

/* ===== CTA SECTION STYLES WITH ANIMATED GRADIENT ===== */
.cta-section {
    text-align: center;
    padding: 4rem 2rem;
    border-radius: 24px;
    margin: 2rem 0 4rem 0;
    box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    
    /* Animated Gradient Background - HARDCODED COLORS */
    background: linear-gradient(
        135deg,
        #1a4d8c 0%,
        #0f3a6b 25%,
        #c62828 50%,
        #1a4d8c 75%,
        #0f3a6b 100%
    );
    background-size: 400% 400%;
    animation: ctaGradientShift 6s ease infinite;
}

/* Gradient animation keyframes */
@keyframes ctaGradientShift {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 50% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    75% {
        background-position: 50% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Make sure no other background overrides */
.cta-section,
.cta-section * {
    background-blend-mode: normal;
}

/* Subtle animated overlay pattern */
.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.cta-section h2 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    border-left: none;
    padding-left: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
    display: inline-block;  /* This makes the h2 width match the text */
}

.cta-section h2::after {
    content: '';
    display: block;
    width: 100%;  /* Changed from fixed 60px to 100% */
    height: 4px;
    background: #ffc107;
    margin: 0.8rem auto 0;
    border-radius: 3px;
}

.cta-section p {
    color: rgba(255,255,255,0.95);
    font-size: 1.15rem;
    margin-bottom: 2rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

.cta-section .btn {
    margin: 0.5rem;
    position: relative;
    z-index: 1;
}

.cta-section .btn-primary {
    background: #c62828;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.cta-section .btn-primary:hover {
    background: #8b0000;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.cta-section .btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.cta-section .btn-outline:hover {
    background: white;
    color: #1a4d8c;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Colored floating particles */
.cta-section .cta-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
    animation: ctaFloatParticle 8s ease-in-out infinite;
}

@keyframes ctaFloatParticle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-200px) translateX(50px);
        opacity: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cta-section {
        padding: 2.5rem 1.5rem;
        margin: 2rem 0 3rem 0;
    }
    
    .cta-section h2 {
        font-size: 1.6rem;
    }
    
    .cta-section p {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .cta-section {
        padding: 2rem 1rem;
        border-radius: 20px;
        margin: 1.5rem 0 2.5rem 0;
    }
    
    .cta-section h2 {
        font-size: 1.4rem;
    }
    
    .cta-section p {
        font-size: 0.9rem;
    }
    
    .cta-section .btn {
        display: block;
        width: 100%;
        margin: 0.6rem 0;
    }
    
    .cta-section h2::after {
        width: 40px;
        height: 3px;
    }
}

/* ===== WELCOME SECTION STYLES - FULL SCREEN & FULL WIDTH ===== */
.welcome-section {
    text-align: center;
    padding: 2rem;
    margin: 0;
    
    /* FULL WIDTH - edge to edge */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    
    /* FULL HEIGHT on all devices */
    min-height: 100vh;
    min-height: 100dvh;
    
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    margin-top: -2rem;
}

/* Animated Gradient Background - Full Screen */
.welcome-section {
    background: linear-gradient(
        135deg,
        var(--primary-blue) 0%,
        var(--primary-dark) 25%,
        var(--accent-red) 50%,
        var(--primary-blue) 75%,
        var(--primary-dark) 100%
    );
    background-size: 300% 300%;
    animation: gradientShift 8s ease infinite;
}

/* Remove the gradient border - no card look */
.welcome-section::before {
    display: none;
}

/* Subtle animated overlay pattern */
.welcome-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.05) 0%, transparent 60%);
    pointer-events: none;
    animation: pulseOverlay 4s ease infinite;
}

.welcome-section h2 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    border-left: none;
    padding-left: 0;
    text-shadow: 0 2px 15px rgba(0,0,0,0.3);
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
}

/* Gold line under heading - covers entire heading width */
.welcome-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gold);
    border-radius: 3px;
    box-shadow: 0 0 12px rgba(255,193,7,0.6);
}

.welcome-section p {
    color: rgba(255,255,255,0.95);
    font-size: 1.3rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 2rem auto 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
    padding: 0 1rem;
}

/* Animation keyframes for gradient background */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Pulsing overlay animation */
@keyframes pulseOverlay {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Animation for fade in */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating decorative elements */
.welcome-section .floating-dot {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

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

/* ===== RESPONSIVE - FULL HEIGHT & FULL WIDTH ON ALL DEVICES ===== */
@media (max-width: 768px) {
    .welcome-section {
        width: 100vw;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        min-height: 100vh;
        min-height: 100dvh;
        padding: 2rem 1.5rem;
    }
    
    .welcome-section h2 {
        font-size: 2.2rem;
    }
    
    .welcome-section p {
        font-size: 1.1rem;
        line-height: 1.6;
        max-width: 90%;
    }
}

@media (max-width: 600px) {
    .welcome-section {
        width: 100vw;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        min-height: 100vh;
        min-height: 100dvh;
        padding: 1.5rem;
    }
    
    .welcome-section h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .welcome-section h2::after {
        bottom: -10px;
        height: 3px;
    }
    
    .welcome-section p {
        font-size: 1rem;
        line-height: 1.5;
        margin: 1.5rem auto 0;
        max-width: 95%;
    }
}

@media (max-width: 480px) {
    .welcome-section {
        width: 100vw;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        min-height: 100vh;
        min-height: 100dvh;
        padding: 1rem;
    }
    
    .welcome-section h2 {
        font-size: 1.5rem;
    }
    
    .welcome-section p {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }
}

/* For landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .welcome-section {
        width: 100vw;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        min-height: 100vh;
        min-height: 100dvh;
        padding: 1.5rem;
    }
    
    .welcome-section h2 {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }
    
    .welcome-section p {
        font-size: 0.9rem;
        margin: 1rem auto 0;
        max-width: 80%;
    }
}

/* Coming Soon Decorated Styles - works with your existing CSS */
.coming-soon-wrapper {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
}

.coming-soon-container {
    background: linear-gradient(135deg, #ffffff 0%, #fef9e6 100%);
    border-radius: 2rem;
    padding: 2.5rem 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    text-align: center;
    border: 1px solid rgba(234, 179, 8, 0.2);
    position: relative;
    overflow: hidden;
}

.coming-soon-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(234,179,8,0.03) 0%, transparent 70%);
    pointer-events: none;
}

.cs-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #1e3a5f, #2c4c6e);
    color: #ffdf7e;
    padding: 0.5rem 1.2rem;
    border-radius: 60px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cs-pulse {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4);
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.cs-icon-animation {
    margin-bottom: 1rem;
}

.cs-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 2.5rem;
    animation: floatIcons 3s ease-in-out infinite;
}

.cs-icons span {
    display: inline-block;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.cs-icons span:hover {
    transform: translateY(-8px) rotate(5deg);
}

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

.cs-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.cs-glow {
    display: inline-block;
    background: linear-gradient(135deg, #eab308, #f59e0b);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    position: relative;
}

.cs-description {
    font-size: 1.1rem;
    color: #475569;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    line-height: 1.6;
}

.cs-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.cs-feature {
    background: white;
    padding: 1.5rem 1rem;
    border-radius: 1.2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eef2f6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.cs-feature:hover {
    transform: translateY(-5px);
    border-color: #eab308;
    box-shadow: 0 12px 24px -12px rgba(234,179,8,0.2);
}

.cs-feature-icon {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
}

.cs-feature h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 0.3rem;
}

.cs-feature p {
    font-size: 0.8rem;
    color: #64748b;
}

.cs-progress {
    background: #f1f5f9;
    border-radius: 1rem;
    padding: 1.2rem 1.5rem;
    margin: 2rem 0;
    text-align: left;
}

.cs-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.cs-progress-bar {
    background: #e2e8f0;
    border-radius: 60px;
    height: 10px;
    overflow: hidden;
}

.cs-progress-fill {
    background: linear-gradient(90deg, #eab308, #f59e0b);
    height: 100%;
    border-radius: 60px;
    width: 0%;
    animation: fillProgress 1.5s ease-out forwards;
}

@keyframes fillProgress {
    from { width: 0%; }
    to { width: 78%; }
}

.cs-progress-note {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.6rem;
    text-align: center;
}

.cs-notify {
    background: linear-gradient(135deg, #1e3a5f, #0f2b3d);
    border-radius: 1.2rem;
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    gap: 1rem;
    text-align: left;
    flex-wrap: wrap;
    align-items: center;
}

.cs-notify-icon {
    font-size: 3rem;
    background: rgba(255,215,0,0.15);
    border-radius: 60px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cs-notify-content {
    flex: 1;
    min-width: 200px;
}

.cs-notify-content h4 {
    color: #ffdf7e;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.cs-notify-content p {
    color: #cbd5e1;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
}

.cs-notify-form {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.cs-notify-form input {
    flex: 1;
    min-width: 180px;
    padding: 0.7rem 1rem;
    border-radius: 60px;
    border: none;
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
}

.cs-notify-form input:focus {
    box-shadow: 0 0 0 3px rgba(234,179,8,0.3);
}

.cs-notify-form button {
    background: #eab308;
    color: #1e293b;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 60px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.cs-notify-form button:hover {
    background: #f59e0b;
    transform: scale(1.02);
}

.cs-notify-content small {
    font-size: 0.7rem;
    color: #94a3b8;
}

.cs-note {
    background: #fef9e6;
    border-left: 4px solid #eab308;
    padding: 0.8rem 1.2rem;
    border-radius: 0.8rem;
    font-size: 0.85rem;
    color: #3b3b2c;
    margin-top: 1rem;
}

@media (max-width: 640px) {
    .coming-soon-container {
        padding: 1.5rem;
    }
    .cs-title {
        font-size: 1.8rem;
    }
    .cs-icons {
        font-size: 1.8rem;
        gap: 1rem;
    }
    .cs-features {
        gap: 1rem;
    }
    .cs-notify {
        flex-direction: column;
        text-align: center;
    }
    .cs-notify-icon {
        margin: 0 auto;
    }
    .cs-notify-form {
        justify-content: center;
    }
}