/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #D4AF37; /* Gold accent */
    --dark-bg: #121212; /* Dark charcoal */
    --light-text: #f5f5f5; /* Light gray for text */
    --secondary-bg: #201f1f; /* Slightly lighter than main bg */
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    margin-bottom: 2rem;
}

h2:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1rem;
}

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

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--dark-bg);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--secondary-bg);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

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

.gold-text {
    color: var(--primary-color);
}
/* ===== HEADER & NAVIGATION ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(18, 18, 18, 0.9);
    transition: var(--transition);
}

.header-scrolled {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}
.logo-img {
    height: 45px; /* Logo yüksekliği */
    width: auto; /* Orantılı genişlik */
    margin-right: 10px; /* Logo ile yazı arasında boşluk */
    vertical-align: middle; /* Dikey hizalama */
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light-text);
}

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

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

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    position: relative;
    font-weight: 500;
    padding: 5px 0;
}

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

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

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: var(--light-text);
    margin: 5px;
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden; /* Taşan videoyu gizle */
}

/* Video arka plan */
.video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -2;
}

/* Video overlay */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Koyu filtre */
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2; /* Video ve overlay'in üstünde */
    padding: 0 20px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.5s;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.7s;
}

.hero .btn {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.9s;
}

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

/* ===== INTRO SECTION ===== */
.intro-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    align-items: center;
}

.intro-image {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

.intro-image img {
    width: 100%;
    transition: transform 0.5s ease;
}

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

.intro-content h2 {
    text-align: left;
}

.intro-content h2:after {
    left: 0;
    transform: none;
}

/* ===== FEATURED PROJECTS ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    position: relative;
    height: 300px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

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

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

.project-title {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.project-category {
    color: var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Services Section Styles */
.services {
    padding: 100px 0;
    background-color: var(--dark-anthracite);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--secondary-bg);
    padding: 30px;
    border-radius: 5px;
    text-align: center;
    transition: var(--transition), box-shadow 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom: 3px solid var(--primary-color);
}

