/* =========================================
   MTDT - Marmara Türk Devletleri Teşkilatı
   Gençlik Forumu | Ana Stil Dosyası
   ========================================= */

:root {
    --bg-color: #091a2a;
    --bg-darker: #040e18;
    --accent-color: #14b8a6;
    --secondary-color: #0f766e;
    --text-color: #f0fdfa;
    --text-muted: rgba(240, 253, 250, 0.6);
    --card-bg: rgba(20, 184, 166, 0.03);
    --glass-bg: rgba(20, 184, 166, 0.05);
    --border-color: rgba(20, 184, 166, 0.15);
    --success-color: #00ff7f;
    --danger-color: #ff5f5f;
    --warning-color: #f39c12;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    background: radial-gradient(circle at top center, var(--bg-color) 0%, var(--bg-darker) 100%);
    min-height: 100vh;
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    -webkit-overflow-scrolling: touch;
    line-height: 1.6;
}

/* Grain Effect */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image: url('data:image/svg+xml,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)"/></svg>');
}

/* Seljuk Background */
#seljuk-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -2;
    pointer-events: none;
}

.seljuk-pattern-overlay {
    position: absolute;
    width: 100%; height: 100%;
    opacity: 0.1;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l5 18h18l-15 11 6 18-14-10-14 10 6-18-15-11h18z' fill='%2314b8a6' fill-opacity='0.4' fill-rule='evenodd'/%3E%3C/svg%3E");
    mask-image: radial-gradient(circle, black, transparent 70%);
    animation: patternMove 60s linear infinite;
}

@keyframes patternMove {
    0% { background-position: 0 0; }
    100% { background-position: 600px 600px; }
}

/* Corner Logos */
.corner-logos {
    position: fixed;
    top: 20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 100;
    pointer-events: none;
}

