/* 
  EMSAR SOLUTIONS
  Design System & Main Styles
  MH Mode: Refined for multi-section services and contact hub
*/

:root {
    /* Color Palette */
    --primary: #0A0A0A;
    --secondary: #2563EB;
    /* Cobalt Blue */
    --accent: #10B981;
    /* Emerald Green */
    --text-main: #F9FAFB;
    --text-muted: #9CA3AF;
    --card-bg: rgba(23, 23, 23, 0.7);
    --border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.03);

    /* Spacing */
    --container-max: 1280px;
    --section-padding: 140px 20px;

    /* Animation */
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--primary);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    line-height: 1.1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

/* Typography Utilities */
.text-gradient {
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--secondary);
    border-radius: 50px;
    font-size: 2rem;
    /* Adjusted size */
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: transform 0.2s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--secondary);
    color: #fff;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--border);
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    background: transparent;
}

#navbar.scrolled {
    background: #FFFFFF;
    padding: 12px 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

#navbar nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 48px;
    width: auto;
    filter: brightness(0) invert(1);
    /* White logo by default */
    transition: filter 0.3s ease;
}

#navbar.scrolled .nav-logo {
    filter: none;
    /* Original Blue logo when scrolled */
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-links li a {
    font-weight: 500;
    font-size: 0.95rem;
    color: #FFFFFF;
    /* White links by default */
    transition: color 0.3s ease;
}

#navbar.scrolled .nav-links li a {
    color: #1A2567;
    /* Blue links when scrolled */
}

.nav-links li a:hover {
    color: var(--secondary);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(transparent, var(--primary));
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    /* Slightly smaller */
    margin-bottom: 24px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* Service Intro Section */
.service-intro-section {
    padding: 100px 20px 60px;
    background: var(--primary);
}

.section-title {
    font-size: 1.5rem;
    /* Smaller than badge */
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 60px;
}

/* Service Sections */
.service-section {
    padding: var(--section-padding);
}

.alt-bg {
    background: #0D0D0D;
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.service-grid.reverse .service-content {
    order: 2;
}

.service-grid.reverse .service-image {
    order: 1;
}

.service-content h2 {
    font-size: 1.25rem;
    /* Smaller than badge */
    margin-bottom: 24px;
}

.service-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.feature-list {
    margin-bottom: 40px;
}

.feature-list li {
    margin-bottom: 20px;
    position: relative;
    padding-left: 30px;
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: 800;
}

.service-image {
    position: relative;
}

.glass-container {
    background: var(--glass-bg);
    border: 1px solid var(--border);
    border-radius: 40px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
}

.abstract-icon {
    width: 50%;
    color: var(--secondary);
    opacity: 0.5;
    transition: stroke 0.8s ease, opacity 0.8s ease;
}

/* Security Icon Animation */
#security-icon.open-state {
    stroke: #ff4d4d;
    opacity: 1;
}

#security-icon.open-state .shackle {
    transform: translateY(-4px) translateX(3px) rotate(20deg);
}

