@import url('modal.css');

/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Colors */
    --primary-color: #0f172a;
    /* Deep Blue / Dark Slate */
    --secondary-color: #3b82f6;
    /* Vibrant Blue */
    --accent-color: #06b6d4;
    /* Cyan Accent */
    --text-dark: #1e293b;
    --text-light: #f8fafc;
    --text-muted: #64748b;
    --bg-light: #ffffff;
    --bg-gray: #f1f5f9;
    --bg-dark: #0f172a;

    /* Spacing */
    --section-padding: 80px 0;
    --container-width: 1200px;

    /* Effects */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: 1px solid rgba(255, 255, 255, 0.2);
    --glass-blur: blur(10px);

    /* Transitions */
    --transition-fast: 0.3s ease;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   2. UI UTILITIES & LAYOUT (NEW)
   ========================================= */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

/* Grids */
.grid-2,
.grid-3 {
    display: grid;
    gap: 40px;
    align-items: center;
}

.grid-2 {
    grid-template-columns: 1fr 1fr;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-auto {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Responsive Grids */
@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .about-grid,
    .contact-grid,
    .mv-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Cards */
.card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: var(--transition-fast);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

/* Icons */
.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
}

.icon-blue {
    background: #eff6ff;
    color: var(--secondary-color);
}

.icon-green {
    background: #f0fdf4;
    color: #22c55e;
}

.icon-red {
    background: #fff1f2;
    color: #f43f5e;
}

/* =========================================
   3. HEADER & NAVBAR
   ========================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.5);
    /* 50% transparent white initially */
    transition: all 0.4s ease;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    /* Subtle dark border */
}

header.static-dark {
    background: rgba(15, 23, 42, 0.95);
    /* Dark solid on scroll */
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    /* White solid on scroll */
    backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid transparent;
}