.corner-logo {
    height: 60px;
    width: auto;
    opacity: 0.8;
    filter: drop-shadow(0 0 10px rgba(20, 184, 166, 0.3));
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    z-index: 1000;
    background: rgba(9, 26, 42, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    padding: 8px 5%;
    background: rgba(4, 14, 24, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem; /* Reduced from 1.5rem */
    font-weight: 900;
    color: var(--text-color);
    text-decoration: none;
    cursor: pointer;
}

.logo-img {
    width: 38px; /* Reduced from 45px */
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
}

.logo span {
    color: var(--accent-color);
}

.nav-center {
    display: flex;
    gap: 25px; /* Reduced from 30px */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-center a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem; /* Reduced from 0.9rem */
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-center a:hover, .nav-center a.active {
    color: var(--accent-color);
}

.nav-center a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-center a:hover::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--accent-color);
    cursor: pointer;
    z-index: 1001;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(4, 14, 24, 0.98);
    backdrop-filter: blur(25px);
    z-index: 2000;
    transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 80px 40px;
    border-left: 1px solid var(--border-color);
}

.mobile-menu.active {
    right: 0;
}

.close-menu {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 1.5rem;
    color: var(--accent-color);
    cursor: pointer;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.mobile-nav-links a:hover {
    color: var(--accent-color);
    padding-left: 10px;
}

/* Buttons */
.btn-glitch {
    display: inline-block;
    padding: 10px 25px; /* Reduced padding */
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem; /* Reduced font size */
    font-weight: 700;
    color: var(--accent-color);
    background: transparent;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-glitch::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--accent-color);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
}

.btn-glitch:hover {
    color: var(--bg-color);
    box-shadow: 0 5px 20px rgba(20, 184, 166, 0.3);
}

.btn-glitch:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Sections */
.section {
    padding: 100px 5% 60px; /* Reduced from 120/80 */
    position: relative;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 40px;
    text-align: center;
    background: linear-gradient(to right, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Cinzel', serif;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 5% 80px;
    position: relative;
}

.hero-visual {
    margin-bottom: 30px;
    animation: heroFloat 4s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

.rotating-star {
    width: 130px;
    height: 130px;
    animation: rotate 20s linear infinite;
    filter: drop-shadow(0 0 30px rgba(20, 184, 166, 0.4));
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.rotating-star:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 50px rgba(20, 184, 166, 0.6));
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-main-title {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
    font-family: 'Cinzel', serif;
}

.hero-main-title span {
    color: var(--accent-color);
    display: block;
    margin-top: 10px;
}

.hero-sub {
    font-size: clamp(0.9rem, 2vw, 1.3rem);
    color: var(--text-muted);
    font-family: 'Playfair Display', serif;
    font-style: italic;
    margin-bottom: 40px;
}

/* Grid & Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.glass-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(20, 184, 166, 0.2);
}

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

/* Committees Detailed */
.committees-grid-detailed {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.committee-card-detailed {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: grid;
    grid-template-columns: 280px 1fr;
    align-items: stretch;
    min-height: 250px;
}

@media (max-width: 768px) {
    .committee-card-detailed {
        grid-template-columns: 100px 1fr;
    }
}

.committee-card-detailed:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 15px rgba(20, 184, 166, 0.2);
}

.committee-header {
    background: rgba(20, 184, 166, 0.08);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 15px;
    border-right: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .committee-header {
        padding: 15px;
    }
    .committee-header h3 {
        font-size: 0.8rem;
    }
    .committee-header i {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

.committee-header i {
    width: 50px;
    height: 50px;
    background: rgba(20, 184, 166, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--accent-color);
    font-size: 1.4rem;
    box-shadow: 0 0 15px rgba(20, 184, 166, 0.1);
}

.committee-header h3 {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.3;
    font-family: 'Cinzel', serif;
}

.committee-content {
    padding: 30px 40px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    align-items: start;
}

@media (max-width: 768px) {
    .committee-content {
        padding: 15px;
        gap: 15px;
    }
}

.committee-topics-box h4, .committee-divan-box h4 {
    color: var(--accent-color);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-weight: 700;
}

.topics-list {
    list-style: none;
    margin-bottom: 25px;
}

.topics-list li {
    padding: 10px 0;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255,255,255,0.03);
    position: relative;
    padding-left: 25px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: default;
}

.topics-list li:hover {
    color: var(--accent-color);
    padding-left: 30px;
    text-shadow: 0 0 10px rgba(20, 184, 166, 0.4);
}

.topics-list li::before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 0.7rem;
    top: 14px;
    transition: all 0.3s ease;
}

.topics-list li:hover::before {
    left: 5px;
    color: #fff;
    filter: drop-shadow(0 0 5px var(--accent-color));
}

.divan-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

@media (max-width: 480px) {
    .divan-grid {
        grid-template-columns: 1fr;
    }
}

.divan-member {
    background: rgba(255, 255, 255, 0.02);
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.divan-member:hover {
    background: rgba(20, 184, 166, 0.05);
    border-color: rgba(20, 184, 166, 0.2);
}

.member-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    font-weight: 700;
}

.member-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-color);
}

.member-name:empty::after {
    content: '-';
    color: var(--text-muted);
}

/* Team & Officials */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.team-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.reveal.active .team-card, .reveal.active .partner-item {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Delays */
.reveal.active .team-card:nth-child(1), .reveal.active .partner-item:nth-child(1) { transition-delay: 0.1s; }
.reveal.active .team-card:nth-child(2), .reveal.active .partner-item:nth-child(2) { transition-delay: 0.2s; }
.reveal.active .team-card:nth-child(3), .reveal.active .partner-item:nth-child(3) { transition-delay: 0.3s; }
.reveal.active .team-card:nth-child(4), .reveal.active .partner-item:nth-child(4) { transition-delay: 0.4s; }
.reveal.active .team-card:nth-child(5), .reveal.active .partner-item:nth-child(5) { transition-delay: 0.5s; }
.reveal.active .team-card:nth-child(6), .reveal.active .partner-item:nth-child(6) { transition-delay: 0.6s; }
.reveal.active .team-card:nth-child(n+7), .reveal.active .partner-item:nth-child(n+7) { transition-delay: 0.7s; }

.team-card:hover {
    transform: translateY(-15px) scale(1.03);
    border-color: var(--accent-color);
    background: rgba(20, 184, 166, 0.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(20, 184, 166, 0.1);
}

.member-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.4rem;
    color: white;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
}

.team-card:hover .member-img {
    transform: rotateY(360deg);
    box-shadow: 0 0 25px var(--accent-color);
}

.team-card h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.member-role {
    font-size: 0.75rem;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Partners */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.partner-item {
    background: var(--card-bg);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    animation: partnerFloat 6s ease-in-out infinite;
    opacity: 0;
    transform: translateY(30px);
}

.partner-item:nth-child(even) {
    animation-delay: -3s;
}

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

.partner-item:hover {
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    background: rgba(20, 184, 166, 0.08);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(20, 184, 166, 0.2);
    animation-play-state: paused;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-left.active, .reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Pulse Glow */
.pulse-glow {
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(20, 184, 166, 0); }
    100% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0); }
}
/* Contact Section */
.contact-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: start;
}

.contact-info-card {
    padding: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.info-item i {
    width: 45px;
    height: 45px;
    background: rgba(20, 184, 166, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--accent-color);
    font-size: 1.2rem;
}

.info-text h4 {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 3px;
}

.info-text p {
    color: var(--text-muted);
    font-size: 1rem;
}

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

.form-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 15px;
    color: white;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(20, 184, 166, 0.05);
    box-shadow: 0 0 15px rgba(20, 184, 166, 0.15);
}

textarea.form-control {
    resize: none;
    min-height: 120px;
}

@media (max-width: 1024px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 1024px) {
    .nav-center { display: none; }
    .menu-toggle { display: block; }
    .navbar { padding: 12px 5%; }
}

@media (max-width: 768px) {
    .section { padding: 80px 15px 40px; }
    .hero { padding: 100px 15px 60px; }
    .grid { grid-template-columns: 1fr; }
}
