:root {
    /* Color Palette - Premium & Modern */
    --p-dark: #602e60; /* Deep Eggplant */
    --p-mid: #7b3e7b;
    --p-light: #9a5a9a;
    --accent: #F9B000; /* Sophisticated Gold */
    --accent-hover: #ffbf00;
    --text-main: #2d2d2d;
    --text-muted: #6b7280;
    --white: #ffffff;
    --bg-light: #fdfdfd;
    --bg-soft: #f8fafc;
    --bg-alt: #f1f5f9;
    --glass: rgba(255, 255, 255, 0.85);
    --border: rgba(0, 0, 0, 0.08);
    
    /* Shadows & Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-premium: 0 40px 100px -20px rgba(96, 46, 96, 0.25);
    
    /* Spacing & Borders */
    --radius-sm: 8px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main); /* Standard dark gray */
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--p-dark); /* Default all headings to eggplant */
    margin-bottom: 1rem;
    font-weight: 700;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

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

.section-padding {
    padding: 100px 0;
}

/* Navigation */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    transition: var(--transition);
    padding: 1.5rem 0;
    background: transparent !important; /* Top is transparent */
}

@media (max-width: 768px) {
    #main-header {
        background: transparent !important;
    }
}

#main-header.scrolled {
    background: var(--white) !important;
    padding: 0.75rem 0;
    box-shadow: var(--shadow-md);
}

/* Color handling for different backgrounds */
.accent-bg h1, .accent-bg h2, .accent-bg h3,
.dark-section h1, .dark-section h2, .dark-section h3,
.page-header h1, .page-header h2, .page-header h3,
#hero h1, #hero h2, #hero p {
    color: var(--white) !important;
}

#hero h1 span {
    color: inherit;
    border-bottom: 3px solid var(--accent);
}

.container-nav {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-direction: row !important;
}

@media (min-width: 769px) {
    .container-nav {
        /* Inherits from global but keeping specific min-width rules if needed */
    }

    .nav-links {
        display: flex !important;
        align-items: center !important;
        gap: 3rem !important;
        position: static !important;
        height: auto !important;
        width: auto !important;
        background: transparent !important;
        padding: 0 !important;
        box-shadow: none !important;
        visibility: visible !important;
        opacity: 1 !important;
        right: auto !important;
    }
}

