/* RESET & VARIABLES */
:root {
    /* Rotary Colors */
    --rotary-blue: #005A9C; /* A more distinct bright navy blue often used in rotary */
    --rotary-dark-blue: #17458f;
    --rotary-gold: #F7A81B;
    
    /* Dark Mode Theme */
    --bg-dark: #0a0e17; /* Very dark blue-gray */
    --bg-card: rgba(18, 25, 41, 0.7);
    --text-main: #f0f4f8;
    --text-muted: #9eaab7;
    
    /* Accents */
    --accent-gold-glow: rgba(247, 168, 27, 0.3);
    --accent-blue-glow: rgba(0, 90, 156, 0.2);
    --glass-border: rgba(255, 255, 255, 0.05);

    --font-family: 'Outfit', sans-serif;
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* TYPOGRAPHY */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

.text-gold {
    color: var(--rotary-gold);
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-fast);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 14, 23, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    display: flex;
    gap: 5px;
}
.brand-bilecik { color: var(--text-main); }
.brand-rotary { color: var(--rotary-gold); }

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    position: relative;
    padding-bottom: 5px;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--rotary-gold);
    transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}
.nav-link:hover { color: var(--rotary-gold); }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px; height: 3px;
    background: white;
    transition: var(--transition-fast);
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
    font-family: var(--font-family);
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--rotary-gold);
    color: #000;
    box-shadow: 0 4px 15px var(--accent-gold-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    background-color: #ffb833;
    box-shadow: 0 6px 20px rgba(247, 168, 27, 0.5);
}

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

.btn-secondary:hover {
    background-color: var(--text-main);
    color: var(--bg-dark);
}

/* HERO SECTION */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
}

.hero-img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 20%;
    /* Add a slight zoom animation */
    animation: slowZoom 20s infinite alternate;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(10, 14, 23, 0.95) 0%, rgba(10, 14, 23, 0.7) 40%, rgba(10, 14, 23, 0.3) 100%);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
    width: 100%;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(247, 168, 27, 0.15);
    border: 1px solid rgba(247, 168, 27, 0.3);
    color: var(--rotary-gold);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 20px;
    max-width: 600px;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 550px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

/* SECTIONS COMMON */
.section {
    padding: 100px 0;
    position: relative;
}

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

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

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

/* EVENTS SECTION */
.events-section {
    background: transparent;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.event-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-slow);
    backdrop-filter: blur(10px);
}

.event-card:hover {
    transform: translateY(-10px);
    border-color: rgba(247, 168, 27, 0.3);
    box-shadow: 0 15px 35px var(--accent-blue-glow);
}

.event-img-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.event-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.event-card:hover .event-img-wrap img {
    transform: scale(1.05);
}

.event-date {
    position: absolute;
    top: 20px; right: 20px;
    background: var(--rotary-gold);
    color: #000;
    width: 60px; height: 60px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.event-date .day { font-size: 1.4rem; line-height: 1; }
.event-date .month { font-size: 0.75rem; }

.event-details {
    padding: 30px;
}

.event-category {
    font-size: 0.85rem;
    color: var(--rotary-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 600;
}

.event-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.event-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.event-meta {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.event-meta .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rotary-gold);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--rotary-gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.read-more span {
    transition: transform var(--transition-fast);
}

.read-more:hover span {
    transform: translateX(5px);
}

/* STATS */
.stats-banner {
    display: flex;
    justify-content: space-around;
    background: linear-gradient(135deg, rgba(0,90,156,0.2) 0%, rgba(23,69,143,0.1) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 50px 20px;
    text-align: center;
    backdrop-filter: blur(5px);
}

.stat-num {
    font-size: 3rem;
    font-weight: 800;
    color: var(--rotary-gold);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 500;
}

/* ABOUT SECTION */
.container-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.body-text {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.dummy-text {
    opacity: 0.7;
    font-style: italic;
}

.four-way-test {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid var(--rotary-gold);
    margin: 30px 0;
}

.four-way-test h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.four-way-test ol {
    margin-left: 20px;
    color: var(--text-muted);
}

.four-way-test li {
    margin-bottom: 8px;
}

.glass-panel {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 20px;
    position: relative;
    backdrop-filter: blur(10px);
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: -20px; right: -20px;
    width: 100px; height: 100px;
    background: var(--rotary-gold);
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
    opacity: 0.3;
}

.glass-panel::after {
    content: '';
    position: absolute;
    bottom: -20px; left: -20px;
    width: 150px; height: 150px;
    background: var(--rotary-blue);
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.3;
}

.president-placeholder {
    text-align: center;
}

.avatar-circle {
    width: 140px; height: 140px;
    border-radius: 50%;
    background: #1a2332;
    margin: 0 auto 20px;
    border: 2px solid var(--rotary-gold);
    object-fit: cover;
    object-position: 25% 50%; /* Adjust focus to the left */
    cursor: pointer;
    transition: var(--transition-fast);
}

.avatar-circle:hover {
    box-shadow: 0 0 20px var(--accent-gold-glow);
    transform: scale(1.05);
}

.president-placeholder h3 { margin-bottom: 15px; }
.president-placeholder p { font-style: italic; color: var(--text-muted); margin-bottom: 20px; }
.president-name { display: block; font-weight: bold; color: var(--rotary-gold); }

/* CONTACT SECTION */
.contact-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
}

.contact-info {
    padding: 50px;
    background: rgba(0, 90, 156, 0.1);
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-main);
}

.contact-list .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rotary-gold);
}

