/* ==========================================================================
   AGILE ÇÖZÜM - MAIN STYLESHEET
   Import design tokens first
   ========================================================================== */

@import url('css/variables.css');

/* ==========================================================================
   1. TEMEL AYARLAR (BASE SETTINGS)
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    width: 100%;
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
    display: block;
    /* to remove any extra space below images */
}

body {
    font-family: var(--font-primary);
    font-size: var(--fs-base);
    line-height: var(--lh-relaxed);
    background-color: var(--bg-primary);
    /* Use variable */
    color: var(--text-primary);
    /* Use variable */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    /* Ensure body explicitly takes full width */
    transition: background-color 0.3s ease, color 0.3s ease;
    /* Smooth theme transition */
}

/* Theme Toggle Button */
.theme-toggle-button {
    background: none;
    border: none;
    font-size: var(--fs-2xl);
    cursor: pointer;
    color: var(--header-text);
    /* Use header text color */
    margin-left: 1rem;
    transition: color 0.3s ease, transform 0.3s ease;
    outline: none;
}

.theme-toggle-button:hover {
    color: var(--link-color);
    transform: scale(1.1);
}

/* ==========================================================================
   2. ANİMASYONLAR (ANIMATIONS)
   ========================================================================== */

@keyframes hero-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    visibility: hidden;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out, visibility 0.8s;
    will-change: opacity, transform, visibility;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}


/* ==========================================================================
   3. YAPI VE GENEL SINIFLAR (STRUCTURE & HELPERS)
   ========================================================================== */

main {
    overflow-x: hidden;
}

section:nth-of-type(odd) {
    background-color: var(--bg-primary);
    position: relative;
}

section:nth-of-type(even) {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, rgba(var(--color-primary-rgb), 0.04) 50%, var(--bg-secondary) 100%);
    position: relative;
}

/* Vibrant Blue Section (Aivatech style) */
.hook-section.vibrant-blue,
.edu-hook-section.vibrant-blue {
    background: var(--gradient-vibrant-blue);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hook-section.vibrant-blue {
    padding: var(--space-12) 0;
}

/* Glassy glow overlay */
.hook-section.vibrant-blue::before,
.edu-hook-section.vibrant-blue::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.2) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.vibrant-blue .container {
    position: relative;
    z-index: 5;
}

.vibrant-blue h2 {
    color: var(--white) !important;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.vibrant-blue p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.vibrant-blue .highlight {
    color: #00d4ff !important;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
}

.vibrant-blue .tag {
    background: rgba(255, 255, 255, 0.15) !important;
    color: var(--white) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.vibrant-blue .btn-mega-secondary {
    padding: var(--space-4) var(--space-10);
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    font-size: var(--fs-base);
    font-weight: var(--fw-bold);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.vibrant-blue .btn-mega-secondary:hover {
    background: var(--white);
    color: var(--vibrant-blue-deep);
    transform: translateY(-5px) scale(1.05);
}

section:nth-of-type(5) {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, rgba(var(--color-primary-rgb), 0.05) 40%, var(--bg-secondary) 100%);
}

section:nth-of-type(7) {
    background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(var(--color-primary-rgb), 0.07) 50%, var(--bg-primary) 100%);
}

section:nth-of-type(7) {
    background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(var(--color-primary-rgb), 0.15) 50%, var(--bg-primary) 100%);
}

section {
    padding: var(--section-padding-y) 0;
    width: 100%;
    box-sizing: border-box;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    color: var(--section-h2-color);
}

h1 {
    font-size: var(--fs-h1);
    line-height: var(--lh-tight);
    font-weight: var(--fw-bold);
}

h2 {
    font-size: var(--fs-4xl);
    line-height: 1.3;
    font-weight: var(--fw-semibold);
    text-align: center;
    margin-bottom: var(--space-16);
}

h3 {
    font-size: var(--fs-2xl);
    line-height: var(--lh-normal);
    font-weight: var(--fw-semibold);
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--link-hover-color);
}

/* ==========================================================================
   4. HEADER VE NAVİGASYON (HEADER & NAVIGATION)
   ========================================================================== */

header {
    background-color: var(--header-bg);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    height: var(--header-height);
    display: flex;
    align-items: center;
    box-sizing: border-box;
    transition: transform 0.5s ease-in-out, background-color 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    overflow: visible;
    border-bottom: 1px solid rgba(var(--color-primary-rgb), 0.1);
}

/* Header Animated Background */
header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.08), transparent 70%);
    border-radius: 50%;
    animation: headerFloat1 20s infinite ease-in-out;
    pointer-events: none;
}

header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -5%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.06), transparent 70%);
    border-radius: 50%;
    animation: headerFloat2 25s infinite ease-in-out;
    pointer-events: none;
}

@keyframes headerFloat1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, 10px) scale(1.1);
    }
}

@keyframes headerFloat2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-25px, 8px) scale(1.15);
    }
}

html[data-theme="dark"] header::before,
html[data-theme="dark"] header::after {
    opacity: 0.15;
}

header.header-hidden {
    transform: translateY(-100%);
}

nav {
    display: grid;
    grid-template-columns: auto 1fr auto;
    /* Navigasyon yerleşimi değiştirildi */
    align-items: center;
    width: 100%;
    max-width: 1300px;
    /* Geniş ekranlarda daha iyi yayılması için */
    margin: 0 auto;
    padding: 0 30px 0 10px;
    position: relative;
    z-index: 1001;
}

.logo {
    grid-column: 1;
    justify-self: start;
}

ul.nav-links {
    grid-column: 2;
    justify-self: start;
    /* Sola yaklaştır ama logo metninden gelen padding ile korunacak */
    list-style: none;
    display: flex;
    gap: var(--space-8);
    align-items: center;
    margin-left: 20px;
    /* Ekstra güvenlik mesafesi */
}

#theme-toggle {
    grid-column: 3;
    justify-self: end;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0;
    /* Gap sıfırlandı */
    text-decoration: none;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    white-space: nowrap;
    margin-left: -12px;
    /* Logo görselindeki boşluğu kompanse etmek için yaklaştırıldı */
    padding-right: 60px;
    /* Hizmetlerimiz (Menü) ile arayı iyice açtık */
}

.logo img,
.logo img#site-logo,
header .logo img,
header nav .logo img {
    height: 120px !important;
    width: auto !important;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(var(--color-primary-rgb), 0.15));
}

.logo:hover img {
    transform: scale(1.05);
}

.logo .logo-text {
    font-size: clamp(18px, 2vw, 26px);
    /* Ekran boyutuna göre küçülür */
    font-weight: 800;
    color: var(--header-logo-text);
    line-height: 1.2;
    letter-spacing: -0.5px;
    text-shadow: 0 1px 2px rgba(var(--color-primary-rgb), 0.1);
    white-space: nowrap;
}

.logo .logo-subtext {
    font-size: clamp(10px, 1vw, 13px) !important;
    font-weight: var(--fw-regular) !important;
    color: var(--header-text) !important;
    margin-left: 0 !important;
    line-height: 1.2;
    white-space: nowrap;
    display: block;
}

ul.nav-links {
    list-style: none;
    display: flex;
    gap: var(--space-8);
    align-items: center;
}

ul.nav-links li a {
    color: var(--header-text);
    font-weight: var(--fw-medium);
    font-size: var(--fs-base);
    padding: var(--space-2) 0;
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-color 0.3s;
}

ul.nav-links li a:hover,
ul.nav-links li a.active {
    color: var(--link-color);
    text-decoration: none;
    border-bottom-color: var(--link-color);
}

.dropdown {
    position: relative;
    z-index: 1001;
}

/* Bridge the gap between menu and dropdown to prevent flickering on hover */
.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -20px;
    width: calc(100% + 40px);
    height: 30px;
    background: transparent;
    z-index: 1000;
}

.dropdown .dropbtn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    height: var(--header-height);
    position: relative;
    z-index: 1001;
}

.dropdown .dropbtn i {
    transition: transform 0.3s ease;
    /* Smooth rotation */
    font-size: 0.8em;
    /* Adjust icon size relative to text */
}

.dropdown:hover .dropbtn i {
    transform: rotate(180deg);
    /* Rotate arrow up on hover */
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bg-primary);
    min-width: 280px;
    box-shadow: 0 8px 24px rgba(var(--color-black-rgb), 0.2);
    z-index: 1002;
    border-radius: 8px;
    overflow: hidden;
    padding: var(--space-2) 0;
    border: 1px solid var(--border-light);
    margin-top: 5px;
}

html[data-theme="dark"] .dropdown-content {
    background-color: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-content a {
    color: var(--kurumsal-mavi);
    /* White text for blue background */
    padding: var(--space-3) var(--space-5);
    text-decoration: none;
    display: block;
    font-size: 15px;
    border-bottom: 1px solid rgba(var(--color-black-rgb), 0.05);
    transition: background-color 0.2s, color 0.2s;
    text-align: center;
    font-weight: 500;
    /* Center sub-menu items */
}

.dropdown-content a:hover {
    background-color: var(--bg-secondary);
    color: var(--gold-accent);
}



.dropdown:hover .dropdown-content {
    display: block;
}

/* ==========================================================================
   5. ANA SAYFA HERO (HOMEPAGE HERO) - ENHANCED DYNAMIC VERSION
   ========================================================================== */

#hero {
    color: var(--text-primary);
    margin-top: var(--header-height);
    padding: var(--space-4) 0;
    min-height: auto;
    display: flex;
    align-items: center;
    background: var(--hero-bg);
    overflow: hidden;
    position: relative;
}

/* Animated Background Shapes */
.hero-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    top: -100px;
    left: -100px;
    animation-delay: 0s;
    animation-duration: 25s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--blue-accent), var(--primary-blue));
    bottom: -80px;
    right: 10%;
    animation-delay: 3s;
    animation-duration: 30s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--light-blue), var(--blue-accent));
    top: 50%;
    right: -50px;
    animation-delay: 6s;
    animation-duration: 20s;
}

.shape-4 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    top: 20%;
    left: 50%;
    animation-delay: 9s;
    animation-duration: 28s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(20px, -20px) scale(1.1);
    }

    50% {
        transform: translate(-15px, 15px) scale(0.9);
    }

    75% {
        transform: translate(15px, 20px) scale(1.05);
    }
}

html[data-theme="dark"] .shape {
    opacity: 0.12;
}

/* Hero Content & Visual */
#hero .hero-content {
    flex: 1 1 55%;
    padding: 0 var(--space-8) 0 var(--space-16);
    position: relative;
    z-index: 2;
}

#hero .hero-visual {
    flex: 1 1 45%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