.logo img {
    height: 75px;
    width: auto;
    display: block;
    transition: var(--transition);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 2px;
    background: white;
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.logo a:hover img {
    transform: scale(1.05) rotate(3deg);
    border-color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links ul {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-links a {
    color: var(--white);
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.3px;
    transition: var(--transition);
    padding: 0.5rem 0.2rem;
    position: relative;
}

.nav-links a:not(.btn-cta)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:not(.btn-cta):hover::after {
    width: 100%;
}

#main-header.scrolled .nav-links a {
    color: var(--p-dark);
}

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

.nav-links li {
    position: relative;
}

/* Dropdown Styles */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    width: 200px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(96, 46, 96, 0.15);
    display: none;
    flex-direction: column;
    padding: 0.6rem 0;
    z-index: 1001;
    border: 1px solid rgba(96, 46, 96, 0.08);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.dropdown:hover .dropdown-menu {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

.dropdown-menu li {
    width: 100%;
    margin: 0 !important;
}

.dropdown-menu a {
    color: var(--p-dark) !important;
    padding: 0.6rem 1.2rem !important;
    display: block !important;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    border-radius: 6px;
    margin: 0 0.4rem;
}

.dropdown-menu a:hover {
    background: rgba(96, 46, 96, 0.05) !important;
    color: var(--accent) !important;
    padding-left: 1.5rem !important;
}

.btn-cta {
    background: var(--accent);
    color: var(--p-dark) !important;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--white);
    cursor: pointer;
}

#main-header.scrolled .menu-toggle {
    color: var(--p-dark);
}

/* Base Page Elements */
/* Page Header (Internal Pages) */
.page-header {
    position: relative;
    padding: 180px 0 100px; /* Safe padding for sticky header */
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    color: var(--white);
    text-align: center;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3) !important; /* Subtle dark overlay for contrast */
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
    background: rgba(96, 46, 96, 0.85) !important; /* Glassmorphism card for title */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.page-header h1 {
    font-size: 3.2rem !important;
    font-weight: 800;
    color: var(--white) !important;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.page-header p {
    font-size: 1.2rem !important;
    color: var(--white) !important;
    opacity: 0.95;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--p-dark);
    box-shadow: 0 4px 14px 0 rgba(249, 176, 0, 0.39);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(249, 176, 0, 0.5);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

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

.btn-outline:hover {
    background: var(--p-dark);
    color: var(--white);
}

.btn-lg {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* Page Header (Internal Pages) */
/* Page header duplicates removed and consolidated above */

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.radius-lg {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item {
    padding: 2rem;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-10px);
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.stat-item p {
    font-weight: 600;
}

/* Feature Bullets */
.feature-bullet {
    margin-bottom: 2rem;
    padding-left: 1rem;
    border-left: 3px solid var(--accent);
}

.feature-bullet h4 {
    color: var(--p-dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-bullet i {
    color: var(--accent);
}

/* Long Form Content */
.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.content-wrapper h2 {
    margin: 3rem 0 1.5rem;
    font-size: 2.2rem;
    color: var(--p-dark); /* Force dark color */
}

.content-wrapper p {
    margin-bottom: 2rem;
    color: var(--text-main); /* Force main text color */
}

.content-wrapper [style*="var(--p-dark)"] p,
.content-wrapper [style*="var(--p-dark)"] li {
    color: rgba(255, 255, 255, 0.9) !important;
}

.content-wrapper [style*="var(--p-dark)"] h2,
.content-wrapper [style*="var(--p-dark)"] h3,
.content-wrapper [style*="var(--p-dark)"] h4 {
    color: var(--white) !important;
}

.content-wrapper b {
    color: var(--p-mid);
}

.content-wrapper [style*="var(--p-dark)"] b {
    color: var(--accent) !important;
}

.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.info-card {
    padding: 2.5rem;
    background: var(--bg-soft);
    border-radius: var(--radius-md);
    border-left: 5px solid var(--accent);
    transition: var(--transition);
}

.info-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateX(10px);
}

.info-card h4 {
    margin-bottom: 1rem;
    color: var(--p-dark);
    font-size: 1.3rem;
}

/* Section Banner */
.section-banner {
    background: var(--p-dark);
    color: white;
    padding: 5rem 0;
    margin: 4rem 0;
    text-align: center;
}

.section-banner h3 {
    color: var(--accent);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.c-info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.c-info-item i {
    font-size: 1.5rem;
    color: var(--accent);
    min-width: 30px;
}

.c-info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--p-dark);
}

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

.value-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.value-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

/* Active link color handling */
.nav-links a.active {
    font-weight: 700;
}

#main-header.scrolled .nav-links a.active {
    color: var(--accent) !important;
}

#main-header:not(.scrolled) .nav-links a.active {
    border-bottom: 2px solid var(--accent);
}

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

.announcement-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.announcement-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.announcement-card .date {
    font-size: 0.85rem;
    color: var(--p-light);
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

.announcement-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: var(--p-dark);
}

.announcement-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.loading-spinner {
    text-align: center;
    padding: 3rem;
    grid-column: 1 / -1;
    color: var(--p-light);
    font-weight: 600;
}

/* Hero Section */
#hero {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('ovacik-kampusu/hero-bg.png') center/cover no-repeat;
    color: var(--white);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(96, 46, 96, 0.9) 0%, rgba(123, 62, 123, 0.6) 100%);
}

.hero-container {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-tag {
    display: inline-block;
    background: var(--accent);
    color: var(--p-dark);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: fadeInUp 0.8s ease backwards;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero h1 span {
    color: var(--accent);
    position: relative;
}

.hero h1 span::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 12px;
    background: rgba(249, 176, 0, 0.3);
    z-index: -1;
}

.hero p {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0.7;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--white);
    border-radius: 20px;
    margin: 0 auto 10px;
    position: relative;
}

.mouse::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
    transform: translateX(-50%);
    animation: mouseWheel 1.5s infinite;
}

@keyframes mouseWheel {
    0% { top: 10px; opacity: 1; }
    100% { top: 30px; opacity: 0; }
}

/* Sections Common */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--p-dark);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 5px;
    background: var(--accent);
    border-radius: 5px;
}

.section-header p {
    font-size: 1.35rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Level Cards */
.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
}

.level-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
}

.level-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-premium);
}

.card-img {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--p-dark);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
}

.card-body {
    padding: 2.5rem;
}

.card-body h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--p-dark);
}

