/**
 * Ana Stil Dosyası
 * Aykut Zorlu Portfolio Web Sitesi
 */

/* ========================
   CSS Variables
   ======================== */
:root {
    /* Renk Paleti */
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary: #0f172a;
    --accent: #f59e0b;
    --accent-light: #fbbf24;

    /* Arka Plan */
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-dark: #0f172a;
    --bg-gradient: linear-gradient(135deg, #1e40af 0%, #7c3aed 50%, #2563eb 100%);

    /* Metin */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --text-white: #ffffff;

    /* Diğer */
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

/* ========================
   Reset & Base
   ======================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

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

/* ========================
   Header
   ======================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 18px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--bg-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 16px;
}

.logo-text {
    color: var(--text-primary);
}

/* Navigation */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-item>a {
    display: block;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-item>a:hover {
    background: var(--bg-body);
    color: var(--primary);
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    display: block;
    padding: 10px 14px;
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 14px;
}

.dropdown li a:hover,
.dropdown li a.active {
    background: var(--bg-body);
    color: var(--primary);
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* ========================
   Banner
   ======================== */
.banner {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 72px;
    overflow: hidden;
}

.banner-bg {
    position: absolute;
    inset: 0;
    background: var(--bg-gradient);
    z-index: -1;
}

.banner-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><path d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/></g></g></svg>');
    animation: pattern-move 30s linear infinite;
}

@keyframes pattern-move {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(60px, 60px);
    }
}

.banner-content {
    text-align: center;
    color: white;
    padding: 60px 20px;
}

.banner-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.banner-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.9;
    font-weight: 500;
}

.banner-decoration {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.banner-decoration span {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: bounce 1.5s ease-in-out infinite;
}

.banner-decoration span:nth-child(2) {
    animation-delay: 0.2s;
}

.banner-decoration span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }

    50% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* ========================
   Section Styles
   ======================== */
.projects {
    padding: 80px 0;
}

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

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ========================
   Projects Grid
   ======================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.project-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.project-image {
    position: relative;
    height: 280px;
    /* Daha büyük resim alanı */
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.15);
    /* Daha belirgin zoom efekti */
}

.project-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-btn {
    background: white;
    color: var(--primary);
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    transform: translateY(20px);
    transition: transform 0.4s ease, background 0.3s ease, color 0.3s ease;
}

.project-card:hover .project-btn {
    transform: translateY(0);
}

.project-btn:hover {
    background: var(--primary);
    color: white;
}

.project-content {
    padding: 24px;
}

.project-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.project-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

.project-link:hover {
    gap: 12px;
}

/* ========================
   Empty State
   ======================== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: var(--radius-lg);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ========================
   Footer
   ======================== */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo .logo-icon {
    margin-bottom: 16px;
}

.footer-logo p {
    color: var(--text-light);
    max-width: 300px;
}

.footer-links h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: var(--text-light);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-light);
    font-size: 14px;
}

/* ========================
   Breadcrumb
   ======================== */