#hero h1 {
    color: var(--hero-h1-color);
    font-size: var(--fs-3xl);
    font-weight: var(--fw-bold);
    margin-bottom: var(--space-4);
    text-shadow: 0 2px 5px rgba(var(--color-black-rgb), 0.05);
}

#hero p {
    font-size: var(--fs-md);
    color: var(--hero-p-color);
    margin: var(--space-6) 0 var(--space-10);
    max-width: 620px;
    line-height: var(--lh-loose);
}

/* Staggered animations for hero content */
#hero .hero-content h1 {
    opacity: 0;
    animation: hero-fade-in-up 1s ease-out 0.2s forwards;
}

#hero .hero-content p {
    opacity: 0;
    animation: hero-fade-in-up 1s ease-out 0.5s forwards;
}

/* Enhanced Hero Buttons */
#hero .hero-content .hero-buttons {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-8);
    justify-content: flex-start;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: var(--space-3) var(--space-8);
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.hero-buttons .btn-primary {
    background: var(--gradient-kurumsal-mavi);
    color: white;
    box-shadow: 0 4px 15px rgba(var(--color-primary-rgb), 0.3);
    border: none;
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(var(--color-primary-rgb), 0.4);
}

.hero-buttons .btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    box-shadow: none;
}

.hero-buttons .btn-secondary:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(var(--color-primary-rgb), 0.3);
}

.hero-buttons .btn i {
    font-size: var(--fs-base);
}

/* Hero Stats Section */
#hero-stats-section {
    padding: 0;
    margin-top: 2.5rem;
    /* Add space above the stats */
    text-align: left;
    /* Align with the rest of the hero text */
}

#hero-stats-section .hero-stats {
    display: flex;
    gap: var(--space-10);
    /* Spacing between stats items */
    justify-content: flex-start;
    /* Align stats to the left */
    flex-wrap: wrap;
    margin-top: 0;
    padding: 0;
}

#hero-stats-section .stat {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    /* Space between count and text */
    color: var(--header-logo-text);
    /* White text for stats */
    min-width: 120px;
    /* Minimum width for each stat */
}

#hero-stats-section .stat .count {
    font-size: var(--fs-5xl);
    /* Slightly larger count */
    font-weight: var(--fw-bold);
    color: var(--kurumsal-mavi);
    /* Blue count */
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

#hero-stats-section .stat .count::after {
    /* Removed general content: '%'; */
    font-size: 0.5em;
    /* Percentage sign size relative to count */
    margin-left: 0.1rem;
    vertical-align: middle;
    color: var(--header-logo-text);
    /* White percentage sign */
}

#hero-stats-section .stat .count.has-percent-sign::after {
    content: '%';
}

#hero-stats-section .stat .count.no-percent-sign::after {
    content: '';
}

#hero-stats-section .stat p {
    font-size: 1rem;
    /* Clearer descriptive text */
    line-height: 1.3;
    color: var(--header-text);
    /* Lighter grey for description */
    white-space: normal;
    margin: 0;
}


/* ==========================================================================
   6. ALT SAYFA HERO (SUBPAGE HERO)
   ========================================================================== */

.service-hero {
    padding: 60px 0 40px;
    color: var(--header-logo-text);
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 30vh;
}

#service-hero-iletisim {
    min-height: 375px !important;
    padding: 80px 0 !important;
}


.service-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(var(--color-black-rgb), 0.6);
    z-index: 1;
}

html[data-theme="light"] .service-hero::before {
    background-color: rgba(var(--color-black-rgb), 0.5);
}

html[data-theme="dark"] .service-hero::before {
    background-color: rgba(var(--color-black-rgb), 0.7);
}

.service-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.service-hero h1 {
    color: var(--white) !important;
    text-shadow: 0 2px 10px rgba(var(--color-black-rgb), 0.5);
}

.service-hero p {
    color: var(--white) !important;
    font-size: 1.1rem;
    text-shadow: 0 1px 5px rgba(var(--color-black-rgb), 0.3);
}

html[data-theme="dark"] .service-hero h1,
html[data-theme="dark"] .service-hero p {
    color: var(--white) !important;
}

.service-hero .btn {
    margin-top: 1.5rem;
}

#service-hero-hakkimizda {
    background-image: url('HAKKIMIZDA/anagörsel.PNG');
    background-color: var(--header-bg);
}

#service-hero-hakkimizda h1,
#service-hero-hakkimizda p {
    color: var(--white) !important;
    text-shadow: 0 2px 10px rgba(var(--color-black-rgb), 0.5);
}

#service-hero-dijital {
    background-image: url('grafiktasarım/üstbaşlıkgrafiktasarım1.jpg');
    background-color: var(--header-bg);
}

#service-hero-dijital h1,
#service-hero-dijital p {
    color: var(--white) !important;
    text-shadow: 0 2px 10px rgba(var(--color-black-rgb), 0.5);
}

#service-hero-yapay-zeka {
    background-image: url('yapay zeka ve veri analizi/üstbaşlıkyapayzeka.png');
    background-color: var(--header-bg);
}

#service-hero-yapay-zeka h1,
#service-hero-yapay-zeka p {
    color: var(--white) !important;
    text-shadow: 0 2px 10px rgba(var(--color-black-rgb), 0.5);
}

#service-hero-operasyonel {
    background-image: url('operasyonel mükemmellik ve süreç optimizasyonu/üstbaşlıkoperasyonel.jpg');
    background-color: var(--header-bg);
}

#service-hero-operasyonel h1,
#service-hero-operasyonel p {
    color: var(--white) !important;
    text-shadow: 0 2px 10px rgba(var(--color-black-rgb), 0.5);
}

#service-hero-referanslarimiz {
    background-color: var(--header-bg);
}

/* ==========================================================================
   7. İÇERİK BÖLÜMLERİ (CONTENT SECTIONS)
   ========================================================================== */

/* Hizmet Kartları (index.html) */
#hizmetler {
    position: relative;
    background: var(--hizmetler-bg);
    /* Fallback for transparency */
}

#hizmetler h2 {
    color: var(--section-h2-color);
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-8);
}

.card,
.service-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: var(--space-8) var(--space-6);
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Pulse animation on load */
.service-card {
    animation: cardPulse 2s ease-out;
}

@keyframes cardPulse {
    0% {
        transform: scale(0.95);
        opacity: 0;
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Animated border on hover */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-lg);
    padding: 2px;
    background: var(--gradient-kurumsal-mavi);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(var(--color-primary-rgb), 0.2);
    border-color: transparent;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--section-h2-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: var(--primary-blue);
}

.service-card .service-details {
    margin: var(--space-4) 0;
    text-align: center;
    padding: 0 var(--space-4);
    flex-grow: 1;
}

.service-card .service-details ul {
    list-style: none;
    padding-left: 0;
    text-align: left;
}

.service-card .service-details ul li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.service-card .service-details ul li i {
    color: var(--primary-blue);
    font-size: var(--fs-sm);
    flex-shrink: 0;
}

/* Service Icon */
.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-kurumsal-mavi);
    border-radius: 20px;
    transition: all 0.4s ease;
}

.service-icon i {
    font-size: var(--fs-4xl);
    color: white;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(var(--color-primary-rgb), 0.3);
}

.service-card .btn {
    margin-top: auto;
    padding: var(--space-3) var(--space-7);
    border-radius: var(--radius-full);
    background: var(--gradient-kurumsal-mavi);
    border: none;
    color: var(--white);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.8px;
    box-shadow: 0 4px 15px rgba(var(--color-black-rgb), 0.2), 0 1px 3px rgba(10, 58, 117, 0.5);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    will-change: transform, box-shadow;
}

.service-card .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 70%);
    transition: left 0.5s ease-in-out;
    z-index: -1;
}

.service-card .btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 25px rgba(10, 58, 117, 0.4), 0 5px 15px rgba(31, 110, 234, 0.5);
    text-decoration: none;
    color: var(--white);
    animation: hero-glow 1s ease-out alternate;
    /* Added hero-glow animation */
}

.service-card .btn:hover::before {
    left: 100%;
}





/* Stiller (Hakkımızda, Hizmet Detay) - ESKİ */
.about-us-container,
.service-details-section {
    padding: var(--space-20) 0;
    background-color: var(--bg-primary);
}

.service-content-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 7rem;
}

.service-content-row {
    position: relative;
    /* Needed for z-index */
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease, opacity 0.3s ease, z-index 0s 0.3s;
}

.service-content-row:hover {
    transform: translateY(-8px);
    /* Subtle rise */
    box-shadow: 0 15px 35px rgba(var(--color-black-rgb), 0.2);
    /* Subtle shadow */
    /* z-index removed to preserve current appearance */
}

.about-section {
    margin-bottom: 4rem;
}

#why-choose-us-hakkimizda .why-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

.about-section .section-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-section .section-container {
    position: relative;
    /* Needed for z-index */
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease, opacity 0.3s ease, z-index 0s 0.3s;
}

.about-section .section-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(var(--color-black-rgb), 0.2);
    /* Stronger shadow for the whole group */
    z-index: 10;
    transition: transform 0.3s ease, box-shadow 0.3s ease, z-index 0s;
}

/* Blur and dim other about section containers when one is hovered */
.about-section:has(.section-container:hover) .section-container:not(:hover) {
    filter: blur(1px);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.about-section:last-child,
.service-content-row:last-child {
    margin-bottom: 0;
}

.container:nth-of-type(even) .service-content-row {
    flex-direction: row-reverse;
}

.about-content-left,
.about-content-right,
.service-content-text {
    flex: 1 1 50%;
}

.about-visual-left,
.about-visual-right,
.service-content-visual {
    flex: 1 1 50%;
    min-height: 405px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 30px rgba(var(--color-black-rgb), 0.1);
    transition: box-shadow 0.4s ease;
    /* Only box-shadow transition */
}

.service-content-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}





.about-section.reversed .section-container {
    flex-direction: row-reverse;
}


/* Grid Sistemleri (Yaklaşım, Neden Biz, Değerler vb.) */
/* Grid Sistemleri (Yaklaşım, Neden Biz, Değerler vb.) */
.approach-section,
.vision-section,
.value-engine-section {
    background-color: var(--bg-secondary);
}

.approach-grid,
.references-grid {
    display: grid;
    gap: 2rem;
}

.approach-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    text-align: center;
}

.approach-item i {
    font-size: 2.5rem;
    color: var(--kurumsal-mavi);
    margin-bottom: 1rem;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 360px));
    /* Cards will be between 300px and 360px to fit three in a row */
    justify-content: center;
    /* Center the grid items */
    gap: 1rem;
    /* Reduced gap to help cards fit */
    max-width: 1200px;
    /* Limit overall grid width */
    margin: 0 auto;
    /* Center the grid container */
}

