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

:root {
    --primary: #8B5CF6;
    --secondary: #06B6D4;
    --accent: #F97316;
    --teal: #10B981;
    --bg: #FEFEFE;
    --text: #1F2937;
    --text-light: #6B7280;
    --border: #E5E7EB;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation */
.nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
}

.logo-icon {
    font-size: 2rem;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.btn-primary.large {
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
}

.btn-secondary {
    background: var(--accent);
    color: var(--text);
}

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

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #EDE9FE 0%, #CCFBF1 50%, #FFEDD5 100%);
    padding: 2rem 0 4rem;
    position: relative;
    overflow: hidden;
}

/* GRADIENT OPTIONS FOR OTHER SCHEMES */
/* Scheme 2: background: linear-gradient(135deg, #FDF4FF 0%, #F0F9FF 50%, #FEF3C7 100%); */
/* Scheme 3: background: linear-gradient(135deg, #FFF1F2 0%, #E0E7FF 50%, #D1FAE5 100%); */
/* Scheme 4: background: linear-gradient(135deg, #DBEAFE 0%, #FCE7F3 50%, #FEF3C7 100%); */
/* Scheme 5: background: linear-gradient(135deg, #F3E8FF 0%, #DBEAFE 100%); */

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.hero-note {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Hero Image with Background Animations */
.hero-image {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.background-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.shape {
    position: absolute;
    font-size: 3rem;
    opacity: 0.8;
}

.shape-1 {
    top: 10%;
    left: 15%;
    animation-delay: 0s;
}

.shape-2 {
    top: 25%;
    right: 20%;
    animation-delay: 1s;
}

.shape-3 {
    top: 50%;
    left: 10%;
    animation-delay: 2s;
}

.shape-4 {
    bottom: 25%;
    right: 15%;
    animation-delay: 3s;
}

.shape-5 {
    bottom: 15%;
    left: 25%;
    animation-delay: 4s;
}

.shape-6 {
    top: 35%;
    left: 45%;
    animation-delay: 2.5s;
}

@keyframes floatAndRotate {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(-10px) rotate(-5deg);
    }
    75% {
        transform: translateY(-15px) rotate(3deg);
    }
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 4rem;
}

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

.feature-card {
    background: #F7FAFC;
    padding: 2rem;
    border-radius: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

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

/* Puzzle Types Section */
.puzzle-types {
    padding: 6rem 0;
    background: linear-gradient(135deg, #EDE9FE 0%, #CCFBF1 50%, #FFEDD5 100%);
}

/* GRADIENT OPTIONS FOR OTHER SCHEMES */
/* Scheme 2: background: linear-gradient(135deg, #FDF4FF 0%, #F0F9FF 50%, #FEF3C7 100%); */
/* Scheme 3: background: linear-gradient(135deg, #FFF1F2 0%, #E0E7FF 50%, #D1FAE5 100%); */
/* Scheme 4: background: linear-gradient(135deg, #DBEAFE 0%, #FCE7F3 50%, #FEF3C7 100%); */
/* Scheme 5: background: linear-gradient(135deg, #F3E8FF 0%, #DBEAFE 100%); */

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

.puzzle-type-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.puzzle-type-card:hover {
    transform: scale(1.05);
}

.puzzle-type-visual {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wordsearch { background: #F97316; }
.crossword { background: #10B981; }
.maze { background: #06B6D4; }
.matching { background: #8B5CF6; }

/* PUZZLE TYPE OPTIONS FOR OTHER SCHEMES */
/* Scheme 2: Use #D946EF, #3B82F6, #FBBF24, #10B981 */
/* Scheme 3: Use #F43F5E, #6366F1, #06B6D4, #10B981 */
/* Scheme 4: Use #3B82F6, #EC4899, #FBBF24, #8B5CF6 */
/* Scheme 5: Use #8B5CF6, #6366F1, #3B82F6, #06B6D4 */

.grid-demo {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    font-weight: 700;
    color: var(--text);
}

.grid-demo span {
    width: 20px;
    height: 20px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 0.75rem;
}

.cross-demo {
    position: relative;
    width: 60px;
    height: 60px;
}

.cross-h, .cross-v {
    position: absolute;
    background: white;
    border-radius: 4px;
}

.cross-h {
    width: 60px;
    height: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.cross-v {
    width: 15px;
    height: 60px;
    left: 50%;
    transform: translateX(-50%);
}

.maze-demo {
    width: 60px;
    height: 60px;
    position: relative;
}

.maze-path {
    position: absolute;
    width: 50px;
    height: 50px;
    border: 4px solid white;
    border-right: none;
    border-bottom: none;
    border-radius: 8px 0 0 0;
    top: 5px;
    left: 5px;
}

.match-demo {
    width: 60px;
    height: 60px;
    position: relative;
}

.match-line {
    position: absolute;
    width: 3px;
    height: 40px;
    background: white;
    border-radius: 2px;
    top: 10px;
    left: 15px;
    transform: rotate(30deg);
}

.match-line::before,
.match-line::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
}

.match-line::before {
    top: -5px;
    left: -3.5px;
}

.match-line::after {
    bottom: -5px;
    right: -3.5px;
}

.puzzle-type-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.puzzle-type-card p {
    color: var(--text-light);
}

/* CTA Section */
.cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Blog Preview Section */
.blog-preview {
    background: #f8f9fa;
    padding: 5rem 0;
}

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

.blog-preview-card {
    background: white;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.blog-preview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.blog-preview-emoji {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.blog-preview-card h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.blog-preview-card p {
    color: #888;
    font-size: 0.875rem;
}

/* Footer */
.footer {
    background: #2D3748;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

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

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    line-height: 2;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Print Styles */
@media print {
    nav,
    .nav,
    nav.nav,
    header.nav,
    .footer,
    footer,
    .no-print {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    
    .print-only {
        display: block !important;
    }
    
    body {
        margin: 0;
        padding: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-image {
        height: 300px;
    }
    
    .shape {
        font-size: 2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}
