/* Modern Corporate Design System - Nisus Consulting */
/* Global User Select Disable (Content Protection) */
body:not(.admin-mode) {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow select in inputs/textareas even when protection is on */
body:not(.admin-mode) input,
body:not(.admin-mode) textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

:root {
    /* Color Palette - Updated for more depth */
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --success: #22c55e;
    --surface: #ffffff;
    --surface-alt: #f8fafc;
    --text-main: #334155;
    /* Softened from #0f172a */
    --text-muted: #64748b;
    --border: #e2e8f0;

    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-size-base: 16px;
    /* Explicit base */

    /* Spacing */
    --container-width: 1200px;
    --radius: 1rem;
    /* Slightly rounder */
    --header-height: 80px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    --glow-accent: 0 0 15px rgba(37, 99, 235, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--surface);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    /* Subtle Grain/Noise Texture could be added here if desired, keeping it clean for now */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    user-select: none;
}

.btn:active {
    transform: scale(0.96) !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: rotate(30deg);
    transition: none;
}

.btn-primary:hover::after {
    left: 150%;
    transition: left 0.7s ease-in-out;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px -5px rgba(37, 99, 235, 0.4);
}

.btn-whatsapp {
    background-color: var(--success);
    color: white;
}

.btn-whatsapp:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: -0.02em;
    position: relative;
    display: block;
    /* Ensures centered text works reliably */
    width: 100%;
    /* Takes full width to center text within */
}

/* Gradient Text Effect for uniqueness */
.section-title span {
    background: linear-gradient(120deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    background-color: #e0f2fe;
    color: #0369a1;
}

/* Header & Nav */
header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9000;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    height: 48px;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links>li {
    position: relative;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
    position: relative;
    padding: 0.6rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* New Icon Hover Effect */
.nav-links>li>a:hover {
    color: var(--accent);
    transform: translateY(-1px);
}

.nav-links>li>a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 50%;
}

.nav-links>li>a:hover::before {
    content: '';
    position: absolute;
    left: -28px;
    /* Position to the left of text */
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-image: url('../assets/custom_cursor.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
    animation: iconFadeIn 0.3s forwards;
}

@keyframes iconFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50%) scale(0.5);
    }

    to {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

.header-cta {
    display: flex;
    gap: 1rem;
}

/* Dropdown Base Styles (Mobile First / Shared) */
.dropdown-parent {
    position: relative;
}

.dropdown-menu {
    display: none;
}

/* Hidden by default */

/* Desktop Dropdown Logic */
@media (min-width: 769px) {
    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        min-width: 280px;
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        border-radius: var(--radius);
        padding: 0.5rem 0;
        z-index: 1000;
        flex-direction: column;
        border: 1px solid rgba(226, 232, 240, 0.8);
        animation: menuFadeIn 0.2s ease-out;
    }

    @keyframes menuFadeIn {
        from {
            opacity: 0;
            transform: translateY(12px) scale(0.97);
        }

        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    .dropdown-parent:hover .dropdown-menu {
        display: flex;
    }

    .dropdown-menu li {
        margin: 0;
        width: 100%;
    }

    .dropdown-menu a {
        display: block;
        padding: 0.75rem 1.5rem;
        color: var(--text-main);
        font-size: 0.95rem;
        border-bottom: 1px solid #f1f5f9;
        transition: all 0.2s;
    }

    .dropdown-menu a:hover {
        background: #f8fafc;
        color: var(--primary);
        padding-left: 1.75rem;
    }

    .dropdown-menu li:last-child a {
        border-bottom: none;
    }
}

/* Hero Section - ENHANCED with Image Background */
.hero {
    /* Reduced padding to pull content up */
    padding: calc(var(--header-height) + 2rem) 0 0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Ensure bar stays at bottom but visible */

    /* Height adjustment: 92vh ensures the bottom bar is visible on most screens without scroll */
    min-height: 92vh;

    /* Image Background with Overlay */
    background:
        linear-gradient(135deg, rgba(240, 249, 255, 0.95) 0%, rgba(224, 242, 254, 0.9) 100%),
        url('../assets/hero_global_trade.png');

    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Soft Fade at bottom of hero to blend into next section */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--surface));
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding-bottom: 2rem;
    z-index: 10;
}

.hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--primary);
    letter-spacing: -0.03em;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 50ch;
}

.hero-image {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: translateY(-5px);
}

.hero-image video {
    display: block;
}

/* Announcements Bar (Hybrid Layout) */
.announcement-bar {
    background: rgba(255, 255, 255, 0.95);
    padding: 0.75rem 0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid var(--border);
    margin-top: auto;
    overflow: hidden;
    min-height: 120px;
    display: flex;
    align-items: center;
    backdrop-filter: blur(5px);
}