.why-item,
.approach-item {
    background: var(--why-item-bg);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--why-item-border);
}

/* Premium Value Engine Diagram V2 - Consulting Grade */
.value-engine-section {
    background: linear-gradient(180deg, var(--bg-secondary), var(--header-bg));
    padding: var(--space-12) 0;
    overflow: hidden;
}

.value-engine-section h2 {
    color: var(--header-logo-text);
}

.value-engine-section .value-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem auto;
    color: var(--header-text);
}

.value-engine-diagram {
    position: relative;
    max-width: 650px;
    height: 480px;
    margin: 4rem auto;
}

.value-engine-diagram svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Central Core - Turbine/Engine look */
.engine-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
    border: 2px solid rgba(0, 212, 255, 0.4);
    box-shadow:
        0 0 30px rgba(0, 212, 255, 0.3),
        inset 0 0 40px rgba(0, 212, 255, 0.15),
        0 15px 35px rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.engine-core:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow:
        0 0 50px rgba(0, 212, 255, 0.6),
        inset 0 0 60px rgba(0, 212, 255, 0.3);
}

/* Spinning Neon Rings Around Core */
.engine-core::before,
.engine-core::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid transparent;
    animation: spin 8s linear infinite;
    pointer-events: none;
}

.engine-core::before {
    width: 210px;
    height: 210px;
    border-top-color: #00d4ff;
    border-bottom-color: rgba(0, 212, 255, 0.3);
    filter: drop-shadow(0 0 8px #00d4ff);
}

.engine-core::after {
    width: 240px;
    height: 240px;
    border-left-color: #00d4ff;
    border-right-color: rgba(0, 212, 255, 0.3);
    animation-direction: reverse;
    animation-duration: 6s;
    filter: drop-shadow(0 0 8px #00d4ff);
}

@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Connector from Components to Motor */
.components-to-motor-connector {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
    background: transparent;
}

.components-to-motor-connector svg {
    display: block;
    overflow: visible;
}

.engine-core .core-label {
    font-weight: 500;
    font-size: 0.8rem;
    color: #00d4ff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.engine-core .core-title {
    font-weight: 800;
    font-size: 1.4rem;
    color: white;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
    line-height: 1.1;
}

.value-engine-diagram {
    position: relative;
    max-width: 650px;
    height: 430px;
    margin: -80px auto 0 auto;
}

.components-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    max-width: 900px;
    margin: 2rem auto 0 auto;
    position: relative;
    z-index: 5;
}

.engine-component {
    padding: var(--space-6);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.components-grid .engine-component {
    position: relative;
    width: auto;
}

.engine-component:hover {
    background: rgba(0, 212, 255, 0.05);
    border-color: rgba(0, 212, 255, 0.6);
    transform: translateY(-5px);
}

.engine-component h3 {
    color: #00d4ff;
    margin-bottom: 0.25rem;
    font-size: 1.15rem;
    font-weight: 700;
}

.engine-component p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

/* Positioning components */
.component-1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.component-2 {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.component-3 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.component-4 {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

/* ==========================================================================
   15. DEĞER MOTORU - ÇIKTILAR (PREMIUM)
   ========================================================================== */
@keyframes output-glow {
    from {
        box-shadow: 0 0 10px rgba(31, 110, 234, 0.3), 0 0 20px rgba(31, 110, 234, 0.2);
        border-color: rgba(31, 110, 234, 0.7);
    }

    to {
        box-shadow: 0 0 25px rgba(31, 110, 234, 0.7), 0 0 40px rgba(31, 110, 234, 0.5);
        border-color: rgba(31, 110, 234, 1);
    }
}

.engine-outputs {
    margin-top: 4rem;
    /* Reduced space, will be handled by animation lines */
    padding: 2rem 15px;
    position: relative;
}

.outputs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Force 4 columns */
    gap: var(--space-10);
    /* Increased gap */
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.output-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
}

.output-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: #00d4ff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 212, 255, 0.2);
}

.output-icon {
    font-size: 2.2rem;
    color: #00d4ff;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.6));
}

.output-text h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: var(--space-2);
    font-weight: var(--fw-bold);
}

.output-text p {
    color: var(--profesyonel-gri);
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 0;
}

/* ==========================================================================
   16. CASCADE ANIMATION STYLES
   ========================================================================== */

.cascade-animation-container {
    width: 100%;
    max-width: 650px;
    margin: -100px auto 0 auto;
    position: relative;
    z-index: 0;
}

.cascade-line,
.cascade-branch {
    stroke-dasharray: 1000;
    /* A large value to cover path length */
    stroke-dashoffset: 1000;
    opacity: 0;
}

/* Animation triggered by JS */
.value-engine-section.is-animated .cascade-line {
    opacity: 1;
    animation: draw-line 1s ease-out forwards;
}

.value-engine-section.is-animated .cascade-branch {
    opacity: 1;
    animation: draw-line 1.2s ease-out forwards;
    animation-delay: 0.4s;
    /* Start drawing branches after main line is mostly done */
}

/* Stagger the branching lines for a more dynamic effect */
.value-engine-section.is-animated #branch1 {
    animation-delay: 0.5s;
}

.value-engine-section.is-animated #branch2 {
    animation-delay: 0.6s;
}

.value-engine-section.is-animated #branch3 {
    animation-delay: 0.7s;
}

.value-engine-section.is-animated #branch4 {
    animation-delay: 0.8s;
}

/* Stagger the glow effect and rise on cards */
.value-engine-section.is-animated .output-item {
    animation: rose-and-glow-premium 0.8s forwards;
}

.value-engine-section.is-animated .output-item:nth-child(1) {
    animation-delay: 0.4s;
}

.value-engine-section.is-animated .output-item:nth-child(2) {
    animation-delay: 0.6s;
}

.value-engine-section.is-animated .output-item:nth-child(3) {
    animation-delay: 0.8s;
}

.value-engine-section.is-animated .output-item:nth-child(4) {
    animation-delay: 1.0s;
}

@keyframes rose-and-glow-premium {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Continuous Neon Flow Animation - Solid Energy Bullet Style */
.neon-flow-path {
    stroke-dasharray: 100, 1000;
    /* One long continuous energy streak */
    stroke-linecap: round;
    animation: neon-flow 5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes neon-flow {
    from {
        stroke-dashoffset: 1100;
    }

    to {
        stroke-dashoffset: 0;
    }
}


@keyframes draw-line {
    to {
        stroke-dashoffset: 0;
    }
}

/* Referanslar Sayfası */
.references-container {
    background-color: var(--white);
}

.references-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 3rem;
    align-items: center;
}

.reference-item {
    background-color: var(--buz-gri);
    padding: var(--space-8);
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.reference-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.reference-item img {
    max-width: 100%;
    height: 100px;
    object-fit: contain;
    opacity: 0.8;
    transition: filter 0.3s, opacity 0.3s;
}

.reference-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Styles for #why-choose-us-dijital, #why-choose-us-yapay-zeka, #why-choose-us-hakkimizda section (Premium Dark Theme) */
#why-choose-us-dijital,
#why-choose-us-yapay-zeka {
    background-color: var(--koyu-gece);
    color: var(--white);
    /* General text color for the section */
}

#why-choose-us-hakkimizda {
    background-color: var(--color-neutral-900);
    color: var(--white);
    /* General text color for the section */
}

#why-choose-us-dijital h2,
#why-choose-us-yapay-zeka h2,
#why-choose-us-hakkimizda h2 {
    color: var(--white);
}

#why-choose-us-dijital .why-item,
#why-choose-us-yapay-zeka .why-item,
#why-choose-us-hakkimizda .why-item {
    background: rgba(30, 30, 30, 0.8);
    /* Very dark gray, slightly transparent */
    border: 1px solid var(--lacivert-derin-vurgu);
    /* Subtle border */
    border-radius: var(--radius-md);
    /* Match service-card radius */
    box-shadow: var(--shadow-lg);
    /* Premium dark shadow */
    border-left: 4px solid var(--kurumsal-mavi);
    /* Keep accent border */
    position: relative;
    /* Added for z-index */
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease, opacity 0.3s ease, z-index 0s 0.3s;
    /* Modified */
}

#why-choose-us-dijital .why-item:hover,
#why-choose-us-yapay-zeka .why-item:hover,
#why-choose-us-hakkimizda .why-item:hover {
    transform: translateY(-5px);
    /* Scale removed */
    box-shadow: 0 10px 25px rgba(31, 110, 234, 0.4), 0 5px 15px rgba(10, 58, 117, 0.5);
    /* Glow effect */
    z-index: 10;
    /* Bring to front */
    transition: transform 0.3s ease, box-shadow 0.3s ease, z-index 0s;
    /* Modified */
}

/* Apply blur and opacity to sibling why-items when one is hovered */
#why-choose-us-dijital .why-grid:has(.why-item:hover) .why-item:not(:hover),
#why-choose-us-yapay-zeka .why-grid:has(.why-item:hover) .why-item:not(:hover),
#why-choose-us-hakkimizda .why-grid:has(.why-item:hover) .why-item:not(:hover) {
    filter: blur(3px);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

#why-choose-us-dijital .why-item h3,
#why-choose-us-yapay-zeka .why-item h3,
#why-choose-us-hakkimizda .why-item h3 {
    color: var(--white);
}

#why-choose-us-dijital .why-item p,
#why-choose-us-yapay-zeka .why-item p,
#why-choose-us-hakkimizda .why-item p {
    color: var(--profesyonel-gri);
    /* Lighter gray for readability */
}

/* ==========================================================================
   12. PROJE KARUSELİ (PROJECT CAROUSEL) - STİLLERİ
   ========================================================================== */
.project-carousel-section {
    padding: 6rem 0;
    background-color: var(--bg-secondary);
    /* Default background, can be overridden */
}

.project-carousel-section .carousel-main-title {
    text-align: center;
    color: var(--section-h2-color);
    margin-bottom: 1rem;
}

.project-carousel-section .carousel-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: var(--fs-lg);
    max-width: 800px;
    margin: 0 auto var(--space-16) auto;
}

.carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: visible;
    /* Allow zooming images to overflow */
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    background-color: var(--carousel-wrapper-bg);
}

.carousel-slide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-12);
    gap: var(--space-12);
    transition: transform var(--transition-base);
    /* For slide transitions */
    width: 100%;
    /* Each slide takes full width */
    flex-shrink: 0;
    /* Prevent shrinking */
    background-color: var(--carousel-wrapper-bg);
    /* Default slide background */
    height: 600px;
    /* Fixed height to prevent resizing */
}

.carousel-slide:not(.active) {
    display: none;
    /* Hide inactive slides initially */
}


