:root {
    --color-primary: #FF8F00;
    /* Tio Orange - Accent Only */

    /* Ennotated Gray Palette */
    --color-gray-darkest: #2C2D30;
    --color-gray-darker: #4A4B4D;
    --color-gray-base: #717275;
    /* Logo Match */
    --color-gray-medium: #9AA0A6;
    --color-gray-light: #D0D3D4;
    --color-gray-lighter: #E6E7E9;

    --color-bg: var(--color-gray-lighter);
    --color-text: #222222;
    --color-text-muted: #555555;

    /* Glass settings */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

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

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

/* Liquid Glass / VisionOS Material */
.glass {
    background: rgba(255, 255, 255, 0.65);
    /* Translucent base */
    backdrop-filter: blur(25px) saturate(180%);
    /* Key "Liquid" effect */
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    border-radius: 20px;
    /* Softer corners */
}

/* Specific overrides for content containers on gray bg */
main .glass {
    background: #FFFFFF;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
/* Body Padding for Fixed Header */
body {
    padding-top: 160px;
    /* Header height + spacing */
}

/* Navigation */
nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    /* Centered with margin */
    padding: 15px 30px;
    width: 90%;
    /* Start at 90% */
    max-width: 1200px;

    /* Fixed Positioning */
    position: fixed;
    top: 0;
    left: 50%;
    /* Center horizontally */
    transform: translateX(-50%);
    /* Center positioning */
    z-index: 1000;

    /* Smooth Transition for "Center-Out" Effect */
    transition:
        width 0.6s cubic-bezier(0.19, 1, 0.22, 1),
        max-width 0.6s cubic-bezier(0.19, 1, 0.22, 1),
        border-radius 0.6s ease,
        padding 0.6s ease,
        background 0.6s ease,
        backdrop-filter 0.6s ease,
        top 0.6s ease;
}

/* Scrolled State */
nav.scrolled {
    width: 100vw;
    /* Full Viewport Width */
    max-width: 100vw;
    margin: 0;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 40px;
    border-radius: 0;

    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-left: none;
    border-right: none;
    border-top: none;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

nav.glass {
    /* Base Glass Style */
    background: var(--color-gray-darker);
    /* Dark gray base if not scrolled? No, user wanted #717275 */
    /* Let's keep the existing glass logic but ensure it transitions */
    background: rgba(113, 114, 117, 0.1);
    /* Transparent/Light Gray initially */
    background: #717275;
    /* As per previous file content */
    border-bottom: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* Smooth "liquid" motion */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 24px;
    border-radius: 16px;
    background: transparent;
    /* Default state */
}

nav a i {
    font-size: 1.8rem;
    opacity: 0.7;
    /* User requested 70% opacity */
    margin-bottom: 2px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px) scale(1.02);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

nav a:hover i {
    opacity: 1;
    transform: scale(1.1);
    filter: drop-shadow(0 6px 12px rgba(255, 143, 0, 0.3));
    /* Glow effect */
    color: white;
}

nav a.active {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

nav a.active i {
    opacity: 1;
    color: var(--color-primary);
    filter: drop-shadow(0 0 10px rgba(255, 143, 0, 0.4));
}

.logo img {
    height: 120px;
    /* Increased to 120px as requested */
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: transparent;
    /* Transparent to reveal fixed video */
}

/* Hero Video Background */
.hero-video-background {
    position: absolute;
    /* Absolute positioning so it scrolls with the page (user request: "video yukarıda kalsın") */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
    /* Behind EVERYTHING */
    pointer-events: none;
    /* User cannot interact with video */
}

.hero-video-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    /* Given 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh;
    /* Given 16:9 aspect ratio */
    transform: translate(-50%, -50%);
    z-index: 0;
    border: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    /* Darken video significantly (70%) to improve text contrast */
    z-index: 1;
    /* Above video, below content (content is z-index 2) */
}

.hero-content {
    max-width: 900px;
    z-index: 2;
    padding: 60px;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -1px;
    color: #222;
}

.hero p {
    font-size: 1.5rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    font-weight: 300;
}

.btn {
    display: inline-block;
    padding: 14px 40px;
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
}

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

.btn-secondary {
    background: #717275;
    /* Logo Gray */
    color: white;
}

.btn-secondary:hover {
    background: #5a5b5e;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    padding: 60px 0;
}

.service-card {
    padding: 40px;
    transition: all 0.3s ease;
    background: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    background: #FFFFFF;
    box-shadow: 0 20px 40px rgba(113, 114, 117, 0.15);
    /* Gray shadow */
}

.service-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    height: 100px;
}

.service-icon img {
    height: 96px;
    width: auto;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

.service-card:hover .service-icon img {
    transform: scale(1.1) translateY(-5px);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.6rem;
    font-weight: 600;
}

/* Contact Page Styles */
.contact-container {
    max-width: 1200px;
    /* Match Nav Width */
    width: 90%;
    /* Match Nav Width */
    margin: 140px auto !important;
    /* Force margin to overridden any potential conflicts */
    /* Significantly increased margin to ensure 50px gap from header */
    /* Increased margin based on user feedback (was 40px) */
    position: relative;
    z-index: 1;
    /* Ensure it stays below nav z-index 1000 */
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.contact-info,
.contact-form-wrapper {
    padding: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--color-primary);
    width: 30px;
    text-align: center;
}

.info-item a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s;
}

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

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 143, 0, 0.2);
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.service-card p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

/* Force Logo Shrink on Scroll */
nav.scrolled .logo img {
    height: 60px !important;
    transition: height 0.3s ease;
}

/* Footer */
footer {
    padding: 60px 0;
    margin-top: 100px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    color: #E6E7E9;
    background: var(--color-gray-darker);
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: #222;
}

/* Contact Heading Alignment */
.contact-container h1 {
    padding-left: 31px;
    /* Align with inner content */
    margin-bottom: 20px;
}