:root {
    /* Color Palette - Ultra Dark n8n Style */
    --bg-dark: #09090b;          /* Pitch black/dark gray */
    --bg-panel: rgba(255, 255, 255, 0.02);
    --bg-panel-hover: rgba(255, 255, 255, 0.05);
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.15);
    
    --brand-orange: #FF4F00;     /* Vibrant Electric Orange */
    --brand-orange-hover: #FF6B2B;
    
    --text-main: #ffffff;
    --text-muted: #a1a1aa;       /* Zinc 400 */
    
    --font-main: 'Inter', sans-serif;
    --max-width: 1200px;
}

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

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text-main);
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
    box-sizing: border-box;
    scroll-margin-top: 5rem;
}

/* Typography */
.text-subtle {
    color: var(--text-muted);
}

/* -------------------------------------
   Liquid Navbar
------------------------------------- */
.nav-wrapper {
    position: fixed;
    top: 1.5rem;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 100;
    padding: 0 2rem;
}

.navbar {
    width: 100%;
    max-width: 1100px;
    background: rgba(10, 10, 12, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(197, 168, 128, 0.35); /* Subtle gold/bronze metallic outline */
    border-radius: 100px; /* Pill shape */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Subtle inner shadow for metallic glass effect */
.navbar {
    box-shadow: inset 0 1px 1px rgba(197, 168, 128, 0.15),
                inset 0 -1px 0 rgba(0, 0, 0, 0.2),
                0 12px 40px rgba(0, 0, 0, 0.6);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-img {
    height: 48px; /* Increased from 38px for better text readability */
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.03);
}

/* Silver metallic power button card */
.logo-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff 0%, #dcdcdc 30%, #a8a8ab 70%, #ececec 100%);
    color: #1a1a1c;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 10px; /* Rounded square card */
    font-size: 1.15rem;
    box-shadow: 
        inset 0 1.5px 1px rgba(255, 255, 255, 0.9),
        inset 0 -1px 2px rgba(0, 0, 0, 0.25),
        0 4px 8px rgba(0, 0, 0, 0.3);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.logo:hover .logo-icon-wrapper {
    transform: scale(1.05);
    filter: brightness(1.05);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    padding: 0.4rem 0;
    position: relative;
    transition: color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
}

/* Animated gold/bronze underline */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #c5a880 30%, #e5d4ba 50%, #c5a880 70%, transparent 100%);
    box-shadow: 0 1px 6px rgba(197, 168, 128, 0.6);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

/* Buttons */
.btn-primary-pill, .btn-outline-pill {
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary-pill {
    background: var(--brand-orange);
    color: #fff;
    border: 1px solid transparent;
    box-shadow: 0 4px 14px rgba(255, 79, 0, 0.4);
}

.btn-primary-pill:hover {
    background: var(--brand-orange-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 79, 0, 0.6);
}

/* Navbar specific metallic gold CTA button */
.navbar .btn-primary-pill {
    background: linear-gradient(135deg, #7c6239 0%, #c5a880 25%, #f3e3cb 50%, #c5a880 75%, #7c6239 100%);
    background-size: 200% auto;
    color: #121214; /* High readability dark text */
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 15px rgba(197, 168, 128, 0.35);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.navbar .btn-primary-pill:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 168, 128, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.35);
    color: #121214;
}

.btn-outline-pill {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
}

.btn-outline-pill:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--border-strong);
}

.hero {
    position: relative;
    min-height: 100vh;
    padding-top: 7rem; /* Reduced to pull content up and center it better */
    padding-bottom: 4rem; /* Reduced to balance space at the bottom */
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden; /* Prevent glowing elements from causing horizontal overflow */
}

/* Dot Grid Background */
.bg-grid {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(var(--border-strong) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.3;
    z-index: 0;
    mask-image: radial-gradient(ellipse at top, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at top, black 40%, transparent 80%);
}

/* Ambient Roaming Glows */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    z-index: 1;
    pointer-events: none;
    opacity: 0.55;
    mix-blend-mode: screen;
    will-change: transform, opacity;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.glow-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--brand-orange) 0%, rgba(255, 79, 0, 0.4) 60%, transparent 100%);
    top: -10%;
    right: -5%;
    animation: roam 18s ease-in-out infinite alternate;
}

.glow-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #4F46E5 0%, rgba(79, 70, 229, 0.4) 60%, transparent 100%);
    bottom: -15%;
    left: -5%;
    animation: roamReverse 22s ease-in-out infinite alternate;
}