.carousel-text-content {
    flex: 1;
    max-width: 50%;
    color: var(--text-primary);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.carousel-tag {
    display: inline-block;
    background-color: var(--carousel-tag-bg);
    color: var(--carousel-tag-color);
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: var(--fw-semibold);
    margin-bottom: 1rem;
    align-self: flex-start;
}

.carousel-slide-title {
    font-size: var(--fs-3xl);
    font-weight: var(--fw-bold);
    color: var(--carousel-slide-title-color);
    margin-bottom: var(--space-4);
    line-height: var(--lh-tight);
}

.carousel-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.carousel-gains-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.carousel-gains-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.carousel-gains-list li::before {
    content: '✓';
    /* Checkmark icon */
    position: absolute;
    left: 0;
    color: var(--teal-aksan);
    /* Accent color for checkmark */
    font-weight: var(--fw-bold);
}



.carousel-image-container {
    flex: 1;
    max-width: 50%;
    height: 100%;
    /* Utilize full fixed height */
    position: relative;
    border-radius: var(--radius-md);
    /* overflow: hidden; -- REMOVED to allow image to overflow on zoom */
    box-shadow: var(--shadow-lg);
    display: flex;
    /* Center the image */
    align-items: center;
    justify-content: center;
    background-color: var(--bg-tertiary);
    /* Light gray background for padded areas */
    z-index: 1;
    /* Default z-index */
    transition: z-index 0s;
    /* Instant z-index change */
}

.carousel-image-container:hover {
    z-index: 10;
    /* Bring to front on hover */
    overflow: visible;
    /* Show overflowing parts */
}

.carousel-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    /* Slightly transparent white overlay */
    border-radius: 12px;
    z-index: 1;
    /* Above image, below arrows/text if any are inside */
    opacity: 0;
    /* Hidden by default */
    transition: opacity 0.3s ease;
    pointer-events: none;
    /* Let clicks pass through */
}

.carousel-slide.active .carousel-image-container::before {
    opacity: 0;
    /* Disable glass effect to see image clearly, or adjust as needed */
}

/* Ensure border-radius is applied to the image since container overflow is visible on hover */
.carousel-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    transition: transform 0.5s ease;
    cursor: pointer;
    position: relative;
    /* Needed for z-index effect if siblings are present */
    z-index: 2;
}

.carousel-image:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(var(--color-black-rgb), 0.3);
    /* Add shadow to image on hover */
}

.carousel-navigation {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.carousel-arrow {
    background: transparent;
    /* Minimal, linear */
    color: var(--kurumsal-mavi);
    border: 2px solid var(--kurumsal-mavi);
    /* Linear border */
    padding: 0.8rem 1.2rem;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    /* Glow animation */
    box-shadow: none;
    /* Reset shadow */
}

.carousel-arrow:hover {
    background-color: var(--kurumsal-mavi);
    /* Fill on hover */
    color: var(--header-logo-text);
    box-shadow: 0 0 15px rgba(31, 110, 234, 0.6);
    /* Subtle glow */
}

/* Text Fade-in Animation */
@keyframes fadeInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.carousel-slide.active .carousel-text-content>* {
    /* Apply to direct children of text content */
    opacity: 0;
    /* Hidden initially */
    animation: fadeInFromLeft 0.8s ease-out forwards;
}

.carousel-slide.active .carousel-tag {
    animation-delay: 0.1s;
}

.carousel-slide.active .carousel-slide-title {
    animation-delay: 0.2s;
}

.carousel-slide.active .carousel-description {
    animation-delay: 0.3s;
}

.carousel-slide.active .carousel-gains-list {
    animation-delay: 0.4s;
}

.carousel-slide.active .carousel-gains-list li {
    animation-delay: 0.5s;
}

/* Adjust as needed */
.carousel-slide.active .carousel-cta-button {
    animation-delay: 0.6s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel-slide {
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
    }

    .carousel-text-content,
    .carousel-image-container {
        max-width: 100%;
    }

    .project-carousel-section .carousel-main-title {
        font-size: 2rem;
    }
}

/* ==========================================================================
   9. İLETİŞİM VE FOOTER (CONTACT & FOOTER)
   ========================================================================== */
#iletisim {
    background-color: var(--header-bg);
    padding: var(--space-4) 0;
}

#iletisim h2 {
    color: var(--header-logo-text);
}

.contact-text-center {
    text-align: center;
    color: var(--header-text);
}