#security-icon .shackle {
    transform-origin: 7px 11px;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.accounting-visual img {
    border-radius: 40px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.projects-section .section-header h2 {
    margin-bottom: 60px;
    /* Added margin since p was removed */
    font-size: 1.5rem;
}

/* Projects Section */
.projects-section {
    padding: var(--section-padding);
    background: #000000;
}

.projects-slider {
    display: flex;
    gap: 40px;
    overflow-x: auto;
    padding-bottom: 40px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Firefox */
}

.projects-slider::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.project-card {
    min-width: 450px;
    /* Standardize Desktop Width */
    background: var(--card-bg);
    border-radius: 24px;
    overflow: hidden;
    scroll-snap-align: center;
    border: 1px solid var(--border);
    position: relative;
}

/* cards that link to their own project page keep the card look */
a.project-card {
    display: block;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

a.project-card:hover {
    border-color: rgba(37, 99, 235, 0.45);
}

.project-image {
    position: relative;
    height: 450px;
    /* Increased Height */
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.project-image img.blur-img {
    filter: blur(8px);
    transform: scale(1.1);
}

.project-card:hover .project-image img.blur-img {
    transform: scale(1.15) rotate(1deg);
    filter: blur(4px);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.project-overlay h3 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.coming-soon {
    background: var(--secondary);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* About Section */
.about {
    padding: var(--section-padding);
    background: linear-gradient(to bottom, var(--primary), #111);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content h2 {
    font-size: 1.25rem;
    /* Smaller than badge */
    margin-bottom: 24px;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.about-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glass-orb {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.2), transparent);
    border-radius: 50%;
    filter: blur(40px);
    animation: float 6s infinite alternate;
}

.tech-stack-preview {
    position: absolute;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.tech-stack-preview span {
    background: var(--glass-bg);
    border: 1px solid var(--border);
    padding: 12px 24px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    font-weight: 600;
}

/* Contact Section */
.contact-section {
    padding: var(--section-padding);
}

.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 80px;
    border-radius: 40px;
    backdrop-filter: blur(20px);
}

.contact-info-grid {
    display: grid;
    gap: 60px;
}

.contact-header h2 {
    font-size: 1.5rem;
    /* Smaller than badge */
    margin-bottom: 16px;
}

.contact-header p {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.detail-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.detail-icon {
    font-size: 1.5rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--secondary);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.detail-item h4 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.detail-item p {
    color: var(--text-muted);
}

/* Footer */
.footer {
    padding: 80px 20px 40px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-info p {
    margin-top: 20px;
    color: var(--text-muted);
    max-width: 300px;
}

.footer-logo {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer h4 {
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.social-icon:hover {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
    transform: translateY(-5px);
}

.footer-contact p {
    color: var(--text-muted);
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
    padding-top: 40px;
}

/* Animations */
@keyframes float {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-20px);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--transition-smooth);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.2s;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--transition-smooth);
}

.reveal-delay-2 {
    transition-delay: 0.4s;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--transition-smooth);
}

.reveal-delay-1.active,
.reveal-delay-2.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   NEW SECTIONS (2026 redesign)
   Hero portal · Stats · Why · Projects detailed · Clients ·
   Testimonials · Team · Form · Lang switcher · WhatsApp float
   ============================================================ */

.section-title-lg {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin: 12px 0 16px;
}

.section-subtitle-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
    border-radius: 10px;
}

.section-header {
    margin-bottom: 60px;
}

/* --- Nav CTA + Lang switcher --- */
.nav-cta {
    display: inline-block;
    padding: 10px 20px;
    background: var(--secondary);
    color: #fff !important;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);
    background: #1d4ed8 !important;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

#navbar.scrolled .nav-cta {
    color: #fff !important;
}

.lang-switcher {
    display: inline-flex;
    gap: 4px;
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.04);
}

/* Nav Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { cursor: pointer !important; }
.nav-dropdown-toggle::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: 6px;
    vertical-align: middle;
    opacity: 0.7;
    transition: transform 0.2s;
}
.nav-dropdown:hover .nav-dropdown-toggle::after {
    transform: rotate(180deg);
}
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 12px;
    background: transparent;
    z-index: 400;
    list-style: none;
    margin: 0;
}
.nav-dropdown-menu::before {
    content: '';
    display: block;
    position: absolute;
    top: 12px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #111827;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.45);
    z-index: -1;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu li { margin: 0; padding: 0; min-width: 190px; }
.nav-dropdown-menu li a {
    display: block;
    padding: 10px 22px;
    font-size: 0.88rem;
    color: var(--text-muted) !important;
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
}
.nav-dropdown-menu li:first-child a { padding-top: 14px; }
.nav-dropdown-menu li:last-child a { padding-bottom: 14px; }
.nav-dropdown-menu li a:hover { color: var(--text-main) !important; }

.lang-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 50px;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background 0.25s ease, color 0.25s ease;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
    background: var(--secondary);
    color: #fff;
}

#navbar.scrolled .lang-switcher {
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.04);
}

#navbar.scrolled .lang-btn {
    color: #1A2567;
}

#navbar.scrolled .lang-btn.active {
    background: var(--secondary);
    color: #fff;
}

/* --- HERO PORTAL --- */
.hero-portal {
    position: relative;
    min-height: 100vh;
    /* svh: mobil brauzer panelini nəzərə alır — section kəsilmədən tam görünsün */
    min-height: 100svh;
    /* Üfüqi padding nav padding-i ilə eynidir (60px/25px) — mətn logonun başlanğıcında */
    padding: 120px 0 40px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-portal-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(37, 99, 235, 0.25), transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(16, 185, 129, 0.15), transparent 55%),
        var(--primary);
    /* Əvvəlki -1 video və gradienti body-nin qara fonunun arxasına itdirirdi; 0 ilə görünür */
    z-index: 0;
}

/* Background video: covers the gradient once loaded, the gradient stays as fallback */
.hero-portal-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

/* Readability shade over the video so the headline and buttons stay legible */
.hero-portal-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(10, 10, 10, 0.52) 0%, rgba(10, 10, 10, 0.30) 45%, rgba(10, 10, 10, 0.56) 100%),
        linear-gradient(90deg, rgba(10, 10, 10, 0.38) 0%, rgba(10, 10, 10, 0.16) 50%, rgba(10, 10, 10, 0.38) 100%);
}

