/* CSS Reset and Variables */
:root {
    --bg-color: #050505;
    --surface-color: #111111;
    --surface-light: #1A1A1A;
    --border-color: #2A2A2A;
    
    --text-primary: #F0F0F0;
    --text-secondary: #999999;
    --text-muted: #666666;
    
    --accent-light: #E0E0E0;
    --accent-dark: #333333;
    --chrome-gradient: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(150,150,150,0.5) 100%);
    --chrome-glow: rgba(200, 200, 200, 0.05);
    
    --font-main: 'Outfit', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Subtle Noise Background for Texture */
.noise-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

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

/* Typography & Layout */
h1, h2, h3, h4 {
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

p {
    color: var(--text-secondary);
}

.text-gradient {
    background: linear-gradient(135deg, #FFFFFF 0%, #C0C0C0 40%, #777777 60%, #E0E0E0 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine 6s linear infinite;
}

@keyframes shine {
    to { background-position: -200% center; }
}

/* Button Styles */
.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 100px;
    transition: var(--transition-fast);
    cursor: pointer;
    border: 1px solid transparent;
}

.cta-btn.sm {
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
}

.cta-btn.primary {
    background-color: var(--text-primary);
    color: var(--bg-color);
}

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

.cta-btn.secondary {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.cta-btn.secondary:hover {
    background-color: var(--surface-light);
    border-color: var(--text-secondary);
}

.cta-btn.white {
    background-color: transparent;
    border-color: #FFF;
    color: #FFF;
}
.cta-btn.white:hover {
    background-color: #FFF;
    color: #000;
}

/* Header & Glassmorphism Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 3rem 0 1.5rem 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.header.header-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}



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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 150px;
    width: auto;
    object-fit: contain;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    position: relative;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    position: relative;
    overflow: hidden;
}

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

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    animation: fadeInDown 1s ease forwards;
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 6rem);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s 0.2s ease forwards;
}

.hero-desc {
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1s 0.4s ease forwards;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    opacity: 0;
    animation: fadeInUp 1s 0.6s ease forwards;
}



/* Services */
.services {
    padding: 8rem 0;
    background-color: var(--bg-color);
    position: relative;
    border-top: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 5rem auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.services-bg-visual {
    position: absolute;
    left: -2%;
    top: 50%;
    transform: translateY(-50%);
    width: 60%;
    max-width: 750px;
    opacity: 0.45; /* Daha net, parlak */
    z-index: 0;
    pointer-events: none;
}

.services-bg-visual .bg-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.1)); /* Hafif ışıltı ile netlik */
    animation: float 20s ease-in-out infinite reverse;
}

@media (min-width: 968px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 950px; /* Kutuların genel kapladığı alanı hafif daraltır */
        margin-left: auto; /* Bloğu tamamen sağa yaslar */
        gap: 1.5rem;      /* Aralarındaki boşluğu hafifçe küçültür */
    }
    .service-card {
        padding: 3rem 2rem; /* Kutuların iç boşluklarını biraz daraltarak zarifleştirir */
    }
}

.service-card {
    background: linear-gradient(145deg, rgba(30,30,30,0.4) 0%, rgba(10,10,10,0.6) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 3.5rem 2.5rem;
    border-radius: 20px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: #444;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.service-card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 2rem;
    font-weight: 300;
    color: var(--border-color);
    margin-bottom: 2rem;
    transition: var(--transition-fast);
}

.service-card:hover .card-icon {
    color: var(--text-secondary);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    margin-bottom: 2rem;
}

.card-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.card-link span {
    transition: var(--transition-fast);
}

.card-link:hover span {
    transform: translateX(5px);
}

/* References Section */
.references {
    padding: 6rem 0;
    border-top: 1px solid var(--border-color);
    background: linear-gradient(180deg, var(--bg-color) 0%, rgba(10,10,10,0.8) 100%);
}

.references-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.ref-card {
    padding: 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    height: 200px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ref-logo {
    height: 100%;
    width: 100%;
    max-width: none;
    object-fit: contain;
    background-color: #ffffff;
    padding: 2rem;
    filter: grayscale(100%) opacity(0.7) contrast(1.2);
    transition: all 0.4s ease;
}

.ref-card:hover .ref-logo {
    filter: grayscale(100%) opacity(1) contrast(1.1);
    transform: scale(1.08); /* slight jump effect */
}

/* Banner Section */
.banner {
    padding: 6rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, var(--surface-color) 0%, var(--bg-color) 100%);
    text-align: center;
}

.banner-inner h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 3rem;
}

/* Footer */
.footer {
    padding: 6rem 0 2rem 0;
    background-color: var(--bg-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand p {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

.link-group h4 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.link-group a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.link-group a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.9rem;
}

.footer-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
    font-weight: 500;
}

.footer-link:hover {
    color: #fff;
    text-decoration: underline;
}

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

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

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-50px) scale(1.05); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.2); }
}

/* Custom Cursors & Glow */
.cursor-dot, .cursor-outline {
    position: fixed;
    top: -100px; left: -100px; /* Start offscreen */
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: #fff;
    box-shadow: 0 0 5px #fff;
}

.cursor-outline {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(255,255,255,0.05);
    transition: width 0.2s, height 0.2s, background-color 0.2s, border 0.2s, transform 0.1s ease-out;
}

.ambient-glow {
    position: fixed;
    top: -400px; left: -400px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.02) 0%, transparent 60%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    transition: transform 0.3s ease-out;
}

/* Hover States for Interactive Elements */
@media (hover: hover) {
    a, button, .cta-btn, input, textarea {
        cursor: none;
    }
    body {
        cursor: none;
    }
}

/* Contact Grid & Advanced Glassmorphism */
.contact {
    padding: 8rem 0;
    border-top: 1px solid var(--border-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-card {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    color: var(--text-primary);
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-list h4 {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.3rem;
}

.primary-text {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
}

.contact-item {
    z-index: 2;
}

.contact-item-group {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.hover-link {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
    display: inline-block;
}

.hover-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #fff;
    transition: width 0.3s ease;
}

.hover-link:hover::after {
    width: 100%;
}

.map-container.service-card {
    padding: 0;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 0.5rem;
    }

    .logo img {
        height: 100px;
    }

    .nav {
        gap: 1.5rem;
        justify-content: center;
        width: 100%;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .references-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        justify-items: center;
    }

    .ref-card {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1;
        max-width: 160px;
    }

    .ref-logo {
        width: 100%;
        height: 100%;
        padding: 1.2rem;
    }
    
    .ambient-glow, .cursor-dot, .cursor-outline {
        display: none !important;
    }
}