section.contact-cta {
    background: var(--gradient-vibrant-blue) !important;
    /* Vibrant Blue Background */
    color: white !important;
    /* White Text */
    padding: var(--space-12) 0;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Ensure text is always white in this section */
section.contact-cta h2,
section.contact-cta p {
    color: white !important;
    transition: color 0.3s ease;
}

section.contact-cta h2 {
    margin-bottom: 1rem;
}

section.contact-cta p {
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

section.contact-cta .btn {
    margin-top: 0.5rem;
}

.contact form {
    max-width: 375px;
    margin: 2rem auto 0;
}

.contact input,
.contact textarea {
    width: 100%;
    padding: var(--space-3);
    margin-bottom: var(--space-4);
    font-family: var(--font-primary);
    font-size: var(--fs-base);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-sm);
}

.contact input:focus,
.contact textarea:focus {
    outline: none;
    border-color: var(--kurumsal-mavi);
    box-shadow: 0 0 0 3px rgba(31, 110, 234, 0.2);
}

.contact button {
    width: 100%;
}

.social-media {
    text-align: center;
    margin-top: 2rem;
}

.social-media a {
    font-size: var(--fs-2xl);
    margin: 0 1rem;
    color: var(--text-primary);
}

.social-media a:hover {
    color: var(--link-color);
}

footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 0.5rem 0;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

footer p {
    font-size: var(--fs-xs);
    /* Even smaller text size */
}

.whatsapp-bubble {
    position: fixed;
    bottom: 45px;
    right: 25px;
    background-color: var(--whatsapp-bubble-bg);
    border-radius: 50px;
    height: 60px;
    box-shadow: 0 4px 12px rgba(var(--color-black-rgb), 0.2);
    z-index: 100;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 60px;
    padding: 0;
}

.whatsapp-bubble:hover {
    width: 250px;
}

.whatsapp-bubble a {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 14px;
    height: 100%;
}

.whatsapp-bubble i {
    font-size: 32px;
    color: var(--whatsapp-bubble-text);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.whatsapp-bubble .whatsapp-text {
    display: block;
    white-space: nowrap;
    color: var(--whatsapp-bubble-text);
    font-weight: var(--fw-medium);
    opacity: 0;
    width: 0;
    /* Başlangıçta genişlik 0 */
    overflow: hidden;
    /* Metnin taşmasını engelle */
    transition: opacity 0.2s ease, width 0.3s ease, margin-left 0.3s ease;
    /* Genişlik ve margin için de geçiş ekle */
}

.whatsapp-bubble:hover .whatsapp-text {
    opacity: 1;
    width: auto;
    /* Metnin doğal genişliğini almasını sağla */
    margin-left: 10px;
    /* İkon ile metin arasına boşluk ekle */
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: var(--space-12);
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: var(--modal-bg);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 35px;
    color: var(--color-neutral-100);
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.btn {
    display: inline-block;
    padding: var(--space-3) var(--space-8);
    font-family: var(--font-primary);
    font-size: var(--fs-base);
    font-weight: var(--fw-medium);
    text-align: center;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    border: 2px solid transparent;
    user-select: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* UI Elements */
.tag {
    display: table;
    /* Ensures width fits content and allows margin centering */
    margin: 0 auto var(--space-5) auto;
    /* Centers the tag and maintains bottom spacing */
    padding: var(--space-2) var(--space-4);
    background: rgba(var(--color-primary-rgb), 0.1);
    color: var(--primary-blue);
    border-radius: var(--radius-full);
    font-weight: var(--fw-bold);
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 0 15px rgba(var(--color-primary-rgb), 0.3);
    /* Glow effect */
    border: 1px solid rgba(var(--color-primary-rgb), 0.2);
    backdrop-filter: blur(5px);
}

.tag-blue {
    background: rgba(31, 110, 234, 0.1);
    color: #1f6eea;
    box-shadow: 0 0 15px rgba(31, 110, 234, 0.4);
    border: 1px solid rgba(31, 110, 234, 0.2);
}

.tag-red {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.hook-buttons {
    margin-top: var(--space-8);
}

.btn-primary {
    padding: 12px 28px;
    font-size: 15px;
    border-radius: 50px;
    /* Capsule shape */
    background: var(--gradient-kurumsal-mavi);
    border: none;
    color: var(--white);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.8px;
    box-shadow: 0 4px 15px rgba(var(--color-black-rgb), 0.2), 0 1px 3px rgba(10, 58, 117, 0.5);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
    will-change: transform, box-shadow;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 70%);
    transition: left 0.5s ease-in-out;
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 25px rgba(10, 58, 117, 0.4), 0 5px 15px rgba(31, 110, 234, 0.5);
    animation: hero-glow 1s ease-out alternate;
    text-decoration: none;
    color: var(--white);
    /* Ensure text remains white on hover */
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--kurumsal-mavi);
    color: var(--kurumsal-mavi);
}

.btn-secondary:hover {
    background-color: var(--link-hover-color);
    border-color: var(--link-hover-color);
    color: var(--header-logo-text);
    text-decoration: none;
}

@media (max-width: 992px) {
    .hero-content h1 {
        font-size: var(--fs-3xl);
    }

    .hero-content p {
        font-size: 15px;
    }

    .hero-stats {
        gap: 1.5rem;
        margin-top: 1.2rem;
    }

    .stat .count {
        font-size: 2.2rem;
    }

    .stat p {
        font-size: 0.9rem;
    }

    .hero-visual {
        width: 40%;
        clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    }

    /* Service cards in services-modern */
    .services-container {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    .service-card {
        flex-basis: 90%;
        /* Mobil cihazlarda daha geniş */
        max-width: 320px;
        /* Maksimum genişlik sınırı */
        padding-top: 120px;
    }

    .service-card::before {
        height: 100px;
    }

    .service-card h3 {
        font-size: 1.5rem;
    }

    .service-card p {
        font-size: 0.95rem;
    }

    .service-card .service-details ul li {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 0 15px;
    }

    .logo img {
        height: 80px;
    }

    .logo .logo-text {
        font-size: var(--fs-xl);
    }

    .logo .logo-subtext {
        font-size: 10px !important;
    }

    ul.nav-links {
        display: none;
    }

    /* Mobil menü için js kullanılacak */
    #hero {
        flex-direction: column;
    }

    #hero .hero-content {
        width: 100%;
        padding: 2rem 15px;
        text-align: center;
    }

    #hero h1 {
        font-size: 26px;
    }

    #hero p {
        font-size: var(--fs-sm);
    }

    .hero-visual {
        width: 100%;
        padding: 1rem 15px;
    }

    /* Make carousel responsive on mobile */
    .carousel-container {
        height: 350px;
    }

    .carousel-container .carousel-slide {
        padding: 2rem 1.5rem;
    }

    .carousel-item-content h3 {
        font-size: 1.5rem;
    }

    .carousel-item-content p {
        font-size: 0.95rem;
    }

    .carousel-button {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .carousel-button.prev {
        left: 10px;
    }

    .carousel-button.next {
        right: 10px;
    }

    /* Mobil cihazlarda görseli gizle */
    .hero-stats {
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
        margin-top: 1.5rem;
    }

    .stat {
        min-width: unset;
    }

    .stat .count {
        font-size: var(--fs-4xl);
    }

    .stat p {
        font-size: var(--fs-sm);
    }

    /* Hizmet kartları mobil düzeni */
    .services-modern h2 {
        font-size: var(--fs-h2);
    }

    .service-card {
        padding: var(--space-6);
        padding-top: 100px;
    }

    .service-card::before {
        height: 80px;
    }

    .service-card h3 {
        font-size: var(--fs-xl);
    }

    .service-card p {
        font-size: var(--fs-sm);
    }

    .service-card .service-details {
        padding: 0 0.5rem;
    }

    .service-card .service-details ul {
        padding-left: 10px;
    }

    .service-card .service-details ul li {
        font-size: 0.8rem;
    }

    /* İletişim Formu */
    .contact form {
        padding: 20px;
    }

    .contact input,
    .contact textarea {
        padding: 12px;
        font-size: 15px;
    }

    .contact button {
        padding: 12px 20px;
        font-size: 15px;
    }

    .btn-primary {
        padding: 12px 18px;
        font-size: 13px;
        white-space: normal;
        /* Allow text to wrap */
        line-height: 1.4;
        /* Adjust line height for wrapped text */
        text-transform: none;
        /* Make text smaller */
        letter-spacing: normal;
        /* Remove extra spacing */
    }

    .whatsapp-bubble {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-bubble img {
        width: 28px;
        height: 28px;
    }

    .whatsapp-bubble:hover {
        width: 250px;
    }
}

@media (max-width: 480px) {
    #hero h1 {
        font-size: 22px;
    }

    #hero p {
        font-size: 13px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 0.5rem;
    }

    .stat {
        min-width: unset;
    }

    .stat .count {
        font-size: 1.8rem;
    }

    .stat p {
        font-size: 0.8rem;
    }

    .services-modern h2 {
        font-size: var(--fs-2xl);
    }

    /* Carousel adjustments for very small screens */
    .carousel-container {
        height: 300px;
    }

    .carousel-container .carousel-slide {
        padding: 1.5rem 1rem;
    }

    .carousel-item-content h3 {
        font-size: 1.3rem;
    }

    .carousel-item-content p {
        font-size: 0.85rem;
    }

    .news-tag {
        font-size: 0.65rem;
        padding: 0.4rem 0.8rem;
    }

    .carousel-button {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* 100% ile alt yazı arasındaki boşluğu sıfırlar */
.stat {
    gap: 0 !important;
}

.stat p {
    margin-top: -1px !important;
    /* Gerekirse daha da yaklaştırır */
    line-height: 1 !important;
}

/* ==========================================================================
   10. HERO CTA BUTON (PREMIUM)
   ========================================================================== */

@keyframes hero-glow {
    0% {
        box-shadow: 0 0 5px rgba(31, 110, 234, 0), 0 0 10px rgba(31, 110, 234, 0);
    }

    100% {
        box-shadow: 0 0 20px rgba(31, 110, 234, 0.8), 0 0 30px rgba(10, 58, 117, 0.6);
    }
}

/* Styles moved to .btn-primary */

/* ==========================================================================
   11. HİZMET BÖLÜMLERİ - PREMIUM ZIG-ZAG (v5 - Hizmet Sayfaları Özel)
   ========================================================================== */
/*
    TASARIM MİMARİSİ (v5 - Premium Zig-Zag):
    - Bu blok hizmet detay sayfalarını etkiler.
    - Zig-zag `clip-path` yapısı, premium "sahne" arka planı ile birleştirildi.
    - Görsel, sahne üzerinde bir odak elemanı olarak duruyor.
    - Metin alanı, `backdrop-filter` ile "cam panel" olarak stilize edildi.
*/

/* Önceki stilleri bu sayfa için sıfırla */
[id^="service-details-"] .service-content-row {
    all: unset;
    display: flex;
    align-items: center;
    width: 100%;
    transition: transform 0.3s ease;
}

[id^="service-details-"] .service-content-row:hover {
    transform: translateY(-8px);
}

/* Sahne ve Zig-Zag Stili (.container'a uygulanıyor) */
[id^="service-details-"] .container {
    max-width: 1200px;
    /* Revert to standard container width */
    padding: 0 15px;
    /* Revert to standard container padding */
    margin: 0 auto;
    /* Center the container */
    position: relative;
    background: none;
    /* Remove background gradient */
    box-shadow: none;
    border-radius: 0;
    overflow: hidden;
    /* Prevent content from flowing outside */
}

[id^="service-details-"] .container::before {
    content: none;
    /* Remove background pattern */
}

[id^="service-details-"] .service-content-row-wrapper {
    padding: 0;
    /* Remove specific padding for wrapper */
}

/* Konteynerlara zig-zag şekli ver */
[id^="service-details-"] .container:nth-of-type(odd) {
    clip-path: none;
    /* Remove zig-zag */
}

[id^="service-details-"] .container:nth-of-type(even) {
    clip-path: none;
    /* Remove zig-zag */
    margin-top: 0;
    /* Remove negative margin */
}

/* İçerik sırasını değiştir */
[id^="service-details-"] .container:nth-of-type(even) .service-content-row {
    flex-direction: row-reverse;
}


/* Odak Elemanı Olarak Görsel */
[id^="service-details-"] .service-content-visual {
    flex: 0 0 50%;
    /* Image container takes 50% of the width */
    max-width: 50%;
    height: 400px;
    /* Fixed height for consistent image size */
    transform: scale(1);
    /* Remove scale on hover by default */
    transition: transform 0.4s ease;
    padding: 0;
}

[id^="service-details-"] .service-content-visual:hover {
    transform: scale(1.03);
    /* Slightly scale on hover */
}

[id^="service-details-"] .service-content-visual img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    /* Lighter shadow */
    width: 100%;
    height: 100%;
    /* Ensure image fills the fixed height container */
    object-fit: cover;
    clip-path: none;
}

/* Cam Panel Olarak Metin */
[id^="service-details-"] .service-content-text {
    flex: 0 0 50%;
    /* Text container takes 50% of the width */
    max-width: 50%;
    padding: 40px;
    /* Consistent padding */
    background: rgba(var(--white), 0.9);
    /* Slightly more opaque background */
    backdrop-filter: blur(8px);
    /* Less blur */
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-lg);
    /* Consistent border-radius with image */
    border: 1px solid var(--border-light);
    /* Lighter border */
    box-shadow: var(--shadow-sm);
    /* Lighter shadow */
}

/* Eski genel kuralları sıfırla/düzelt */
[id^="service-details-"] {
    padding-top: 1.5rem;
    /* Reduced top padding */
    padding-bottom: 6rem;
    /* Keep bottom padding for section separation */
    background-color: var(--buz-gri);
    /* Zig-zag geçişleri için temel arka plan */
}

[id^="service-details-"] h2 {
    display: block;
    /* Make the heading visible */
    margin-top: 0;
    /* Remove top margin */
    margin-bottom: 4rem;
    /* Ensure consistent spacing below the heading */
}

section:nth-of-type(odd),
section:nth-of-type(even) {
    background-color: transparent;
}

.about-section {
    display: flex;
}

/* Yeni eklenen spacing ve container düzenlemesi */
[id^="service-details-"] .container {
    max-width: 1200px;
    margin: 0 auto 3rem auto;
    /* Add bottom margin for spacing between items */
    padding: 0 15px;
    background: none;
    box-shadow: none;
    border-radius: 0;
    overflow: hidden;
}

[id^="service-details-"] .container:last-of-type {
    margin-bottom: 0;
    /* No bottom margin for the last item */
}

/* ==========================================================================
   13. HERO CAROUSEL STYLES - PREMIUM
   ========================================================================== */

/* Hero Carousel Container */
.carousel-container {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-primary);
    background: var(--card-bg);
}

/* Animated Background for Carousel */
.carousel-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.1), transparent 70%);
    border-radius: 50%;
    animation: carouselFloat1 18s infinite ease-in-out;
    pointer-events: none;
    z-index: 1;
}

.carousel-container::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -15%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08), transparent 70%);
    border-radius: 50%;
    animation: carouselFloat2 22s infinite ease-in-out;
    pointer-events: none;
    z-index: 1;
}

@keyframes carouselFloat1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(40px, -30px) scale(1.15);
    }

    66% {
        transform: translate(-30px, 20px) scale(0.95);
    }
}

@keyframes carouselFloat2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-35px, 25px) scale(1.1);
    }

    66% {
        transform: translate(40px, -20px) scale(0.9);
    }
}

html[data-theme="dark"] .carousel-container::before,
html[data-theme="dark"] .carousel-container::after {
    opacity: 0.2;
}

/* Carousel Slides */
.carousel-container .carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out, transform 0.8s ease-in-out;
    transform: translateX(100px);
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: var(--space-12);
    z-index: 2;
}

.carousel-container .carousel-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    z-index: 3;
}

/* Sliding from left animation */
.carousel-container .carousel-slide.slide-out-left {
    transform: translateX(-100px);
    opacity: 0;
}

.carousel-container .carousel-slide.slide-in-right {
    transform: translateX(100px);
    opacity: 0;
}

/* Carousel Item (News Mode) */
.carousel-item.news-mode {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

/* Gradient border on hover */
.carousel-item.news-mode::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: var(--gradient-kurumsal-mavi);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.carousel-item.news-mode:hover::before {
    opacity: 1;
}

.carousel-item.news-mode:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(var(--color-primary-rgb), 0.25);
}

.carousel-item-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: var(--space-8);
    position: relative;
    z-index: 2;
}

/* News Tag */
.news-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--carousel-tag-bg);
    color: var(--carousel-tag-color);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 1px;
    align-self: flex-start;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(var(--color-primary-rgb), 0.15);
    transition: all 0.3s ease;
}

.carousel-item.news-mode:hover .news-tag {
    transform: translateX(5px);
    box-shadow: 0 6px 15px rgba(var(--color-primary-rgb), 0.25);
}