.hero-portal-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    /* .container-in 20px padding-i logonun 60px-ü ilə uyğun gəlmirdi */
    max-width: none;
    margin: 0;
    padding-left: 60px;
    padding-right: 60px;
}

.hero-portal-content {
    max-width: 900px;
    /* Snippet-dəki kimi soldan hizalı */
    margin: 0;
    text-align: left;
}

.hero-badge {
    font-size: 0.85rem !important;
    margin-bottom: 32px;
}

.hero-title {
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    line-height: 1.05;
    margin-bottom: 28px;
    letter-spacing: -1.5px;
}

.hero-title span {
    display: block;
}

/* ── Hero Parallax + Glitch ───────────────────────── */
#hero-parallax-title {
    will-change: transform;
}

.glitch-text {
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    color: #fff;
    -webkit-text-fill-color: #fff;
}

.glitch-text::before {
    left: -3px;
    text-shadow: 2px 0 #2563EB;
    animation: hero-glitch-1 2s infinite linear alternate-reverse;
    clip: rect(0, 9000px, 0, 0);
}

.glitch-text::after {
    left: 3px;
    text-shadow: -2px 0 #10B981;
    animation: hero-glitch-2 1.5s infinite linear alternate-reverse;
    clip: rect(0, 9000px, 0, 0);
}

@keyframes hero-glitch-1 {
    0%   { clip: rect( 18px, 9000px,  34px, 0); transform: skew(0.5deg); }
    7%   { clip: rect( 90px, 9000px, 108px, 0); transform: skew(0.8deg); }
    14%  { clip: rect(140px, 9000px, 156px, 0); transform: skew(0.3deg); }
    21%  { clip: rect( 55px, 9000px,  71px, 0); transform: skew(0.6deg); }
    28%  { clip: rect(115px, 9000px, 131px, 0); transform: skew(0.4deg); }
    35%  { clip: rect( 30px, 9000px,  46px, 0); transform: skew(0.7deg); }
    42%  { clip: rect(170px, 9000px, 186px, 0); transform: skew(0.3deg); }
    49%  { clip: rect(0,     9000px,   0,   0); transform: skew(0deg); }
    100% { clip: rect(0,     9000px,   0,   0); transform: skew(0deg); }
}