.breadcrumb {
    background: white;
    padding: 16px 0;
    margin-top: 72px;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span {
    color: var(--text-light);
}

.breadcrumb .current {
    color: var(--text-primary);
    font-weight: 500;
}

/* ========================
   Project Detail Page
   ======================== */
.project-detail {
    padding: 60px 0;
}

.project-hero {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
}

.project-hero-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.project-hero-placeholder {
    height: 300px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

.project-info {
    max-width: 800px;
    margin: 0 auto;
}

.project-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.project-external-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    margin-bottom: 32px;
}

.project-external-link:hover {
    background: var(--primary-dark);
}

.project-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.project-gallery {
    margin-bottom: 40px;
}

.project-gallery h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

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

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.project-meta {
    display: flex;
    gap: 24px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 32px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
}

.back-link:hover {
    gap: 12px;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--radius);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: white;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================
   Class/PDF Page
   ======================== */
.class-content {
    padding: 60px 0;
}

.page-header {
    text-align: center;
    margin-bottom: 48px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.weeks-container {
    max-width: 800px;
    margin: 0 auto;
}

.week-section {
    margin-bottom: 32px;
}

.week-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.week-number {
    width: 48px;
    height: 48px;
    background: var(--bg-gradient);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.week-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.pdf-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pdf-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.pdf-item:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}

.pdf-icon {
    width: 40px;
    height: 40px;
    background: #fee2e2;
    color: #ef4444;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    font-size: 20px;
}

.pdf-info {
    flex: 1;
}

.pdf-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.pdf-meta {
    font-size: 13px;
    color: var(--text-secondary);
}

.pdf-download {
    width: 36px;
    height: 36px;
    background: var(--bg-body);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.pdf-item:hover .pdf-download {
    background: var(--primary);
    color: white;
}

/* Mobile Navigation Fixes */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    .header {
        height: 60px;
        background: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 9999 !important;
        /* Always on top */
        position: fixed !important;
    }

    .header .container {
        height: 100%;
        padding: 0 15px;
    }

    .nav-toggle {
        display: flex;
        margin-left: auto;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
        z-index: 9998 !important;
        /* Just below header, above everything else */
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        border-top: 1px solid #eee;
    }

    .nav-menu.active {
        display: flex !important;
    }

    .nav-item {
        width: 100%;
        text-align: center;
        margin: 0;
    }

    .nav-item>a {
        display: block;
        color: #1e293b;
        font-weight: 600;
        padding: 15px;
        background: #f8fafc;
        border-radius: 8px;
        border: 1px solid #e2e8f0;
    }

    .nav-item>a:hover,
    .nav-item>a.active {
        background: var(--primary);
        color: white;
        border-color: var(--primary);
    }

    /* Mobile Dropdown */
    .has-dropdown .dropdown {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 0;
        background: transparent;
        margin-top: 10px;
        display: none;
    }

    .has-dropdown:hover .dropdown,
    .has-dropdown.active .dropdown {
        display: block;
    }

    .dropdown li a {
        padding: 10px;
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    /* ========================
       Mobile Banner - Küçültülmüş
       ======================== */
    .banner {
        min-height: 200px;
        /* Mobilde daha küçük */
        margin-top: 60px;
        z-index: 1;
    }

    .banner-content {
        padding: 30px 15px;
    }

    .banner-title {
        font-size: 1.75rem;
        /* Mobilde daha küçük yazı */
        margin-bottom: 8px;
    }

    .banner-subtitle {
        font-size: 0.9rem;
    }

    .banner-decoration {
        margin-top: 20px;
    }

    .banner-decoration span {
        width: 6px;
        height: 6px;
    }

    /* ========================
       Mobile Projects Grid
       ======================== */
    .projects {
        padding: 40px 0;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        /* Tek sütun */
        gap: 20px;
    }

    .project-image {
        height: 200px;
        /* Mobilde daha küçük resim */
    }

    .project-content {
        padding: 16px;
    }

    .project-title {
        font-size: 1rem;
    }

    .project-desc {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }

    /* ========================
       Mobile Section Headers
       ======================== */
    .section-header {
        margin-bottom: 24px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    /* ========================
       Mobile Footer
       ======================== */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.pdf-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.pdf-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
}

.pdf-icon {
    color: #ef4444;
    flex-shrink: 0;
}

.pdf-info {
    flex: 1;
}

.pdf-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.pdf-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

.pdf-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 14px;
    flex-shrink: 0;
}

.pdf-download:hover {
    background: var(--primary-dark);
}

/* ========================
   Search Box
   ======================== */
.nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-box {
    position: relative;
}

.search-toggle {
    background: var(--bg-body);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.search-toggle:hover {
    background: var(--primary);
    color: white;
}

.search-form {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    background: white;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    width: 0;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.search-form.active {
    width: 280px;
    opacity: 1;
    visibility: visible;
}

.search-form input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    outline: none;
    min-width: 0;
}

.search-form button {
    background: var(--primary);
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-form button:hover {
    background: var(--primary-dark);
}

/* Search Results Header */
.search-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding: 20px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.search-results-header h2 {
    font-size: 1.25rem;
    color: var(--text-primary);
}

.clear-search {
    color: var(--primary);
    font-weight: 500;
}

.clear-search:hover {
    text-decoration: underline;
}

/* ========================
   Like Button
   ======================== */
.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 2px solid var(--border-color);
    padding: 8px 14px;
    border-radius: 30px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.like-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
}

.like-btn.liked {
    background: #fef2f2;
    border-color: #ef4444;
    color: #ef4444;
}

.like-btn.liked svg {
    fill: #ef4444;
}

.like-btn.shake {
    animation: shake 0.5s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* ========================
   Project Date
   ======================== */
.project-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
}

/* ========================
   Banner with Image
   ======================== */
.banner[style*="background-image"] {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.banner[style*="background-image"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.banner[style*="background-image"] .container {
    position: relative;
    z-index: 1;
}

/* ========================
   No Banner Mode
   ======================== */
.projects.no-banner {
    margin-top: 72px;
    padding-top: 60px;
}

/* ========================
   Responsive Design
   ======================== */
@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .search-form.active {
        width: 220px;
    }
}

@media (max-width: 768px) {

    /* Mobile Navigation */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 0;
        transform: translateX(100%);
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

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

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

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

    .nav-item>a {
        width: 100%;
        padding: 14px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0 0 0 20px;
        display: none;
    }

    .has-dropdown.open .dropdown {
        display: block;
    }

    /* Other Mobile Styles */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .banner-title {
        font-size: 2rem;
    }

    .project-detail-title {
        font-size: 1.75rem;
    }

    .pdf-item {
        flex-wrap: wrap;
    }

    .pdf-download {
        width: 100%;
        justify-content: center;
        margin-top: 12px;
    }

    /* Mobile Search */
    .search-form {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        transform: none;
        border-radius: 0;
        width: 100% !important;
    }

    .search-form.active {
        width: 100%;
    }

    .search-results-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .search-results-header h2 {
        font-size: 1rem;
    }

    .project-footer {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}