:root {
    /* Modern Light Corporate Theme */
    --primary-color: #581c87; /* Deep Purple for DEM Party */
    --primary-light: #7e22ce;
    --secondary-color: #f59e0b; /* Accent Gold/Orange */
    
    --bg-color: #f8fafc;
    --bg-white: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

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

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

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

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

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.text-center { text-align: center; }
.py-5 { padding-top: 5rem; padding-bottom: 5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.text-muted { color: var(--text-muted); }
.text-white { color: #fff; }
.bg-light { background-color: #f1f5f9; }
.bg-white { background-color: var(--bg-white); }
.w-100 { width: 100%; }
.shadow-lg { box-shadow: var(--shadow-lg); }

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: #fff;
}
.btn-primary:hover {
    background-color: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-outline-primary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}
.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-outline-light {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
}
.btn-outline-light:hover {
    background-color: #fff;
    color: var(--primary-color);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    margin-bottom: 3rem;
}
.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}
.subtitle {
    display: block;
    font-family: var(--font-body);
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}
.title-line {
    height: 3px;
    width: 60px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-700 { max-width: 700px; }

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: #fff;
    padding: 8px 0;
    font-size: 0.85rem;
}
.social-icons a {
    color: #fff;
    margin-left: 15px;
    opacity: 0.8;
}
.social-icons a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

/* Navbar */
.main-nav {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    z-index: 1000;
}
.main-nav.sticky {
    position: sticky;
    top: 0;
}
.main-nav.scrolled {
    box-shadow: var(--shadow-md);
    padding: 5px 0;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo img {
    height: 50px;
}
.logo-text h1 {
    font-size: 1.4rem;
    margin: 0;
    font-family: var(--font-heading);
}
.logo-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-weight: 500;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav-links a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}
.btn-nav {
    background-color: var(--primary-color);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 4px;
}
.btn-nav:hover {
    background-color: var(--primary-light);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: #fff;
    padding-top: 2rem;
    overflow: hidden;
}

.announcement-bar {
    display: flex;
    align-items: center;
    background-color: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.announcement-label {
    background-color: var(--secondary-color);
    padding: 8px 20px;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    white-space: nowrap;
}
.marquee-container {
    flex-grow: 1;
    overflow: hidden;
    padding: 0 20px;
    font-size: 0.95rem;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 600px;
    padding: 4rem 20px;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}
.hero-subtitle {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.2);
}
.hero-title {
    color: #fff;
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}
.hero-desc {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-image-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: flex-end;
}
.hero-portrait {
    max-width: 450px;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
    border: 4px solid rgba(255,255,255,0.1);
}
.image-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    top: 20px;
    right: -20px;
    z-index: 1;
}

.hero-shape-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}
.hero-shape-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}
.hero-shape-divider .shape-fill {
    fill: var(--bg-light);
}

/* Grid Layouts */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: -15px;
}
.col-md-5 { width: 41.666667%; padding: 15px; }
.col-md-7 { width: 58.333333%; padding: 15px; }
.col-md-6 { width: 50%; padding: 15px; }
.col-md-4 { width: 33.333333%; padding: 15px; }
.col-12 { width: 100%; padding: 15px; }

/* About Section */
.about-image-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.experience-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--secondary-color);
    color: #fff;
    padding: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    border-top-left-radius: 12px;
}
.experience-badge span {
    font-size: 2rem;
    font-weight: 800;
    display: block;
    line-height: 1;
    margin-bottom: 5px;
}

.about-text-area {
    padding-left: 3rem;
}
.section-title-left h2 {
    font-size: 2.2rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}
.lead-text {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}
.link-arrow {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}
.link-arrow i {
    margin-left: 5px;
    transition: transform 0.3s;
}
.link-arrow:hover i {
    transform: translateX(5px);
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}
.news-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.news-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.news-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.news-card:hover .news-img-wrapper img {
    transform: scale(1.05);
}
.news-category {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: var(--primary-color);
    color: #fff;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}
.news-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.news-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: block;
}
.news-title {
    font-size: 1.15rem;
    margin-bottom: 15px;
    font-family: var(--font-body);
}
.news-title a {
    color: var(--text-main);
}
.news-title a:hover {
    color: var(--primary-color);
}
.read-more-link {
    margin-top: auto;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
}

/* Activities Grid */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.activity-card {
    background: var(--bg-white);
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    color: inherit;
    display: block;
}
.activity-card:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--secondary-color);
    box-shadow: var(--shadow-lg);
    color: inherit;
}
.activity-icon {
    width: 60px;
    height: 60px;
    background: rgba(88, 28, 135, 0.05);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px auto;
    transition: all 0.3s;
}
.activity-card:hover .activity-icon {
    background: var(--primary-color);
    color: #fff;
}
.activity-content h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 10px;
}
.activity-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}
.view-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary-color);
}

/* Contact Section */
.contact-section {
    background: url('../img/huseyinolan_bg.jpg') center/cover fixed;
    position: relative;
}
.contact-section::before {
    content: '';
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: rgba(30, 41, 59, 0.85); /* Dark overlay */
}
.contact-wrapper {
    position: relative;
    z-index: 2;
    border-radius: 12px;
    overflow: hidden;
}
.contact-info-panel {
    background: var(--primary-color);
}
.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}
.contact-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-top: 5px;
}
.contact-item h5 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 5px;
}
.contact-item p {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
}
.modern-form label {
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 8px;
    display: block;
    font-size: 0.9rem;
}
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color 0.3s;
    background-color: #f8fafc;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(88, 28, 135, 0.1);
}

/* Footer */
.site-footer {
    background-color: #0f172a;
    color: #cbd5e1;
    padding-top: 5rem;
}
.footer-col h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: #94a3b8;
}
.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    margin-top: 3rem;
    font-size: 0.9rem;
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background: #fff;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s;
    box-shadow: var(--shadow-lg);
}
.modal-overlay.active .modal-content {
    transform: translateY(0);
}
.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}
.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-family: var(--font-body);
}
.close-modal {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}
.close-modal:hover { color: var(--text-main); }
.modal-body {
    padding: 25px;
    max-height: 60vh;
    overflow-y: auto;
}
.modal-footer {
    padding: 15px 25px;
    border-top: 1px solid var(--border-color);
    background: #f8fafc;
}
.modal-list {
    list-style: none;
}
.modal-list li {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    align-items: flex-start;
}
.modal-list li:last-child { border-bottom: none; }
.modal-list li i { margin-top: 4px; }
.modal-empty-state {
    text-align: center;
    padding: 30px 0;
    color: var(--text-muted);
}
.modal-empty-state i {
    font-size: 3rem;
    color: #e2e8f0;
    margin-bottom: 15px;
}

.spinner {
    width: 40px; height: 40px;
    border: 4px solid rgba(88, 28, 135, 0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 991px) {
    .hero-title { font-size: 3rem; }
    .col-md-5, .col-md-7, .col-md-6, .col-md-4 { width: 100%; }
    .about-text-area { padding-left: 15px; margin-top: 30px; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
        gap: 15px;
    }
    .nav-links.active { display: flex; }
    .mobile-menu-toggle { display: block; }
    
    .hero-container {
        flex-direction: column;
        text-align: center;
        padding-top: 2rem;
    }
    .hero-actions { justify-content: center; }
    .hero-image-wrapper { margin-top: 3rem; }
    
    .top-bar { display: none; }
}
