/* ========================================
   FESTIVAL WEBSITE STYLES
   ======================================== */

/* ========================================
   CSS VARIABLES & ROOT SETTINGS
   ======================================== */
:root {
    /* Primary Colors - Deep Ocean Blues */
    --primary-color: #1a365d; /* Deep festival blue */
    --primary-color-dark: #153450; /* Darker blue */
    --primary-color-light: #2d5a87; /* Lighter blue */

    /* Secondary Colors - Elegant Silver */
    --secondary-color: #c0c0c0; /* Elegant silver */
    --secondary-color-dark: #a8a8a8; /* Darker silver */
    --secondary-color-light: #e8e8e8; /* Lighter silver */

    /* Accent Colors - Subtle Blue Tones */
    --accent-color: #4a90e2; /* Soft blue accent */
    --accent-color-dark: #357abd; /* Darker blue */
    --accent-color-light: #6bb6ff; /* Lighter blue */

    /* Text Colors */
    --text-color: #2d3748; /* Rich dark gray */
    --light-text-color: #f7fafc; /* Clean white */
    --muted-text-color: #718096; /* Muted gray */
    --dark-color: #2d3748; /* Alias for text-color */
    --white: #ffffff; /* White color */

    /* Background Colors */
    --dark-background: #1a202c; /* Deep dark background */
    --light-background: #f8fafc; /* Clean light background */
    --card-background: #ffffff; /* Pure white for cards */

    /* Festival Gradient Colors */
    --gradient-primary: linear-gradient(135deg, #1a365d 0%, #2d5a87 100%);
    --gradient-secondary: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    --gradient-accent: linear-gradient(135deg, #4a90e2 0%, #6bb6ff 100%);
    --gradient-festival: linear-gradient(135deg, #1a365d 0%, #4a90e2 50%, #c0c0c0 100%);

    --font-family: 'Montserrat', sans-serif;
    --transition-speed: 0.3s ease-in-out;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-background);
    overflow-x: hidden; /* Yatay kaydırmayı engelle */
    opacity: 1; /* Ensure body is always visible */
    animation: pageLoad 1s ease-out 0.5s both;
}

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

/* Hero content vertical layout - only for mini-fest page */
.mini-fest-hero .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.mini-fest-hero .hero-content h1 {
    order: 1;
    margin-bottom: 20px;
}

.mini-fest-hero .hero-content p {
    order: 2;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 400px;
}

.register-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

/* Ensure buttons are always visible */
.hero-buttons,
.register-buttons,
.hero-buttons .btn,
.register-buttons .btn {
    opacity: 1;
    visibility: visible;
    display: block;
}

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

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

ul {
    list-style: none;
}

/* ========================================
    BUTTON COMPONENTS
    ======================================== */
.btn {
    display: block !important; /* Force block display for vertical stacking */
    align-items: center;
    justify-content: center;
    padding: 16px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1em;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    min-height: 48px; /* Minimum touch target size */
    min-width: 48px;
    width: 100% !important; /* Full width for better mobile experience */
    max-width: 300px; /* Maximum width for consistency */
    margin: 8px auto !important; /* Center the buttons */
    box-sizing: border-box;
    float: none !important;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn i {
    margin-left: 12px;
    font-size: 0.9em;
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(5px);
}

.primary-btn {
    background: var(--gradient-primary);
    color: var(--light-text-color);
    box-shadow: 0 8px 20px rgba(26, 54, 93, 0.3);
    border: none;
}

.primary-btn:hover {
    background: var(--gradient-accent);
    box-shadow: 0 12px 25px rgba(26, 54, 93, 0.4);
    transform: translateY(-2px);
}

.secondary-btn {
    background: var(--gradient-secondary);
    color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(192, 192, 192, 0.3);
    border: none;
}

.secondary-btn:hover {
    background: var(--gradient-primary);
    color: var(--light-text-color);
    box-shadow: 0 12px 25px rgba(26, 54, 93, 0.4);
    transform: translateY(-2px);
}

/* ========================================
   SECTION LAYOUTS & TITLES
   ======================================== */
.section {
    padding: 100px 0; /* Increased padding for better spacing */
    scroll-margin-top: 360px; /* Increased to match larger nav height */
}
@media (max-width: 768px) {
    .section {
        padding: 80px 0; /* Increased mobile padding */
        scroll-margin-top: 240px; /* Increased for mobile nav height */
    }
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: var(--gradient-festival);
    animation: sectionLineReveal 2s ease-out 0.5s both;
}

.section-title {
    text-align: center;
    font-size: 3.5em;
    margin-bottom: 30px; /* Increased margin */
    color: var(--primary-color);
    position: relative;
    font-weight: 900;
    opacity: 0;
    transform: translateY(50px);
    animation: sectionTitleReveal 1s ease-out 0.3s both;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translateX(-50%) scaleX(0);
    width: 100px;
    height: 6px;
    background: var(--gradient-festival);
    border-radius: 3px;
    animation: sectionUnderlineReveal 0.8s ease-out 0.8s both;
}

@keyframes sectionLineReveal {
    from { left: -100%; }
    to { left: 100%; }
}

@keyframes sectionTitleReveal {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sectionUnderlineReveal {
    from { transform: translateX(-50%) scaleX(0); }
    to { transform: translateX(-50%) scaleX(1); }
}

.section-description {
    font-size: 1.3em;
    color: var(--text-color);
    max-width: 800px;
    margin: 20px auto 80px auto; /* Increased bottom margin */
    font-weight: 400;
    text-align: center;

}

/* ========================================
   HERO SECTION & HEADER
   ======================================== */
.hero {
    background: linear-gradient(135deg,
        rgba(26, 54, 93, 0.85) 0%,
        rgba(74, 144, 226, 0.75) 50%,
        rgba(26, 54, 93, 0.85) 100%),
        url('https://images.unsplash.com/photo-1517486804677-160a0a996f2a?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w0NTMzNXwwfDF8cmFuZG9tfHx8fHx8fHwxNzAzMjg2MzA8fA&ixlib=rb-4.0.3&q=80&w=1920') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    color: var(--light-text-color);
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: heroBackgroundShift 20s ease-in-out infinite;
    z-index: 1;
}

/* Header arkaplanına ek efekt */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center,
        rgba(192, 192, 192, 0.1) 0%,
        rgba(74, 144, 226, 0.15) 30%,
        rgba(26, 54, 93, 0.5) 70%,
        rgba(26, 32, 44, 0.9) 100%);
    opacity: 0.9;
    z-index: 0;
    animation: gradientShift 5s ease-in-out infinite alternate;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
        transparent 20%,
        rgba(192, 192, 192, 0.05) 40%,
        rgba(74, 144, 226, 0.04) 60%,
        transparent 80%),
        rgba(26, 54, 93, 0.05);
    animation: shimmer 8s ease-in-out infinite;
    z-index: 1;
}

@keyframes gradientShift {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-2%, -2%) rotate(1deg); }
    100% { transform: translate(2%, 2%) rotate(-1deg); }
}