.announcement-content {
    display: flex;
    gap: 2rem;
    padding-left: 2rem;
    align-items: center;
    animation: slide 30s linear infinite;
    width: max-content;
    white-space: nowrap;
    position: relative;
    margin: 0;
}

.announcement-content:hover {
    animation-play-state: paused;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.announcement-item {
    display: inline-flex !important;
    opacity: 1 !important;
    width: 350px;
    flex-shrink: 0;
    white-space: normal;
    background: transparent;
    transition: transform 0.2s;
    animation: none;
}

.announcement-item:hover {
    transform: translateY(-3px);
}

.announcement-card-link {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    text-decoration: none;
    color: var(--text-main);
    background: white;
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.announcement-card-link:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.announcement-card-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--primary);
    line-height: 1.3;
    margin-bottom: 0;
}

.announcement-card-summary {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    /* Added for standard compatibility */
    overflow: hidden;
}

/* Slider Fade Animation used by Mobile */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Services, Steps, CTA, Footer */
.services {
    padding: 8rem 0;
    background: var(--surface);
}

.services-grid {
    display: grid;
    /* 3x3 Grid Layout Configuration */
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

/* Hover Effect for Service Cards: Subtle Border Gradient & Lift */
.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--success));
    opacity: 0;
    transition: opacity 0.4s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -12px rgba(15, 23, 42, 0.08), 0 18px 36px -18px rgba(15, 23, 42, 0.12);
    border-color: rgba(37, 99, 235, 0.1);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(3deg);
    background-color: var(--accent);
    color: white;
}

.service-icon {
    width: 64px;
    height: 64px;
    background: #eff6ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.steps {
    padding: 6rem 0;
    background: var(--surface-alt);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    text-align: center;
}

.step-card {
    position: relative;
}

.step-number {
    font-size: 4rem;
    font-weight: 900;
    color: #e2e8f0;
    line-height: 1;
    margin-bottom: 1rem;
}

.step-content h3 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.cta-section {
    padding: 5rem 0;
    background: var(--primary);
    color: white;
    text-align: center;
    border-radius: var(--radius);
    margin: 4rem auto;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

footer {
    background: var(--primary-light);
    color: #cbd5e1;
    padding: 6rem 0 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    align-items: start;
}

.footer-brand h2 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col a:hover {
    color: white;
    padding-left: 5px;
}

.bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: #94a3b8;
}

.floating-whatsapp {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transition: transform 0.3s;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

.floating-whatsapp svg {
    width: 35px;
    height: 35px;
    fill: white;
}

/* Contact Form */
.contact-form-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
}

.contact-form-card h3 {
    text-align: center;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.contact-form-card h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.btn-block {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* RESPONSIVE OVERRIDES (Must be LAST) */
@media (max-width: 768px) {
    .header-inner {
        padding: 0 1rem;
    }

    /* Navigation Bar Mobile */
    /* Navigation Bar Mobile - High Specificity to override Desktop Flex */
    header .header-inner .nav-links {
        display: none !important;
        /* Initially Hidden */
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: #ffffff !important;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        gap: 1.5rem;
        text-align: center;
        border-bottom: 1px solid var(--border);
        z-index: 9998;
    }

    /* Active State - Highest Specificity */
    header .header-inner .nav-links.active {
        display: flex !important;
    }

    /* Mobile Dropdown */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-top: 1px solid #eee;
        background: #f8fafc;
        width: 100% !important;
        display: none;
        padding: 0;
        flex-direction: column !important;
        /* Fix Horizontal Issue */
    }

    .dropdown-parent.active .dropdown-menu {
        display: flex;
    }

    .dropdown-parent>a {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
    }

    .dropdown-parent>a::after {
        content: '▼';
        font-size: 0.7em;
        opacity: 0.5;
        transition: transform 0.2s;
    }

    .dropdown-parent.active>a::after {
        transform: rotate(180deg);
    }

    #mobile-menu-btn {
        display: block !important;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--primary);
        margin-left: auto;
        position: relative;
        z-index: 10000;
        /* On top of everything */
    }

    .header-cta {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .services-grid,
    .steps-grid,
    .footer-grid,
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .form-row {
        gap: 1rem;
    }

    .footer-grid {
        text-align: center;
    }

    .footer-col {
        align-items: center;
    }

    /* Announcement Slider Mode (Mobile) */
    .announcement-bar {
        overflow: visible;
        justify-content: center;
        padding: 1rem 0;
    }

    .announcement-content {
        width: 100%;
        animation: none;
        padding: 0 1rem;
        justify-content: center;
        gap: 0;
        white-space: normal;
    }

    .announcement-item {
        display: none !important;
        width: 100%;
        max-width: 100%;
        margin: 0;
        opacity: 0 !important;
    }

    .announcement-item.active {
        display: flex !important;
        opacity: 1 !important;
        animation: fadeIn 0.5s forwards;
    }

    .announcement-card-link {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 1rem;
    }

    /* Fixed Footer Mobile Stacking */
    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 3rem;
    }

    .footer-col {
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .footer-col ul,
    .footer-col .nav-links {
        align-items: center;
    }

    /* Adjust Floating Whatsapp to clear Mobile CTA */
    .floating-whatsapp {
        /* Default mobile position */
        bottom: 2rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        z-index: 10002;
        /* Ensure it is on top of sticky CTA (9999) */
    }

    /* Only lift it if the sticky CTA is actually present */
    body.has-sticky-cta .floating-whatsapp {
        bottom: 7rem;
        /* Lift it above the mobile sticky bar */
    }

    .floating-whatsapp svg {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 640px) {
    .announcement-card-link {
        flex-direction: column;
        text-align: center;
    }
}

/* --- Scroll Reveal Animations (Antigravity Touch) --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for grids */
.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

/* --- Incentive Robot Premium Styles --- */
.robot-hero {
    background: radial-gradient(circle at top right, #3b82f6 0%, #1e40af 100%);
    color: white;
    padding: 8rem 0 6rem;
    margin-top: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.robot-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="1" cy="1" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.5;
}

.robot-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.robot-hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.robot-container {
    max-width: 900px;
    margin: -4rem auto 6rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
    /* Premium Shadow */
    padding: 3.5rem;
    position: relative;
    z-index: 10;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
    position: relative;
}

/* Connecting Line */
.step-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 25%;
    right: 25%;
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
    transform: translateY(-50%);
}

.step-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #cbd5e1;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 0 4px white;
}