.news-tag i {
    font-size: var(--fs-sm);
}

.carousel-item-content h3 {
    color: var(--carousel-slide-title-color);
    font-size: var(--fs-3xl);
    font-weight: var(--fw-bold);
    margin-bottom: var(--space-4);
    line-height: var(--lh-tight);
    transition: color var(--transition-base);
}

.carousel-item.news-mode:hover .carousel-item-content h3 {
    color: var(--primary-blue);
}

.carousel-item-content p {
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.read-more {
    color: var(--link-color);
    font-weight: var(--fw-semibold);
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease, color 0.3s ease;
}

.carousel-item.news-mode:hover .read-more {
    gap: 1rem;
    color: var(--link-hover-color);
}

/* Carousel Navigation Buttons */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--kurumsal-mavi);
    color: var(--kurumsal-mavi);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 1.2rem;
}

.carousel-button:hover {
    background: var(--kurumsal-mavi);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 20px rgba(0, 43, 73, 0.3);
}

.carousel-button.prev {
    left: 20px;
}

.carousel-button.next {
    right: 20px;
}

/* Carousel Progress Indicators (optional) */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: var(--kurumsal-mavi);
    width: 30px;
    border-radius: 5px;
}

/* Animation for content appearing */
@keyframes slideInContent {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-slide.active .news-tag {
    animation: slideInContent 0.6s ease-out 0.2s backwards;
}

.carousel-slide.active h3 {
    animation: slideInContent 0.6s ease-out 0.3s backwards;
}

.carousel-slide.active p {
    animation: slideInContent 0.6s ease-out 0.4s backwards;
}

.carousel-slide.active .read-more {
    animation: slideInContent 0.6s ease-out 0.5s backwards;
}

/* ==========================================================================
   14. RESPONSIVE DESİGN - COMPREHENSIVE MOBILE & TABLET SUPPORT
   ========================================================================== */

/* ====================================
   TABLET & SMALLER DESKTOPS (max-width: 1024px)
   ==================================== */
@media screen and (max-width: 1024px) {

    /* Container genişliği */
    .container {
        max-width: 95%;
        padding: 0 20px;
    }

    /* Typography ayarlamaları */
    h1 {
        font-size: var(--fs-4xl);
    }

    h2 {
        font-size: var(--fs-3xl);
    }

    h3 {
        font-size: var(--fs-xl);
    }

    /* Navigation grid'i basitleştir */
    nav {
        grid-template-columns: auto 1fr auto;
        padding: 0 20px;
    }

    ul.nav-links {
        gap: 1.5rem;
    }

    ul.nav-links li a {
        font-size: 15px;
    }

    /* Logo boyutu - Tablet */
    .logo img,
    .logo img#site-logo,
    header .logo img {
        height: 75px !important;
    }

    .logo .logo-text {
        font-size: 23px;
    }

    /* Hero section düzenlemesi */
    #hero .hero-content {
        padding: 0 1.5rem;
    }

    #hero h1 {
        font-size: var(--fs-2xl);
    }

    #hero p {
        font-size: var(--fs-sm);
    }

    /* Services grid */
    .services-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    /* Section padding */
    section {
        padding: var(--space-16) 0;
    }

    /* Service Detail Pages */
    .service-content-row {
        gap: var(--space-12);
        margin-bottom: var(--space-20);
    }

    .service-content-text h3 {
        font-size: 1.5rem;
    }

    .service-content-text p {
        font-size: 0.95rem;
    }

    /* Grids */
    .why-grid {
        gap: 1.5rem;
    }

    #why-choose-us-hakkimizda .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .outputs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Value Engine */
    .value-engine-diagram {
        height: 650px;
    }

    .engine-component {
        width: 220px;
    }

    /* Project Carousel */
    .carousel-wrapper {
        padding: 2.5rem 2rem;
    }
}

/* ====================================
   TABLET PORTRAIT (max-width: 768px)
   ==================================== */
@media screen and (max-width: 768px) {

    /* Header ayarları */
    header {
        height: 80px;
        min-height: 80px;
    }

    /* Mobile Navigation */
    nav {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        padding: var(--space-2) var(--container-padding);
        gap: var(--space-4);
    }

    .logo {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }

    ul.nav-links {
        grid-column: 1;
        grid-row: 2;
        justify-self: center;
        flex-wrap: wrap;
        gap: 1rem;
        font-size: var(--fs-sm);
        width: 100%;
        justify-content: center;
    }

    ul.nav-links li a {
        font-size: var(--fs-sm);
        padding: var(--space-1) 0;
    }

    #theme-toggle {
        position: absolute;
        top: 15px;
        right: 15px;
        grid-column: auto;
        grid-row: 1;
    }

    .logo img,
    .logo img#site-logo,
    header .logo img {
        height: 60px !important;
    }

    .logo .logo-text {
        font-size: var(--fs-xl);
    }

    .logo .logo-subtext {
        font-size: 10px !important;
    }

    /* Dropdown ayarları */
    .dropdown .dropbtn {
        height: auto;
    }

    .dropdown-content {
        min-width: 200px;
        left: 0;
        transform: none;
    }

    /* Hero Section - Stack Layout */
    #hero {
        margin-top: calc(var(--header-height) + 5px);
        padding: var(--space-8) 0 !important;
        flex-direction: column;
        min-height: auto !important;
    }

    #hero .hero-content {
        flex: 1 1 100%;
        padding: 1.5rem 1rem;
        text-align: center;
    }

    #hero .hero-visual {
        flex: 1 1 100%;
        padding: 1rem;
        width: 100%;
    }

    #hero h1 {
        font-size: var(--fs-2xl);
        margin-bottom: var(--space-4);
    }

    #hero p {
        font-size: var(--fs-sm);
        margin: var(--space-4) 0 var(--space-6);
        max-width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        padding: var(--space-3) var(--space-5);
        font-size: var(--fs-sm);
    }

    /* Hero Stats */
    #hero-stats-section {
        margin-top: 1.5rem;
    }

    #hero-stats-section .hero-stats {
        gap: 1.5rem;
        justify-content: center;
    }

    #hero-stats-section .stat {
        min-width: 90px;
    }

    #hero-stats-section .stat .count {
        font-size: var(--fs-4xl);
    }

    #hero-stats-section .stat p {
        font-size: var(--fs-sm);
    }

    /* Carousel in Hero */
    .carousel-container {
        max-width: 100%;
        width: 95%;
    }

    .carousel-item {
        padding: 1.5rem;
    }

    .carousel-item h3 {
        font-size: var(--fs-lg);
    }

    .carousel-item p {
        font-size: var(--fs-sm);
    }

    .carousel-button {
        width: 35px;
        height: 35px;
        font-size: var(--fs-sm);
    }

    /* Typography */
    h1 {
        font-size: var(--fs-h2);
    }

    h2 {
        font-size: var(--fs-2xl);
        margin-bottom: 2.5rem;
    }

    h3 {
        font-size: var(--fs-lg);
    }

    /* Services Section */
    .services-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: var(--space-6);
    }

    .service-card .btn {
        padding: var(--space-3) var(--space-6);
        font-size: var(--fs-sm);
    }

    /* Service Hero */
    .service-hero {
        padding: var(--space-16) 0;
        min-height: 300px;
    }

    .service-hero h1 {
        font-size: var(--fs-h2);
    }

    .service-hero p {
        font-size: 1rem;
    }

    /* Contact Form */
    .contact form {
        padding: 0 1rem;
    }

    .contact input,
    .contact textarea {
        font-size: var(--fs-sm);
        padding: 12px;
    }

    /* Sections */
    section {
        padding: var(--space-12) 0;
    }

    /* Footer */
    footer {
        padding: 1.5rem 0 !important;
        font-size: var(--fs-sm);
    }

    /* Service Detail Pages */
    .service-content-row {
        flex-direction: column !important;
        gap: var(--space-8);
        margin-bottom: var(--space-16);
    }

    .service-content-text,
    .service-content-visual {
        flex: 1 1 100%;
        min-height: auto;
    }

    .service-content-visual {
        min-height: 250px;
    }

    .about-section .section-container {
        flex-direction: column !important;
        gap: var(--space-8);
    }

    .about-content-left,
    .about-content-right,
    .about-visual-left,
    .about-visual-right {
        flex: 1 1 100%;
    }

    .about-visual-left,
    .about-visual-right {
        min-height: 250px;
    }

    /* Why Choose Us Grid */
    .why-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    #why-choose-us-hakkimizda .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Approach Grid */
    .approach-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Value Engine */
    .value-engine-diagram {
        height: 600px;
        margin: 5rem auto;
    }

    .engine-core {
        width: 200px;
        height: 200px;
    }

    .engine-component {
        width: 180px;
        padding: 1rem;
    }

    .engine-component h3 {
        font-size: 1rem;
    }

    .engine-component p {
        font-size: 0.8rem;
    }

    .outputs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* Project Carousel */
    .carousel-wrapper {
        padding: 2rem 1.5rem;
    }

    .carousel-slide {
        flex-direction: column;
    }

    .carousel-text-content,
    .carousel-image-container {
        flex: 1 1 100%;
    }

    .carousel-image-container {
        max-height: 300px;
    }

    /* WhatsApp Bubble */
    .whatsapp-bubble {
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-bubble a {
        padding: 12px 15px;
        font-size: var(--fs-sm);
    }

    .whatsapp-text {
        display: none;
    }

    .whatsapp-bubble a i {
        margin-right: 0;
        font-size: var(--fs-2xl);
    }
}

/* ====================================
   MOBILE PHONES (max-width: 480px)
   ==================================== */