@keyframes heroBackgroundShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}


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

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px; /* Increased height for better logo accommodation */
    padding: 10px 40px 10px 220px;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 500;
    background: rgba(26, 54, 93, 0.8);
    overflow: visible; /* Allow logo to extend beyond nav height */
}

nav.scrolled {
    background: rgba(26, 54, 93, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 2px 10px rgba(26, 54, 93, 0.3);
    border-bottom: 1px solid rgba(192, 192, 192, 0.2);
    padding: 5px 40px 5px 220px;
    height: 90px; /* Increased height when scrolled */
    transform: translateY(0);
}

nav .logo {
    position: relative;
    z-index: 100;
}

nav .logo img {
    height: 200px; /* Increased logo size for desktop */
    width: auto; /* Orantılı genişlik */
    position: absolute;
    top: 50%;
    left: 0px;
    transform: translateY(-50%); /* Center vertically in nav */
    filter: drop-shadow(2px 2px 5px rgba(0,0,0,0.3));
    z-index: 100;
}

/* Eğer navigasyon kaydırıldığında logo boyutu değişsin isterseniz */
nav.scrolled .logo img {
    height: 150px; /* Increased PNG logo size for scrolled nav */
    top: 50%;
    transform: translateY(-50%);
}

nav .nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

nav .nav-links li {
    margin: 0;
}

nav .nav-links li a {
    color: var(--white);
    font-weight: 500;
    font-size: 0.95em;
    padding: 8px 16px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 25px;
    text-decoration: none;
    display: block;
    overflow: hidden;
}

nav .nav-links li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-festival);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 25px;
}