.card-body p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.card-features {
    margin-bottom: 2.5rem;
}

.card-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: var(--text-main);
}

.card-features i {
    color: var(--p-light);
}

/* Dark Section - Philosophy */
.dark-section {
    background-color: var(--p-dark);
    color: var(--white);
    position: relative;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.philosophy-text h2 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--white);
}

.philosophy-text h2 span {
    color: var(--accent);
}

.milestones {
    margin-top: 3rem;
}

.milestone-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.m-icon {
    min-width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.milestone-item h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.milestone-item p {
    opacity: 0.7;
}

.floating-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

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

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

.feature-item {
    background: var(--bg-soft);
    padding: 3rem 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.feature-item:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.f-icon {
    font-size: 3rem;
    color: var(--p-dark);
    margin-bottom: 1.5rem;
}

.feature-item h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--p-dark);
}

.feature-item p {
    color: var(--text-muted);
}

/* Form Section */
.accent-bg {
    background: linear-gradient(135deg, var(--p-dark) 0%, var(--p-mid) 100%);
}

.form-card {
    background: var(--white);
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    padding: 5rem;
    box-shadow: var(--shadow-lg);
}

.form-header {
    text-align: center;
    margin-bottom: 3rem;
}

.form-header h2 {
    font-size: 2.5rem;
    color: var(--p-dark);
    margin-bottom: 1rem;
}

.form-header span {
    display: block;
    margin-top: 0.5rem;
    font-weight: 700;
    color: var(--p-light);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--p-light);
    box-shadow: 0 0 0 4px rgba(154, 90, 154, 0.1);
}

.form-consent {
    margin: 2rem 0;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-muted);
}

#successMessage {
    text-align: center;
    padding: 2rem;
}

#successMessage i {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 1.5rem;
}

#successMessage.hidden {
    display: none;
}

/* Contact & Footer */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--p-dark);
}

.contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
}

.contact-info i {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--bg-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--p-dark);
    color: var(--white);
}

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 400px;
    box-shadow: var(--shadow-md);
}

footer {
    background: #1a1a1a;
    color: #888;
    padding: 3rem 0;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
}