@media screen and (max-width: 480px) {

    /* Container */
    .container {
        padding: 0 15px;
    }

    /* Header - Kompakt Mobile Nav */
    header {
        height: auto;
        min-height: 70px;
    }

    nav {
        padding: 0.5rem 10px;
    }

    .logo img,
    .logo img#site-logo,
    header .logo img {
        height: 55px !important;
    }

    .logo .logo-text {
        font-size: 18px;
    }

    .logo .logo-subtext {
        font-size: 9px !important;
    }

    ul.nav-links {
        gap: 0.5rem;
        font-size: 12px;
    }

    ul.nav-links li a {
        font-size: 12px;
        padding: 0.25rem 0;
    }

    #theme-toggle {
        top: 10px;
        right: 10px;
    }

    .theme-toggle-button {
        font-size: 1.2rem;
        margin-left: 0.5rem;
    }

    /* Hero Section */
    #hero {
        margin-top: calc(var(--header-height) - 5px);
        padding: var(--space-6) 0 !important;
    }

    #hero .hero-content {
        padding: 1rem 0.75rem;
    }

    #hero h1 {
        font-size: var(--fs-xl);
        line-height: var(--lh-tight);
    }

    #hero p {
        font-size: 12px;
        line-height: 1.6;
        margin: 0.75rem 0 1.25rem;
    }

    .hero-buttons {
        gap: 0.5rem;
    }

    .hero-buttons .btn {
        padding: 10px 18px;
        font-size: 13px;
        max-width: 100%;
    }

    /* Hero Stats */
    #hero-stats-section .hero-stats {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }

    #hero-stats-section .stat {
        min-width: 100%;
        text-align: center;
    }

    #hero-stats-section .stat .count {
        font-size: 1.8rem;
    }

    #hero-stats-section .stat p {
        font-size: 0.8rem;
    }

    /* Carousel */
    .carousel-container {
        width: 100%;
        max-width: 100%;
    }

    .carousel-item {
        padding: 1.25rem;
    }

    .carousel-item h3 {
        font-size: var(--fs-base);
    }

    .carousel-item p {
        font-size: 12px;
        line-height: 1.5;
    }

    .news-tag {
        font-size: 10px;
        padding: 4px 10px;
    }

    .carousel-button {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    /* Typography */
    h1 {
        font-size: var(--fs-2xl);
    }

    h2 {
        font-size: var(--fs-xl);
        margin-bottom: 2rem;
    }

    h3 {
        font-size: var(--fs-base);
    }

    body {
        font-size: var(--fs-sm);
    }

    /* Services */
    .service-card {
        padding: 1.25rem;
    }

    .service-card h3 {
        font-size: 18px;
        margin-bottom: 0.75rem;
    }

    .service-card p {
        font-size: 13px;
    }

    .service-card .service-details {
        padding: 0 0.5rem;
        font-size: 13px;
    }

    .service-card .btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    /* Service Hero */
    .service-hero {
        padding: 3rem 0;
        min-height: 250px;
    }

    .service-hero h1 {
        font-size: var(--fs-2xl);
    }

    .service-hero p {
        font-size: var(--fs-sm);
    }

    /* Contact Section */
    .contact h2 {
        font-size: 22px;
    }

    .contact-text-center {
        font-size: var(--fs-sm);
        padding: 0 1rem;
    }

    .contact input,
    .contact textarea {
        font-size: 13px;
        padding: 10px;
    }

    .contact button {
        padding: 10px 20px;
        font-size: var(--fs-sm);
    }

    /* Social Media */
    .social-media a {
        font-size: 1.25rem;
        margin: 0 0.5rem;
    }

    /* Sections */
    section {
        padding: 2.5rem 0;
    }

    /* Dropdown */
    .dropdown-content {
        min-width: 160px;
    }

    .dropdown-content a {
        font-size: 13px;
        padding: 10px 15px;
    }

    /* Footer */
    footer {
        font-size: 12px;
    }

    footer div {
        font-size: 1.25rem !important;
    }

    /* WhatsApp */
    .whatsapp-bubble {
        bottom: 10px;
        right: 10px;
    }

    .whatsapp-bubble a {
        padding: 10px 12px;
    }

    .whatsapp-bubble a i {
        font-size: var(--fs-xl);
    }

    /* Service Detail Pages - Mobile */
    .service-content-row {
        margin-bottom: 3rem;
    }

    .service-content-text h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .service-content-text p {
        font-size: 0.9rem;
    }

    .service-content-visual {
        min-height: 200px;
    }

    .about-visual-left,
    .about-visual-right {
        min-height: 200px;
    }

    /* Why Grid - Single column on mobile */
    .why-grid,
    #why-choose-us-hakkimizda .why-grid {
        grid-template-columns: 1fr;
    }

    .why-item {
        padding: 1.5rem;
    }

    /* Approach Grid */
    .approach-grid {
        grid-template-columns: 1fr;
    }

    /* Value Engine - Mobile */
    .value-engine-diagram {
        height: auto;
        min-height: 500px;
        margin: 3rem auto;
    }

    .engine-core {
        width: 150px;
        height: 150px;
    }

    .engine-core .core-title {
        font-size: 1.3rem;
    }

    .engine-core .core-label {
        font-size: 0.9rem;
    }

    .engine-component {
        width: 140px;
        padding: 0.75rem;
        font-size: 0.85rem;
    }

    .engine-component h3 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .engine-component p {
        font-size: 0.7rem;
        line-height: 1.4;
    }

    .outputs-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .output-item {
        padding: 1.25rem;
    }

    .output-icon {
        font-size: 1.8rem;
    }

    .output-text h3 {
        font-size: 1rem;
    }

    .output-text p {
        font-size: 0.8rem;
    }

    /* Project Carousel - Mobile */
    .carousel-wrapper {
        padding: 1.5rem 1rem;
    }

    .carousel-tag {
        font-size: 0.7rem;
        padding: 0.3rem 0.75rem;
    }

    .carousel-slide-title {
        font-size: 1.25rem;
    }

    .carousel-description {
        font-size: 0.85rem;
    }

    .carousel-gains-list li {
        font-size: 0.85rem;
    }

    .carousel-image-container {
        max-height: 250px;
    }

    .carousel-arrow {
        width: 35px;
        height: 35px;
        font-size: var(--fs-sm);
    }

    /* Contact CTA */
    section.contact-cta {
        padding: 3rem 1rem;
    }

    section.contact-cta h2 {
        font-size: 1.5rem;
    }

    section.contact-cta p {
        font-size: 0.9rem;
    }
}

/* ====================================
   LANDSCAPE ORIENTATION FIX
   ==================================== */
@media screen and (max-height: 500px) and (orientation: landscape) {
    #hero {
        padding: 1.5rem 0 !important;
    }

    header {
        height: 70px;
        min-height: 70px;
    }

    section {
        padding: 2rem 0;
    }
}

/* ====================================
   TEXT OVERFLOW & WRAPPING
   ==================================== */
#hero .hero-content p,
#hero h1 {
    max-width: 100% !important;
    overflow: visible !important;
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Prevent horizontal scroll */
body,
html {
    overflow-x: hidden;
    width: 100%;
}

* {
    box-sizing: border-box;
}

/* ==========================================================================
   MEGA DESIGN SYSTEM (Aivatech Style)
   ========================================================================== */

.hero-mega {
    min-height: 72vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(120deg,
            rgba(239, 246, 255, 0.96) 0%,
            rgba(219, 234, 254, 0.98) 28%,
            rgba(191, 219, 254, 0.98) 60%,
            rgba(147, 197, 253, 0.98) 100%),
        url('herofirstpic.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: soft-light;
    padding: 120px 0 80px;
    text-align: center;
}


html[data-theme="dark"] .hero-mega {
    background: radial-gradient(ellipse at top, rgba(var(--color-primary-rgb), 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.hero-mega.hero-small {
    min-height: 30vh !important;
    padding: 60px 0 40px !important;
}


.hero-mega-content {
    max-width: 950px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    padding: 0 var(--container-padding);
}

.hero-mega h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 32px;
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: -1.5px;
    text-shadow: 0 2px 10px rgba(var(--color-black-rgb), 0.05);
}

.hero-mega h1 .highlight {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 50%, var(--color-info) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    position: relative;
    filter: drop-shadow(0 2px 4px rgba(var(--color-primary-rgb), 0.2));
}

.hero-mega p {
    font-size: clamp(1.15rem, 2.2vw, 1.5rem);
    color: var(--text-secondary);
    max-width: 750px;
    margin: 0 auto var(--space-12);
    line-height: var(--lh-relaxed);
    font-weight: 500;
    opacity: 0.9;
}

.hero-mega-buttons {
    display: flex;
    gap: var(--space-5);
    justify-content: center;
    flex-wrap: wrap;
}

.btn-mega-primary {
    background: var(--gradient-primary);
    color: white;
    padding: var(--space-5) var(--space-10);
    border-radius: var(--radius-full);
    font-size: var(--fs-lg);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-mega-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-mega-primary:hover::before {
    left: 100%;
}

.btn-mega-primary:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 40px rgba(var(--color-primary-rgb), 0.5), 0 4px 12px rgba(var(--color-primary-rgb), 0.3);
    color: white;
}

.btn-mega-secondary {
    background: rgba(var(--white), 0.9);
    color: var(--text-primary);
    padding: var(--space-5) var(--space-10);
    border-radius: var(--radius-full);
    font-size: var(--fs-lg);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    border: 2px solid rgba(var(--color-primary-rgb), 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(var(--color-black-rgb), 0.08);
}

html[data-theme="dark"] .btn-mega-secondary {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(96, 165, 250, 0.3);
}

.btn-mega-secondary:hover {
    background: rgba(var(--color-primary-rgb), 0.05);
    border-color: rgba(var(--color-primary-rgb), 0.4);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 8px 24px rgba(var(--color-primary-rgb), 0.2);
    color: var(--primary-blue);
}

html[data-theme="dark"] .btn-mega-secondary:hover {
    background: rgba(96, 165, 250, 0.1);
    border-color: rgba(96, 165, 250, 0.5);
    color: var(--link-color);
}

.gradient-orb {
    position: absolute;
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.24) 0%, rgba(59, 130, 246, 0.16) 40%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    filter: blur(90px);
    pointer-events: none;
    animation: orbPulse 8s infinite ease-in-out;
}

/* STRATEGIC GROWTH BACKGROUND VISUALS */
.hero-bg-decoration {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

/* 1. Subtle Strategic Grid */
.growth-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(var(--color-primary-rgb), 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(var(--color-primary-rgb), 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
    opacity: 0.6;
}

/* 2. Premium Ocean Waves Concept - Full Width, Fixed Bottom Height */
.waves-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    /* Better vertical balance */
    overflow: hidden;
    z-index: 1;
}

.waves-svg {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 100%;
}

/* Parallax Animation for Waves */
.parallax-waves>use {
    animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}

.parallax-waves>use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
    fill: rgba(var(--color-primary-rgb), 0.05);
}

.parallax-waves>use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
    fill: rgba(var(--color-primary-rgb), 0.1);
}

.parallax-waves>use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
    fill: rgba(var(--color-primary-rgb), 0.15);
}

.parallax-waves>use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
    fill: rgba(var(--color-primary-rgb), 0.2);
}

@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }

    100% {
        transform: translate3d(85px, 0, 0);
    }
}

/* Depth shadow at the bottom */
.ocean-depth {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15vh;
    background: linear-gradient(to top, rgba(var(--color-primary-rgb), 0.1), transparent);
    pointer-events: none;
    z-index: 2;
}

/* Clearing the center area for headline readability */
.hero-bg-decoration::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center bottom, transparent 20%, var(--hero-bg) 90%);
    pointer-events: none;
    z-index: 3;
}


