/* =========================================
   1. CONFIG & RESET & TYPOGRAPHY
   (About Us ile Aynı)
   ========================================= */
@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');

:root {
    /* Renk Paleti */
    --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 Görünüm İçin) */
    --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%);

    --border-radius: 16px;
    --transition: all 0.3s ease;
    --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);
    }
}

/* =========================================
   2. NAVBAR & MODAL (About Us ile Birebir Aynı)
   ========================================= */
.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. NEWS PAGE SPESIFIC STYLES
   ========================================= */
.news-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 60px 20px 100px;
}

/* Page Title (Innovative) */
.page-intro {
    text-align: center;
    margin-bottom: 20px;
}

.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;
    margin-bottom: 15px;
}

.innovative-title {
    font-size: 3.5rem;
    color: var(--text-dark);
    line-height: 1.1;
    font-weight: 800;
}

.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;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* BADGES (Gradient Style) */
.badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    display: inline-block;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.badge-tech {
    background: var(--gradient-purple);
}

.badge-science {
    background: var(--gradient-cyan);
}

.badge-inno {
    background: var(--gradient-pink);
}

.badge-space {
    background: var(--gradient-orange);
}

/* FEATURED SECTION */
.featured-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    height: 500px;
}

.card-overlay {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-overlay:hover img {
    transform: scale(1.05);
}

.overlay-gradient-layer {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.2), transparent);
    z-index: 1;
}

.overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 40px;
    z-index: 2;
    color: white;
}

.overlay-content h2 {
    font-size: 2.2rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.overlay-content h3 {
    font-size: 1.4rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.author-avatar-small {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.featured-side {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.side-card {
    flex: 1;
}

/* POPULAR SECTION */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 15px;
}

.section-header h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
}

.view-all {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.view-all:hover {
    transform: translateX(5px);
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.pop-card {
    background: var(--white);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.pop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.pop-img {
    position: relative;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.pop-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pop-img .badge {
    position: absolute;
    top: 10px;
    left: 10px;
    margin: 0;
    font-size: 0.65rem;
}

.pop-card h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.4;
}

.pop-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.author-circle {
    width: 28px;
    height: 28px;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.gradient-1 {
    background: var(--gradient-purple);
}

.gradient-2 {
    background: var(--gradient-cyan);
}

.gradient-3 {
    background: var(--gradient-orange);
}

.gradient-4 {
    background: var(--gradient-pink);
}

/* RECENT & FILTER (Innovative Style) */
.recent-header-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.recent-title-box h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    font-family: 'Rajdhani', sans-serif;
}

.recent-title-box p {
    color: var(--text-light);
    margin-top: 10px;
}

.filter-bar {
    display: flex;
    gap: 20px;
    align-items: center;
    background: #ffffff;
    padding: 10px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f1f5f9;
    padding: 12px 20px;
    border-radius: 30px;
    width: 250px;
    transition: 0.3s;
}

.search-box:focus-within {
    background: #fff;
    box-shadow: 0 0 0 2px var(--accent-color);
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 0.9rem;
}

.search-box i {
    color: var(--text-light);
}

.filter-tags {
    display: flex;
    gap: 8px;
}

.filter-btn {
    border: none;
    background: transparent;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-medium);
    border-radius: 30px;
    transition: 0.3s;
}

.filter-btn:hover {
    background: #f1f5f9;
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(33, 40, 66, 0.3);
}

.recent-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: 0.4s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.blog-img {
    height: 240px;
    position: relative;
    overflow: hidden;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.blog-card:hover .blog-img img {
    transform: scale(1.1);
}

.img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
}

.blog-img .badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.blog-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.4;
}

.blog-content p {
    color: var(--text-medium);
    font-size: 0.95rem;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    flex: 1;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.blog-footer .author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.blog-footer .avatar {
    width: 35px;
    height: 35px;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.read-more {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: white;
    cursor: pointer;
    transition: 0.3s;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.read-more:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: rotate(-45deg);
}

.founder-avatar {
    width: 45px;
    /* Fotoğraf olduğu için biraz büyüttük */
    height: 45px;
    border-radius: 50%;
    /* Yuvarlak çerçeve */
    overflow: hidden;
    /* Resmin taşmasını engelle */
    border: 2px solid var(--accent-color);
    /* Şık bir mavi çerçeve ekledik */
    /* Eski ikon ortalama ve renk kodlarını kaldırdık */
}

.founder-avatar img{
    width: 45px;
    /* Fotoğraf olduğu için biraz büyüttük */
    height: 45px;
}

/* =========================================
   4. FOOTER (About Us ile Aynı)
   ========================================= */
.footer {
    background-color: var(--primary-color);
    color: #94a3b8;
    text-align: center;
    padding: 30px 0;
    margin-top: auto;
    font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .featured-section {
        height: auto;
        grid-template-columns: 1fr;
    }

    .featured-main {
        height: 400px;
    }

    .featured-side {
        flex-direction: row;
        height: 250px;
    }

    .recent-grid,
    .popular-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .navbar__menu,
    .navbar__action {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .page-intro {
        margin-top: 20px;
    }

    .innovative-title {
        font-size: 2.5rem;
    }

    .featured-side {
        flex-direction: column;
        height: auto;
    }

    .side-card {
        height: 220px;
    }

    .recent-header-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-bar {
        width: 100%;
        flex-direction: column;
        border-radius: 20px;
        padding: 20px;
    }

    .search-box {
        width: 100%;
    }

    .filter-tags {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .filter-btn {
        white-space: nowrap;
    }

    .recent-grid,
    .popular-grid {
        grid-template-columns: 1fr;
    }
}