.step-dot.active {
    background: var(--primary);
    transform: scale(1.4);
    box-shadow: 0 0 0 4px white, 0 0 0 8px rgba(37, 99, 235, 0.2);
}

.form-step {
    display: none;
    animation: slideUpFade 0.5s ease-out;
}

.form-step.active {
    display: block;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Investment Cards (Type Selection) */
.investment-types-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.inv-type-card {
    border: 2px solid #e2e8f0;
    padding: 2.5rem;
    border-radius: 16px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    background: white;
}

.inv-type-card:hover {
    border-color: var(--primary);
    background: #eff6ff;
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(30, 64, 175, 0.1);
}

.inv-type-card h4 {
    color: var(--text);
    font-size: 1.25rem;
    margin: 1rem 0 0.5rem;
}

/* Inputs & Search */
.nace-search-wrapper {
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    /* Soft shadow for input */
}

.form-control {
    border: 2px solid #e2e8f0;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.nace-results {
    position: absolute;
    top: 110%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    max-height: 320px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.15s ease;
}

.nace-item {
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
}

.nace-item:hover {
    background: #f8fafc;
    color: var(--primary);
    padding-left: 2rem;
    /* Slight slide effect */
}

/* Priority Section */
optgroup {
    font-weight: 700;
    color: var(--primary);
}

/* Result Box */
#result-content h3 {
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.result-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

/* Filter Buttons (New Modern Style) */
.filter-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 99px;
    /* Capsule shape */
    border: 1px solid #e2e8f0;
    background: transparent;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    background: #eff6ff;
    color: var(--primary);
    border-color: #bfdbfe;
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

/* Document Card Improvements */
article.service-card {
    border: 1px solid #f1f5f9 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
}

article.service-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

/* Mobile Sticky CTA */
.mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.75rem 1rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.08);
    z-index: 9999;
    display: none;
    /* Hidden on desktop */
    justify-content: center;
    align-items: center;
}

.mobile-sticky-cta.active {
    display: flex;
    animation: slideUpCTA 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-cta-btn {
    width: 100%;
    max-width: 500px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.25rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
    border: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.mobile-cta-btn:active {
    transform: scale(0.98);
}

.mobile-cta-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transform: rotate(45deg);
    animation: shimmer 4s infinite;
}

@keyframes slideUpCTA {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@media (max-width: 768px) {

    /* Prevent content being hidden behind CTA */
    body {
        padding-bottom: 90px;
    }
}

/* 
   ----------------------------------------
   Yerel Kalkınma Haritası & SEO Styles 
   ----------------------------------------
*/

/* SEO Section Styles */
.seo-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
}

.seo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    color: var(--text-main);
}

