/* ===================================
   The Marble Table - Premium Tutoring
   Color Scheme: Deep Blue with Light Blue accents
   =================================== */

/* CSS Variables */
:root {
    /* Primary Colors - Blue Palette from Design */
    --color-primary: #004e7c;        /* Deep blue - main accent */
    --color-primary-dark: #041e45;   /* Dark navy - footer, dark elements */
    --color-primary-light: #79b6e5;  /* Medium blue - lighter accents */
    
    /* Background Colors */
    --bg-light: #c3e9fe;             /* Light blue - main background */
    --bg-lighter: #d9f0fe;           /* Even lighter blue */
    --bg-white: #ffffff;
    --bg-cream: #e8f4fc;
    
    /* Text Colors */
    --text-dark: #041e45;            /* Dark navy for text */
    --text-medium: #1a4a6e;          /* Medium blue-grey */
    --text-light: #4a7a9e;           /* Lighter text */
    --text-white: #ffffff;
    
    /* Accent Colors */
    --accent-gold: #c4a35a;
    --accent-rose: #d4a5a5;
    --accent-blue: #79b6e5;          /* Medium blue accent */
    
    /* Decorative */
    --floral-overlay: rgba(121, 182, 229, 0.3);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(4, 30, 69, 0.08);
    --shadow-md: 0 4px 12px rgba(4, 30, 69, 0.12);
    --shadow-lg: 0 8px 24px rgba(4, 30, 69, 0.16);
    
    /* Typography */
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Raleway', 'Segoe UI', sans-serif;
    
    /* Spacing */
    --section-padding: 100px;
    --container-max: 1200px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--color-primary-dark);
}

strong {
    font-weight: 600;
    color: var(--text-dark);
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Section Styling */
section {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary-light), var(--color-primary), var(--color-primary-light));
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-medium);
}

.btn-primary {
    background: var(--color-primary);
    color: var(--text-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--text-white);
}

.btn-full {
    width: 100%;
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(195, 233, 254, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-medium);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-dark);
    letter-spacing: 0.02em;
}

.logo:hover {
    color: var(--color-primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-menu a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color var(--transition-fast);
}

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

.nav-cta {
    padding: 10px 20px !important;
    background: var(--color-primary);
    color: var(--text-white) !important;
    border-radius: 4px;
}

.nav-cta:hover {
    background: var(--color-primary-dark);
    color: var(--text-white) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: all var(--transition-fast);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-lighter) 50%, #a8d4f0 100%);
    overflow: hidden;
    padding-top: 72px;
}

.hero-decoration {
    position: absolute;
    width: 400px;
    height: 400px;
    pointer-events: none;
    opacity: 0.4;
}

.hero-decoration-left {
    bottom: 0;
    left: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cdefs%3E%3ClinearGradient id='floral1' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%2379b6e5;stop-opacity:0.6'/%3E%3Cstop offset='100%25' style='stop-color:%23004e7c;stop-opacity:0.3'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='50' cy='350' r='80' fill='url(%23floral1)'/%3E%3Ccircle cx='120' cy='300' r='60' fill='url(%23floral1)'/%3E%3Ccircle cx='180' cy='360' r='50' fill='url(%23floral1)'/%3E%3Ccircle cx='80' cy='280' r='40' fill='url(%23floral1)'/%3E%3Ccircle cx='150' cy='320' r='35' fill='url(%23floral1)'/%3E%3Cpath d='M30 350 Q60 300 90 350 Q120 400 150 350' stroke='%23004e7c' stroke-width='2' fill='none' opacity='0.5'/%3E%3Cpath d='M80 320 Q110 280 140 320' stroke='%23004e7c' stroke-width='2' fill='none' opacity='0.5'/%3E%3C/svg%3E") no-repeat;
    background-size: contain;
}

.hero-decoration-right {
    top: 100px;
    right: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cdefs%3E%3ClinearGradient id='floral2' x1='100%25' y1='0%25' x2='0%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%2379b6e5;stop-opacity:0.5'/%3E%3Cstop offset='100%25' style='stop-color:%23004e7c;stop-opacity:0.2'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='350' cy='50' r='60' fill='url(%23floral2)'/%3E%3Ccircle cx='300' cy='100' r='45' fill='url(%23floral2)'/%3E%3Ccircle cx='360' cy='120' r='35' fill='url(%23floral2)'/%3E%3C/svg%3E") no-repeat;
    background-size: contain;
}

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

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--color-primary);
    color: var(--text-white);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 30px;
    margin-bottom: 24px;
    margin-top: 24px;
}

.hero h1 {
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero h1 .highlight {
    color: var(--color-primary);
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-family: var(--font-serif);
    color: var(--text-medium);
    margin-bottom: 32px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-contact {
    padding: 24px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    display: inline-block;
    backdrop-filter: blur(5px);
}

.hero-contact p {
    margin-bottom: 8px;
    color: var(--text-medium);
}

.phone-number {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-primary);
}

.phone-number:hover {
    color: var(--color-primary-dark);
}

/* ===================================
   About Section
   =================================== */
.about {
    background: var(--bg-white);
}

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

.about-card {
    padding: 40px;
    background: var(--bg-lighter);
    border-radius: 12px;
    text-align: center;
    transition: all var(--transition-medium);
}

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

.about-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.about-card h3 {
    margin-bottom: 16px;
    color: var(--color-primary-dark);
}

.about-card p {
    color: var(--text-medium);
    margin-bottom: 0;
}

/* ===================================
   Services Section
   =================================== */
.services {
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-cream) 100%);
}

