/* =========================================
   1. FONTS & CONFIG
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Renk Paleti (Ortak) */
    --primary-color: #212842;
    --accent-color: #3b82f6;
    --text-dark: #1e293b;
    --text-medium: #475569;
    --text-light: #94a3b8;
    --bg-white: #ffffff;
    --bg-soft: #f8fafc;
    --neon-blue: #00d2ff;

    /* Gradientler (Yenilikçi) */
    --gradient-purple: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --gradient-pink: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
    --gradient-cyan: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --gradient-orange: linear-gradient(135deg, #f97316 0%, #f59e0b 100%);

    /* Materials Sayfasına Özel */
    --card-bg-dark: #212842;
    --text-on-card: #ffffff;

    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Animasyonlar */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* =========================================
   2. NAVBAR & MODAL (ORTAK)
   ========================================= */
.navbar {
    background-color: var(--primary-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.navbar__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar__brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar__logo img {
    width: 50px;
    height: 50px;
    background: var(--bg-white);
    border-radius: 35%;
    padding: 2px;
    object-fit: contain;
}

.navbar__text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    color: var(--bg-white);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
}

.brand-slogan {
    color: #94a3b8;
    font-size: 0.8rem;
}

.navbar__menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #cbd5e1;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--bg-white);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
}

.btn-primary {
    background-color: var(--bg-white);
    color: var(--primary-color);
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: #e2e8f0;
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--bg-white);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    transform: translateY(-150%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 999;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-link {
    color: var(--bg-white);
    font-size: 1.1rem;
    font-weight: 500;
}

@media (max-width: 768px) {

    .navbar__menu,
    .navbar__action {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

/* Contact Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-wide-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    background: var(--bg-white);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.open .modal-wide-wrapper {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-split-container {
    display: flex;
    min-height: 550px;
}

.modal-left-side {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-white);
}

.form-header {
    margin-bottom: 35px;
}

.mini-tag {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--accent-color);
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.form-header h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.1;
}

.form-header p {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.6;
}

.aesthetic-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.input-wrapper {
    position: relative;
    height: 50px;
    margin-top: 10px;
}

.input-wrapper:has(textarea) {
    height: auto;
}

.aesthetic-form input,
.aesthetic-form textarea {
    width: 100%;
    padding: 10px 0;
    font-size: 1rem;
    color: var(--text-dark);
    border: none;
    border-bottom: 1px solid #e2e8f0;
    background: transparent;
    outline: none;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.aesthetic-form textarea {
    resize: none;
    min-height: 60px;
}

.aesthetic-form label {
    position: absolute;
    top: 10px;
    left: 0;
    color: #94a3b8;
    font-size: 1rem;
    pointer-events: none;
    transition: 0.3s ease;
}

.aesthetic-form input:focus~label,
.aesthetic-form input:not(:placeholder-shown)~label,
.aesthetic-form textarea:focus~label,
.aesthetic-form textarea:not(:placeholder-shown)~label {
    top: -12px;
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: 600;
}

.input-highlight {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: 0.4s ease;
}

.aesthetic-form input:focus~.input-highlight,
.aesthetic-form textarea:focus~.input-highlight {
    width: 100%;
}

.cyber-submit-v2 {
    margin-top: 20px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.cyber-submit-v2:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.modal-right-side {
    flex: 1;
    position: relative;
    background-color: var(--primary-color);
    display: flex;
    align-items: flex-end;
    padding: 40px;
}

.side-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.image-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.9) 100%);
    z-index: 2;
}

.image-text-content {
    position: relative;
    z-index: 3;
    color: #fff;
    width: 100%;
}

.image-text-content h4 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    font-family: 'Rajdhani', sans-serif;
}

.glass-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 50;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

@media (max-width: 900px) {
    .modal-split-container {
        flex-direction: column-reverse;
    }

    .modal-right-side {
        height: 200px;
        padding: 20px;
    }

    .modal-left-side {
        padding: 30px 20px;
    }

    .modal-wide-wrapper {
        margin: 10px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-close-btn {
        top: 15px;
        right: 15px;
        background: rgba(0, 0, 0, 0.4);
    }
}

/* =========================================
   3. MATERIALS PAGE SPECIFIC
   ========================================= */
.app-container {
    flex: 1;
    width: 100%;
    padding: 60px 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Area (Innovative) */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 50px;
    gap: 15px;
}

.innovative-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.innovative-title {
    font-size: 3.5rem;
    color: var(--text-dark);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 10px;
}

.gradient-text-anim {
    background: linear-gradient(270deg, #6366f1, #ec4899, #3b82f6);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 5s ease infinite;
}

.hero-text p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Modern Grid */
.modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

/* TECH CARD (Kategori Kartları) */
.tech-card {
    background: var(--card-bg-dark);
    /* Koyu Arka Plan */
    color: var(--text-on-card);
    border-radius: 20px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
    border: 1px solid transparent;
}

.tech-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -5px rgba(33, 40, 66, 0.4);
    border-color: rgba(99, 102, 241, 0.3);
}

.card-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--accent-color);
    border-radius: 50%;
    top: -80px;
    right: -80px;
    filter: blur(60px);
    opacity: 0.2;
    transition: 0.5s;
}

.tech-card:hover .card-glow {
    opacity: 0.4;
    transform: scale(1.2);
}

.icon-box {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #FFF;
    margin-bottom: 20px;
    transition: var(--transition);
}

.tech-card:hover .icon-box {
    background: #FFF;
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Gradient Icon Box Styles */
.gradient-1 {
    background: var(--gradient-purple) !important;
}

.gradient-2 {
    background: var(--gradient-cyan) !important;
}

.gradient-3 {
    background: var(--gradient-orange) !important;
}

.gradient-4 {
    background: var(--gradient-pink) !important;
}

.card-info h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.card-info span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.action-arrow {
    position: absolute;
    bottom: 24px;
    right: 24px;
    color: #FFF;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
}

.tech-card:hover .action-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* FOLDER CARD (Alt Kategori - Light) */
.folder-card {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.folder-card:hover {
    background: #ffffff;
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.folder-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.folder-card h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-weight: 700;
}

.folder-card span {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* FILES (Dosya Listesi) */
.file-list-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.file-item {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    padding: 20px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.file-item:hover {
    transform: scale(1.01);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    border-color: var(--accent-color);
}

.file-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.file-type-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #FFF;
}

.pdf {
    background: #EF4444;
}

.zip {
    background: #3B82F6;
}

.img {
    background: #10B981;
}

.file-meta h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.file-meta span {
    color: var(--text-light);
    font-size: 0.85rem;
}

.btn-download-smart {
    background: var(--primary-color);
    color: #FFF;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-download-smart:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* Navigation Buttons */
.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.section-header h2 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary-color);
    font-size: 2rem;
}

.btn-back {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #E2E8F0;
    background: transparent;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-back:hover {
    background: var(--primary-color);
    color: #FFF;
    border-color: var(--primary-color);
}

/* SPA Utility Classes */
.hidden {
    display: none;
}

.view-section {
    animation: fadeIn 0.4s ease;
}

/* =========================================
   4. FOOTER (ORTAK)
   ========================================= */
.footer {
    background-color: var(--primary-color);
    color: #94a3b8;
    text-align: center;
    padding: 30px 0;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .navbar__menu {
        display: none;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .btn-download-smart {
        width: 100%;
        justify-content: center;
    }
}