.glow-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #ec4899 0%, rgba(236, 72, 153, 0.3) 60%, transparent 100%);
    top: 25%;
    left: 35%;
    animation: roamPulse 15s ease-in-out infinite alternate;
}

@keyframes roam {
    0% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
    50% { transform: translate3d(-15vw, 10vh, 0) scale(1.25) rotate(180deg); }
    100% { transform: translate3d(-30vw, 5vh, 0) scale(0.9) rotate(360deg); }
}

@keyframes roamReverse {
    0% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
    50% { transform: translate3d(15vw, -15vh, 0) scale(0.8) rotate(-180deg); }
    100% { transform: translate3d(25vw, -5vh, 0) scale(1.15) rotate(-360deg); }
}

@keyframes roamPulse {
    0% { transform: translate3d(0, 0, 0) scale(0.9) rotate(0deg); opacity: 0.4; }
    50% { transform: translate3d(-10vw, -8vh, 0) scale(1.3) rotate(90deg); opacity: 0.65; }
    100% { transform: translate3d(10vw, 12vh, 0) scale(1.0) rotate(180deg); opacity: 0.5; }
}

.hero-container {
    width: 100%;
    margin-top: auto;
    margin-bottom: auto; /* Güvenli dikey ortalama (asla yukarı taşıp kesilmez) */
    display: flex;
    flex-wrap: wrap; /* Küçük ekranlarda üst üste binmeyi engeller */
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 10;
}

.hero-left {
    flex: 1;
    max-width: 600px;
    padding-right: 2rem;
}

.hero-left h1 {
    font-size: 4.5rem; /* Çok daha güçlü bir başlık */
    margin-bottom: 1.5rem;
    line-height: 1.05;
    background: linear-gradient(to right, #ffffff, #d1d5db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-left p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Abstract 3D Hero Graphic Simulation */
.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-graphic-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Cinematic 3D Image Graphic --- */
.hero-3d-image {
    width: 140%; /* Sütundan dışarı taşarak devasa görünmesini sağlar */
    max-width: 800px; /* Sınırları zorlayan büyüklük */
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 60px rgba(255, 79, 0, 0.6));
    z-index: 2;
    position: relative;
    transform: translateX(10%); /* Ekranın sağına doğru hafifçe kaydırır */
}

/* Reflection on the floor */
.graphic-reflection {
    position: absolute;
    bottom: -50px;
    width: 300px;
    height: 20px;
    background: var(--brand-orange);
    filter: blur(30px);
    border-radius: 50%;
    opacity: 0.8;
}

/* -------------------------------------
   References Section (Büyük Referanslar Alanı)
------------------------------------- */
.references-section {
    position: relative;
    z-index: 10;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-subtle);
}

.references-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4.5rem auto;
}

.references-header h2 {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    line-height: 1.15;
    background: linear-gradient(to right, #ffffff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.references-header p {
    font-size: 1.15rem;
    color: var(--text-muted);
}

.badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(255, 79, 0, 0.1);
    border: 1px solid rgba(255, 79, 0, 0.2);
    border-radius: 100px;
    color: var(--brand-orange);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

/* Two-row Marquee Styling */
.logo-marquee-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    width: 100%;
}

.logo-marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    padding: 1.5rem 0;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

.logo-marquee-container::before,
.logo-marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 200px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.logo-marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark) 0%, transparent 100%);
}

.logo-marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark) 0%, transparent 100%);
}

.logo-marquee-track {
    display: flex;
    width: max-content;
    will-change: transform;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
}

/* Sola Akan Satır */
.marquee-left .logo-marquee-track {
    animation: marquee-scroll-left 40s linear infinite;
}

/* Sağa Akan Satır */
.marquee-right .logo-marquee-track {
    animation: marquee-scroll-right 40s linear infinite;
}

.logo-slide {
    display: flex;
    align-items: center;
    gap: 6rem; /* Logolar arası mesafe */
    padding-right: 6rem; /* Eşit boşluk */
}

/* Kendi logolarını eklediklerinde büyük ve net görünecekler */
.logo-slide img {
    height: 60px; /* Logo boyutunu 45px'den 60px'e çıkardık! */
    width: auto;
    object-fit: contain;
    opacity: 0.6;
    filter: grayscale(1) brightness(1.8);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-slide img:hover {
    opacity: 1;
    filter: grayscale(0) brightness(1);
    transform: scale(1.08);
}

.t-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem; /* Metin logosunu da büyüttük */
    font-weight: 600;
    color: var(--text-muted);
    opacity: 0.55;
    transition: all 0.3s ease;
}