.contact-form {
    padding: 50px;
}

.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

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

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: white;
    font-family: inherit;
    transition: var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--rotary-gold);
    background: rgba(255, 255, 255, 0.05);
}

.submit-btn { width: 100%; }

.submit-btn:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

.form-status {
    min-height: 24px;
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.form-status.success {
    color: #7dd3fc;
}

.form-status.error {
    color: #fca5a5;
}

/* FOOTER */
footer {
    background: #05080d;
    padding: 40px 20px;
    border-top: 1px solid var(--glass-border);
}

.footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.footer-center p { color: var(--text-muted); margin-bottom: 20px; }

.social-links {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.social-links a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition-fast);
}

.social-links a:hover { color: var(--rotary-gold); }
.copyright { font-size: 0.85rem; opacity: 0.6; }

/* ANIMATIONS (for Intersection Observer Reveal) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* IMAGE MODAL */
.img-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Dark focus background */
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.img-modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.img-modal-content {
    max-width: 90%;
    max-height: 75vh;
    border-radius: 10px;
    border: 2px solid var(--rotary-gold);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.img-modal-caption {
    margin-top: 15px;
    font-size: 1.2rem;
    color: var(--rotary-gold);
    font-weight: 600;
    text-align: center;
    letter-spacing: 1px;
}

.img-modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.img-modal-close:hover {
    color: var(--rotary-gold);
}

.item-delay-1 { transition-delay: 0.2s; }
.item-delay-2 { transition-delay: 0.4s; }

/* BLOG & ETKINLIK DETAY PAGE */
.blog-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.blog-hero .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.blog-hero .hero-title {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.event-meta-blog {
    display: flex;
    gap: 20px;
    justify-content: center;
    color: #ccc;
    font-size: 1.1rem;
    margin-top: 15px;
}

.event-meta-blog span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.container-blog {
    max-width: 900px; /* Narrower for comfortable reading */
}

.blog-body {
    padding: 60px;
}

.blog-body h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: var(--text-main);
}

.blog-body h3 {
    font-size: 1.5rem;
    margin: 40px 0 15px;
    color: var(--rotary-gold);
}

.blog-image-wrapper {
    margin: 40px 0;
    text-align: center;
}

.blog-inline-img {
    width: 100%;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.img-caption {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

.blog-footer-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .container-split, .contact-box {
        grid-template-columns: 1fr;
    }
    .hero-title { font-size: 3rem; }
    .hero-content { padding-top: 50px; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        flex-direction: column;
        background: var(--bg-dark);
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: 0.4s ease;
    }
    .nav-links.active { left: 0; }
    .nav-links a { font-size: 1.5rem; }
    
    .stats-banner { flex-direction: column; gap: 30px; }
    .hero-title { font-size: 2.3rem; }
    .section { padding: 60px 0; }
}

/* LANGUAGE TOGGLE */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text-main);
    padding: 7px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition-fast);
    backdrop-filter: blur(4px);
}

.lang-toggle:hover {
    background: rgba(247,168,27,0.15);
    border-color: rgba(247,168,27,0.4);
    color: var(--rotary-gold);
}

.lang-flag {
    font-size: 1rem;
    line-height: 1;
}

/* Mobile nav right group */
.nav-right-mobile {
    display: none;
    align-items: center;
    gap: 12px;
}

@media (max-width: 768px) {
    .nav-links .lang-toggle { display: none; }
    .nav-right-mobile { display: flex; }
}