/* Masking the center to keep text background clean */
.hero-bg-decoration::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, var(--hero-bg) 30%, transparent 90%);
    pointer-events: none;
    z-index: 2;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}



/* 4. Global Background Shift */
@keyframes backgroundShift {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-15px, 15px) scale(1.05);
    }
}

html[data-theme="dark"] .growth-grid {
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

html[data-theme="dark"] .growth-path-main {
    stroke: var(--color-primary-400);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards cubic-bezier(0.4, 0, 0.2, 1);
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stats-mega-section {
    padding: var(--space-10) 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.stats-mega-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-10);
    text-align: center;
}

.stat-mega-item {
    display: flex;
    flex-direction: column;
}

.stat-mega-number {
    font-size: var(--fs-5xl);
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
    margin-bottom: var(--space-2);
}

.stat-number-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.stat-mega-suffix {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.stat-mega-item p {
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: var(--fs-sm);
}

/* ==========================================================================
   HOMEPAGE REFINEMENTS (User Feedback)
   ========================================================================== */

/* Logo Stacking Fix removed as it is now handled at the top */

/* Hero Section Enhancements */
.hero-mega h1 {
    font-size: clamp(2.2rem, 7.5vw, 4.8rem) !important;
    letter-spacing: -2px;
}

.hero-mega p {
    font-weight: 600 !important;
    font-size: 1.25rem !important;
    color: var(--text-primary) !important;
    opacity: 0.95;
    max-width: 800px !important;
}

.gradient-orb {
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.2) 0%, transparent 75%);
    animation: orbPulse 5s infinite ease-in-out !important;
    /* Faster/More dynamic */
}

/* Education Hook Section Styles */
.edu-hook-section {
    padding: var(--space-28) 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

/* Education Hook Section Styles */
.edu-hook-section {
    padding: var(--space-28) 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.edu-hook-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-20);
    align-items: center;
}

.edu-hook-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.edu-hook-content p {
    font-size: 1.1rem;
    line-height: var(--lh-relaxed);
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.edu-carousel-container {
    background: var(--bg-primary);
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-primary);
    position: relative;
    border: 1px solid var(--border-light);
}

.edu-card-mini {
    padding: var(--space-5);
    border-left: 4px solid var(--primary-blue);
    background: var(--bg-secondary);
    margin-bottom: var(--space-4);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.edu-card-mini h4 {
    margin-bottom: var(--space-1);
    color: var(--text-primary);
}

.edu-card-mini span {
    font-size: var(--fs-sm);
    color: var(--primary-blue);
    font-weight: 600;
}

/* Service Card Refresh (Tall & Narrow) */
.services-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: var(--space-10) !important;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Hizmetler bölümü için özel stil */
#hizmetler .services-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: var(--space-8) !important;
}

@media (max-width: 1200px) {
    #hizmetler .services-grid {
        gap: 30px !important;
    }
}

/* ==========================================================================
   ENGAGEMENT HOOKS (Strategic Narrative)
   ========================================================================== */

.hook-section {
    padding: var(--space-24) 0;
    position: relative;
    overflow: hidden;
}

/* Premium Gradient Transition Utility */
.bg-gradient-transition-ice {
    position: relative;
    background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(var(--color-primary-rgb), 0.03) 50%, var(--color-primary-50) 100%) !important;
}

.bg-gradient-transition-ice::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.08) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    filter: blur(40px);
}

html[data-theme="dark"] .bg-gradient-transition-ice {
    background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(59, 130, 246, 0.05) 100%) !important;
}

html[data-theme="dark"] .bg-gradient-transition-ice::after {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
}

.hook-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-20);
    align-items: center;
    position: relative;
    z-index: 2;
}

.hook-content h2 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.hook-content p {
    font-size: 1.15rem;
    line-height: var(--lh-relaxed);
    color: var(--text-secondary);
}

.hook-visual img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-primary);
    width: 100%;
    transition: transform 0.5s ease;
}

.hook-visual img:hover {
    transform: scale(1.02);
}

/* Alternate Layout Fixes */
.hook-grid.reverse .hook-content {
    order: 2;
}

.hook-grid.reverse .hook-visual {
    order: 1;
}

/* ==========================================================================
   SERVICES TABBED INTERFACE (Hippotenus Style)
   ========================================================================== */

.services-tabbed-section {
    background: var(--bg-primary);
    position: relative;
}

.services-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.tab-nav-item {
    padding: 14px 28px;
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
}

.tab-nav-item i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.tab-nav-item:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.tab-nav-item.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    box-shadow: 0 8px 20px rgba(var(--color-primary-rgb), 0.3);
}

.tab-nav-item.active i {
    transform: scale(1.1);
}

.services-tabs-content {
    min-height: 400px;
    position: relative;
}

.tab-panel {
    display: none;
    animation: fadeInTab 0.6s ease forwards;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.sub-service-card {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    text-decoration: none;
    color: inherit;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.sub-service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--primary-blue);
    transform: scaleY(0);
    transition: transform 0.4s ease;
    transform-origin: bottom;
}

.sub-service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
    background: var(--bg-primary);
}

.sub-service-card:hover::after {
    transform: scaleY(1);
}

.ss-icon {
    width: 60px;
    height: 60px;
    background: rgba(var(--color-primary-rgb), 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.sub-service-card:hover .ss-icon {
    background: var(--primary-blue);
    color: white;
    transform: rotateY(180deg);
}

.sub-service-card h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
    line-height: 1.3;
}

.sub-service-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.6;
    flex-grow: 1;
}

.ss-link {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.sub-service-card:hover .ss-link {
    gap: 15px;
}

/* Responsiveness for Tabs */
@media (max-width: 768px) {
    .tab-nav-item {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .tab-grid {
        grid-template-columns: 1fr;
    }

    .sub-service-card {
        padding: 30px;
    }
}

/* Insight Section Background Transitions */
.insight-bg-transition {
    transition: background-color 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.insight-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-16);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    box-shadow: var(--shadow-primary);
}

.insight-card .tag {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bubble-bg);
    color: var(--primary-blue);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
}

.insight-card h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.insight-card p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: var(--lh-relaxed);
}

@media (max-width: 992px) {
    .hook-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hook-grid.reverse .hook-content {
        order: 1;
    }

    .hook-grid.reverse .hook-visual {
        order: 2;
    }

    .insight-card {
        padding: 40px 20px;
    }
}

.insight-stat-visual {
    margin-bottom: 30px;
}

.insight-stat-visual .stat-big {
    font-size: 4rem;
    font-weight: 900;
    color: #ef4444;
    line-height: 1;
}

.insight-stat-visual .stat-desc {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 10px;
}

/* ==========================================================================
   İLETİŞİM SAYFASI - DENEME STİLİ (Premium Dark Theme)
   ========================================================================== */

/* Service Hero for Contact */
#service-hero-iletisim {
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.9) 0%, rgba(30, 64, 175, 0.95) 100%);
    position: relative;
    overflow: hidden;
    min-height: auto !important;
    padding-top: calc(var(--header-height) + 2rem) !important;
    padding-bottom: 2rem !important;
}

#service-hero-iletisim::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(var(--color-primary-rgb), 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

#service-hero-iletisim .service-hero-content {
    position: relative;
    z-index: 2;
}

#service-hero-iletisim h1,
#service-hero-iletisim p {
    color: var(--white) !important;
    text-shadow: 0 2px 10px rgba(var(--color-black-rgb), 0.5);
}

/* Contact Page Section */
.contact-page {
    padding: var(--space-20) 0;
    background: var(--bg-secondary);
    position: relative;
}

html[data-theme="dark"] .contact-page {
    background: var(--bg-primary);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-16);
    max-width: var(--container-max-width);
    margin: 0 auto;
}

/* Contact Info Sidebar */
.contact-info {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    height: fit-content;
    position: sticky;
    top: calc(var(--header-height) + var(--space-8));
    box-shadow: var(--card-shadow);
}

.contact-info h2 {
    font-size: var(--fs-3xl);
    font-weight: 700;
    margin-bottom: var(--space-8);
    color: var(--section-h2-color);
    text-align: left;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-5);
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-8);
    border-bottom: 1px solid rgba(var(--white), 0.1);
    transition: transform 0.3s ease;
}

html[data-theme="light"] .info-item {
    border-bottom: 1px solid var(--border-light);
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-item:hover {
    transform: translateX(5px);
}

.info-item i {
    font-size: var(--fs-2xl);
    color: var(--primary-blue);
    min-width: var(--space-8);
    margin-top: var(--space-1);
}

.info-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-item a {
    color: var(--link-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.info-item a:hover {
    color: var(--link-hover-color);
}

/* Contact Form Container */
.contact-form-container {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: var(--space-12);
    box-shadow: var(--card-shadow);
}

.contact-form-container h2 {
    font-size: var(--fs-4xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--section-h2-color);
    text-align: left;
}

.form-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-10);
    font-size: var(--fs-lg);
    line-height: var(--lh-relaxed);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.required {
    color: var(--color-danger);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-4) var(--space-5);
    background: var(--bg-primary);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--fs-base);
    font-family: var(--font-primary);
    transition: all var(--transition-base);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-tertiary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.2);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232563EB' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 50px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: var(--font-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
}

/* Submit Button */
.contact-form .btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: var(--space-4) var(--space-10);
    font-size: var(--fs-lg);
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-2);
    box-shadow: 0 8px 24px rgba(var(--color-primary-rgb), 0.35);
}

.contact-form .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(var(--color-primary-rgb), 0.5);
}

.contact-form .btn-primary i {
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info {
        position: static;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-page {
        padding: var(--space-12) 0;
    }

    .contact-info,
    .contact-form-container {
        padding: var(--space-8) var(--space-5);
    }

    .contact-form-container h2 {
        font-size: var(--fs-3xl);
    }

    .contact-info h2 {
        font-size: var(--fs-2xl);
    }

    .info-item {
        flex-direction: column;
        gap: 10px;
    }
}

/* Hook Stat Card - Theme specific colors */
html[data-theme="light"] .hook-stat-card {
    color: black !important;
}

html[data-theme="light"] .hook-stat-card h3,
html[data-theme="light"] .hook-stat-card p {
    color: black !important;
}

html[data-theme="dark"] .hook-stat-card,
html[data-theme="dark"] .hook-stat-card h3,
html[data-theme="dark"] .hook-stat-card p {
    color: white !important;
}

/* Blog Post Pages - Hero Section Responsive */
@media (max-width: 768px) {
    .post-hero-mega {
        background-attachment: scroll !important;
        padding: 4rem 0 !important;
    }

    .post-hero-text h1 {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
    }

    .post-hero-text span {
        font-size: 0.8rem !important;
    }
}