.seo-heading {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.seo-list {
    list-style: disc;
    padding-left: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.seo-note {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Helper Utilities used in HTML adjustment */
.mb-4 {
    margin-bottom: 4rem;
}

.mb-1-5 {
    margin-bottom: 1.5rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mt-1-5 {
    margin-top: 1.5rem;
}

.text-left {
    text-align: left;
}

.font-1-8 {
    font-size: 1.8rem;
}

/* Mobile Responsiveness for Map Page */
@media (max-width: 900px) {
    .seo-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .seo-card {
        padding: 1.5rem;
    }

    .view-switcher,
    .sektor-filtreler {
        flex-direction: column;
        align-items: stretch;
    }

    .sektor-filtreler {
        flex-direction: row;
        /* Keep filters side-by-side but wrapping */
        justify-content: center;
    }

    .harita-lejant {
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    .ykh-hero h1 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.25rem;
    }

    .harita-wrapper,
    .sonuc-panel {
        padding: 1rem;
    }

    .harita-svg-container {
        min-height: 300px;
        /* Smaller height for mobile */
    }

    .sonuc-ozet {
        flex-direction: column;
    }

    .sonuc-tablo th,
    .sonuc-tablo td {
        font-size: 0.85rem;
        padding: 0.5rem;
    }

    .section-title.font-1-8 {
        font-size: 1.5rem;
    }
}

/* Home Page Map Callout Grid */
.map-callout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 900px) {
    .map-callout-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .map-callout-image {
        max-width: 80%;
        margin: 0 auto;
    }

    .map-callout-text h2 {
        font-size: 2rem !important;
    }

    .map-callout-text div[style*="display: flex"] {
        justify-content: center;
    }
}

/* 
   ----------------------------------------
   Mobil Deneyim İyileştirmeleri (Mobile First)
   ----------------------------------------
*/

@media (max-width: 768px) {

    /* 1. Yatay Kaydırılabilir Filtreler */
    .sektor-filtreler {
        display: flex;
        flex-direction: row !important;
        /* Dikey yapıyı ezmek için */
        flex-wrap: nowrap !important;
        /* Satır sarma kapalı */
        overflow-x: auto;
        justify-content: flex-start !important;
        padding-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
        /* iOS smooth scroll */
        gap: 0.75rem;
        margin: 0 -1rem 2rem -1rem !important;
        /* Konteyner dışına taşma */
        padding: 0 1rem 1rem 1rem !important;
        /* İçeriği hizalama */
    }

    .sektor-btn {
        flex: 0 0 auto;
        /* Büzüşmeyi engelle */
        white-space: nowrap;
        margin: 0 !important;
    }

    /* 2. Grid -> Kompakt Liste Görünümü */
    #il-grid {
        grid-template-columns: 1fr !important;
        /* Tek sütun */
        gap: 0.75rem;
    }

    .il-kart {
        display: flex;
        /* Yan yana yerleşim */
        align-items: center;
        padding: 0.75rem 1rem;
        text-align: left;
        gap: 1rem;
        min-height: auto;
    }

    .il-kart .plaka {
        font-size: 1.2rem;
        margin-bottom: 0;
        width: 40px;
        flex-shrink: 0;
        color: var(--primary);
    }

    .il-kart .il-adi {
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 0;
    }

    .il-kart .konu-sayisi {
        position: static;
        /* Absolute pozisyonu iptal */
        transform: none;
        margin-left: auto;
        /* En sağa it */
        background: var(--accent);
        color: #fff;
    }
}

/* 3. Bottom Sheet (Alt Panel) */
.bottom-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.bottom-sheet-overlay.active {
    opacity: 1;
    visibility: visible;
}

.bottom-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: -100%;
    background: #fff;
    border-radius: 24px 24px 0 0;
    padding: 1.5rem;
    z-index: 9999;
    transition: bottom 0.3s cubic-bezier(0.1, 0.7, 0.1, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
    max-height: 80vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.bottom-sheet.active {
    bottom: 0;
}

/* Panel Tutacağı (Handle) */
.bottom-sheet::before {
    content: '';
    display: block;
    width: 50px;
    height: 5px;
    background: #e0e0e0;
    border-radius: 10px;
    margin: 0 auto 1.5rem auto;
}

.bottom-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
}

.bottom-sheet-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.bottom-sheet-close {
    background: #f5f5f5;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.bottom-sheet-close:hover {
    background: #e0e0e0;
    color: #333;
}

.bottom-sheet-content {
    padding-bottom: 2rem;
}

.bottom-sheet-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bottom-sheet-content li {
    padding: 1rem 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 1rem;
    color: var(--text-main);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.5;
}

.bottom-sheet-content li::before {
    content: '•';
    color: var(--accent);
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1.2;
}

.bottom-sheet-content li:last-child {
    border-bottom: none;
}

/* Hero Slider Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Hero Slider Content Optimization */
.hero-slider-content {
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-slider-content h1 {
    display: block;
    min-height: auto;
    /* Allow to grow naturally */
    margin-bottom: 1rem;
}

.hero-slider-content p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 4.8em;
    /* Ensure some space for 3 lines */
}

@media (max-width: 768px) {
    .hero-slider-content {
        min-height: auto;
        /* Let it grow on mobile as it's single column */
    }

    .hero-slider-content h1,
    .hero-slider-content p {
        min-height: auto;
    }
}