nav .nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 1px;
}

nav .nav-links li a:hover::before {
    opacity: 0.3;
}

nav .nav-links li a:hover::after {
    width: 80%;
}

nav .nav-links li a:hover {
    color: #ffffff;
    transform: translateY(-2px);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    font-weight: 600;
}

nav .nav-links li a:not(:hover) {
    color: var(--white);
}

.hero-content {
    margin-top: 140px; /* Increased margin for larger nav height */
    animation: heroContentFadeIn 1.5s ease-out 0.5s both;
}

.hero-content h1 {
    font-size: 5em;
    margin-bottom: 25px;
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
    color: var(--light-text-color);
    animation: heroTitleSlide 1.2s ease-out 0.8s both;
}

.hero-content p {
    font-size: 1.6em;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    opacity: 0.9;
    animation: heroSubtitleSlide 1.2s ease-out 1.2s both;
}

@keyframes heroContentFadeIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroTitleSlide {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes heroSubtitleSlide {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 0.9;
        transform: translateX(0);
    }
}

@keyframes textShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ========================================
   NAVIGATION & MOBILE MENU
   ======================================== */
.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 35px;
    height: 30px;
    z-index: 200;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.burger:hover {
    background: rgba(203, 178, 106, 0.2);
    transform: scale(1.05);
}

.burger div {
    width: 25px;
    height: 3px;
    background: linear-gradient(90deg, var(--white), var(--secondary-color));
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
    background: #ffffff;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(26, 54, 93, 0.02) 50%, 
        transparent 70%);
    pointer-events: none;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 100px; /* Increased gap for better spacing */
    align-items: center;
    text-align: left;
    position: relative;
    z-index: 2;
}

.about-text p {
    margin-bottom: 25px;
    font-size: 1.15em;
    line-height: 1.8;
    color: var(--text-color);
    opacity: 0;
    transform: translateX(-50px);
    animation: aboutTextReveal 0.8s ease-out 0.3s both;
}

.about-text p:nth-child(1) { animation-delay: 0.4s; }
.about-text p:nth-child(2) { animation-delay: 0.5s; }
.about-text p:nth-child(3) { animation-delay: 0.6s; }
.about-text p:nth-child(4) { animation-delay: 0.7s; }

.about-image {
    min-height: 500px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(26, 54, 93, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateX(50px);
    animation: aboutImageReveal 0.8s ease-out 0.5s both;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.1) 0%, rgba(74, 144, 226, 0.1) 100%);
}

.about-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(26, 54, 93, 0.2);
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(26, 54, 93, 0.1) 0%, 
        rgba(74, 144, 226, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-image:hover::before {
    opacity: 1;
}

.about-image:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(26, 54, 93, 0.2);
}

@keyframes aboutTextReveal {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes aboutImageReveal {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   PROGRAM SECTION
   ======================================== */
.program {
    background-color: var(--light-background);
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 45px; /* Increased gap for better spacing */
}

.program-card {
    background: var(--card-background);
    padding: 50px 40px; /* Increased padding */
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(26, 54, 93, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    border-top: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
    animation: cardReveal 0.8s ease-out both;
    margin-bottom: 20px; /* Added margin between cards */
}

.program-card:nth-child(1) { animation-delay: 0.1s; }
.program-card:nth-child(2) { animation-delay: 0.2s; }
.program-card:nth-child(3) { animation-delay: 0.3s; }
.program-card:nth-child(4) { animation-delay: 0.4s; }
.program-card:nth-child(5) { animation-delay: 0.5s; }
.program-card:nth-child(6) { animation-delay: 0.6s; }

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(192, 192, 192, 0.1), transparent);
    transition: left 0.6s ease;
}

.program-card:hover::before {
    left: 100%;
}

.program-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(26, 54, 93, 0.2);
    border-top-color: var(--accent-color);
}

