/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary: #006D77; /* Derin Teal */
    --secondary: #E29578; /* Yumuşak Mercan */
    --orange: #FF7B54; /* Canlı Turuncu - Footer Başlıkları için */
    --accent: #83C5BE; 
    --white: #ffffff;
    --light-bg: #EDF6F9;
    --dark: #2D3142;
    --shadow: 0 15px 40px rgba(0, 109, 119, 0.08);
    --transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--light-bg);
    color: var(--dark);
    line-height: 1.6;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--light-bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; border: 3px solid var(--light-bg); }

/* Global Layout */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Main Feed Grid System */
.main-feed-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.main-feed-grid > div {
    min-width: 0;
}

.projects-grid {
    display: grid;
    gap: 30px;
}

.project-card {
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    min-height: 250px;
    background: var(--white);
    box-shadow: var(--shadow);
}

@media (max-width: 1100px) {
    .main-feed-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .project-card { flex-direction: column; }
    .project-card div { flex: none !important; width: 100%; height: 200px; }
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background: rgba(0, 109, 119, 0.95); /* Derin Teal */
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

header.scrolled {
    padding: 10px 0;
    background: rgba(0, 109, 119, 1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.logo img {
    max-height: 80px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.sponsor-banner-inline {
    background: white;
    padding: 5px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.sponsor-banner-inline img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    position: relative;
    transition: var(--transition);
    opacity: 0.9;
}

@media (max-width: 1300px) {
    .nav-links { gap: 12px; }
    .nav-links a { font-size: 0.85rem; }
    .logo { gap: 15px; }
    .logo img { max-height: 70px; }
    .sponsor-banner-inline { padding: 5px 10px; }
    .sponsor-banner-inline img { max-height: 40px; }
}

@media (max-width: 1200px) {
    .nav-links { gap: 10px; }
    .logo img { max-height: 60px; }
    .sponsor-banner-inline { display: none; } /* Orta boyutta sponsor bannerı gizle veya küçült */
}

.nav-links a:hover {
    color: var(--secondary);
    opacity: 1;
}

.nav-links li {
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Dropdown Menu Styles */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--white);
    min-width: 230px;
    padding: 10px 0;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 10px;
    overflow: hidden; /* Taşmayı engellemek için eklendi */
}

.nav-links li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    display: block;
    margin: 0;
}

.dropdown-menu a {
    color: var(--primary) !important;
    padding: 12px 25px;
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
    opacity: 1 !important;
}

.dropdown-menu a::after {
    display: none; /* Alt çizgiyi burada kaldır */
}

.dropdown-menu a:hover {
    background: #f1f5f9;
    color: var(--secondary) !important;
    padding-left: 35px;
}

.dropdown > a i {
    transition: transform 0.3s;
}

.dropdown:hover > a i {
    transform: rotate(180deg);
}

/* Hero & Slider - Premium & Aesthetic */
.hero {
    height: min(85vh, 760px);
    border-radius: 0 0 80px 80px;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
    color: var(--white);
    box-shadow: 0 30px 60px rgba(0, 109, 119, 0.15);
}

@media (max-height: 820px) {
    .hero { height: min(75vh, 640px); }
}

@media (max-width: 1100px) {
    .nav-container { flex-wrap: wrap; }
    nav { position: static; width: 0; }
    .mobile-menu-btn { display: block !important; }
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        background: var(--primary);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 20px 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        z-index: 1001;
    }
    .nav-links.active { display: flex !important; }
    .nav-links li { margin: 10px 0; padding: 0 20px; }
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Sola yasla */
    text-align: left; /* Metni sola yasla */
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--primary);
}

.slide.active {
    opacity: 1;
    z-index: 5;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1; /* Fotoğraf tam netlikte */
    transition: transform 12s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(1);
}

.slide.active .slide-bg {
    transform: scale(1.15); /* Ken Burns Effect */
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0) 100%); /* Metni korur, fotoğrafı kapatmaz */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content span {
    display: inline-block;
    background: rgba(226, 149, 120, 0.9);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.75rem;
    margin-bottom: 30px;
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    opacity: 0;
}

.slide.active .hero-content span {
    animation: fadeInDown 1.2s cubic-bezier(0.23, 1, 0.32, 1) 0.2s forwards;
}

.hero h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--white);
    text-shadow: 0 10px 25px rgba(0,0,0,0.4);
    letter-spacing: -1px;
    opacity: 0;
}

@media (max-width: 992px) {
    .hero h1 { font-size: 3.5rem; }
}

.slide.active .hero-content h1 {
    animation: slideInLeft 1.2s cubic-bezier(0.23, 1, 0.32, 1) 0.4s forwards;
    opacity: 1 !important;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    line-height: 1.6;
    text-shadow: 0 5px 15px rgba(0,0,0,0.2);
    font-weight: 400;
    opacity: 0;
}

.slide.active .hero-content p {
    animation: slideInRight 1.2s cubic-bezier(0.23, 1, 0.32, 1) 0.7s forwards;
    opacity: 1 !important;
}

.hero-btns {
    opacity: 0;
}

.slide.active .hero-btns {
    animation: fadeInUp 1s ease 1.1s forwards;
}

/* Slider Controls */
.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--secondary);
    width: 35px;
    border-radius: 10px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    transition: var(--transition);
}

.slider-arrow:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    transform: translateY(-50%) scale(1.1);
}

.arrow-left { left: 40px; }
.arrow-right { right: 40px; }

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-100px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