.services-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.service-main {
    background: var(--bg-white);
    padding: 48px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.service-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary-light), var(--color-primary));
}

.price-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: var(--color-primary);
    color: var(--text-white);
    padding: 16px;
    border-radius: 8px;
    text-align: center;
}

.price-badge .price {
    display: block;
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1;
}

.price-badge .per {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.9;
}

.service-main h3 {
    margin-bottom: 40px;
    padding-right: 120px;
}

.service-main > p {
    color: var(--text-medium);
    margin-bottom: 24px;
}

.service-features {
    list-style: none;
    margin-bottom: 32px;
}

.service-features li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: var(--text-medium);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 600;
}

.service-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-card {
    background: var(--bg-white);
    padding: 28px;
    border-radius: 12px;
    border-left: 4px solid var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.info-card h4 {
    margin-bottom: 12px;
    color: var(--color-primary-dark);
}

.info-card p {
    color: var(--text-medium);
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* ===================================
   Why Us Section
   =================================== */
.why-us {
    background: var(--bg-white);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.why-card {
    padding: 40px 32px;
    background: linear-gradient(135deg, var(--bg-lighter) 0%, var(--bg-light) 100%);
    border-radius: 12px;
    text-align: center;
    transition: all var(--transition-medium);
    border: 1px solid rgba(0, 78, 124, 0.1);
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-light);
}

.why-stat {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 16px;
    line-height: 1;
}

.why-stat svg {
    stroke: var(--color-primary);
}

.why-card h4 {
    margin-bottom: 12px;
    color: var(--text-dark);
}

.why-card p {
    color: var(--text-medium);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ===================================
   Contact Section
   =================================== */
.contact {
    background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-light) 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-card {
    background: var(--bg-white);
    padding: 28px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.contact-card h4 {
    margin-bottom: 12px;
    color: var(--color-primary-dark);
}

.contact-card p {
    color: var(--text-medium);
    margin-bottom: 8px;
}

.contact-card p:last-child {
    margin-bottom: 0;
}

.contact-phone {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 8px;
}

.contact-phone svg {
    flex-shrink: 0;
}

.contact-phone:hover {
    color: var(--color-primary-dark);
}

/* ===================================
   Forms
   =================================== */
.contact-form-wrapper,
.register-form-wrapper {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.contact-form h4,
.register-form h4 {
    margin-bottom: 24px;
    color: var(--text-dark);
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--bg-lighter);
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(0, 78, 124, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-message {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.form-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
}

.form-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
}

/* ===================================
   Register Section
   =================================== */
.register {
    background: var(--bg-white);
}

.register-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    align-items: start;
}

.register-info h3 {
    margin-bottom: 32px;
    color: var(--text-dark);
}

.register-steps {
    list-style: none;
}

.register-steps li {
    display: flex;
    gap: 20px;
    margin-bottom: 28px;
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: var(--text-white);
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    border-radius: 50%;
}

.register-steps li div strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.register-steps li div p {
    color: var(--text-medium);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--color-primary-dark);
    color: var(--text-white);
    padding: 60px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--text-white);
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 16px;
}

.footer-contact a {
    color: var(--text-white);
    font-size: 1.25rem;
}

.footer-contact a:hover {
    color: var(--accent-blue);
}

.footer-links h4,
.footer-info h4 {
    color: var(--text-white);
    margin-bottom: 20px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-links ul,
.footer-info ul {
    list-style: none;
}

.footer-links li,
.footer-info li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-white);
}

.footer-info li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ===================================
   Modal
   =================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 58, 58, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-white);
    padding: 48px;
    border-radius: 16px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    animation: modalSlideIn 0.3s ease;
}

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

.modal-icon {
    width: 64px;
    height: 64px;
    background: var(--color-primary);
    color: var(--text-white);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 24px;
}

.modal-content h3 {
    margin-bottom: 16px;
}

.modal-content p {
    color: var(--text-medium);
    margin-bottom: 24px;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }
    
    .services-content {
        grid-template-columns: 1fr;
    }
    
    .contact-grid,
    .register-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }
    
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 24px;
        gap: 0;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-medium);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid var(--bg-light);
    }
    
    .nav-cta {
        margin-top: 12px;
        text-align: center;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero {
        text-align: center;
        padding-top: 100px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-contact {
        width: 100%;
    }
    
    .hero-decoration {
        width: 250px;
        height: 250px;
        opacity: 0.3;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .price-badge {
        position: relative;
        top: 0;
        right: 0;
        display: inline-block;
        margin-bottom: 20px;
    }
    
    .service-main h3 {
        padding-right: 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-form-wrapper,
    .register-form-wrapper {
        padding: 28px;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 12px 24px;
        font-size: 0.85rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .about-card,
    .why-card {
        padding: 28px 20px;
    }
    
    .service-main {
        padding: 28px;
    }
    
    .modal-content {
        padding: 32px 24px;
    }
}

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

.hero-badge,
.hero h1,
.hero-subtitle,
.hero-cta,
.hero-contact {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-badge { animation-delay: 0.1s; }
.hero h1 { animation-delay: 0.2s; }
.hero-subtitle { animation-delay: 0.3s; }
.hero-cta { animation-delay: 0.4s; }
.hero-contact { animation-delay: 0.5s; }

/* Scroll animations - handled by JS */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