@keyframes cardReveal {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.program-card .icon {
    font-size: 3.5em;
    color: var(--accent-color);
    margin-bottom: 25px;
    display: block;
    text-align: center;
    transition: all 0.3s ease;
}
.program-card:hover .icon {
    transform: scale(1.1);
    color: var(--primary-color);
}

.program-card h3 {
    font-size: 2em;
    margin-bottom: 15px;
    color: var(--dark-color);
    font-weight: 700;
}

.program-card p {
    font-size: 1.1em;
    color: var(--text-color);
}

.centered-text {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px auto; /* Increased bottom margin */
    font-size: 1.2em;
    color: var(--text-color);
    font-weight: 400;

}

/* ========================================
   SPEAKERS SECTION
   ======================================== */
.speakers {
    background-color: var(--white);
}

.speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px; /* Increased gap for better spacing */
}

.speaker-card {
    background: var(--card-background);
    padding: 45px 35px; /* Increased padding */
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(26, 54, 93, 0.1);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    animation: speakerCardReveal 0.8s ease-out both;
    margin-bottom: 30px; /* Added margin between cards */
    cursor: default;
}

.speaker-card:nth-child(1) { animation-delay: 0.1s; }
.speaker-card:nth-child(2) { animation-delay: 0.2s; }
.speaker-card:nth-child(3) { animation-delay: 0.3s; }
.speaker-card:nth-child(4) { animation-delay: 0.4s; }

.speaker-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 54, 93, 0.05);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
    pointer-events: none;
}

.speaker-card:hover::before {
    opacity: 1;
}

.speaker-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(26, 54, 93, 0.2);
}

@keyframes speakerCardReveal {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.speaker-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 0 6px rgba(26, 54, 93, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.speaker-card:hover img {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 8px rgba(74, 144, 226, 0.2);
    transform: scale(1.05) rotate(3deg);
}

.speaker-card h3 {
    font-size: 1.8em;
    margin-bottom: 8px;
    color: var(--dark-color);
    font-weight: 700;
}

.speaker-card p {
    font-size: 1.1em;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.speaker-card .social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    position: relative;
    z-index: 5;
}

.speaker-card .social-icons a {
    color: var(--text-color);
    font-size: 1.6em;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(26, 54, 93, 0.1);
    transition: all var(--transition-speed);
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer !important;
    position: relative;
    z-index: 10;
    user-select: none;
}

.speaker-card .social-icons a:hover {
    color: var(--primary-color);
    background: rgba(26, 54, 93, 0.2);
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(26, 54, 93, 0.3);
}

/* ========================================
   GALLERY SECTION
   ======================================== */
.gallery {
    background-color: var(--light-background);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px; /* Increased gap between gallery items */
}

.gallery-grid img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: zoom-in;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
    animation: galleryImageReveal 0.8s ease-out both;
}

.gallery-grid img:nth-child(1) { animation-delay: 0.1s; }
.gallery-grid img:nth-child(2) { animation-delay: 0.2s; }
.gallery-grid img:nth-child(3) { animation-delay: 0.3s; }
.gallery-grid img:nth-child(4) { animation-delay: 0.4s; }
.gallery-grid img:nth-child(5) { animation-delay: 0.5s; }
.gallery-grid img:nth-child(6) { animation-delay: 0.6s; }

.gallery-grid img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 58, 90, 0.3), rgba(203, 178, 106, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-grid img:hover::before {
    opacity: 1;
}

.gallery-grid img:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 25px 50px rgba(44, 58, 90, 0.3);
}

@keyframes galleryImageReveal {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
    background-color: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    text-align: left;
    align-items: flex-start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    font-family: var(--font-family);
    font-size: 1.1em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(44, 58, 90, 0.2);
    outline: none;
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 1);
}

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

.contact-form .btn {
    align-self: flex-start;
    font-size: 1.1em;
}

/* Form Feedback States */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.btn-loading .btn-text {
    display: none;
}

.btn-loading .btn-loading {
    display: inline-block !important;
}

.form-message {
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 600;
    text-align: center;
    margin-top: 15px;
    animation: messageSlideIn 0.3s ease-out;
}

.form-message.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
    box-shadow: 0 4px 15px rgba(21, 87, 36, 0.1);
}

.form-message.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
    box-shadow: 0 4px 15px rgba(114, 28, 36, 0.1);
}

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