.hero-btns {
    animation: fadeInUp 1s ease 0.9s forwards;
    opacity: 0;
}

.btn-premium {
    background: linear-gradient(135deg, var(--secondary) 0%, #d48366 100%);
    color: var(--white);
    padding: 16px 35px;
    font-size: 1rem;
    border-radius: 50px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    text-decoration: none;
    border: none;
    box-shadow: 0 10px 25px rgba(226, 149, 120, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(226, 149, 120, 0.5);
    filter: brightness(1.1);
}

.btn-outline {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 16px 35px;
    font-size: 1rem;
    border-radius: 50px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    text-decoration: none;
    margin-left: 15px;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255,255,255,0.2);
}

.btn-outline i {
    font-size: 1rem;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
    transform: translateY(-5px);
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

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


.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.2);
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary);
}

/* Project Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-img {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.card-content {
    padding: 30px;
}

.card-tag {
    background: var(--light-silver);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: inline-block;
}

.card h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--light-silver);
}

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

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

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.main-feed-grid { 
    display: grid; 
    grid-template-columns: 2fr 1fr; 
    gap: 40px; 
}

@media (max-width: 992px) {
    .container { padding: 0 30px; }
    .hero h1 { font-size: 3rem; }
    .hero p { font-size: 1.2rem; }
}

@media (max-width: 1100px) {
    .grid { grid-template-columns: 1fr; }
    .hero-btns { flex-direction: column; gap: 15px; }
    .btn-outline { margin-left: 0; }
    .hero-content { text-align: center; }
    
    /* Header & Mobile Menu */
    header { padding: 12px 0 !important; }
    header .container { 
        display: flex !important;
        flex-wrap: wrap !important; 
        justify-content: space-between !important; 
        align-items: center !important; 
    }
    
    .logo { 
        display: flex !important;
        flex-direction: column !important; 
        align-items: flex-start !important; 
        gap: 6px !important; 
        flex: 1 !important;
        padding-right: 10px;
    }
    .logo img { max-height: 55px !important; width: auto !important; max-width: 100%; }
    .logo a { font-size: 1rem !important; line-height: 1.2; }
    
    .sponsor-banner-inline { 
        display: flex !important; 
        background: white;
        padding: 4px 10px;
        border-radius: 6px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        margin-top: 5px;
        width: fit-content;
        max-width: 100%;
        order: 10; /* Banner'ı logonun altına tam satır olarak atar */
    }
    .sponsor-banner-inline img { max-height: 35px !important; width: auto !important; max-width: 100%; object-fit: contain; }
    
    .header-action { 
        display: flex !important; 
        align-items: center !important; 
        justify-content: flex-end !important;
        flex-shrink: 0 !important;
    }
    .mobile-menu-btn { 
        display: block !important; 
        font-size: 2rem !important; 
        color: white !important; 
        cursor: pointer !important;
        padding: 5px;
        z-index: 1100;
    }
    nav { position: static; width: 0; }
    .nav-links { 
        display: none; 
        width: 100%; 
        flex-direction: column; 
        background: var(--primary); 
        position: absolute; 
        top: 100%; 
        left: 0; 
        padding: 20px 0; 
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        z-index: 1001; /* Sponsor bannerın üstünde kalması için */
    }
    .nav-links.active { display: flex !important; z-index: 1000; }
    .nav-links li { margin: 10px 0; padding: 0 20px; }
    .header-action .btn-primary { display: block !important; padding: 8px 12px !important; font-size: 0.8rem !important; border-radius: 8px; }

    /* Typography & Spacing */
    .slide { justify-content: center; }
    .hero { aspect-ratio: 1 / 1; height: auto; max-height: 500px; border-radius: 0 0 30px 30px; margin-top: 120px; }
    .hero-content { display: none !important; }
    .slide-overlay { background: linear-gradient(to bottom, rgba(0,0,0,0) 60%, rgba(0,0,0,0.4) 100%); }
    .section-title h2 { font-size: 2rem; }
    .container { padding: 0 15px; }
    .main-feed-grid { grid-template-columns: 1fr !important; gap: 30px; }
    footer { padding: 50px 0 20px !important; margin-top: 50px !important; }

    /* Fix Project Cards */
    .project-card { flex-direction: column; }
    .project-card > div:first-child { width: 100% !important; height: 200px !important; flex: none !important; }
    
    /* Mobile Slider Arrows */
    .slider-arrow { width: 40px !important; height: 40px !important; font-size: 0.9rem; background: rgba(255, 255, 255, 0.2) !important; }
    .arrow-left { left: 10px !important; }
    .arrow-right { right: 10px !important; }
}
/* Premium Gallery & Pulse Animations */
.gallery-premium-item {
    position: relative;
    width: 100%;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.gallery-premium-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 109, 119, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    color: white;
    font-size: 1.8rem;
}

.gallery-premium-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 109, 119, 0.15);
}

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

.gallery-premium-item:hover .gallery-overlay {
    opacity: 1;
}

.swiper-button-prev-custom:hover, .swiper-button-next-custom:hover {
    background: var(--primary) !important;
    color: white !important;
    transform: scale(1.1);
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 109, 119, 0.4);
    }
    70% {
        transform: scale(1.03);
        box-shadow: 0 0 0 15px rgba(0, 109, 119, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 109, 119, 0);
    }
}

.pulse-btn {
    animation: pulse 2s infinite;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .gallery-premium-item { height: 220px; }
}