.t-logo:hover {
    opacity: 1;
    color: var(--text-main);
    transform: scale(1.03);
}

.t-logo i {
    font-size: 1.7rem;
    color: var(--brand-orange);
}

@keyframes marquee-scroll-left {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

@keyframes marquee-scroll-right {
    0% { transform: translate3d(-50%, 0, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

/* Hero Bottom Fade (smooth transition to next section) */
.hero-bottom-fade {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 200px;
    background: linear-gradient(to bottom, transparent, var(--bg-dark));
    z-index: 5;
    pointer-events: none;
}

/* -------------------------------------
   Services Section
------------------------------------- */
.services-section {
    position: relative;
    z-index: 10;
    background: var(--bg-dark);
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #ffffff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.service-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.005) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    white-space: normal;
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 1.5px 1.5px rgba(255, 255, 255, 0.04), 0 12px 30px rgba(0, 0, 0, 0.4);
}

.service-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%);
    border-color: rgba(255, 79, 0, 0.45);
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 79, 0, 0.15), inset 0 1.5px 1.5px rgba(255, 255, 255, 0.08);
}

/* Subtle glow inside card on hover */
.card-glow {
    position: absolute;
    top: 0; right: 0;
    width: 150px; height: 150px;
    background: var(--brand-orange);
    filter: blur(60px);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 50%;
}

.service-card:hover .card-glow {
    opacity: 0.15;
}

.card-icon {
    font-size: 2.8rem;
    color: var(--brand-orange);
    margin-bottom: 1.8rem;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.service-card:hover .card-icon {
    transform: scale(1.1) translateY(-3px);
}

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

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.card-tags {
    display: flex;
    gap: 0.5rem;
}

.card-tags span {
    padding: 0.35rem 0.85rem;
    background: rgba(255, 79, 0, 0.06);
    border: 1px solid rgba(255, 79, 0, 0.15);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    transition: all 0.3s ease;
}

.service-card:hover .card-tags span {
    background: rgba(255, 79, 0, 0.12);
    border-color: rgba(255, 79, 0, 0.3);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 79, 0, 0.2);
}

/* -------------------------------------
   Brands Section
------------------------------------- */
.brands-section {
    position: relative;
    z-index: 10;
    background: var(--bg-dark);
    border-top: 1px solid var(--border-subtle);
}

.brands-marquee-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 2.5rem 0;
}

.brands-divider {
    height: 1px;
    width: 80%;
    max-width: var(--max-width);
    margin: 1.25rem auto;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.02) 20%, rgba(255, 79, 0, 0.25) 50%, rgba(255, 255, 255, 0.02) 80%, transparent 100%);
    box-shadow: 0 0 12px rgba(255, 79, 0, 0.15);
    opacity: 0.6;
}

/* Glass fading mask at edges */
.brands-marquee-container::before,
.brands-marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.brands-marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark) 0%, transparent 100%);
}

.brands-marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark) 0%, transparent 100%);
}

.brands-marquee-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    will-change: transform;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
}

.brands-marquee-left .brands-marquee-track {
    animation: brands-scroll-left 30s linear infinite;
}

.brands-marquee-right .brands-marquee-track {
    animation: brands-scroll-right 30s linear infinite;
}


.brands-marquee-container:hover .brands-marquee-track {
    animation-play-state: paused;
}

.brands-marquee-track .brand-card {
    width: 220px;
    flex-shrink: 0;
}

@keyframes brands-scroll-left {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

@keyframes brands-scroll-right {
    0% { transform: translate3d(-50%, 0, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

.brand-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.005) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 2.2rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    min-height: 140px;
    box-shadow: inset 0 1.5px 1.5px rgba(255, 255, 255, 0.03), 0 12px 24px rgba(0, 0, 0, 0.3);
}

.brand-glow-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    background: var(--brand-glow-color, var(--brand-orange));
    filter: blur(50px);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    border-radius: 50%;
}

.brand-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%);
    border-color: var(--brand-glow-color, var(--brand-orange));
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), 0 0 25px var(--brand-glow-color), inset 0 1.5px 1.5px rgba(255, 255, 255, 0.08);
}

.brand-card:hover .brand-glow-bg {
    opacity: 0.25;
}

