/* Critical CSS for above-the-fold content */
/* This contains only the most essential styles for immediate rendering */

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body and Typography */
body {
    font-family: 'Oswald', sans-serif;
    background-color: #FFF5F7;
    color: var(--bodyTextColor);
    line-height: 1.6;
    overflow-x: hidden;
}

/* CSS Variables */
:root {
    --primary: #FF69B4;
    --primaryDark: #FF1493;
    --secondary: #FFB6C1;
    --headerColor: #FFF5F7;
    --bodyTextColor: #2C2C2C;
    --bodyTextColorOnPink: #2C1A2C;
    --bodyTextColorWhite: #FFF;
    --footerTextColor: #FFFFFF;
    --mainHeadingColor: #FF1493;
    --secondaryHeadingColor: #FF69B4;
}

/* Container */
.cs-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation - Critical for initial render */
#cs-navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--headerColor);
    z-index: 10000;
    box-shadow: 0 2px 10px rgba(255, 105, 180, 0.1);
}

#cs-navigation .cs-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.cs-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cs-logo img {
    height: 43px;
    width: auto;
}

.neon {
    display: none; /* Hidden initially to prevent layout shift */
}

.cs-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.cs-ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.cs-li-link {
    color: var(--bodyTextColor);
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.cs-li-link.cs-active {
    color: var(--primary);
}

.cs-button-solid {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary);
    color: var(--bodyTextColorWhite);
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

/* Dark Mode Toggle - Hidden initially */
#dark-mode-toggle {
    display: none;
}

/* Mobile Menu Toggle - Hidden on desktop */
.cs-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

/* Hero Section - Critical above-the-fold content */
#hero-855 {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #FFF5F7 0%, #FFE4E9 50%, #FFC0CB 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

#hero-855 .cs-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.cs-content {
    z-index: 2;
}

.cs-topper {
    display: block;
    color: var(--primary);
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

h1.cs-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--mainHeadingColor);
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0.5px 0.5px 0 rgba(0, 0, 0, 0.4),
                 -0.5px -0.5px 0 rgba(0, 0, 0, 0.4),
                 0.5px -0.5px 0 rgba(0, 0, 0, 0.4),
                 -0.5px 0.5px 0 rgba(0, 0, 0, 0.4),
                 0 1px 2px rgba(0, 0, 0, 0.3);
}

.cs-text {
    font-family: 'Yellowtail', cursive;
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 30px;
    color: var(--bodyTextColorOnPink);
    text-shadow: 0.5px 0.5px 0 rgba(0, 0, 0, 0.3),
                 -0.5px -0.5px 0 rgba(0, 0, 0, 0.3),
                 0.5px -0.5px 0 rgba(0, 0, 0, 0.3),
                 -0.5px 0.5px 0 rgba(0, 0, 0, 0.3);
}

.cs-button-box {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.cs-picture {
    position: relative;
    z-index: 2;
}

.cs-picture img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(255, 105, 180, 0.2);
}

/* Skip Link */
.skip {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 100000;
}

.skip:focus {
    top: 6px;
}

/* Loading state for images */
img {
    background-color: #FFE4E9;
}

/* Prevent layout shift */
#hero-855::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FFF5F7 0%, #FFE4E9 50%, #FFC0CB 100%);
    z-index: 1;
}

/* Responsive for critical path */
@media (max-width: 768px) {
    .cs-nav {
        display: none;
    }
    
    .cs-toggle {
        display: block;
    }
    
    #hero-855 .cs-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .cs-button-box {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    h1.cs-title {
        font-size: 2rem;
    }
    
    .cs-container {
        padding: 0 15px;
    }
    
    #hero-855 {
        padding: 100px 0 60px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Prevent FOUC (Flash of Unstyled Content) */
body {
    visibility: visible;
}

/* Preload critical fonts */
@font-face {
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: local('Oswald SemiBold'), local('Oswald-SemiBold');
}

@font-face {
    font-family: 'Yellowtail';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Yellowtail');
}
