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

:root {
    --primary: #81867b;
    --primary-dark: #5f6853c0;
    --secondary: #10b981;
    --text: #fffefd;
    --text-light: #c2ceb4de;
    --bg: #676d5f;
    --bg-light: #f9fafb;
    --border: #e5e7eb;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--primary);
}

/* Header & Navigation */
header {
    background: var(--bg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.burger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
}

.burger span {
    width: 25px;
    height: 3px;
    background: var(--text);
    transition: all 0.3s;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.menu {
    position: fixed;
    top: 73px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 73px);
    background: var(--bg);
    box-shadow: -2px 0 8px rgba(0,0,0,0.1);
    transition: right 0.3s;
    padding: 2rem;
}

.menu.active {
    right: 0;
}

.menu-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: color 0.3s;
}

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

.language-selector {
    display: flex;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.lang-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.lang-btn.active {
    background: var(--primary);
    color: white;
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.page {
    display: none;
    color: var(--text);
}

.page.active {
    display: block;
}

/* Home Page - Split View */
.split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    min-height: 80vh;
    align-items: stretch;
}

/* Service Card Base */
.service-card {
    position: relative;
    border-radius: 16px;
    padding: 3rem;
    color: white;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;

    /* Background image settings */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Overlay for readability */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45); /* dark overlay */
    z-index: 0;
    transition: background 0.3s ease;
}

/* Optional glow animation you already had */
.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.service-card:hover::after {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.service-card:hover::before {
    background: rgba(0, 0, 0, 0.6);
}

/* Content above overlay */
.service-card * {
    position: relative;
    z-index: 2;
}

/* Icon, Title, Text */
.service-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.service-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 80%;
}

/* Different backgrounds per card */
#tutoringCard {
    background-image: url('tutoring.jpeg');
}

#translationCard {
    background-image: url('translation.jpg');
}

/* Responsive adjustments */
@media (max-width: 800px) {
    .split-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem;
    }

    .service-card {
        height: 300px;
        padding: 2rem;
    }

    .service-card h2 {
        font-size: 1.5rem;
    }

    .service-card p {
        font-size: 1rem;
    }
}


/* Tutoring Page */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.plan-card {
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s;
    background: var(--bg);
}

.plan-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(37,99,235,0.15);
    transform: translateY(-4px);
}

.plan-card.featured {
    border-color: var(--primary);
    position: relative;
}

.featured-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.plan-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.plan-price {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.plan-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.plan-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

.plan-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.plan-btn:hover {
    background: var(--primary-dark);
}

/* Forms */
.form-section {
    background: var(--primary-dark);
    border-radius: 12px;
    padding: 2rem;
    max-width: 600px;
    margin: 2rem auto;
}

.form-section h2 {
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

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

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: var(--primary-dark);
}

.back-btn {
    display: inline-block;
    margin-bottom: 2rem;
    padding: 0.75rem 1.5rem;
    background: var(--text-light);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s;
}

.back-btn:hover {
    background: var(--text);
}

/* About & Contact */
.content-section {
    max-width: 800px;
    margin: 0 auto;
}

.content-section h1 {
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.content-section h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

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

.success-message {
    background: #d1fae5;
    color: #065f46;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
}

.success-message.active {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .split-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        min-height: auto;
    }

    .service-card {
        padding: 2rem;
        min-height: 300px;
    }

    .service-icon {
        font-size: 3rem;
    }

    .plans-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 1rem;
    }

    .form-section {
        padding: 1.5rem;
    }

    nav {
        padding: 1rem;
    }

    .menu {
        width: 100%;
        right: -100%;
    }

    .menu.active {
        right: 0;
    }

}
    /* Footer */
.footer {
    background: #676d5f;
    padding: 40px 0;
    text-align: center;
}

.footer a {
    color:#b89875;
    transition: color 0.3s;
}
