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

body {
    font-family: 'Fredoka', sans-serif;
    background-color: #FFF5E6;
    color: #2D3436;
    line-height: 1.6;
    min-height: 100vh;
}

/* Header Styles */
.site-header {
    background: linear-gradient(135deg, #FFF5E6 0%, #FFE8CC 100%);
    padding: 2rem 0;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.15);
    position: relative;
    z-index: 100;
    border-bottom: 3px solid #FF6B35;
    min-height: 200px;
    display: flex;
    align-items: center;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    height: 170px;
    width: auto;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

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

.logo {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
    padding: 0 !important;
    margin: 0 auto !important;
}

.header-nav {
    display: flex !important;
    gap: 1rem !important;
    align-items: center !important;
    position: absolute !important;
    bottom: 2rem !important;
    right: 2rem !important;
    z-index: 5 !important;
}

.nav-button {
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.nav-button:hover::before {
    left: 100%;
}

.start-tracing {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
    color: white;
    border: 2px solid #FF6B35;
}

.start-tracing:hover {
    background: linear-gradient(135deg, #E55A2B 0%, #FF6B35 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.parent-dashboard {
    background: linear-gradient(135deg, #4ECDC4 0%, #6EE7DF 100%);
    color: white;
    border: 2px solid #4ECDC4;
}

.parent-dashboard:hover {
    background: linear-gradient(135deg, #45B7AA 0%, #4ECDC4 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
}

/* Header decorative elements */
.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF6B35, #4ECDC4, #FFD93D, #FF6B35);
    background-size: 200% 100%;
    animation: gradient-shift 3s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding-top: 4rem;
}

/* Hero Section */
.hero-section {
    padding: 4rem 0;
    position: relative;
    background-color: #FFF5E6;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, #FFD93D 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, #FFD93D 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, #FFD93D 0%, transparent 50%);
    opacity: 0.3;
    pointer-events: none;
}

/* Decorative stars */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 15% 25%, #FFD93D 2px, transparent 2px),
        radial-gradient(circle at 85% 15%, #FFD93D 3px, transparent 3px),
        radial-gradient(circle at 25% 75%, #FFD93D 2px, transparent 2px),
        radial-gradient(circle at 75% 85%, #FFD93D 4px, transparent 4px),
        radial-gradient(circle at 45% 45%, #FFD93D 2px, transparent 2px);
    opacity: 0.6;
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #2D3436;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-tagline {
    font-size: 1.1rem;
    font-weight: 400;
    color: #FF6B35;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2D3436;
    margin-bottom: 1rem;
    line-height: 1.4;
    max-width: 600px;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #2D3436;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.hero-cta {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
}

.hero-cta.primary {
    background-color: #FF6B35;
    color: white;
    min-width: 200px;
}

.hero-cta.primary:hover {
    background-color: #E55A2B;
    transform: translateY(-2px);
}

.hero-cta.secondary {
    background-color: #FFF5E6;
    color: #2D3436;
    border: 2px solid #2D3436;
    min-width: 150px;
}

.hero-cta.secondary:hover {
    background-color: #2D3436;
    color: white;
    transform: translateY(-2px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-scribbles {
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
    animation: float 3s ease-in-out infinite;
}

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

/* Features Section */
.features-section {
    padding: 4rem 0;
    background-color: #FFF5E6;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2D3436;
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: #2D3436;
    text-align: center;
    margin-bottom: 3rem;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Dry-Erase Section */
.dry-erase-section {
    padding: 4rem 0;
    background-color: #FFF5E6;
}

.dry-erase-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.dry-erase-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.dry-erase-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 2px solid #D4A574;
}

.dry-erase-card:hover {
    transform: translateY(-5px);
}

.dry-erase-card img {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 10px;
}

.dry-erase-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2D3436;
}

.footer-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #2D3436;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* Footer */
.site-footer {
    background: white;
    padding: 2rem 0;
    margin-top: 4rem;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #2D3436;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #FF6B6B;
}

.separator {
    margin: 0 1rem;
    color: #ccc;
}

.footer-copyright {
    color: #666;
    font-size: 0.9rem;
}

/* Responsive Design */

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
    .site-header {
        padding: 2.5rem 0;
        min-height: 180px;
    }
    
    .logo-img {
        height: 110px;
    }
    
    .header-nav {
        gap: 0.8rem !important;
        bottom: 0.8rem !important;
        right: 1.5rem !important;
    }
    
    .nav-button {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-buttons {
        align-items: center;
    }
    
    .hero-scribbles {
        max-width: 350px;
    }
    
    .feature-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .dry-erase-cards {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
    .site-header {
        padding: 1.5rem 0;
        min-height: auto;
    }
    
    .header-container {
        padding: 0 1rem;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .logo {
        margin: 0 auto !important;
    }
    
    .logo-img {
        height: 80px;
    }
    
    .header-nav {
        position: static !important;
        gap: 0.8rem !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
    
    .nav-button {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-scribbles {
        max-width: 300px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.2rem;
    }
    
    .feature-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem 1rem;
    }
    
    .dry-erase-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .separator {
        display: none;
    }
}

/* Very small screens (< 400px) */
@media (max-width: 399px) {
    .logo-img {
        height: 70px;
    }
    
    .header-nav {
        gap: 0.5rem !important;
    }
    
    .nav-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}