.service-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-description {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-link {
    display: inline-block;
    color: var(--light-text);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.service-link:hover {
    color: var(--primary-color);
}

/* ===== WHY CHOOSE US ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
}


/* ===== STATS COUNTER ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-title {
    font-size: 1rem;
    text-transform: uppercase;
}

/* ===== CONTACT CTA ===== */
.cta {
    background-color: var(--secondary-bg);
    padding: 5rem 0;
    text-align: center;
}

.cta h2 {
    margin-bottom: 1.5rem;
}

.cta h2:after {
    left: 50%;
    transform: translateX(-50%);
}

/* ===== FOOTER ===== */
footer {
    background-color: #0a0a0a;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

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

.footer-contact li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    list-style: none;
}

.footer-contact i {
    color: var(--primary-color);
    margin-right: 10px;
    margin-top: 5px;
}

.footer-links h4 {
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-links h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

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

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

.footer-links a {
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #222;
    margin-right: 10px;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #222;
    font-size: 0.9rem;
}
/* ===== ABOUT PAGE ===== */
.page-header {
    height: 50vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.home-header {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/home_bg.jpg');
}
.about-header {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/about_bg.jpg');
}
.project-header {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/proje_bg.jpg');
}
.service-header {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/service_bg.jpg');
}
.contact-header {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/contact_bg.jpg');
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
}

.about-image:before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid var(--primary-color);
    z-index: -1;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.value-card {
    background-color: var(--secondary-bg);
    padding: 30px;
    border-radius: 5px;
    text-align: center;
    transition: var(--transition);
}

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

.value-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* ===== PROJECTS PAGE ===== */
.projects-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.filter-btn {
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 1rem;
    margin: 0 15px;
    cursor: pointer;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

.filter-btn:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    color: var(--primary-color);
}

.filter-btn:hover:after, .filter-btn.active:after {
    width: 100%;
}

.project-detail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.project-detail.active {
    opacity: 1;
    visibility: visible;
}

.project-detail-content {
    width: 90%;
    max-width: 1000px;
    background-color: var(--dark-bg);
    border-radius: 5px;
    padding: 30px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--light-text);
    cursor: pointer;
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.project-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.project-detail-image {
    border-radius: 5px;
    overflow: hidden;
}

.project-detail-image img {
    width: 100%;
}

/* ===== SERVICES PAGE ===== */
.service-detail {
    margin-top: 50px;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    align-items: center;
    margin-bottom: 5rem;
}

.service-detail-image {
    border-radius: 5px;
    overflow: hidden;
}

.service-detail-image img {
    width: 100%;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 5rem;
    position: relative;
}

.process-steps:before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-bg);
    z-index: -1;
}

.process-step {
    text-align: center;
    width: 20%;
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--secondary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.process-step:hover .step-number {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    transform: scale(1.1);
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.contact-info {
    background-color: var(--secondary-bg);
    padding: 30px;
    border-radius: 5px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-info-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 5px;
}

.map-container {
    height: 750px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}



/* ===== ANIMATIONS ===== */
.reveal {
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--dark-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: #b8982f;
    transform: translateY(-5px);
}

/* ===== LOADER ===== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== RESPONSIVE STYLES ===== */
@media screen and (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .hero h1 {
        font-size: 3.2rem; /* Video ile uyumlu hale getirildi */
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-content {
        max-width: 700px;
        padding: 0 30px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--dark-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-links.active {
        right: 0;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }
    
    .nav-links li {
        margin: 20px 0;
    }
    
    .hamburger {
        display: block;
        z-index: 1000;
    }
    
    .hamburger.active div:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active div:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active div:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    /* Hero Video için mobil optimizasyonlar */
    .hero {
        height: 100vh;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.4;
    }
    
    .hero-content {
        max-width: 90%;
        padding: 0 20px;
    }
    
    .hero-content .btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    /* Video mobile optimization */
    .video-bg {
        object-fit: cover;
        object-position: center center;
    }
    
    .intro-grid, 
    .about-grid, 
    .project-detail-grid, 
    .service-detail-grid, 
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-steps {
        flex-direction: column;
        align-items: center;
    }
    
    .process-steps:before {
        display: none;
    }
    
    .process-step {
        width: 100%;
        margin-bottom: 30px;
    }
}

@media screen and (max-width: 576px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2rem; /* Video ile uyumlu küçültüldü */
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        line-height: 1.4;
    }
    
    .hero-content {
        max-width: 95%;
        padding: 0 15px;
    }
    
    .hero-content .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
        border-radius: 25px;
    }
    
    /* Video overlay daha koyu küçük ekranlarda */
    .video-overlay {
        background-color: rgba(0, 0, 0, 0.7);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-filter {
        flex-wrap: wrap;
    }
    
    .filter-btn {
        margin: 5px;
    }
}

/* Extra small devices (portrait phones, less than 400px) */
@media screen and (max-width: 400px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 0.85rem;
    }
    
    .hero-content .btn {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
    
    .hero-content {
        padding: 0 10px;
    }
}

/* Landscape orientation for mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: 100vh;
    }
    
    .hero h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .hero-content .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}

/* ===== SAYFA GEÇİŞLERİ VE ANİMASYONLAR ===== */
.page-transition {
    animation: fadeIn 0.8s ease-in-out;
}

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

/* Sayfa yüklendiğinde body'e eklenen class */
body.loaded {
    animation: fadeIn 0.8s ease-in-out;
}

/* ===== PARALAKS KAYDIRMA ===== */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    z-index: 1;
}

.parallax-section {
    position: relative;
    overflow: hidden;
}

.parallax-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.1;
    z-index: -1;
}

/* ===== GELİŞMİŞ HOVER EFEKTLERİ ===== */
/* Butonlar için hover efekti */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.5s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

/* Proje kartları için gelişmiş hover efekti */
.project-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.project-card .project-overlay {
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* Menü öğeleri için gelişmiş hover efekti */
.nav-links a {
    position: relative;
    transition: color 0.3s ease;
}

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

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

/* Takım üyeleri için hover efekti */
.team-member {
    position: relative;
    overflow: hidden;
}

.team-member .team-info {
    position: relative;
    padding: 20px;
    background-color: var(--secondary-bg);
    transform: translateY(0);
    transition: transform 0.5s ease;
}

.team-member:hover .team-info {
    transform: translateY(-10px);
}

.team-member::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.team-member:hover::before {
    transform: scaleX(1);
}

/* ===== YÜKLENME ANİMASYONLARI ===== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
    position: relative;
}

.loader-spinner::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 3px solid transparent;
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== GÖRSEL GALERİLERDE GEÇİŞ EFEKTLERİ ===== */
.gallery-container {
    position: relative;
    overflow: hidden;
}

.gallery-slide {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.8s ease;
}

.gallery-slide.active {
    opacity: 1;
    position: relative;
}

.gallery-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.gallery-dot.active {
    background-color: var(--primary-color);
}

/* ===== SAYICI ANİMASYONLARI ===== */
.stat-number {
    display: inline-block;
    position: relative;
}

.stat-number::after {
    content: '+';
    position: absolute;
    top: 0;
    right: -20px;
    font-size: 2rem;
    color: var(--primary-color);
}

/* ===== İÇERİK BLOKLARININ YÜKLENMESİ ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Farklı yönlerden gelen reveal animasyonları */
.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 1s ease, transform 1s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* ===== VİDEO ARKA PLANLAR - GÜNCELLENDİ ===== */
.video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: -2;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* Video performance optimizations */
@media (prefers-reduced-motion: reduce) {
    .hero-content,
    .hero-content h1,
    .hero-content p,
    .hero-content .btn {
        animation: none;
    }
}

/* ===== MOBİL UYUMLU TASARIM İYİLEŞTİRMELERİ ===== */
@media screen and (max-width: 768px) {
    .parallax-bg {
        background-attachment: scroll; /* Mobil cihazlarda fixed yerine scroll kullanılmalı */
    }
    
    .nav-links {
        background-color: rgba(18, 18, 18, 0.95); /* Daha koyu arka plan */
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); /* Daha belirgin gölge */
    }
    
    .hamburger div {
        transition: all 0.3s ease; /* Daha yumuşak geçiş */
    }
    
    .hamburger.active div:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active div:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }
    
    .hamburger.active div:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    /* Video mobil optimizasyonları */
    .video-bg {
        object-fit: cover;
        object-position: center center;
    }
}

/* ===== SAYFA GEÇİŞLERİ ===== */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-bg);
    z-index: 9998;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.page-transition-overlay.active {
    transform: translateY(0);
}

.page-transition-overlay.exit {
    transform: translateY(-100%);
}