:root {
    --primary-color: #0c1e35;
    /* Deep Navy */
    --accent-color: #cb9b51;
    /* Gold */
    --text-color: #333;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

/* Header & Nav */
/* Header & Nav */
/* Header & Nav */
/* Header & Nav */
header {
    background: var(--white);
    /* Changed from transparent to solid white */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    /* Added shadow for visibility */
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 0;
}

header.scrolled {
    /* Kept same for consistency, but base is already white now */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: relative;
    /* For absolute positioning of mobile menu */
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
    z-index: 1001;
}

nav {
    display: flex;
    margin: 0;
    padding: 0.8rem 2rem;
    background: transparent;
    box-shadow: none;
}

header.scrolled nav {
    padding: 0.5rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

header.scrolled .logo img {
    height: 40px;
}

header.scrolled .logo-text {
    font-size: 1.8rem;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    /* Increased from 1.5rem */
    font-weight: 700;
    color: var(--accent-color);
    /* Gold for TAF */
    line-height: 1;
    letter-spacing: 0.5px;
}

.logo-text span {
    color: var(--primary-color);
    /* Navy for İNŞAAT */
}

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

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.mobile-menu-footer {
    display: none;
    /* Hide on desktop */
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    width: 100%;
    max-width: 100%;
    /* Removed solid background to let video show */
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    /* Removed radial gradient to keep it clean as requested */
    display: none;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    /* Increased for single line text */
    width: 100%;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    /* Stronger, modern font */
    font-size: 4rem;
    /* Reduced slightly to fit */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 1), 0 0 30px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    /* Force single line */
}

@media (max-width: 1024px) {
    .hero h1 {
        white-space: normal;
        /* Allow wrap on mobile */
        font-size: 3rem;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    /* Stack buttons vertically */
    align-items: center;
    /* Center buttons */
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Premium Easing Variables */
:root {
    --premium-easing: cubic-bezier(0.16, 1, 0.3, 1);
    --transition: all 0.4s var(--premium-easing);
}

/* Page Opening Animation - "Ultra Smooth Fade Reveal" */
body.loaded .hero {
    animation: fadeReveal 2.5s var(--premium-easing) forwards;
    will-change: transform, opacity;
}

@keyframes fadeReveal {
    0% {
        opacity: 0;
        transform: scale(1.08) translateY(10px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 1;
    font-weight: 500;
    /* Stronger shadow */
    text-shadow: 0 3px 10px rgba(0, 0, 0, 1), 0 0 20px rgba(0, 0, 0, 0.8);
}

video#hero-video-1,
video#hero-video-2 {
    /* Ensure video is behind */
    z-index: -1 !important;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Even darker overlay for maximum text pop */
    background: rgba(0, 0, 0, 0.85);
    z-index: 1 !important;
}

.hero-content {
    z-index: 2 !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
        /* Increased from 30px for more elegance */
    }

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

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent-color);
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    /* Stronger pop-out shadow */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 0, 0, 0.4);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.btn:hover {
    background: #b08540;
    transform: translateY(-3px);
}

/* Sections */
section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    width: 100%;
    /* Ensure it takes full width in flex container */
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 1rem auto 0;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    /* Use min(100%, 350px) to prevent overflowing small screens */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.project-image {
    height: 250px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.project-category {
    color: var(--accent-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 4rem 2rem 1rem;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto 3rem;
    text-align: left;
}

.footer-col {
    flex: 1;
    min-width: 250px;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 1rem;
    }

    /* Mobile Menu - Full Screen Overlay */
    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        /* White with slight transparency */
        backdrop-filter: blur(10px);
        /* Modern blur effect */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0;
        z-index: 999;

        /* Hidden State */
        visibility: hidden;
        opacity: 0;
        transform: scale(0.95);
        transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    }

    nav.active {
        visibility: visible;
        opacity: 1;
        transform: scale(1);
    }

    .nav-links {
        flex-direction: column;
        gap: 2.5rem;
        text-align: center;
        width: 100%;
    }

    .nav-links li {
        width: 100%;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
    }

    /* Staggered Animation for Links */
    nav.active .nav-links li:nth-child(1) {
        transition-delay: 0.1s;
        opacity: 1;
        transform: translateY(0);
    }

    nav.active .nav-links li:nth-child(2) {
        transition-delay: 0.2s;
        opacity: 1;
        transform: translateY(0);
    }

    nav.active .nav-links li:nth-child(3) {
        transition-delay: 0.3s;
        opacity: 1;
        transform: translateY(0);
    }

    nav.active .nav-links li:nth-child(4) {
        transition-delay: 0.4s;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links a {
        font-family: var(--font-heading);
        font-size: 1.5rem;
        /* Smaller font size */
        color: var(--accent-color);
        /* Gold color */
        display: block;
        padding: 0.5rem;
        border-bottom: 2px solid transparent;
        transition: var(--transition);
    }

    .nav-links a:hover {
        color: var(--accent-color);
        transform: scale(1.1);
    }

    .mobile-menu-footer {
        display: block;
        margin-top: 3rem;
        animation: fadeInUp 0.8s ease-out 0.5s backwards;
        /* Staggered animation */
    }

    .mobile-menu-footer img {
        width: 140px;
        /* Larger logo */
        height: auto;
        opacity: 0.9;
    }

    /* Mobile Menu Toggle Style Fix */
    .mobile-menu-toggle {
        display: block;
        position: relative;
        z-index: 1001;
        /* Above the overlay */
        color: var(--primary-color);
        font-size: 1.8rem;
        transition: color 0.3s;
    }

    /* Change toggle color when menu is open */
    body.menu-open .mobile-menu-toggle {
        color: var(--accent-color);
        /* Gold color for X icon */
    }

    /* Disable scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-col {
        margin-bottom: 2.5rem;
    }
}

/* Modern Page Header - Simplified */
.modern-hero {
    position: relative;
    padding: 10rem 2rem 2rem;
    text-align: center;
    color: var(--primary-color);
    background: transparent;
    overflow: hidden;
}

/* Remove Dark Overlay */
.modern-hero::before {
    display: none;
}

/* Content Container */
.modern-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--accent-color);
    /* The line requested */
}

/* Typography */
.modern-hero h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
    letter-spacing: 1px;
    text-shadow: none;
}

.modern-hero p {
    font-family: var(--font-body);
    font-size: 1.2rem;
    opacity: 0.8;
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-color);
}