header.scrolled .logo,
header.scrolled .nav-links a,
header.scrolled .hamburger {
    color: var(--text-dark);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.logo img {
    height: auto;
    max-height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo span {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 40px;
    /* More space */
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    opacity: 0.9;
    transition: var(--transition-fast);
}

.nav-links a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: var(--transition-fast);
}

.nav-links a:hover::after {
    width: 100%;
}

.header-btn {
    padding: 12px 30px;
    background: var(--secondary-color);
    color: var(--text-light);
    border-radius: 4px;
    /* More corporate, less rounded */
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.header-social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.header-social-icons a {
    color: var(--text-dark);
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.header-social-icons a:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 1.8rem;
}

/* Slider Backgrounds with Responsive Support */
.slide-1 {
    background-image: url('../../İmages/slider-1.jpg');
}

.slide-2 {
    background-image: url('../../İmages/slider-2.png');
}

.slide-3 {
    background-image: url('../../İmages/slider-3.png');
}

@media (max-width: 768px) {
    .slide {
        background-size: 100% auto !important;
        background-repeat: repeat-y !important;
    }

    .slide-1 {
        background-image: url('../../İmages/slider-1-mobile.jpg');
    }

    .slide-2 {
        background-image: url('../../İmages/slider-2-mobile.jpg');
    }

    .slide-3 {
        background-image: url('../../İmages/slider-3-mobile.jpg');
    }
}



/* =========================================
   4. HERO SECTION (Slider)
   ========================================= */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: var(--bg-dark);
    padding: 0;
    /* Override default section padding */
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
    justify-content: flex-start;
    /* Left aligned content like many corporate sites */
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

/* Zoom effect on active slide image */
.slide.active {
    animation: zoomEffect 20s infinite linear;
}

@keyframes zoomEffect {
    0% {
        background-size: 100% auto;
    }

    50% {
        background-size: 105% auto;
    }

    100% {
        background-size: 100% auto;
    }
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.6) 50%, rgba(15, 23, 42, 0.2) 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: left;
    /* Left align */
    color: var(--text-light);
    max-width: 900px;
    padding: 0 20px;
    margin-left: 5%;
    /* Slight offset from left */
}

/* Animations for slide content */
.slide.active .slide-title {
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

.slide.active .slide-desc {
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

.slide.active .slide-buttons {
    animation: fadeInUp 1s ease 0.9s forwards;
    opacity: 0;
}

.slide-title {
    font-size: 4rem;
    /* Larger */
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.1;
    text-transform: capitalize;
}

.slide-desc {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: #cbd5e1;
    max-width: 700px;
    line-height: 1.7;
    font-weight: 300;
}

.slide-btn {
    display: inline-block;
    padding: 18px 45px;
    background: var(--secondary-color);
    color: white;
    font-weight: 600;
    border-radius: 4px;
    /* Square edges */
    margin-right: 20px;
    margin-bottom: 10px;
    transition: var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.slide-btn.outline {
    background: transparent;
    border: 2px solid white;
}

.slide-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

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

/* =========================================
   5. SECTIONS COMMON
   ========================================= */
section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    color: var(--secondary-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.page-header .section-title {
    color: white;
}

.page-header {
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.8)), url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 150px 0 80px;
    color: var(--text-light);
    position: relative;
}

/* About Section Title Override */
.about-content .section-title {
    color: #000000 !important;
    /* Pure Black - Forced */
    opacity: 1 !important;
    /* Ensure opacity */
}

/* About Section */
.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    max-width: 100%;
    /* Relax width constraint */
    max-height: 550px;
    /* Increase height limit */
    object-fit: cover;
    display: block;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

/* Blog Cards */
.blog-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Contact Info */
.contact-info-box {
    background: var(--bg-dark);
    color: white;
    padding: 40px;
    border-radius: 10px;
}

/* =========================================
   6. FOOTER
   ========================================= */
footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-col p {
    color: #94a3b8;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #94a3b8;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Base class for animated elements */
.reveal {
    opacity: 0;
    transition: all 1s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translate(0, 0);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal-up {
    transform: translateY(50px);
}

/* Keeping legacy support just in case, or alias it */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.page-header p {
    color: #cbd5e1 !important;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .logo img {
        max-height: 45px;
    }

    .header-social-icons {
        display: none;
    }

    .lang-switcher-host {
        margin-left: auto !important;
        margin-right: 6px;
    }

    .lang-switcher {
        padding: 3px 5px !important;
    }

    .lang-switcher-item {
        padding: 4px 7px !important;
        font-size: 10px !important;
        gap: 4px !important;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        padding: 20px;
        text-align: center;
        box-shadow: var(--shadow-lg);
    }

    .nav-links a {
        color: var(--text-light);
        display: block;
        margin: 10px 0;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
        margin-left: 2px;
        font-size: 1.6rem;
    }

    header.scrolled .nav-links a {
        color: var(--text-light) !important;
    }

    .slide-title {
        font-size: 2.2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    /* Force grids to single column on mobile */
    .grid-2,
    .grid-3,
    .about-grid,
    .contact-grid,
    .services-grid,
    .blog-grid {
        grid-template-columns: 1fr !important;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-section {
    background-color: #ffffff;
    /* Pure White */
    position: relative;
    z-index: 2;
    /* Sit above service background if overlap */
}

/* =========================================
   SERVICES GRID & MODERN BG
   ========================================= */
.services-section {
    background-color: #fcfbf9;
    /* Subtle Cream / Bone White */
    background-image: radial-gradient(#e5e4e2 1px, transparent 1px);
    /* Warmer grid dot */
    background-size: 30px 30px;
    /* Modern grid pattern */
    position: relative;
    border-top: 1px solid #f0f0f0;
    /* Subtle separator */
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, #ffffff, transparent);
    pointer-events: none;
    opacity: 0.8;
}

/* =========================================
   MARQUEE SECTION
   ========================================= */
.marquee-container {
    width: 100%;
    overflow: hidden;
    background: #f8fafc;
    padding: 60px 0;
    position: relative;
    border-top: 1px solid #e2e8f0;
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.marquee-item {
    margin: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Grayscale by default, color on hover */
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.marquee-item:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.marquee-item svg {
    height: 40px;
    width: auto;
    display: block;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}



/* =========================================
   FEATURE CARDS (DESIGN REF)
   ========================================= */
.feature-card {
    background: white;
    padding: 50px 40px;
    /* Increased padding */
    min-height: 420px;
    /* Taller cards */
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    text-align: left;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 1px solid rgba(226, 232, 240, 0.8);
    /* Subtle border */
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.feature-card .card-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    /* Initial blue */
    margin-bottom: 25px;
    transition: all 0.4s ease;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
    transition: all 0.4s ease;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    transition: all 0.4s ease;
    flex-grow: 1;
}

/* Hover State - "Kapalı Mavi Tonları" (Dark/Closed Blue) */
.feature-card:hover {
    background: #0f172a;
    /* Deep Blue, almost Navy */
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.3);
}

.feature-card:hover .card-icon,
.feature-card:hover h3,
.feature-card:hover p {
    color: white;
}

.feature-card:hover .card-icon {
    transform: scale(1.1);
}

/* =========================================
   PROJECT GALLERY (SCROLL ANIMATION)
   ========================================= */
/* =========================================
   PROJECT GALLERY (SCROLL ANIMATION)
   ========================================= */
.gallery-section {
    background-color: #ffffff;
    /* White background */
    position: relative;
    z-index: 5;
    color: var(--text-dark);
    /* Text color update */
}

.gallery-container {
    position: relative;
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 5vh;
    padding-bottom: 2vh;
    /* Reduced significantly (90%) */
}

@media (min-width: 640px) {
    .gallery-container {
        padding-top: 8vh;
        padding-bottom: 3vh;
        /* Reduced significantly */
    }
}

@media (min-width: 1024px) {
    .gallery-container {
        padding-top: 10vh;
        padding-bottom: 4vh;
        /* Reduced significantly */
    }
}

/* The sticky wrapper */
.sticky-card-wrapper {
    position: sticky;
    top: 25vh;
    /* Centered visually (approx 1/4 viewport form top + card height lands in middle) */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    width: 100%;
    margin-bottom: 20px;
    /* Reduced to ~0.5cm spacing */
}

/* Stepped Stacking Effect - Tighter */
.gallery-column .sticky-card-wrapper:nth-child(1) {
    top: 25vh;
}

.gallery-column .sticky-card-wrapper:nth-child(2) {
    top: calc(25vh + 8px);
}

.gallery-column .sticky-card-wrapper:nth-child(3) {
    top: calc(25vh + 16px);
}

.gallery-column .sticky-card-wrapper:nth-child(4) {
    top: calc(25vh + 24px);
}

@media (min-width: 640px) {
    .sticky-card-wrapper {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .sticky-card-wrapper {
        padding: 0 2rem;
    }
}

/* The actual card that scales and has top offset */
.inner-card {
    position: relative;
    top: -25%;
    /* -top-1/4 */
    display: flex;
    transform-origin: top;
    /* origin-top */
    flex-direction: column;
    overflow: hidden;
    border-radius: 1rem;
    /* rounded-2xl */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    background: #000;

    /* Dimensions Increased ~20-50% */
    height: 220px;
    width: 300px;
}

@media (min-width: 640px) {
    .inner-card {
        border-radius: 1.5rem;
        /* rounded-3xl */
        height: 280px;
        width: 400px;
    }
}

@media (min-width: 768px) {
    .inner-card {
        height: 320px;
        width: 500px;
    }
}

@media (min-width: 1024px) {
    .inner-card {
        border-radius: 2rem;
        /* rounded-4xl */
        height: 450px;
        width: 700px;
    }
}

.inner-card img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}


/* =========================================
   INFINITE AUTO SLIDER (NEW - DARK)
   ========================================= */

.new-scroll-container {
    width: 100%;
    max-width: 1152px;
    /* max-w-6xl */
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
}

.new-infinite-scroll {
    display: flex;
    gap: 1.5rem;
    /* gap-6 equivalent */
    width: max-content;
    animation: scroll-right 20s linear infinite;
}

@keyframes scroll-right {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.new-image-item {
    flex-shrink: 0;
    width: 12rem;
    height: 12rem;
    /* w-48 h-48 */
    border-radius: 0.75rem;
    /* rounded-xl */
    overflow: hidden;

    transition: transform 0.3s ease, filter 0.3s ease;
}

/* =========================================
   SPARKLES & TRUSTED SECTION
   ========================================= */
.sparkles-section {
    position: relative;
    overflow: hidden;
}

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

@media (min-width: 768px) {
    .logos-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.logo-item {
    width: 100%;
    max-width: 150px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    /* gray-400 equivalent */
    transition: color 0.3s ease;
}

.logo-item:hover {
    color: #1e293b;
    /* gray-800 */
}

/* Canvas styling */
#sparkles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    /* Behind text if z-index 10 is on container */
    mask-image: radial-gradient(50% 50% at 50% 50%, white, transparent 85%);
    -webkit-mask-image: radial-gradient(50% 50% at 50% 50%, white, transparent 85%);
}

@media (min-width: 768px) {
    .new-image-item {
        width: 16rem;
        height: 16rem;
        /* md:w-64 md:h-64 */
    }
}

@media (min-width: 1024px) {
    .new-image-item {
        width: 20rem;
        height: 20rem;
        /* lg:w-80 lg:h-80 */
    }
}


/* =========================================
   7. SERVICES PAGE ADDITIONS
   ========================================= */

/* --- Work Process --- */
.process-section {
    background-color: white;
    padding: 100px 0;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.process-step {
    text-align: center;
    position: relative;
}

/* =========================================
   8. NEW BLOG SECTION (React Port)
   ========================================= */

.new-blog-wrapper {
    position: relative;
    max-width: 1024px;
    margin: 0 auto;
    width: 100%;
    padding-bottom: 50px;
}

/* Background Gradients */
.blog-bg-gradient {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.6;
    isolation: isolate;
    pointer-events: none;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    transform: rotate(-45deg);
}

.blob-1 {
    top: 0;
    left: 0;
    width: 35rem;
    /* ~140 * 4px */
    height: 80rem;
    /* ~320 * 4px */
    transform: translate(0, -50%) rotate(-45deg);
    background: radial-gradient(68.54% 68.72% at 55.02% 31.46%, rgba(0, 0, 0, 0.06) 0, rgba(140, 140, 140, 0.02) 50%, rgba(0, 0, 0, 0.01) 80%);
}

.blob-2 {
    top: 0;
    left: 0;
    width: 15rem;
    /* 60 * 4px */
    height: 80rem;
    transform: translate(5%, -50%) rotate(-45deg);
    background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, 0.04) 0, rgba(0, 0, 0, 0.01) 80%, transparent 100%);
}

/* Header Area */
.new-blog-header {
    padding: 2rem 1rem;
    margin-bottom: 1rem;
}

.new-blog-header h1 {
    font-family: monospace;
    font-size: 2.25rem;
    /* text-4xl */
    font-weight: 700;
    letter-spacing: 0.025em;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.new-blog-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

.divider-dashed {
    width: 100%;
    height: 1px;
    border-bottom: 1px dashed #e5e7eb;
    position: absolute;
    left: 0;
    right: 0;
}

/* Grid Layout */
.new-blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    /* p-4 grid gap logic */
    padding: 1rem;
    z-index: 10;
    position: relative;
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .new-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Card Styling */
.new-blog-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background-color 75ms;
}

.new-blog-card:hover {
    background-color: rgba(0, 0, 0, 0.04);
    /* accent/60 approx */
}

/* Image Wrapper */
.lazy-image-wrapper {
    position: relative;
    width: 100%;
    /* Aspect Ratio 16/9 = 56.25% padding-bottom method or aspect-ratio prop */
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    background-color: #f3f4f6;
    /* placeholder color */
}

.lazy-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.new-blog-card:hover .lazy-image-wrapper img {
    transform: scale(1.05);
}

/* Content */
.blog-content-inner {
    padding: 0 0.5rem 0.5rem;
}

.blog-meta-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    /* text-xs */
    margin-bottom: 0.5rem;
}

.blog-meta-dot {
    width: 4px;
    height: 4px;
    background-color: currentColor;
    border-radius: 50%;
    opacity: 0.5;
}

.blog-title-new {
    font-size: 1.125rem;
    /* text-lg */
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.025em;
    color: var(--text-dark);
    margin-bottom: 0.25rem;

    /* Line Clamp 2 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-desc-new {
    font-size: 0.875rem;
    /* text-sm */
    color: var(--text-muted);

    /* Line Clamp 3 */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.process-icon-box {
    width: 80px;
    height: 80px;
    background: var(--bg-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--secondary-color);
    transition: var(--transition-medium);
    border: 2px solid transparent;
}

.process-step:hover .process-icon-box {
    background: white;
    border-color: var(--secondary-color);
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.step-number {
    position: absolute;
    top: -10px;
    right: 50%;
    transform: translateX(50px);
    width: 30px;
    height: 30px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    border: 3px solid white;
}

/* Connecting Line (Desktop only) */
.process-step::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: #e2e8f0;
    z-index: -1;
}

.process-step:last-child::after {
    display: none;
}

/* --- Technologies (Modern Dark) --- */
.tech-section {
    background: #0f172a;
    /* Dark Navy Background */
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

/* Background Grid Effect */
.tech-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    pointer-events: none;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.tech-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 18px 35px;
    border-radius: 50px;
    /* Pill shape */
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 1rem;
    color: #e2e8f0;
    /* Light text */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    cursor: default;
}

.tech-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px) scale(1.05);
    border-color: rgba(56, 189, 248, 0.5);
    /* Cyan border */
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
    /* Neon glow */
    color: white;
}

.tech-card i {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.tech-card:hover i {
    transform: rotate(15deg) scale(1.2);
    filter: drop-shadow(0 0 5px currentColor);
}

.section-title {
    color: white !important;
    /* Force title to white in this dark section */
}

/* --- FAQ (Modern Light) --- */
.faq-section {
    background-color: #ffffff;
    /* Pure White */
    padding: 100px 0;
    position: relative;
    border-top: 1px solid #f1f5f9;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

details.faq-details {
    margin-bottom: 0;
    padding: 0;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    /* Light Slate Border */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

details.faq-details:hover {
    border-color: #cbd5e1;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

details.faq-details[open] {
    background: #ffffff;
    border-color: #3b82f6;
    /* Blue Accent */
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.1), 0 2px 4px -1px rgba(59, 130, 246, 0.06);
}

details.faq-details summary {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    /* Slate 800 */
    cursor: pointer;
    list-style: none;
    padding: 24px 30px;
    position: relative;
    padding-right: 60px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

details.faq-details summary::-webkit-details-marker {
    display: none;
}

details.faq-details summary:hover {
    color: #2563eb;
    /* Blue Hover */
}

/* Icon (Plus/Minus) */
details.faq-details summary::after {
    content: '+';
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 400;
    font-size: 1.5rem;
    color: #64748b;
    /* Slate 500 */
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f5f9;
    /* Light Slate Bg */
}

details.faq-details[open] summary::after {
    content: '−';
    /* Minus sign */
    transform: translateY(-50%) rotate(180deg);
    color: #2563eb;
    background: #eff6ff;
}

details.faq-details p {
    margin: 0;
    padding: 0 30px 30px 30px;
    color: #475569;
    /* Slate 600 */
    line-height: 1.7;
    font-size: 1rem;
    animation: slideDown 0.3s ease-out forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

@media (max-width: 900px) {
    .process-grid {
        grid-template-columns: 1fr 1fr;
        gap: 50px 30px;
    }

    .process-step::after {
        display: none;
    }
}

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

/* =========================================
   9. NEW SERVICE CARDS (Ultra Modern)
   ========================================= */

.service-card-blue {
    background: linear-gradient(135deg, #0f172a 0%, #172554 100%);
    position: relative;
    padding: 2.5rem;
    border-radius: 1.5rem;
    /* Modern large radius */
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 1;
}

/* Glassy Glow Effect */
.service-card-blue::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: -1;
}

.service-card-blue:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(56, 189, 248, 0.5);
    /* Cyan glow border */
    box-shadow: 0 20px 40px -5px rgba(15, 23, 42, 0.6), 0 0 15px rgba(56, 189, 248, 0.3);
    /* Neon glow shadow */
}

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

.service-card-blue .icon-box {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.05);
    /* Glassy bg */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #38bdf8;
    /* Cyan icon */
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.service-card-blue:hover .icon-box {
    background: #38bdf8;
    color: #0bd1d1;
    transform: rotateY(180deg);
    /* Simple flip or just color change */
    background: linear-gradient(135deg, #38bdf8, #3b82f6);
    color: white;
    border-color: transparent;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
}

.service-card-blue .service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    letter-spacing: -0.01em;
}

.service-card-blue .service-desc {
    color: #94a3b8;
    /* Slate 400 */
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    flex-grow: 1;
    font-weight: 400;
}

/* Feature List */
.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e2e8f0;
    /* Slate 200 */
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.5rem;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.service-list li:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.2);
    transform: translateX(5px);
}

.service-list li i {
    color: #4ade80;
    /* Neon Green Check */
    font-size: 1rem;
    filter: drop-shadow(0 0 5px rgba(74, 222, 128, 0.5));
}

/* =========================================
   10. GLOBAL PAGE HEADER UPDATE
   ========================================= */
.page-header {
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.7)),
        url('https://images.unsplash.com/photo-1553877522-43269d4ea984?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 0 60px;
    margin-bottom: 0;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* =========================================
   12. BLOG DETAILS PAGE
   ========================================= */
.blog-details-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    width: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 4rem;
    background-size: cover;
    background-position: center;
}

.blog-details-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 1) 0%, rgba(15, 23, 42, 0.6) 50%, rgba(15, 23, 42, 0.3) 100%);
}

.blog-details-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.blog-details-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: #cbd5e1;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.blog-article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    color: #1e293b;
    /* Dark Slate 800 */
    font-size: 1.1rem;
    line-height: 1.8;
}

.blog-article-content h2 {
    font-size: 2rem;
    color: #0f172a;
    /* Slate 900 (Black) */
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.blog-article-content p {
    margin-bottom: 1.5rem;
    color: #334155;
    /* Slate 700 */
}

.blog-article-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: #334155;
}

.blog-article-content li {
    margin-bottom: 0.5rem;
}

.blog-article-content blockquote {
    border-left: 4px solid var(--secondary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #475569;
    /* Slate 600 */
    background: #f1f5f9;
    /* Slate 100 */
    padding: 1.5rem;
    border-radius: 0 0.5rem 0.5rem 0;
}

/* =========================================
   14. REFINE GALLERY GRID (Centering & Sizing)
   ========================================= */
.gallery-grid {
    max-width: 1300px !important;
    /* Increased width to enlarge content */
    margin: 0 auto;
    padding: 0 40px;
    gap: 80px !important;
    /* Slightly more gap for larger cards */
}

/* Override inner-card dimensions for the grid layout */
.gallery-grid .inner-card {
    width: 100% !important;
    max-width: 600px;
    /* Increased max width (approx +30%) */
    height: 400px !important;
    /* Increased height (approx +30%) */
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .gallery-grid .inner-card {
        height: 320px !important;
    }

    .gallery-grid {
        gap: 40px !important;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr !important;
        max-width: 600px !important;
        gap: 40px !important;
    }

    .gallery-grid .inner-card {
        height: 300px !important;
    }
}

/* Reduce bottom whitespace for trusted wrapper */
.trusted-wrapper {
    padding-bottom: 20px !important;
    /* 75% reduction from default 80px */
}

/* Feature Accordion Section */
.feature-accordion {
    padding: 8rem 0;
    background-color: #ffffff;
    /* Light background */
    color: #0f172a;
    /* Slate 900 */
}

.accordion-container {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.accordion-content-wrapper {
    width: 100%;
}

.accordion-image-wrapper {
    display: none;
    /* Hidden on mobile by default */
    width: 50%;
    position: relative;
    border-radius: 0.75rem;
    /* rounded-xl */
    overflow: hidden;
    background-color: #f1f5f9;
    /* bg-muted */
}

@media (min-width: 768px) {
    .accordion-content-wrapper {
        width: 50%;
    }

    .accordion-image-wrapper {
        display: block;
    }
}

.accordion-image-wrapper img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    /* Changed from cover to show full graphic */
    padding: 2rem;
    /* Add padding for breathing room */
    border-radius: 0.375rem;
    /* rounded-md */
    background-color: transparent;
}

.accordion-item {
    border-bottom: 1px solid #e2e8f0;
    /* border-b */
}

.accordion-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.25rem 0;
    /* py-5 */
    cursor: pointer;
    background: none;
    border: none;
    text-align: left;
    transition: all 0.2s;
}

.accordion-trigger:hover .accordion-title {
    text-decoration: underline;
    /* Standard shadcn hover */
}

.accordion-title {
    font-size: 1.25rem;
    /* text-xl */
    font-weight: 600;
    /* font-semibold */
    color: #64748b;
    /* text-muted-foreground by default */
    transition: color 0.2s;
}

.accordion-item.active .accordion-title {
    color: #0f172a;
    /* text-foreground (active) */
    text-decoration: none !important;
    /* Force no underline on active if desired, matching snippet !no-underline */
}

.accordion-icon {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s;
    color: #0f172a;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-item.active .accordion-body {
    max-height: 500px;
    /* Arbitrary large height for transition */
}

.accordion-text {
    margin-top: 0.75rem;
    /* mt-3 */
    color: #64748b;
    /* text-muted-foreground */
    font-size: 0.875rem;
    /* text-sm approx, user snippet uses default text */
    line-height: 1.6;
    padding-bottom: 1rem;
}

.accordion-mobile-image {
    margin-top: 1rem;
    border-radius: 0.375rem;
    overflow: hidden;
    display: block;
    background-color: #f1f5f9;
    /* Match desktop bg */
    padding: 1rem;
}

@media (min-width: 768px) {
    .accordion-mobile-image {
        display: none;
    }
}

.accordion-mobile-image img {
    width: 100%;
    height: auto;
    max-height: 20rem;
    /* max-h-80 */
    object-fit: contain;
    /* Changed from cover */
}

/* =========================================
   KVKK Cookie Banner Styles
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    padding: 1.5rem 0;
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.cookie-banner-hidden {
    transform: translateY(100%);
    opacity: 0;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.cookie-text {
    flex-grow: 1;
}

.cookie-text h3 {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.cookie-text p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-text a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-text a:hover {
    color: var(--secondary-color);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .cookie-icon {
        display: none; /* Hide icon on small screens to save space */
    }
    
    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
        justify-content: center;
    }
}