.contact-info {
    background: var(--gradient-primary);
    color: var(--light-text-color);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(26, 54, 93, 0.3);
    border: 1px solid rgba(192, 192, 192, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.contact-info h3 {
    font-size: 2em;
    margin-bottom: 25px;
    color: var(--secondary-color); /* Aksan rengi (logodaki sarımsı gölge) */
    font-weight: 700;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    line-height: 1.6;
    color: var(--light-text-color); /* P etiketleri de krem rengi olsun */
}

.contact-info p i {
    margin-right: 15px;
    color: var(--secondary-color); /* İkonlar aksan rengi olsun */
    font-size: 1.3em;
    width: 25px;
}

.contact-info .social-icon {
    background: rgba(var(--light-text-color-rgb), 0.1); /* Krem renginden şeffaf bir arka plan */
    color: var(--light-text-color); /* İkon rengi krem */
    font-size: 2em;
    width: 45px;
    height:45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left: 0;
    margin-right: auto;
    transition: all 0.3s ease;
    /* ... diğer stiller ... */
}

.contact-info .social-icon:hover {
    background: var(--secondary-color); /* Hover'da aksan rengi */
    color: var(--primary-color); /* Hover'da koyu mavi ikon */
}


/* ========================================
   FOOTER
   ======================================== */
footer {
    background: var(--gradient-primary);
    color: var(--light-text-color);
    padding: 40px 0;
    text-align: center;
    font-size: 0.95em;
    border-top: 2px solid rgba(192, 192, 192, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

/* ========================================
   ANIMATIONS & KEYFRAMES
   ======================================== */
.burger.toggle .line1 {
    transform: rotate(-45deg) translate(-6px, 7px);
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}
.burger.toggle .line2 {
    opacity: 0;
    transform: scaleX(0);
}
.burger.toggle .line3 {
    transform: rotate(45deg) translate(-6px, -7px);
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.burger.toggle {
    background: rgba(203, 178, 106, 0.3);
    transform: scale(1.1);
}

/* Nav Link Animasyonu */
@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}


/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    /* Navigation Mobile */
    .burger {
        display: flex;
    }
    
    nav .nav-links {
        position: fixed;
        right: -100%;
        top: 90px; /* Start below increased nav bar */
        height: calc(100vh - 90px); /* Fill remaining screen height */
        width: 100%;
        background: linear-gradient(135deg,
            rgba(44, 58, 90, 0.98) 0%,
            rgba(30, 43, 64, 0.98) 50%,
            rgba(44, 58, 90, 0.98) 100%);
        backdrop-filter: blur(25px) saturate(180%);
        -webkit-backdrop-filter: blur(25px) saturate(180%);
        flex-direction: column;
        justify-content: flex-start; /* Start from top instead of center */
        align-items: center;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 150;
        border-left: 2px solid transparent;
        border-image: linear-gradient(180deg,
            transparent,
            rgba(203, 178, 106, 0.5),
            transparent) 1;
        box-shadow:
            -10px 0 30px rgba(44, 58, 90, 0.3),
            inset 1px 0 0 rgba(255, 255, 255, 0.1);
        gap: 20px;
        padding: 40px 0; /* Add padding for better spacing */
        overflow-y: auto; /* Allow scrolling if needed */
    }
    
    nav .nav-links.active {
        right: 0;
    }
    
    nav .nav-links li {
        margin: 0;
        opacity: 0;
        transform: translateX(50px);
        animation: mobileNavLinkReveal 0.5s ease-out both;
    }
    
    nav .nav-links li:nth-child(1) { animation-delay: 0.1s; }
    nav .nav-links li:nth-child(2) { animation-delay: 0.2s; }
    nav .nav-links li:nth-child(3) { animation-delay: 0.3s; }
    nav .nav-links li:nth-child(4) { animation-delay: 0.4s; }
    nav .nav-links li:nth-child(5) { animation-delay: 0.5s; }
    nav .nav-links li:nth-child(6) { animation-delay: 0.6s; }
    
    nav .nav-links li a {
        font-size: 1.4em; /* Smaller, more appropriate size */
        padding: 15px 30px; /* Better touch target size */
        margin: 8px 0; /* Space between items */
        background: rgba(255, 255, 255, 0.05);
        border-radius: 25px; /* Less rounded for better touch */
        border: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        transition: all 0.3s ease;
        min-width: 200px; /* Consistent width */
        text-align: center; /* Center text */
        display: block;
    }
    
    nav .nav-links li a:hover {
        background: rgba(203, 178, 106, 0.2);
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(203, 178, 106, 0.3);
    }
    
    @keyframes mobileNavLinkReveal {
        from {
            opacity: 0;
            transform: translateX(50px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    /* Logo mobile */
    nav {
        height: 90px; /* Increased nav height for mobile */
        padding: 10px 20px 10px 170px;
    }

    nav .logo img {
        height: 150px; /* Increased mobile logo size for better visibility */
        top: 50%;
        left: 0px;
        transform: translateY(-50%);
    }

    nav.scrolled .logo img {
        height: 140px; /* Increased when scrolled on mobile for better visibility */
        top: 50%;
        transform: translateY(-50%);
    }
    
    /* Hero Section Mobile */
    .hero-content {
        margin-top: 120px; /* Increased margin for mobile */
    }
    
    .hero-content h1 {
        font-size: 2.8em;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 1.1em;
        margin-bottom: 40px;
    }
    
    /* Section Titles Mobile */
    .section-title {
        font-size: 2.2em;
    }
    
    .section-description {
        font-size: 1em;
        margin: 15px auto 40px auto;
    }
    
    /* About Section Mobile */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .about-text p {
        font-size: 1em;
    }
    
    .about-image {
        min-height: 300px;
    }

    .about-image img {
        max-width: 90%;
        max-height: 90%;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(26, 54, 93, 0.15);
    }
    
    /* Program Section Mobile */
    .program-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .program-card {
        padding: 30px 20px;
    }
    
    .program-card h3 {
        font-size: 1.6em;
    }
    
    .program-card p {
        font-size: 1em;
    }
    
    /* Speakers Section Mobile */
    .speakers-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
    }
    
    .speaker-card {
        padding: 25px 20px;
    }

    .speaker-card img {
        width: 120px;
        height: 120px;
    }

    .speaker-card h3 {
        font-size: 1.5em;
    }

    .speaker-card .social-icons a {
        width: 40px;
        height: 40px;
        font-size: 1.4em;
    }
    
    /* Gallery Section Mobile */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-grid img {
        height: 250px;
    }
    
    /* Contact Section Mobile */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form .btn {
        width: 100%;
        font-size: 1.1em; /* Larger text for better readability */
    }

    /* Better mobile navigation close button */
    .burger {
        width: 40px;
        height: 35px;
        padding: 10px;
    }

    /* Improve mobile scrolling experience */
    body {
        -webkit-overflow-scrolling: touch;
    }

    /* Better mobile font sizes */
    .section-title {
        line-height: 1.2; /* Better line height for mobile */
    }
    
    .contact-info {
        padding: 30px 20px;
    }
    
    .contact-info h3 {
        font-size: 1.8em;
    }
    
    
    /* Container Mobile */
    .container {
        padding: 0 20px;
    }
    
    /* Section Padding Mobile */
    .section {
        padding: 60px 0;
    }

    /* Better mobile spacing for cards and sections */
    .program-card, .speaker-card {
        margin-bottom: 30px;
    }

    /* Improve form elements for mobile */
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 18px 20px; /* Better touch targets */
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2em;
    }
    
    .hero-content p {
        font-size: 1em;
    }
    
    .section-title {
        font-size: 1.8em;
    }
    
    .program-card {
        padding: 25px 15px;
    }
    
    .speaker-card {
        padding: 20px 15px;
    }

    .speaker-card img {
        width: 100px;
        height: 100px;
    }

    .speaker-card .social-icons a {
        width: 35px;
        height: 35px;
        font-size: 1.2em;
    }
    
    .contact-info {
        padding: 25px 15px;
    }
    
    nav {
        height: 80px; /* Increased nav height for extra small screens */
        padding: 8px 15px 8px 120px;
    }

    nav .logo img {
        height: 100px; /* Increased logo size for extra small screens */
        top: 50%;
        left: 0px;
        transform: translateY(-50%);
    }

    nav.scrolled .logo img {
        height: 90px; /* Increased when scrolled on extra small screens */
        top: 50%;
        transform: translateY(-50%);
    }

    .about-image img {
        max-width: 95%;
        max-height: 95%;
        border-radius: 8px;
        box-shadow: 0 3px 10px rgba(26, 54, 93, 0.1);
    }
}
