/* CSS Variables for Notion-like Sketch Theme */
:root {
    --color-bg: #ffffff;
    --color-bg-secondary: #fafafa;
    --color-text: #191919;
    --color-text-secondary: #6b6b6b;
    --color-text-tertiary: #9b9b9b;
    --color-border: #e0e0e0;
    --color-accent: #000000;
    --color-hover: #f5f5f5;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-sketch: 'Caveat', cursive;
    --border-radius: 6px;
    --transition: all 0.2s ease;
}

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

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* SVG Filters for Sketch Effects */
svg.sketch-filters {
    position: absolute;
    width: 0;
    height: 0;
}

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

/* Navigation - Minimal Notion Style */
.navbar {
    background-color: var(--color-bg);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 700;
    position: relative;
    font-family: var(--font-sketch);
    font-size: 1.75rem;
}

.nav-brand a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: url("data:image/svg+xml,%3Csvg width='100' height='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 1c3-.5 6-.5 9 0s6 .5 9 0 6-.5 9 0 6 .5 9 0 6-.5 9 0 6 .5 9 0 6-.5 9 0 6 .5 9 0 6-.5 9 0 6 .5 9 0 6-.5 9 0' stroke='%23000' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") repeat-x;
    opacity: 0.3;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 4px 0;
}

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

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

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

/* Hero Section - Sketch Style */
.hero {
    padding: 80px 0;
    text-align: center;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.95;
    pointer-events: none;
}

.hero-svg {
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--color-text);
    line-height: 1.1;
    position: relative;
    display: inline-block;
}

.hero h1::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: -10px;
    right: -10px;
    height: 25px;
    background: url("data:image/svg+xml,%3Csvg width='300' height='25' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 20c50-15 100-15 150 0s100 15 150 0' stroke='%23ffd700' fill='none' stroke-width='20' opacity='0.3'/%3E%3C/svg%3E") no-repeat center;
    background-size: 100% 100%;
    z-index: -1;
}

.lead {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--color-text-secondary);
    font-weight: 400;
}

/* Sun Animation */
.sun-animation {
    animation: sun-journey 20s ease-in-out infinite;
    transform-origin: center;
}

@keyframes sun-journey {
    0% {
        transform: translate(-100px, 400px) scale(0.8);
        opacity: 0.08;
    }
    15% {
        opacity: 0.12;
    }
    25% {
        transform: translate(400px, 100px) scale(1);
        opacity: 0.15;
    }
    50% {
        transform: translate(960px, -50px) scale(1.1);
        opacity: 0.18;
    }
    75% {
        transform: translate(1520px, 100px) scale(1);
        opacity: 0.15;
    }
    85% {
        opacity: 0.12;
    }
    100% {
        transform: translate(2020px, 400px) scale(0.8);
        opacity: 0.08;
    }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .sun-animation {
        animation: none;
        transform: translate(960px, 100px);
        opacity: 0.06;
    }
}

/* Buttons - Outline Sketch Style */
.btn {
    display: inline-block;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    position: relative;
    border: 2px solid var(--color-text);
    background: transparent;
    color: var(--color-text);
}

.btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100' height='100' fill='none' stroke='%23000' stroke-width='2' rx='6' ry='6' stroke-dasharray='0' pathLength='100'%3E%3Canimate attributeName='stroke-dasharray' values='0 100;100 0' dur='0.5s' fill='freeze' begin='indefinite'/%3E%3C/rect%3E%3C/svg%3E");
    border-radius: var(--border-radius);
    opacity: 0;
    transition: opacity 0.3s;
}

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

.btn-primary:hover {
    background: var(--color-bg);
    color: var(--color-text);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: var(--color-text);
    color: var(--color-bg);
    transform: translateY(-2px);
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: var(--color-bg-secondary);
    position: relative;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3.5rem;
    color: var(--color-text);
    position: relative;
    display: inline-block;
    width: 100%;
}

.features h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: url("data:image/svg+xml,%3Csvg width='60' height='3' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 1.5c10-1 20-1 30 0s20 1 30 0' stroke='%23000' fill='none' stroke-width='2'/%3E%3C/svg%3E");
}

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

