:root {
    --primary-color: #E50914; /* Kırmızı */
    --dark-color: #464646;
    --light-color: #FFFFFF;
    --background-color: #f4f4f4;
    --font-family: 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    background-color: var(--light-color);
    color: var(--dark-color);
    overflow-x: hidden;
}

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

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: background-color 0.4s ease, padding 0.4s ease;
}

header.scrolled,
header.solid-bg {
    /* background-color: rgba(30, 30, 30, 0.95); */
    background-color: rgba(212, 212, 212, 0.95);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    cursor: pointer;
}

.logo img {
    height: 50px;
    display: block;
    transition: height 0.4s ease;
}

header.scrolled .logo img,
header.solid-bg .logo img {
    height: 40px;
}

nav a {
    /* color: var(--light-color); */
    color: #000000ff;
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    cursor: pointer;
}

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

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a:hover,
nav a.active {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--light-color);
    z-index: 1002;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

.mobile-nav.open {
    transform: translateX(0);
}

.mobile-nav a {
    color: var(--dark-color);
    font-size: 1.5rem;
    margin: 1.5rem 0;
    text-decoration: none;
    font-weight: 500;
}

.mobile-nav a.active {
    color: var(--primary-color);
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.nav-overlay.open {
    opacity: 1;
    visibility: visible;
}


/* Main Content & Animations */
main {
    transition: opacity 0.5s ease-in-out;
}

.fade-in {
    animation: fadeInAnimation 0.5s ease-in-out forwards;
}

.fade-out {
    animation: fadeOutAnimation 0.5s ease-in-out forwards;
}

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

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

.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-color);
    overflow: hidden;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.hero-content {
    animation: hero-fade-in 1.5s ease-out 0.5s forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes hero-fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Buttons */
.cta-button {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.cta-button:hover {
    background-color: #c40812;
    transform: translateY(-3px);
}

.text-button {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.3s ease;
    text-decoration: none;
}

.text-button:hover {
    color: var(--dark-color);
}


/* Home Page Sections */
.home-about {
    padding: 6rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.home-about .image-content img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.home-about .text-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.home-about .text-content p {
    margin-bottom: 2rem;
}

.home-companies {
    padding: 6rem 0;
    background-color: var(--dark-color);
    color: var(--light-color);
    text-align: center;
}

.home-companies h3 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.company-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.company-logo-item {
    padding: 1.5rem 2.5rem;
    border: 1px solid #666;
    border-radius: 5px;
    transition: background-color 0.3s, border-color 0.3s;
    cursor: pointer;
    user-select: none;
}

.company-logo-item.active,
.company-logo-item:hover {
    background-color: #5a5a5a;
    border-color: var(--primary-color);
}

.company-logo-item span {
    font-size: 1.2rem;
    font-weight: 500;
}

.company-details-panel {
    margin-top: -1.5rem;
    margin-bottom: 3rem;
    background-color: #5a5a5a;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    /* overflow: hidden; */
    max-height: 0;
    opacity: 0;
    padding: 0 2rem;
    transition: max-height 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                opacity 0.5s ease-in-out,
                padding 0.5s ease-in-out;
}

.company-details-panel.active {
    /* max-height: 500px; */
    max-height: fit-content;
    opacity: 1;
    padding: 2.5rem 2rem;
}


.company-detail-item {
    text-align: center;
    color: var(--light-color);
    flex: 0 1 150px;
}

.company-detail-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 1rem;
    border: 2px solid var(--light-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.company-detail-item:hover .company-detail-logo {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.company-detail-item h4 {
    font-weight: 500;
    font-size: 1rem;
}


/* Generic Page Styles */
.page-content {
    padding-top: 80px; /* Header height */
}

.page-header {
    height: 40vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    position: relative;
    text-align: center;
}

.page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.page-header h1 {
    font-size: 3rem;
    z-index: 1;
}

.content-section {
    padding: 4rem 0;
}

.content-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

/* About Page - Values Section */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-item {
    text-align: center;
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.value-item .icon {
    color: var(--primary-color);
    margin-bottom: 1rem;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-item .icon svg {
    width: 50px;
    height: 50px;
    fill: currentColor;
}

.value-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}


/* Companies Page */
.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.company-card {
    background: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.company-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.company-card-content {
    padding: 1.5rem;
}

.company-card-content h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Contact Page */
.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-family);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-info p {
    margin-bottom: 1rem;
}

.map-placeholder {
    height: 200px;
    background-color: #e9e9e9;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    color: #999;
}

.success-message {
    display: none;
    padding: 2rem;
    text-align: center;
    border: 1px solid #d4edda;
    background-color: #f2fff5;
    color: #155724;
    border-radius: 5px;
}

.success-message h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}


/* Footer */
footer {
    background-color: var(--light-color);
    color: var(--dark-color);
    padding: 4rem 0 2rem;
    border-top: 1px solid #e0e0e0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #e0e0e0;
}

.footer-section .footer-logo {
    margin-bottom: 1rem;
}

.footer-section .footer-logo img {
    height: 40px;
}

.footer-section h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
    color: #555;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

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

.footer-section p a {
    display: inline;
    margin: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 1rem 0;
    }
    .logo img {
        height: 40px !important;
    }
    nav { 
        display: none; 
    }
    .menu-toggle {
        display: block;
    }
    .hero h2 { font-size: 2.5rem; }
    .home-about { grid-template-columns: 1fr; text-align: center; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .company-logos {
        flex-direction: column;
    }
    .page-header h1 {
        font-size: 2.5rem;
    }
    .content-section h2 {
        font-size: 2rem;
    }
}