/* Decorative Line Removal (User wanted line under text instead) */
.modern-hero h1::after {
    display: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .modern-hero {
        padding: 6rem 1.5rem;
    }

    .modern-hero h1 {
        font-size: 2.5rem;
    }

    .modern-hero p {
        font-size: 1.1rem;
    }
}

/* Hero Video Overlay - Simple Dark Tint */
.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Simple dark overlay as requested */
    z-index: 1;
}

/* Premium Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 1.2s var(--premium-easing), transform 1.2s var(--premium-easing);
    will-change: opacity, transform;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: none;
}

/* Hero Video Transition */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-video.active {
    opacity: 1;
}

/* Hero Content Enhancements */
.hero-content h1 {
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
}

.hero-content p {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
    font-size: 1.2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Base Button Modernization */
.btn {
    padding: 1rem 2rem;
    border-radius: 5px;
    /* Slightly rounded, modern but professional */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent-color);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.8;
}

.scroll-indicator span {
    color: var(--white);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeInOut 2s infinite;
}

.scroll-indicator .mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--white);
    border-radius: 20px;
    position: relative;
}

.scroll-indicator .wheel {
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% {
        top: 8px;
        opacity: 1;
        transform: translateX(-50%);
    }

    100% {
        top: 30px;
        opacity: 0;
        transform: translateX(-50%);
    }
}

@keyframes fadeInOut {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Premium Scroll Animation Delays (150ms intervals for elegance) */
.delay-100 {
    transition-delay: 0.15s;
}

.delay-200 {
    transition-delay: 0.3s;
}

.delay-300 {
    transition-delay: 0.45s;
}

.delay-400 {
    transition-delay: 0.6s;
}

.delay-500 {
    transition-delay: 0.75s;
}

.delay-600 {
    transition-delay: 0.9s;
}


/* Text Content Styling */
.text-content {
    background: var(--white);
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 5px;
}

.text-content h2,
.text-content h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
}

.text-content h2::after,
.text-content h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    margin-top: 0.5rem;
}

.image-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.image-content:hover img {
    transform: scale(1.02);
}

/* Row Layout */
.content-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}

.content-row.reverse {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {

    .content-row,
    .content-row.reverse {
        flex-direction: column;
        gap: 2rem;
    }

    .text-content {
        padding: 2rem;
    }
}

/* Slide Left */
.slide-left {
    transform: translateX(-40px);
}

/* Slide Right */
.slide-right {
    transform: translateX(40px);
}

/* Fade Up */
.fade-up {
    transform: translateY(40px);
}

/* Why Us Grid Layout */
.why-us-grid {
    display: grid;
    /* Use min(100%, 300px) to prevent overflowing small screens */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
    width: 100%;
    margin-top: 1rem;
}

@media (min-width: 1024px) {
    .why-us-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fafafa;
    /* Updated to requested color */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease-out, visibility 1s;
}

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

#intro-video {
    width: 300px;
    height: auto;
    max-width: 80%;
    object-fit: contain;
}