@keyframes hero-glitch-2 {
    0%   { clip: rect( 72px, 9000px,  88px, 0); transform: skew(0.6deg); }
    7%   { clip: rect( 12px, 9000px,  28px, 0); transform: skew(0.4deg); }
    14%  { clip: rect(120px, 9000px, 136px, 0); transform: skew(0.7deg); }
    21%  { clip: rect( 44px, 9000px,  60px, 0); transform: skew(0.3deg); }
    28%  { clip: rect(160px, 9000px, 176px, 0); transform: skew(0.5deg); }
    35%  { clip: rect( 98px, 9000px, 114px, 0); transform: skew(0.6deg); }
    42%  { clip: rect( 26px, 9000px,  42px, 0); transform: skew(0.4deg); }
    49%  { clip: rect(0,     9000px,   0,   0); transform: skew(0deg); }
    100% { clip: rect(0,     9000px,   0,   0); transform: skew(0deg); }
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text-muted);
    max-width: 720px;
    /* Başlıq kimi soldan hizali (bloc ortalanmir) */
    margin: 0 0 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* --- STATS (komanda.jpeg design) --- */
.stats-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    max-width: 1100px;
    margin: 80px auto 0;
    padding: 28px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 24px;
    backdrop-filter: blur(20px);
}

.stats-komanda-header {
    text-align: center;
}

.stats-komanda-badge {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 1.8px;
    margin-bottom: 0 !important;
}

.stats-komanda-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    width: 100%;
}

.stat-komanda-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 24px 22px;
    border-left: 3px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-komanda-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.stat-accent-blue  { border-left-color: var(--secondary); }
.stat-accent-green { border-left-color: var(--accent); }
.stat-accent-amber { border-left-color: #F59E0B; }

.stat-komanda-val {
    display: flex;
    align-items: baseline;
    gap: 1px;
    margin-bottom: 10px;
    line-height: 1;
}

.stat-number {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.stat-komanda-sfx {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.stat-komanda-val-text {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-komanda-lbl {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
}

.stat-komanda-sub {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.32);
    line-height: 1.4;
    margin-top: 2px;
}

/* --- WHY --- */
.why-section {
    padding: 100px 20px;
    background: linear-gradient(to bottom, var(--primary), #0d0d0d);
}

.why-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 18px;
}

.why-intro {
    max-width: 820px;
    margin-bottom: 48px;
}

.why-headline {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-main);
    margin-bottom: 24px;
}

.why-intro p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 14px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 0;
}

.why-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px 28px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.why-card:hover {
    transform: translateY(-6px);
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.12);
}

.why-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.why-icon svg {
    width: 26px;
    height: 26px;
}

.why-icon-blue {
    background: rgba(37, 99, 235, 0.12);
    color: var(--secondary);
}

.why-icon-green {
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent);
}

.why-icon-orange {
    background: rgba(245, 158, 11, 0.12);
    color: #F59E0B;
}

.why-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.why-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.why-next {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-top: 32px;
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 20px;
    padding: 28px 32px;
}

.why-next-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.15);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.why-next-icon svg {
    width: 20px;
    height: 20px;
}

.why-next-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 6px;
}

.why-next-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.why-next-body p:last-child {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* --- PROJECTS DETAILED --- */
.project-card-detailed .project-overlay-detailed {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 30%, rgba(0, 0, 0, 0.45));
    align-items: flex-start;
    justify-content: flex-end;
    padding: 32px;
    text-align: left;
    gap: 12px;
}

.project-tag {
    display: inline-block;
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(37, 99, 235, 0.4);
    color: #93c5fd;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.project-overlay-detailed h3 {
    font-size: 2rem;
    margin: 0;
}

.project-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    max-width: 90%;
}

.project-stack {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.stack-chip {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
}

.project-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 4px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18); }
    50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.05); }
}

/* --- PARTNERS (Swiper logo marquee) --- */
.partners-section {
    padding: 60px 0 100px;
    background: var(--primary);
}