.brand-icon-box {
    font-size: 2.2rem;
    color: var(--brand-glow-color, var(--brand-orange));
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-card:hover .brand-icon-box {
    transform: scale(1.15) rotate(5deg);
}

.brand-card img {
    height: 48px;
    width: auto;
    max-width: 85%;
    object-fit: contain;
    opacity: 0.65;
    filter: grayscale(1) brightness(1.6);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-card:hover img {
    opacity: 1;
    filter: grayscale(0) brightness(1);
    transform: scale(1.06);
}

.brand-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    transition: color 0.3s ease;
    text-transform: uppercase;
    text-align: center;
}

.brand-card:hover h3 {
    color: #ffffff;
}

/* -------------------------------------
   Footer
------------------------------------- */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 5rem 0 3rem 0;
    margin-top: 4rem;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 5rem;
    box-sizing: border-box;
    scroll-margin-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1rem;
}

.footer-contact h4 {
    margin-bottom: 1.5rem;
}

.footer-contact ul li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.footer-contact ul li i {
    color: var(--brand-orange);
}

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

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

@keyframes revealFromLeft {
    from {
        opacity: 0;
        transform: translate3d(-40px, 0, 0);
        clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    }
}

@keyframes revealFromLeftSubtle {
    from {
        opacity: 0;
        transform: translate3d(-20px, 0, 0);
        clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0; /* Starts hidden before animation kicks in */
}

.animate-reveal-left {
    opacity: 0;
    clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
    animation: revealFromLeft 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-reveal-left-subtle {
    opacity: 0;
    clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
    animation: revealFromLeftSubtle 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in-up-delayed {
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.scroll-reveal {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* Responsive */
.mobile-menu-toggle {
    display: none;
}
.mobile-cta-li {
    display: none;
}

@media (max-width: 900px) {
    .nav-wrapper {
        padding: 0 1rem;
        top: 1rem;
    }
    
    .navbar {
        padding: 0.5rem 1rem;
    }
    
    .logo-img {
        max-width: 150px; /* Constrain logo width on mobile */
    }
    
    .navbar .btn-primary-pill {
        display: none; /* Hide main navbar CTA on mobile to avoid overflow */
    }
    
    .mobile-cta-li {
        display: block; /* Show mobile CTA button inside the menu drawer */
    }

    .hero-container { flex-direction: column; text-align: center; }
    .hero-left { flex: 0 0 100%; max-width: 100%; padding-right: 0; }
    .hero-right { flex: 0 0 100%; width: 100%; }
    .hero-3d-image { width: 100%; max-width: 500px; transform: none; }
    .hero-left h1 { font-size: 3rem; }
    .hero-left p { margin: 0 auto 2.5rem auto; }
    .hero-buttons { justify-content: center; }
    .services-grid { grid-template-columns: 1fr; }
    .brands-grid { grid-template-columns: repeat(3, 1fr); }
    .logo-slide { gap: 2.5rem; padding-right: 2.5rem; }
    
    /* Mobile Menu Style */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        color: #fff;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
        margin-left: 0.5rem;
        transition: color 0.3s ease;
    }
    .mobile-menu-toggle:hover {
        color: var(--brand-orange);
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 12, 0.95);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border: 1px solid rgba(197, 168, 128, 0.35);
        border-radius: 24px;
        padding: 2rem;
        margin-top: 1rem;
        gap: 1.5rem;
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
        pointer-events: none;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 99;
        box-shadow: 0 20px 40px rgba(0,0,0,0.8);
    }
    
    .nav-links.mobile-active {
        display: flex;
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }
    
    .nav-links a {
        display: block;
        font-size: 1.1rem;
        text-align: center;
        padding: 0.5rem 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 600px) {
    .brands-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

/* -------------------------------------
   UX Additions: Contact Form & Back to Top
------------------------------------- */
.contact-link {
    color: inherit;
    transition: color 0.2s ease;
}
.contact-link:hover {
    color: var(--brand-orange);
    text-decoration: underline;
}


/* Scroll to Top with Circular Progress */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: rgba(10, 10, 12, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 79, 0, 0.25);
}

.scroll-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-to-top i {
    color: #fff;
    font-size: 1.15rem;
    transition: transform 0.3s ease, color 0.3s ease;
    position: absolute;
}

.scroll-to-top:hover i {
    transform: translateY(-2px);
    color: var(--brand-orange);
}

.scroll-to-top .progress-circle {
    width: 100%;
    height: 100%;
}

.scroll-to-top .progress-circle path {
    fill: none;
    stroke: var(--brand-orange);
    stroke-width: 4;
    box-sizing: border-box;
    transition: stroke-dashoffset 10ms linear;
}
