/* Reset ve Temel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* CSS Variables for Easy Customization */
:root {
    --primary-color: #2c5530;
    --secondary-color: #4a7c59;
    --accent-color: #ff6b35;
    --light-green: #65a572;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

/* Performans İyileştirmeleri */
img {
    loading: lazy;
    max-width: 100%;
    height: auto;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(44, 85, 48, 0.95);
    backdrop-filter: blur(10px);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 60px;
    width: auto;
    border-radius: 5px;
}

/* Navigation */
.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
    padding: 0.5rem;
}

.nav-links a:hover {
    color: #a8d8a8;
}

/* Mobile Menu Button */
.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.mobile-menu.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(44, 85, 48, 0.7), rgba(74, 124, 89, 0.7)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><linearGradient id="skyGradient" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" style="stop-color:%234a90e2"/><stop offset="100%" style="stop-color:%2387ceeb"/></linearGradient></defs><rect width="1200" height="600" fill="url(%23skyGradient)"/><polygon points="0,300 200,250 400,280 600,240 800,260 1000,220 1200,240 1200,600 0,600" fill="%232c5530"/><polygon points="100,350 300,320 500,340 700,310 900,330 1100,300 1200,310 1200,600 0,600" fill="%234a7c59"/><circle cx="200" cy="200" r="80" fill="%2365a572"/><circle cx="300" cy="180" r="60" fill="%2365a572"/><circle cx="500" cy="220" r="70" fill="%2365a572"/><circle cx="800" cy="190" r="90" fill="%2365a572"/><circle cx="1000" cy="210" r="75" fill="%2365a572"/></svg>');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 70px;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.cta-button {
    background: var(--accent-color);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    animation: fadeInUp 1s ease-out 0.6s both;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.cta-button:hover {
    background: #e55a2b;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

/* Section Styles */
.section {
    padding: 60px 1rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--primary-color);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 20px auto;
    border-radius: 2px;
}

/* Grid Layouts - Responsive */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: center;
}

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

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.about-text {
    font-size: 1.2rem;
    line-height: 1.8;
}

.about-image {
    background: linear-gradient(135deg, var(--secondary-color), var(--light-green));
    height: 350px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    box-shadow: var(--shadow);
}

/* Leader Section */
.leader-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.leader-image {
    text-align: center;
}

.leader-image img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.leader-image img:hover {
    transform: scale(1.05);
}

.leader-content h3 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.leader-content h4 {
    font-size: 1.4rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    font-weight: 600;
}

.leader-info {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--accent-color);
}

.leader-info p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.leader-info p:last-child {
    margin-bottom: 0;
}

.leader-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.leader-description p {
    margin-bottom: 1.5rem;
}

.achievements-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.achievements-list li {
    background: white;
    padding: 1rem;
    margin-bottom: 0.8rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border-left: 3px solid var(--secondary-color);
    transition: var(--transition);
}

.achievements-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

.contact-leader {
    background: linear-gradient(135deg, var(--secondary-color), var(--light-green));
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1.5rem;
}

.contact-leader h4 {
    color: white !important;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.contact-leader p {
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.contact-leader p:last-child {
    margin-bottom: 0;
}

/* Announcements Section */
.announcements {
    background: linear-gradient(135deg, #fff5f5, #ffe6e6);
}

.announcement-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border-left: 5px solid var(--accent-color);
    transition: var(--transition);
}

.announcement-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.announcement-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.announcement-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color), #ff8c42);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-right: 1.5rem;
}

.announcement-meta h3 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.announcement-date {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.announcement-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.announcement-content h4 {
    color: var(--primary-color);
    margin: 1.5rem 0 1rem 0;
    font-size: 1.2rem;
}

.announcement-content ul {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.announcement-content li {
    background: var(--bg-light);
    padding: 0.8rem 1.2rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    border-left: 3px solid var(--secondary-color);
    display: flex;
    align-items: center;
}

.announcement-content li::before {
    content: "📄";
    margin-right: 10px;
    font-size: 1.1rem;
}

.announcement-important {
    background: linear-gradient(135deg, var(--accent-color), #ff8c42);
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    margin: 1.5rem 0;
    text-align: center;
}

.announcement-important strong {
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    transition: left 0.3s;
}

.service-card:hover::before {
    left: 0;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color), var(--light-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.service-card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* E-Discovery Section */
.e-discovery {
    background: linear-gradient(135deg, var(--bg-light), #e9ecef);
    position: relative;
}

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

.e-discovery-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.e-discovery-features {
    list-style: none;
    padding: 0;
}

.e-discovery-features li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-check {
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    flex-shrink: 0;
}

/* Interactive Service Section */
.interactive-service {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.interactive-service h2 {
    color: white;
}

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

.interactive-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.interactive-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.interactive-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 107, 53, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.8rem;
}

.interactive-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.interactive-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.interactive-button {
    background: var(--accent-color);
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
}

.interactive-button:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

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

.feature-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-color), #ff8c42);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.8rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Gallery Optimized with Thumbnails */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    box-shadow: var(--shadow);
    transition: var(--transition);
    background: #f0f0f0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s, filter 0.3s;
    filter: blur(0);
}

.gallery-item img.loading {
    filter: blur(5px);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    pointer-events: none;
}

.gallery-overlay span {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-hover);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.gallery-item:hover .gallery-overlay span {
    opacity: 1;
    transform: translateY(0);
}

/* Modal Styles with Loading */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image-container {
    position: relative;
    width: 100%;
    height: 80vh;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-image.loaded {
    opacity: 1;
}

.modal-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.modal-close,
.modal-nav {
    position: absolute;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.modal-close {
    top: 20px;
    right: 20px;
}

.modal-close:hover,
.modal-nav:hover {
    background: rgba(255, 107, 53, 0.8);
    transform: scale(1.1);
}

.modal-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.modal-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.modal-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, var(--bg-light), #e9ecef);
}

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

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--accent-color), #ff8c42);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 1rem;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem 1rem;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Navigation Mobile */
    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(44, 85, 48, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        box-shadow: 0 5px 20px rgba(0,0,0,0.3);
        backdrop-filter: blur(10px);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 1rem;
        border-radius: 8px;
        transition: background 0.3s;
    }

    .nav-links a:hover {
        background: rgba(255,255,255,0.1);
    }

    .mobile-menu {
        display: flex;
    }

    /* Grid Adjustments */
    .leader-container {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .leader-image {
        text-align: center;
    }

    .services-grid,
    .interactive-grid {
        grid-template-columns: 1fr;
    }

    /* Typography Mobile */
    .section {
        padding: 40px 1rem;
    }

    .section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    /* Modal Mobile */
    .modal-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .modal-prev {
        left: 10px;
    }

    .modal-next {
        right: 10px;
    }

    /* Cards Mobile */
    .service-card,
    .interactive-card {
        padding: 1.5rem;
    }

    /* Remove horizontal scroll */
    .about-grid,
    .contact-grid,
    .e-discovery-grid {
        grid-template-columns: 1fr;
    }

    .announcement-header {
        flex-direction: column;
        text-align: center;
    }

    .announcement-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .announcement-card {
        padding: 2rem;
    }
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* Performance Optimizations */
.lazy-bg {
    background-image: none !important;
}

/* Reduce animations on low-end devices */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cta-button,
    .gallery-modal {
        display: none !important;
    }
}