/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* -----------------------------------------------------------
       VARIABLES & THEME CONFIGURATION
    ----------------------------------------------------------- */

    /* Brand Colors */
    --brand-primary: #E63946;
    /* Logo Red */
    --brand-dark: #1C1C1C;
    /* Logo Black/Dark Grey */

    /* Light Mode Palette (Default) - Clean, Modern White */
    --bg-body: #ffffff;
    --bg-surface: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --text-primary: #18181b;
    /* Zinc 900 */
    --text-secondary: #52525b;
    /* Zinc 600 */
    --border-color: #e4e4e7;
    /* Zinc 200 */

    /* Shadows & Glows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -1px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -2px rgb(0 0 0 / 0.05);
    --glow-primary: 0 0 20px rgba(230, 57, 70, 0.15);
    /* Soft Red Glow */

    /* Gradients */
    --text-gradient: linear-gradient(135deg, #1C1C1C 0%, #E63946 100%);
    --surface-gradient: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
}

[data-theme="dark"] {
    /* Dark Mode Palette - Premium Midnight Zinc */
    --bg-body: #09090b;
    /* Zinc 950 - Richer than black */
    --bg-surface: #18181b;
    /* Zinc 900 */
    --bg-glass: rgba(24, 24, 27, 0.6);
    --text-primary: #f4f4f5;
    /* Zinc 100 */
    --text-secondary: #a1a1aa;
    /* Zinc 400 */
    --border-color: #27272a;
    /* Zinc 800 */

    /* Shadows & Glows Dark */
    --shadow-md: 0 4px 20px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 30px -3px rgba(0, 0, 0, 0.4);
    --glow-primary: 0 0 30px rgba(230, 57, 70, 0.25);

    /* Gradients Dark */
    --text-gradient: linear-gradient(135deg, #ffffff 30%, #E63946 100%);
    --surface-gradient: linear-gradient(180deg, #18181b 0%, #09090b 100%);
}

/* -----------------------------------------------------------
   GLOBAL RESET & TYPOGRAPHY
----------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    /* Crisp text for Mac */
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.7;
    /* Slightly increased for readability */
    font-size: 1.125rem;
    /* 18px base size */
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
    /* Tighten headings for modern look */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* -----------------------------------------------------------
   UTILITIES
----------------------------------------------------------- */
.container {
    max-width: 1280px;
    /* Wider container for modern feel */
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
    /* More whitespace */
}

/* Text Gradient Utility */
.text-gradient {
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    /* Pill Shape */
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    white-space: normal;
    /* Allow text wrapping */
    text-align: center;
    line-height: 1.2;
}

.btn-primary {
    background: linear-gradient(135deg, #1C1C1C, #E63946);
    color: white;
    box-shadow: 0 4px 14px rgba(230, 57, 70, 0.3);
    border: none;
    /* Ensure no border interferes with gradient */
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
    background: #d92e3c;
    /* Slight darken manually for reliability */
}

.btn-outline {
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    /* Slight background for visibility */
    backdrop-filter: blur(5px);
}

[data-theme="dark"] .btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    transform: translateY(-2px);
    background: rgba(230, 57, 70, 0.05);
    /* Subtle tint */
}

.btn-gradient {
    background: linear-gradient(135deg, #1C1C1C, #E63946);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-gradient:hover {
    opacity: 0.95;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.3);
}

/* Text Button / Link Button */
.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(230, 57, 70, 0.1);
    color: var(--brand-primary);
    font-weight: 600;
    transition: all 0.3s ease;
}

[data-theme="dark"] .btn-link {
    background: rgba(230, 57, 70, 0.2);
}

.btn-link:hover {
    background: rgba(230, 57, 70, 0.2);
    transform: translateX(5px);
}

/* -----------------------------------------------------------
   HEADER & NAVIGATION
----------------------------------------------------------- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    /* Light Glass */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

[data-theme="dark"] header {
    background: rgba(9, 9, 11, 0.85);
    /* Dark Glass */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo img {
    height: 48px;
    /* Slightly larger logo */
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

[data-theme="dark"] .logo img {
    /* Smart Invert: Turns black text white, keeps Red hue (180deg rotation restores red from cyan) */
    filter: invert(1) hue-rotate(180deg);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--brand-primary);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Theme Toggle */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.theme-toggle:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    background: rgba(230, 57, 70, 0.1);
}

/* -----------------------------------------------------------
   DROPDOWN MENU
----------------------------------------------------------- */
.nav-item-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 260px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 1rem 0;
    z-index: 1100;
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .dropdown-menu {
    background: #1a1a1a;
    border-color: #333;
}

.nav-item-dropdown:hover .dropdown-menu {
    display: block;
    animation: fade-up 0.3s ease-out forwards;
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .dropdown-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: rgba(230, 57, 70, 0.05);
    color: var(--brand-primary);
    padding-left: 2rem;
}

/* Mobile Dropdown Styling */
@media (max-width: 768px) {

    .nav-item-dropdown:hover .dropdown-menu,
    .dropdown-menu {
        display: none;
        /* Hidden by default on mobile, relies on hover/click or flattened */
        position: static;
        width: 100%;
        box-shadow: none;
        background: transparent;
        border: none;
        padding-left: 1rem;
    }

    /* Show on hover (tap) for mobile simplicity or always show */
    .nav-item-dropdown:hover .dropdown-menu {
        display: block;
    }

    .dropdown-item {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}


/* -----------------------------------------------------------
   HERO SECTION
----------------------------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 90px;
    overflow: hidden;
    /* Clean background implementation */
}

/* Ambient Background Glow (Aurora Animation) */
/* Circuit/Circles Animation */
/* Circuit/Circles Animation */
.hero::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 900px;
    border-radius: 50%;
    /* Asymmetric border for visible rotation - HIGH OPACITY */
    border: 3px dashed rgba(230, 57, 70, 0.6);
    border-top: 3px solid rgba(230, 57, 70, 1.0);
    /* Full opacity */
    border-bottom: 2px solid transparent;
    box-shadow: 0 0 35px rgba(230, 57, 70, 0.4);
    animation: rotate-circuit 12s linear infinite;
    z-index: 1;
    /* Bump Z-index */
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 650px;
    height: 650px;
    border-radius: 50%;
    /* Asymmetric border for visible rotation */
    border: 2px dashed rgba(28, 28, 28, 0.6);
    border-left: 3px solid rgba(28, 28, 28, 0.9);
    border-right: 2px solid transparent;
    animation: rotate-circuit-reverse 8s linear infinite;
    z-index: 1;
    /* Bump Z-index */
    pointer-events: none;
}

[data-theme="dark"] .hero::after {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-left: 3px solid rgba(255, 255, 255, 0.8);
    border-right: 2px solid transparent;
}

@keyframes rotate-circuit {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes rotate-circuit-reverse {
    from {
        transform: translate(-50%, -50%) rotate(360deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 5;
    /* Ensure content is above rings */
}

.hero h1 {
    font-size: 3.5rem;
    /* Fallback */
    font-size: clamp(3rem, 5vw, 4.5rem);
    /* Responsive fluid typography */
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    /* Safe wrapping for mobile */
}

/* -----------------------------------------------------------
   CARDS & GRID
----------------------------------------------------------- */
.section-title {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--bg-surface);
    padding: 2.5rem;
    border-radius: 1.5rem;
    /* Larger curvature */
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy smooth */
    position: relative;
    overflow: hidden;
    /* Optional slight gradient on surface */
    background-image: var(--surface-gradient);
    display: flex;
    /* Flexbox for better content distribution */
    flex-direction: column;
}

.card .btn-link {
    margin-top: auto;
    /* Push button to bottom */
    width: fit-content;
}

/* Glassmorphism for Dark Mode Cards */
[data-theme="dark"] .card {
    background: rgba(24, 24, 27, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--glow-primary);
    border-color: rgba(230, 57, 70, 0.3);
}

.card i {
    transition: transform 0.3s ease;
}

.card:hover i {
    transform: scale(1.1);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* -----------------------------------------------------------
   FORMS
----------------------------------------------------------- */
.form-input {
    width: 100%;
    padding: 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    background: var(--bg-body);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.1);
}

/* -----------------------------------------------------------
   ANIMATIONS
----------------------------------------------------------- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* -----------------------------------------------------------
   AI DISCOVERY PAGE STYLES
----------------------------------------------------------- */
.ai-hero {
    /* Mix of Dark Overlay + Brand Red Glow + Background Image */
    background-image:
        radial-gradient(circle at 10% 20%, rgba(230, 57, 70, 0.25) 0%, transparent 40%),
        /* Top Left Red Glow */
        radial-gradient(circle at 90% 80%, rgba(0, 255, 242, 0.15) 0%, transparent 40%),
        /* Bottom Right Cyan Glow */
        linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6)),
        url('../images/ai_hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    color: white;
    padding-top: 150px !important;
    padding-bottom: 100px !important;
    position: relative;
    overflow: hidden;
}

.ai-hero h1 {
    font-size: 3.5rem;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    /* Cyan glow */
}

.ai-section-bg {
    /* Brand Red subtle overlay on mesh */
    background-image:
        radial-gradient(circle at 50% 50%, rgba(230, 57, 70, 0.08) 0%, transparent 70%),
        url('../images/ai_mesh_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Glassmorphism Card */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    /* Dual glow: Cyan + Brand Red */
    box-shadow: -5px 15px 40px rgba(230, 57, 70, 0.15), 5px 15px 40px rgba(0, 255, 255, 0.1);
    border-color: rgba(230, 57, 70, 0.4);
}

/* Floating Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.floating {
    animation: float 4s ease-in-out infinite;
}

/* Stagger floating animations */
.floating:nth-child(even) {
    animation-delay: 1s;
}

.floating:nth-child(3n) {
    animation-delay: 2s;
}

/* Glowing Text Gradient override for AI page */
.text-gradient-ai {
    background: linear-gradient(135deg, #00fff2 0%, #0066ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 5px rgba(0, 255, 242, 0.3));
}


/* Utility Classes */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.mobile-only {
    display: none;
}

/* -----------------------------------------------------------
   RESPONSIVE DESIGN
----------------------------------------------------------- */
/* Burger Menu & Mobile Nav */
.burger-menu {
    display: none;
    cursor: pointer;
    z-index: 1002;
}

.burger-bar {
    width: 28px;
    height: 2px;
    background-color: var(--text-primary);
    margin: 6px 0;
    transition: 0.4s;
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {

    /* Prevent iOS Zoom on Input Focus: Font size must be >= 16px */
    .form-input,
    select,
    textarea {
        font-size: 16px !important;
    }

    .section {
        padding: 5rem 0;
    }

    .navbar {
        height: 70px;
    }

    .hero {
        padding-top: 70px;
    }

    .burger-menu {
        display: block;
    }

    /* Mobile Menu Drawer */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 85%;
        background: var(--bg-surface);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 8rem;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
        z-index: 1001;
        border-left: 1px solid var(--border-color);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        margin: 1.5rem 0;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    /* Controls inside mobile menu */
    .mobile-controls {
        display: flex !important;
        /* Force show */
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        width: 100%;
        margin-top: 2rem;
    }

    .desktop-only {
        display: none !important;
    }

    /* Burger Animation */
    .burger-menu.active .burger-bar:nth-child(1) {
        transform: rotate(-45deg) translate(-6px, 6px);
    }

    .burger-menu.active .burger-bar:nth-child(2) {
        opacity: 0;
    }

    .burger-menu.active .burger-bar:nth-child(3) {
        transform: rotate(45deg) translate(-6px, -6px);
    }

    /* Grid Adjustments */
    .grid-2-col,
    .contact-layout,
    .form-row-2,
    .card-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        /* Reduce gap to prevent overflow */
    }

    /* Reduce Card Padding on Mobile */
    .card {
        padding: 1.5rem !important;
    }

    /* Ensure images don't overflow */
    .card img,
    .grid-2-col img {
        width: 100%;
        height: auto !important;
        /* Allow image to scale naturally */
        object-fit: contain !important;
        /* Ensure full image is visible */
        border-radius: 0.5rem;
    }

    /* Fix Content Padding inside Cards (overrides inline styles) */
    .card>div {
        padding: 1.5rem !important;
    }

    /* Fix Text Cutoff in Heroes/Cards */
    h1,
    h2,
    h3 {
        word-wrap: break-word;
        /* Prevent long words breaking layout */
    }

    /* Fix Services Page inline styling issues */
    .grid-2-col>div {
        padding: 1.5rem !important;
        /* Override inline 2rem padding */
        width: 100% !important;
    }

    /* Fix Button sizing */
    .btn,
    .btn-primary,
    .btn-outline {
        width: 100%;
        /* Full width buttons on mobile */
        margin-bottom: 0.5rem;
    }

    /* Reverse Mobile Layout (Image on Top) */
    .reverse-mobile {
        display: flex !important;
        flex-direction: column-reverse !important;
        gap: 2rem;
    }
}

/* -----------------------------------------------------------
   SALESFORCE PAGE STYLES
----------------------------------------------------------- */
.salesforce-hero {
    background: radial-gradient(circle at 70% 30%, rgba(0, 161, 224, 0.1) 0%, transparent 60%),
        var(--bg-body);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .salesforce-hero {
    background: radial-gradient(circle at 70% 30%, rgba(0, 161, 224, 0.2) 0%, transparent 60%),
        var(--bg-body);
}

.sf-cloud-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.sf-cloud-bg .fa-cloud {
    position: absolute;
    color: rgba(0, 161, 224, 0.05);
    font-size: 10rem;
    animation: float-cloud 20s linear infinite;
}

[data-theme="dark"] .sf-cloud-bg .fa-cloud {
    color: rgba(0, 161, 224, 0.1);
}

.cloud-1 {
    top: 20%;
    left: -10%;
    font-size: 8rem;
    animation-duration: 25s;
}

.cloud-2 {
    top: 60%;
    left: -20%;
    font-size: 12rem;
    animation-duration: 35s;
    animation-delay: 5s;
}

.cloud-3 {
    top: 10%;
    left: -15%;
    font-size: 6rem;
    animation-duration: 40s;
    animation-delay: 10s;
}

@keyframes float-cloud {
    0% {
        transform: translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateX(120vw);
        opacity: 0;
    }
}

.sf-graphic-container {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sf-logo-large {
    font-size: 10rem;
    color: #00A1E0;
    z-index: 2;
    filter: drop-shadow(0 10px 20px rgba(0, 161, 224, 0.3));
}

.sf-circle-graphic {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 2px dashed rgba(0, 161, 224, 0.3);
    animation: rotate-circuit 20s linear infinite;
    z-index: 1;
}


.check-list li {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

/* -----------------------------------------------------------
   SCROLL ANIMATION UTILITIES
----------------------------------------------------------- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.fade-up {
    transform: translateY(40px);
}

.animate-on-scroll.fade-left {
    transform: translateX(-40px);
}

/* -----------------------------------------------------------
   HOMEPAGE REDESIGN (Tech/Premium Aesthetic)
----------------------------------------------------------- */

/* Enhanced Hero Section */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
    min-height: 80vh;
    /* Ensure tall hero */
    padding-top: 6rem;
}

.hero-text {
    text-align: left;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-text p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* Abstract Tech Graphic (CSS Only) */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.tech-core {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at 30% 30%, var(--brand-primary), #000);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 60px rgba(230, 57, 70, 0.4);
    z-index: 10;
}

.tech-core::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 20px;
    background: radial-gradient(ellipse, rgba(230, 57, 70, 0.5) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(6px);
}

/* Floating Elements / Satellites */
.satellite {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.sat-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    right: 10%;
    animation: float 7s ease-in-out infinite 1s;
}

.sat-2 {
    width: 60px;
    height: 60px;
    bottom: 15%;
    left: 10%;
    animation: float 5s ease-in-out infinite 0.5s;
}

.sat-3 {
    width: 50px;
    height: 50px;
    top: 20%;
    left: 20%;
    animation: float 8s ease-in-out infinite 2s;
    background: rgba(0, 161, 224, 0.2);
    border-color: rgba(0, 161, 224, 0.4);
}

/* Orbit Rings */
.orbit {
    position: absolute;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.orbit-1 {
    width: 350px;
    height: 350px;
    animation: spin 20s linear infinite;
}

.orbit-2 {
    width: 550px;
    height: 550px;
    border-color: rgba(255, 255, 255, 0.05);
    animation: spin 30s linear infinite reverse;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Refined Service Cards (Premium Glass) */
/* Refined Service Cards (Premium Glass) */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    /* Default for Dark Mode / Dark BG */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
}

/* Light Mode Adaptation for Glass Panel (when NOT inside .tech-bg) */
body:not([data-theme="dark"]) .glass-panel:not(.tech-bg .glass-panel) {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

body:not([data-theme="dark"]) .glass-panel:not(.tech-bg .glass-panel) h3 {
    color: var(--text-primary);
}

body:not([data-theme="dark"]) .glass-panel:not(.tech-bg .glass-panel) p {
    color: var(--text-secondary);
}

/* Dark Mode / Tech BG interactions */
[data-theme="dark"] .glass-panel,
.tech-bg .glass-panel {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}

.glass-panel:hover {
    transform: translateY(-5px);
}

/* Specific Hover for Dark Mode / Tech BG */
[data-theme="dark"] .glass-panel:hover,
.tech-bg .glass-panel:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(230, 57, 70, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Hover in Light Mode */
body:not([data-theme="dark"]) .glass-panel:not(.tech-bg .glass-panel):hover {
    background: white;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--brand-primary);
}

.glass-panel h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
    /* Default for Dark/Tech BG */
}

.glass-panel p {
    color: rgba(255, 255, 255, 0.7);
    /* Default for Dark/Tech BG */
    font-size: 1rem;
    line-height: 1.6;
}

.glass-panel i {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: -webkit-linear-gradient(45deg, var(--brand-primary), #ff9f1c);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-split {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding-top: 8rem;
        /* More space for fixed header */
        min-height: auto;
    }

    .hero-text {
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        margin: 0 auto 2rem auto;
    }

    .hero-visual {
        height: 400px;
    }

    .orbit-2 {
        display: none;
        /* Simplify on mobile */
    }
}

.animate-on-scroll.fade-right {
    transform: translateX(40px);
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    filter: blur(5px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1) translateX(0);
}

.fade-up {
    transform: translateY(30px);
}

.fade-left {
    transform: translateX(-30px);
}

.fade-right {
    transform: translateX(30px);
}

.zoom-in {
    transform: scale(0.9);
}

.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.delay-400 {
    transition-delay: 400ms;
}

.delay-500 {
    transition-delay: 500ms;
}

/* Technical Animated Background */
.tech-bg {
    position: relative;
    overflow: hidden;
    background: #0f172a;
    /* Fallback/Base Color */
}

.tech-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
    perspective: 500px;
    transform-style: preserve-3d;
    animation: grid-scroll 20s linear infinite;
}

@keyframes grid-scroll {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(40px);
    }
}

/* Featured Project Card */
.featured-project-card {
    padding: 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.featured-project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
}

.featured-project-content {
    padding: 3rem;
}

@media (max-width: 768px) {
    .featured-project-card {
        grid-template-columns: 1fr;
        /* Stack vertically */
    }

    .featured-project-img {
        min-height: 250px;
        /* Reduce height on mobile */
    }

    .featured-project-content {
        padding: 2rem 1.5rem;
    }
}

.tech-glow-overlay {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 161, 224, 0.1) 0%, transparent 60%);
    z-index: 1;
    animation: glow-rotate 15s linear infinite;
}

@keyframes glow-rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Ensure content is above bg */
.tech-bg>* {
    position: relative;
    z-index: 2;
}

.animate-on-scroll.zoom-in {
    transform: scale(0.9);
}

.animate-on-scroll.visible.zoom-in {
    transform: scale(1);
}

/* Stagger Delays */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}

/* -----------------------------------------------------------
   TECHNICAL ANIMATED BACKGROUND
----------------------------------------------------------- */
.tech-bg {
    position: relative;
    background-color: #0f172a;
    overflow: hidden;
    color: white;
}

/* Make sure tech-bg text stays white even in light mode */
.tech-bg h1,
.tech-bg h2,
.tech-bg h3,
.tech-bg h4,
.tech-bg p,
.tech-bg span:not(.text-gradient) {
    color: white !important;
}

/* Ensure buttons inside tech-bg are always visible (White/Light) */
.tech-bg .btn-outline {
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.tech-bg .btn-outline:hover {
    background: white;
    color: var(--brand-dark);
}

.tech-bg .btn-primary {
    /* Ensure primary buttons pop against dark bg */
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.4);
}

/* Brand Section Background (CTA) */
.brand-section-bg {
    background: linear-gradient(135deg, #1C1C1C 0%, #000000 100%);
    position: relative;
    color: white;
    /* Ensure text is white */
}

/* Ensure inline styles in CTA don't get overridden by global text colors if any */
.brand-section-bg h2,
.brand-section-bg p {
    color: white;
}

.tech-bg .text-gradient {
    /* Maintain gradient */
    display: inline-block;
}

.tech-bg p {
    opacity: 0.9;
}

.tech-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 161, 224, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 161, 224, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    animation: grid-scroll 20s linear infinite;
}

.tech-glow-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 161, 224, 0.15) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

@keyframes grid-scroll {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(40px);
    }
}

/* Ensure content sits above the background */
.tech-bg .container {
    position: relative;
    z-index: 2;
}

/* Adjust card styles when inside tech-bg for better contrast */
.tech-bg .card {
    background: rgba(255, 255, 255, 0.05);
    /* Glassy dark */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-bg .card h3,
.tech-bg .card p,
.tech-bg h2,
.tech-bg p {
    color: white;
    /* Ensure text is readable on dark base */
}

.tech-bg .card p {
    color: rgba(255, 255, 255, 0.7);
}

.tech-bg .section-title p {
    color: rgba(255, 255, 255, 0.7);
}