.partners-slider {
    position: relative;
    /* edge fade */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

/* vertical padding = room for the hover lift and its shadow. Swiper clips at
   the padding box, so without this the raised card gets its top cut off. */
.partners-swiper {
    overflow: hidden;
    padding: 24px 0;
}

/* slidesPerView: 'auto' — the slide, not the card, owns the width, so every
   gap between cards is exactly one spaceBetween. */
.partners-swiper .swiper-slide {
    width: 260px;
    display: flex;
}

.partner-logo {
    position: relative;
    width: 100%;
    height: 104px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* tint is layered on top of the existing background instead of replacing it,
   otherwise the card turns nearly black on hover. z-index keeps the lifted
   card above its neighbours so nothing is painted over its top edge. */
.partner-logo:hover {
    transform: translateY(-4px);
    z-index: 2;
    border-color: rgba(37, 99, 235, 0.45);
    background-image: linear-gradient(rgba(37, 99, 235, 0.12), rgba(37, 99, 235, 0.12));
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

/* source logos are dark navy — normalise them to monochrome white on the dark theme */
.partner-logo img {
    max-width: 170px;
    max-height: 44px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.62;
    transition: opacity 0.3s ease;
}

.partner-logo:hover img {
    opacity: 1;
}

/* --- TESTIMONIALS --- */
.testimonials-section {
    padding: 100px 20px;
    background: linear-gradient(to bottom, #0a0a0a, var(--primary));
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.4);
}

.testimonial-stars {
    color: #facc15;
    letter-spacing: 3px;
    font-size: 1rem;
}

.testimonial-card blockquote {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-main);
    font-style: normal;
    font-weight: 600;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.t-avatar-blue {
    background: rgba(37, 99, 235, 0.2);
    color: #93c5fd;
    border: 1px solid rgba(37, 99, 235, 0.35);
}

.t-avatar-green {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.t-avatar-orange {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.testimonial-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.testimonial-info strong {
    color: var(--text-main);
    font-size: 0.9rem;
}

.testimonial-info span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* --- TEAM --- */
.team-section {
    padding: 100px 20px;
    background: #0a0a0a;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.team-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.team-card:hover {
    transform: translateY(-6px);
    border-color: var(--secondary);
}

.team-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.team-photo svg {
    width: 50%;
    height: 50%;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h4 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.team-role {
    font-size: 0.85rem;
    color: var(--secondary);
    margin-bottom: 16px;
    display: block;
}

.team-link {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.team-link svg {
    width: 18px;
    height: 18px;
}

.team-link:hover {
    background: var(--secondary);
    color: #fff;
    border-color: var(--secondary);
}

/* --- CONTACT (form layout) --- */
.contact-section {
    padding: 100px 20px;
}

.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 60px;
    border-radius: 32px;
    backdrop-filter: blur(20px);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-left .badge {
    margin-bottom: 16px;
}

.contact-left h2 {
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    margin-bottom: 12px;
}

.contact-lead {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 1rem;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-details-list .detail-item a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-details-list .detail-item a:hover {
    color: var(--secondary);
}

.email-note {
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.email-note a {
    color: var(--secondary) !important;
}

#consultation-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-row label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.form-row input,
.form-row select,
.form-row textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--secondary);
    background: rgba(37, 99, 235, 0.06);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.form-row textarea {
    resize: vertical;
    min-height: 90px;
}

.form-row select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239CA3AF' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-row select option {
    background: #1a1a1a;
    color: #fff;
}

.form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.form-actions .btn {
    flex: 1;
    min-width: 140px;
}

.form-status {
    font-size: 0.9rem;
    min-height: 1.2em;
    color: var(--text-muted);
}

.form-status-ok {
    color: var(--accent);
}

.form-status-error {
    color: #f87171;
}

.form-privacy {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: 4px;
}

.form-privacy-consent {
    margin-top: 6px;
}

.form-privacy-link {
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.form-privacy-link:hover {
    color: var(--secondary);
}

/* Detail-page CTA */
.detail-cta {
    margin-top: 24px;
}

/* --- WHATSAPP FLOATING BUTTON --- */
.wa-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 998;
    transition: transform 0.25s ease, box-shadow 0.3s ease;
    animation: waPulse 3s ease-in-out infinite;
}

.wa-float svg {
    width: 30px;
    height: 30px;
}

.wa-float:hover {
    transform: scale(1.08);
    box-shadow: 0 14px 40px rgba(37, 211, 102, 0.55);
}

@keyframes waPulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.5); }
    50% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4), 0 0 0 14px rgba(37, 211, 102, 0); }
}

/* --- Footer enhancements --- */
.footer-tagline {
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 320px;
}

.footer-contact a {
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: var(--secondary);
}

/* Nav Mobile — triggers early enough to prevent item overlap */
@media (max-width: 1350px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--primary);
        padding: 100px 40px;
        transition: right 0.4s var(--transition-smooth);
        z-index: 999;
    }

    .nav-links.mobile-active {
        right: 0;
    }

    .mobile-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        z-index: 1001;
    }

    .mobile-toggle span {
        display: block;
        width: 30px;
        height: 2px;
        background: #FFFFFF;
        transition: 0.3s;
    }

    #navbar.scrolled .mobile-toggle span {
        background: #1A2567 !important;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links li a {
        color: #FFFFFF !important;
        font-size: 1.5rem;
        margin-bottom: 20px;
        display: block;
    }

    .no-scroll {
        overflow: hidden;
    }

    .nav-cta-li {
        display: none;
    }

    .lang-switcher {
        margin-top: 12px;
        align-self: center;
    }

    /* Mobile dropdown — click-toggled via JS */
    .nav-dropdown:hover .nav-dropdown-menu { display: none; }
    .nav-dropdown-menu {
        position: static;
        transform: none;
        background: #1a1a1a;
        border: 1px solid rgba(255,255,255,0.06);
        border-left: 3px solid #F59E0B;
        border-radius: 12px;
        padding: 6px 0;
        margin-top: 8px;
        margin-left: 12px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.4);
        min-width: auto;
    }
    .nav-dropdown.open .nav-dropdown-menu { display: block; }
    .nav-dropdown-menu li a {
        font-size: 1rem !important;
        font-weight: 500 !important;
        padding: 13px 22px !important;
        margin-bottom: 0 !important;
        color: rgba(255,255,255,0.72) !important;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        transition: color 0.2s, background 0.2s;
    }
    .nav-dropdown-menu li:last-child a {
        border-bottom: none !important;
    }
    .nav-dropdown-menu li a:hover {
        color: #fff !important;
        background: rgba(255,255,255,0.05);
    }
    .nav-dropdown-toggle::after {
        content: '';
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        border-top: 5px solid currentColor;
        border-bottom: none;
        width: 0;
        height: 0;
        transition: transform 0.2s;
    }
    .nav-dropdown:hover .nav-dropdown-toggle::after { transform: none; }
    .nav-dropdown.open .nav-dropdown-toggle::after {
        transform: rotate(180deg);
    }
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .projects-section {
        padding: 40px 0;
        min-height: auto;
    }

    .projects-slider {
        gap: 15px;
        padding: 0 15px 30px;
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    .projects-section .section-header h2 {
        margin-bottom: 20px;
        font-size: 1.5rem;
    }

    .project-card {
        min-width: calc(100% - 30px);
        width: calc(100% - 30px);
        height: 450px;
        /* Height that fits standard mobile devices */
        scroll-snap-align: center;
        flex-shrink: 0;
    }

    .project-image {
        height: 100%;
    }

    .blur-img {
        transform: scale(1);
        object-fit: cover;
    }

    .project-overlay h3 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .service-grid.reverse .service-content {
        order: 1;
    }

    .service-grid.reverse .service-image {
        order: 2;
    }

    .service-content h2,
    .about-content h2,
    .contact-header h2 {
        font-size: 2.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-card {
        padding: 40px 20px;
    }

    .badge {
        font-size: 1.5rem;
        /* Smaller on mobile */
    }

    /* --- New sections mobile --- */
    .hero-portal {
        padding: 100px 0 40px;
        min-height: auto;
    }

    .hero-badge {
        font-size: 0.75rem !important;
    }

    .stats-row {
        gap: 18px;
        padding: 22px 16px;
        margin-top: 50px;
    }

    .stats-komanda-grid {
        gap: 10px;
    }

    .stat-komanda-card {
        padding: 20px 16px;
    }

    .why-section,
    .testimonials-section,
    .team-section {
        padding: 60px 16px;
    }

    /* full-bleed marquee keeps its own horizontal rhythm on small screens */
    .partners-section {
        padding: 60px 0;
    }

    .partners-swiper .swiper-slide {
        width: 200px;
    }

    .partner-logo {
        height: 88px;
        padding: 0 24px;
    }

    .partner-logo img {
        max-width: 140px;
        max-height: 36px;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 32px 20px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .form-actions .btn {
        flex: 1 1 100%;
    }

    .wa-float {
        right: 16px;
        bottom: 16px;
        width: 54px;
        height: 54px;
    }

    .project-overlay-detailed h3 {
        font-size: 1.5rem;
    }

    .project-overlay-detailed {
        padding: 20px;
    }

    .section-title-lg {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .stats-komanda-grid {
        grid-template-columns: 1fr;
    }

    .stat-number,
    .stat-komanda-val-text {
        font-size: 2rem;
    }

    .stat-komanda-sfx {
        font-size: 1.4rem;
    }
}

/* ── VIDEO BÖLMELER (Şəms 1 GES) ─────────────────────────────── */
.video-projects-section {
    padding: var(--section-padding);
    background: #000000;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
}

.video-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

.video-card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
}

.video-card-media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 14px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
    z-index: 2;
}

.video-card-overlay h3 {
    font-size: 1.2rem;
    line-height: 1.2;
}

.video-card-tag {
    background: var(--secondary);
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.video-card-loc {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* ── SITE LOADER (loqo + firlanan spinner, hero videosu hazir olana qeder) ── */
.site-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    background: var(--primary);
    transition: opacity 0.6s var(--transition-smooth), visibility 0.6s;
}

.site-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.site-loader-logo {
    width: 120px;
    height: auto;
}

.site-loader-spinner {
    width: 34px;
    height: 34px;
    border: 3px solid var(--border);
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: site-loader-spin 0.9s linear infinite;
}

@keyframes site-loader-spin {
    to {
        transform: rotate(360deg);
    }
}

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

    /* Mobilde overlay karti tutmasin: kichik yazilar, az padding, ince zolag */
    .video-card-overlay {
        padding: 10px 12px;
        gap: 3px;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
    }

    .video-card-overlay h3 {
        font-size: 0.98rem;
    }

    .video-card-tag {
        font-size: 0.58rem;
        padding: 2px 8px;
        letter-spacing: 0.5px;
    }

    .video-card-loc {
        font-size: 0.68rem;
    }

    .video-card-media {
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 480px) {
    .video-card-overlay {
        padding: 8px 10px;
    }

    .video-card-overlay h3 {
        font-size: 0.9rem;
    }

    .video-card-tag {
        font-size: 0.54rem;
    }
}

.video-more {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

/* Hero menuyu ile nav-in mobil paddingi (768px) eyni hizalanir */
@media (max-width: 768px) {
    .hero-portal-inner {
        padding-left: 25px;
        padding-right: 25px;
    }
}

/* Video kartlari indi kliklene bilen button-lardir (detal hazir olanadek hereket etmir) */
button.video-card {
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
    width: 100%;
    display: block;
    appearance: none;
    -webkit-appearance: none;
}

button.video-card:hover,
button.video-card:focus-visible {
    border-color: rgba(37, 99, 235, 0.45);
}

button.video-card:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.55);
    outline-offset: 3px;
}

.video-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Novus karti ahrefli kartdir - button ile eyni gorunum */
a.video-card {
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
    width: 100%;
    display: block;
    text-decoration: none;
}

a.video-card:hover,
a.video-card:focus-visible {
    border-color: rgba(37, 99, 235, 0.45);
}

a.video-card:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.55);
    outline-offset: 3px;
}

/* Rey kartinindeki sirket adi: brend qradienti ile seceli gorunum */
.testimonial-company {
    display: inline-block;
    margin-top: 8px;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Hero playlist crossfade: guyulan klip susuz ve seffaf qalir */
.hero-portal-video {
    transition: opacity 0.9s ease;
}

.hero-portal-video--next {
    opacity: 0;
}