/* Float WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    font-weight: 700;
}

.floating-whatsapp:hover {
    transform: scale(1.05);
}

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

/* Mobile Responsive Premium & Aesthetic Fixes */
@media (max-width: 768px) {
    /* Header & Navigation */
    #main-header { padding: 1rem 0; background: rgba(255, 255, 255, 0.98); box-shadow: var(--shadow-sm); z-index: 10000; }
    #main-header:not(.scrolled) { background: rgba(96, 46, 96, 0.95); }
    
    .logo img { height: 50px; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden to the right */
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background: var(--bg-soft) !important;
        flex-direction: column;
        justify-content: flex-start;
        padding: 6rem 2rem 2rem;
        transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        box-shadow: -15px 0 40px rgba(0,0,0,0.15);
        z-index: 10000;
        overflow-y: auto;
    }
    
    .nav-links.active { right: 0; }
    .nav-links ul { flex-direction: column; gap: 0.5rem; text-align: left; width: 100%; align-items: flex-start; }
    .nav-links a:not(.btn) { 
        color: var(--p-dark) !important; 
        font-size: 1.25rem; 
        font-weight: 600; 
        display: block; 
        padding: 0.8rem 0; 
        width: 100%; 
        border-bottom: 1px solid rgba(0,0,0,0.05); 
    }
    
    /* Mobil Menü İçinde Açılır Menü (Dropdown) Estetiği */
    .dropdown { width: 100%; position: static; }
    .dropdown-menu {
        position: static !important;
        display: none !important; /* Kapalı gelsin */
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 0 0 1rem !important;
        margin-top: 0 !important;
        width: 100% !important;
        background: transparent !important;
    }
    .dropdown.active .dropdown-menu { display: block !important; }
    .dropdown:hover .dropdown-menu { display: none !important; } /* Sadece tıklama ile açılsın */
    .dropdown.active:hover .dropdown-menu { display: block !important; }
    .dropdown > a { color: var(--accent) !important; }
    .dropdown-menu li { margin: 0; width: 100%; }
    .dropdown-menu a { padding: 0.6rem 0 !important; font-size: 1.05rem !important; font-weight: 500 !important; color: var(--text-muted) !important; border-bottom: none !important; }
    .dropdown-menu a:hover { color: var(--accent) !important; background: transparent; padding-left: 0.5rem !important; }

    .menu-toggle { display: block !important; position: relative; z-index: 10001; color: var(--p-dark); font-size: 1.8rem; }
    #main-header:not(.scrolled) .menu-toggle { color: var(--white); }

    .btn-cta { width: 100%; text-align: center; margin-top: 2rem; padding: 1rem !important; font-size: 1.1rem; }

    /* Page Header */
    .page-header {
        min-height: 280px !important;
        padding: 140px 0 40px !important;
        background-image: none !important;
        background: linear-gradient(135deg, var(--p-dark) 0%, var(--p-mid) 100%) !important;
    }
    .page-header::before { display: none !important; }
    .page-header h1 { font-size: 2.2rem !important; margin-bottom: 0.5rem; }
    .page-header p { font-size: 1rem !important; opacity: 0.8; }
    .page-header .container {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 1rem !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* Hero Section */
    #hero { padding: 100px 0 60px; min-height: 100svh; }
    .hero h1 { font-size: 2.8rem; margin-bottom: 1rem; }
    .hero p { font-size: 1.1rem; margin-bottom: 2rem; padding: 0; }
    .hero-actions { display: flex; flex-direction: column; width: 100%; gap: 1rem; }
    .hero-actions .btn { width: 100%; padding: 1rem; font-size: 1.1rem; }
    
    .hero-tag { font-size: 0.8rem; padding: 0.3rem 1rem; margin-bottom: 1.5rem; }

    /* Grids to Single Column */
    .about-grid, .stats-grid, .levels-grid, .info-cards-grid, .footer-grid, .form-row, .philosophy-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .about-image { order: -1; margin-bottom: 1rem; }
    .section-padding { padding: 60px 0; }

    /* Text Adjustments */
    .content-wrapper p, p { font-size: 1.05rem; line-height: 1.6; }
    .section-header h2 { font-size: 2.2rem; }
    .section-header p { font-size: 1.1rem; }
    .content-wrapper h2 { font-size: 1.8rem; }

    /* Stats & Info Cards */
    .stat-item { padding: 1.5rem; background: rgba(255,255,255,0.05); border-radius: var(--radius-md); }
    .stat-item h3 { font-size: 2.4rem; }
    .info-card { padding: 1.5rem !important; }
    .reveal[style*="padding: 4rem;"] { padding: 1.5rem !important; }

    /* Level cards */
    .level-card { border-radius: var(--radius-md); margin-bottom: 1rem; }
    .card-img { height: 200px; }
    .card-body { padding: 1.5rem; }
    .card-body h3 { font-size: 1.4rem; margin-bottom: 1rem; }
    .card-features li { font-size: 0.95rem; margin-bottom: 0.5rem; }

    /* Contact forms */
    .form-card { padding: 2.5rem 1.5rem; }
    .form-header h2 { font-size: 2rem; }
    
    /* Footer */
    .footer-links { text-align: center; }
    .footer-brand { text-align: center; display: flex; flex-direction: column; align-items: center; }
    .social-links { justify-content: center; }
    
    /* Reveal animasyonlarının mobilde sarsıntı yapmaması için */
    .reveal { opacity: 1 !important; transform: none !important; visibility: visible !important; }
}

@media (min-width: 769px) and (max-width: 1100px) {
    .nav-links { gap: 1rem; }
    .nav-links ul { gap: 1rem; }
    .nav-links a { font-size: 0.9rem; }
    .hero h1 { font-size: 3.5rem; }
    .philosophy-grid { grid-template-columns: 1fr; gap: 3rem; }
}

/* Modal Styling */
.modal-wrapper {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: var(--white);
    padding: 4rem;
    border-radius: var(--radius-lg);
    max-width: 800px;
    width: 100%;
    position: relative;
    box-shadow: var(--shadow-premium);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--p-dark);
}

.modal-content h2 {
    color: var(--p-dark);
    margin-bottom: 2rem;
}

.modal-content ul {
    margin-top: 2rem;
}

.modal-content li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.modal-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* Mobile Navigation Backdrop & UX Fixes */
.menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.2); /* Lighter semi-transparent gray overlay */
    z-index: 9990; /* Placed below #main-header (z-index 10000) to resolve stacking context bugs */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    /* Color correction for close button so it is visible against light background of nav menu */
    .nav-links.active ~ .menu-toggle {
        color: var(--p-dark) !important;
    }
}