.feature {
    text-align: center;
    padding: 2.5rem 2rem;
    background-color: var(--color-bg);
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--color-border);
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    background: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100%25' height='100%25' fill='none' stroke='%23000' stroke-width='2' rx='6' ry='6' stroke-dasharray='5,5'/%3E%3C/svg%3E");
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.feature:hover {
    transform: translateY(-4px) rotate(-0.5deg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.feature:hover::before {
    opacity: 0.1;
}

.feature h3 {
    color: var(--color-text);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.feature h3::after {
    content: '✨';
    position: absolute;
    top: -10px;
    right: -25px;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.feature:hover h3::after {
    opacity: 0.5;
}

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

/* CTA Section */
.cta {
    background-color: var(--color-bg);
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-text);
    font-weight: 700;
}

.cta p {
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Page Headers */
.page-header {
    background: var(--color-bg-secondary);
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--color-text);
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.page-header h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: -20px;
    right: -20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg width='200' height='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 10c20-5 40-5 60 0s40 5 60 0 40-5 60 0 40 5 60 0' stroke='%23ffd700' fill='none' stroke-width='15' opacity='0.2'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    z-index: -1;
}

/* Content Sections */
.content {
    padding: 60px 0;
    background-color: var(--color-bg);
}

.content h2 {
    color: var(--color-text);
    margin-bottom: 1rem;
    margin-top: 2.5rem;
    font-size: 1.8rem;
    font-weight: 600;
    position: relative;
    padding-left: 20px;
}

.content h2::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-text-tertiary);
}

.content h2:first-child {
    margin-top: 0;
}

.content p {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.content ul {
    margin-left: 2rem;
    margin-top: 1rem;
    color: var(--color-text-secondary);
}

.content li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

/* Classes Grid */
.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.class-card {
    background-color: var(--color-bg);
    padding: 2rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
}

.class-card::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: url("data:image/svg+xml,%3Csvg width='30' height='30' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='15' cy='15' r='12' fill='none' stroke='%23000' stroke-width='1.5' stroke-dasharray='2,3' opacity='0.2'/%3E%3C/svg%3E");
}

.class-card:hover {
    transform: translateY(-4px) rotate(0.5deg);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: var(--color-text);
}

.class-card h3 {
    color: var(--color-text);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.class-card p {
    margin-bottom: 0.5rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-details {
    margin-top: 2rem;
}

.contact-details h3 {
    color: var(--color-text);
    margin-bottom: 1rem;
    margin-top: 2rem;
    font-size: 1.3rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.contact-details h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: url("data:image/svg+xml,%3Csvg width='100' height='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 1c5-.3 10-.3 15 0s10 .3 15 0 10-.3 15 0 10 .3 15 0' stroke='%23000' fill='none' stroke-width='1' opacity='0.3'/%3E%3C/svg%3E") repeat-x;
}

.contact-details h3:first-child {
    margin-top: 0;
}

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

/* Forms */
.contact-form {
    background-color: var(--color-bg-secondary);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: var(--transition);
    background: var(--color-bg);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-text);
    background: var(--color-bg);
}

/* Error Pages */
.error-page {
    padding: 100px 0;
    text-align: center;
    min-height: 60vh;
}

.error-page h1 {
    font-size: 8rem;
    color: var(--color-text);
    margin-bottom: 1rem;
    font-weight: 800;
    position: relative;
    display: inline-block;
    font-family: var(--font-sketch);
}

.error-page h1::after {
    content: '?!';
    position: absolute;
    top: -20px;
    right: -40px;
    font-size: 2rem;
    color: var(--color-text-tertiary);
    transform: rotate(15deg);
}

.error-page h2 {
    font-size: 1.8rem;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
    font-weight: 400;
}

/* Footer */
footer {
    background-color: var(--color-bg);
    color: var(--color-text-secondary);
    text-align: center;
    padding: 3rem 0;
    margin-top: auto;
    border-top: 1px solid var(--color-border);
    font-size: 0.9rem;
}

/* Sketch SVG Background Pattern */
.sketch-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.02;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h1::after {
        height: 20px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .features-grid,
    .classes-grid {
        grid-template-columns: 1fr;
    }
    
    .error-page h1 {
        font-size: 5rem;
    }
}

/* Hand-drawn Animations */
@keyframes sketch-draw {
    0% {
        stroke-dashoffset: 1000;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

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

/* Add subtle hand-drawn elements */
.hand-drawn-circle {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid var(--color-text);
    border-radius: 50%;
    opacity: 0.1;
    animation: float-sketch 6s ease-in-out infinite;
}

.squiggle-underline {
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='3' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 1.5c2-.5 4-.5 6 0s4 .5 6 0 4-.5 6 0 4 .5 6 0' stroke='%23000' fill='none' stroke-width='1.5' opacity='0.5'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: bottom;
    padding-bottom: 3px;
}