/* 
  ========================================================================
  CANTOR8 CLONE - STYLESHEET MONOLITH
  ========================================================================
  This CSS file recreates the highly detailed visual design of Cantor8,
  including deep dark mode layouts, flex/grid systems, and advanced
  micro-animations for a premium institutional feel.
  ========================================================================
*/

/* --- CSS VARIABLES --- */
:root {
    --c-bg: #030303;
    /* Deepest black/grey for main background */
    --c-surface: #0a0a0c;
    /* Slightly lighter for cards */
    --c-surface-hover: #121216;
    --c-border: rgba(255, 255, 255, 0.1);
    --c-border-hover: rgba(255, 255, 255, 0.25);

    --c-text-primary: #ffffff;
    --c-text-secondary: #9ca3af;

    /* Institutional accent color - common in enterprise blockchains */
    --c-accent: #00ff88;
    --c-accent-glow: rgba(0, 255, 136, 0.2);

    --font-sans: 'Poppins', system-ui, -apple-system, sans-serif;

    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- RESET & FOUNDATION --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--c-bg);
    color: var(--c-text-primary);
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
    color: var(--c-text-primary);
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* --- UTILITIES --- */
.text-center {
    text-align: center;
}

.relative-z {
    position: relative;
    z-index: 10;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
}

.text-large {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-sans);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Text Gradient for Hero */
.text-gradient {
    background: linear-gradient(90deg, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Ensure no section gets hidden by scroll reveal opacity */
.reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 4px;
    /* institutional square/slight-round aesthetic */
    transition: all var(--transition-medium);
    cursor: pointer;
}

.btn-primary {
    position: relative;
    background-color: var(--c-text-primary);
    color: var(--c-bg);
    border: 1px solid var(--c-text-primary);
    overflow: hidden;
    transition: all var(--transition-medium);
}

/* Animated Black Underline on Hover */
.btn-primary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: #000000;
    transition: width 0.3s ease;
}

.btn-primary:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-color: #000000 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.btn-primary:hover::after {
    width: 100%;
}

.btn-secondary {
    background-color: transparent;
    color: var(--c-text-primary);
    border: 1px solid var(--c-border);
}

.btn-secondary:hover {
    border-color: var(--c-text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    transition: all var(--transition-medium);
    background-color: rgb(255, 255, 255);
    /* white */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar.scrolled {
    background-color: rgb(255, 255, 255);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Navbar Light Theme Overrides */
.navbar .logo-placeholder {
    color: #000000;
}

.navbar .nav-links a {
    color: #444444;
}

.navbar .nav-links a:hover {
    color: #000000;
}

.navbar .nav-links a::after {
    background-color: #000000;
}

.navbar .hamburger,
.navbar .hamburger::before,
.navbar .hamburger::after {
    background-color: #000000;
}

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

.brand-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    height: 100%;
}

.brand-logo-img,
.logo-placeholder img {
    height: 42px;
    max-height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform var(--transition-fast), opacity var(--transition-fast), filter var(--transition-fast);
}

.brand-logo:hover .brand-logo-img,
.brand-logo:hover .logo-placeholder img {
    opacity: 0.88;
    transform: scale(1.02);
}

.logo-placeholder {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    color: var(--c-text-primary);
}

.logo-placeholder.small {
    font-size: 1rem;
}

.footer-logo-img {
    height: 42px;
    width: auto;
    filter: invert(1) brightness(2);
    margin-bottom: 0.5rem;
}

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

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--c-text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--c-text-primary);
    transition: width var(--transition-medium);
}

.nav-links a:hover {
    color: var(--c-text-primary);
}

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

.nav-cta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-phone-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: #27272a;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
    white-space: nowrap;
}

.nav-phone-link:hover {
    color: #059669;
}

.nav-phone-link svg {
    color: #059669;
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .nav-phone-link {
        display: none;
    }
}

/* --- DROPDOWN NAVIGATION MENU --- */
.nav-item.dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    padding: 0.5rem 0;
}

.dropdown-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast);
}

.dropdown-chevron svg {
    width: 9px;
    height: 6px;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item.dropdown:hover .dropdown-chevron svg {
    transform: rotate(180deg);
}

/* Hover Bridge prevents accidental mouseleave */
.dropdown-bridge {
    position: absolute;
    top: 100%;
    left: -20px;
    width: 340px;
    height: 14px;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: -20px;
    width: 320px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow:
        0 20px 40px -15px rgba(0, 0, 0, 0.15),
        0 0 1px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 0.6rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.98);
    transform-origin: top left;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1010;
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 0.85rem;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.dropdown-item::after {
    display: none !important;
}

.dropdown-item:hover {
    background-color: #ffffff;
    transform: translateX(4px);
}

.dropdown-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background-color: #f0f0f2;
    color: #111111;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.dropdown-item:hover .dropdown-icon {
    background-color: #000000;
    color: #ffffff;
    transform: scale(1.05);
}

.dropdown-text {
    display: flex;
    flex-direction: column;
}

.dropdown-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111111 !important;
    line-height: 1.2;
}

/* Targeted alignment rule for Manufacturers dropdown option */
#nav-manufacturers {
    padding-left: 0.8rem;
    box-sizing: border-box;
}

/* --- FLYOUT SUB-MENUS (OPENING ON THE RIGHT ON CLICK/HOVER) --- */
.dropdown-flyout-wrapper {
    position: relative;
    width: 100%;
}

.flyout-arrow,
.flyout-arrow-spacer {
    font-size: 1.25rem;
    font-weight: 300;
    color: #888888;
    margin-left: auto;
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s ease;
}

.flyout-arrow-spacer {
    visibility: hidden;
}

.dropdown-flyout-wrapper:hover .flyout-arrow,
.dropdown-flyout-wrapper.active .flyout-arrow {
    color: #000000;
    transform: translateX(3px);
}

.dropdown-flyout-panel {
    position: absolute;
    top: -10px;
    left: calc(100% + 12px);
    width: 270px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow:
        0 20px 40px -15px rgba(0, 0, 0, 0.15),
        0 0 1px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 0.6rem;
    opacity: 0;
    visibility: hidden;
    overflow-x: hidden;
    transform: translateX(-10px);
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1020;
}

/* Open flyout panel on click (.active) or on hover */
.dropdown-flyout-wrapper.active .dropdown-flyout-panel,
.dropdown-flyout-wrapper:hover .dropdown-flyout-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.flyout-header {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888888;
    padding: 0.4rem 0.75rem 0.6rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 0.35rem;
}

.flyout-scroll-list {
    max-height: 360px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.flyout-scroll-list::-webkit-scrollbar {
    width: 4px;
}

.flyout-scroll-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

.flyout-item {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 400;
    color: #333333 !important;
    border-radius: 6px;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color 0.15s ease, color 0.15s ease, font-weight 0.15s ease;
}

.flyout-item::after {
    display: none !important;
}

.flyout-item:hover {
    background-color: #ffffff;
    color: #000000 !important;
    font-weight: 600;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--c-text-primary);
    position: absolute;
    transition: transform var(--transition-medium), opacity var(--transition-medium);
}

.hamburger {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger::before {
    content: '';
    top: -8px;
    left: 0;
}

.hamburger::after {
    content: '';
    bottom: -8px;
    left: 0;
}

.mobile-toggle.active .hamburger {
    background-color: transparent !important;
}

.mobile-toggle.active .hamburger::before {
    transform: translateY(8px) rotate(45deg);
    background-color: #111111 !important;
}

.mobile-toggle.active .hamburger::after {
    transform: translateY(-8px) rotate(-45deg);
    background-color: #111111 !important;
}

/* ========================================================================
   MOBILE & TABLET NAVIGATION OVERRIDES (STRICT PURE WHITE THEME & ALIGNMENT)
   ======================================================================== */
@media (max-width: 992px) {
    .navbar,
    .navbar.scrolled,
    .navbar.menu-open {
        background-color: #ffffff !important;
        border-bottom: 1px solid #e4e4e7 !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    }

    .navbar-container {
        padding: 0 1.25rem;
    }

    .brand-logo-img,
    .logo-placeholder img {
        filter: none !important;
    }

    .mobile-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .hamburger,
    .hamburger::before,
    .hamburger::after {
        background-color: #111111 !important;
    }

    /* Mobile Dropdown Drawer (Pure White Background) */
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        background-color: #ffffff !important;
        border-bottom: 1px solid #e4e4e7;
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem 1.75rem 2rem;
        gap: 1rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
        z-index: 999;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links a,
    .nav-links .dropdown-toggle {
        color: #111111 !important;
        font-size: 1.05rem;
        font-weight: 600;
        width: 100%;
        padding: 0.6rem 0;
        border-bottom: 1px solid #f4f4f5;
        text-align: left;
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: #059669 !important;
    }

    .nav-cta,
    .nav-cta.active {
        display: none !important;
    }

    /* Hide Hero Skyline Animation on Mobile & Tablet Ratios */
    #skyline-svg {
        display: none !important;
    }
}

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    padding-top: 200px;
    padding-bottom: 120px;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-container {
    position: relative;
    z-index: 10;
    margin-top: 65px;
}

.relative-z {
    position: relative;
    z-index: 10;
}

.hero-background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.glowing-orb {
    position: absolute;
    top: 10%;
    right: 10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--c-accent-glow) 0%, transparent 60%);
    opacity: 0.5;
    filter: blur(50px);
    animation: float 10s ease-in-out infinite alternate;
}

.grid-perspective {
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 200%;
    height: 100%;
    background-image:
        linear-gradient(var(--c-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--c-border) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: perspective(600px) rotateX(60deg);
    mask-image: radial-gradient(circle at center, black 10%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at center, black 10%, transparent 70%);
}

/* --- HERO SKYLINE SVG ANIMATION --- */
#skyline-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

#skyline-path {
    stroke: rgba(255, 255, 255, 0.85);
    stroke-width: 3.5px;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 10px rgba(52, 211, 153, 0.8)) drop-shadow(0 0 18px rgba(255, 255, 255, 0.6));
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-50px, 50px);
    }
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 300;
    color: var(--c-text-secondary);
    max-width: 650px;
    margin-bottom: 3rem;
}

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

/* --- PRODUCT SUITE SECTION --- */
.products-section {
    padding: 120px 0;
    border-top: 1px solid var(--c-border);
    background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-surface) 100%);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
}

.link-arrow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--c-text-secondary);
}

.link-arrow .arrow {
    transition: transform var(--transition-fast);
}

.link-arrow:hover {
    color: var(--c-text-primary);
}

.link-arrow:hover .arrow {
    transform: translateX(5px);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.product-card {
    position: relative;
    background-color: var(--c-bg);
    border: none !important;
    border-color: transparent !important;
    outline: none !important;
    padding: 2.5rem;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.product-card:hover,
.product-card:focus {
    border: none !important;
    border-color: transparent !important;
    outline: none !important;
    transform: translateY(-6px) !important;
}

.theme-light-section .product-card {
    background-color: #ffffff !important;
    border: none !important;
    border-color: transparent !important;
    outline: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

.theme-light-section .product-card:hover,
.theme-light-section .product-card:focus {
    border: none !important;
    border-color: transparent !important;
    outline: none !important;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-6px) !important;
}

.product-card a,
.product-card a:hover,
.product-card a:focus {
    border: none !important;
    outline: none !important;
}

/* --- ANIMATED READ MORE LINK HOVER & CARD HOVER TRIGGER --- */
.read-more-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    color: #059669 !important;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    width: fit-content !important;
}

.product-card:hover .read-more-link,
.read-more-link:hover {
    color: #047857 !important;
    transform: translateX(6px) !important;
}

.theme-light-section .card-glow {
    display: none !important;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-medium);
    z-index: -1;
}

.product-card:hover .card-glow {
    opacity: 1;
}

.product-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-accent);
    margin-bottom: 1.25rem;
}

.product-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-desc {
    color: var(--c-text-secondary);
    font-size: 0.875rem;
}

/* --- THEME LIGHT SECTION & MOBILE PRODUCT CARD OVERRIDES --- */
.theme-light-section {
    background-color: #f8fafc !important;
    color: #09090b !important;
}

.theme-light-section .product-card {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

.theme-light-section .product-name {
    color: #09090b !important;
}

.theme-light-section .product-desc {
    color: #475569 !important;
}

.theme-light-section .section-title {
    color: #09090b !important;
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    .product-card {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* --- PARTNERS SECTION --- */
.partners-section {
    padding: 150px 0;
    border-top: 1px solid var(--c-border);
    background-color: var(--c-bg);
    overflow: hidden;
}

.partners-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 4rem;
}

.partners-content {
    flex: 1;
    min-width: 300px;
}

.partners-visual {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.node-core {
    width: 20px;
    height: 20px;
    background-color: var(--c-text-primary);
    border-radius: 50%;
    box-shadow: 0 0 30px var(--c-text-primary);
    z-index: 10;
}

.node-ring {
    position: absolute;
    border: 1px solid var(--c-border);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ring-1 {
    width: 150px;
    height: 150px;
    animation: spin 10s linear infinite;
    border-top-color: var(--c-text-secondary);
}

.ring-2 {
    width: 250px;
    height: 250px;
    animation: spin 15s linear infinite reverse;
    border-right-color: var(--c-text-secondary);
}

.ring-3 {
    width: 350px;
    height: 350px;
    animation: spin 20s linear infinite;
    border-bottom-color: var(--c-text-secondary);
}

@keyframes spin {
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* --- PORTFOLIO SECTION --- */
.portfolio-section {
    padding: 120px 0;
    border-top: 1px solid var(--c-border);
    background-color: var(--c-surface);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.portfolio-card {
    background-color: var(--c-bg);
    border: 1px solid var(--c-border);
    padding: 2.25rem;
    border-radius: 8px;
    transition: all var(--transition-medium);
}

.portfolio-card:hover {
    border-color: var(--c-border-hover);
    transform: translateY(-4px);
}

.portfolio-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-accent);
    margin-bottom: 1rem;
}

.portfolio-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--c-text-primary);
}

.portfolio-desc {
    color: var(--c-text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* --- ABOUT SECTION --- */
.about-section {
    padding: 120px 0;
    border-top: 1px solid var(--c-border);
    background: linear-gradient(180deg, var(--c-surface) 0%, var(--c-bg) 100%);
}

.about-desc {
    color: var(--c-text-secondary);
    font-size: 1.1rem;
    max-width: 750px;
    line-height: 1.7;
    font-weight: 300;
}

.about-stats {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    color: var(--c-text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--c-text-secondary);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- CTA SECTION --- */
.cta-section {
    padding: 150px 0;
    background-color: var(--c-bg);
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
}

/* --- FOOTER --- */
.footer {
    padding: 100px 0 40px;
    background-color: var(--c-surface);
}

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

.footer-desc {
    color: var(--c-text-secondary);
    font-size: 0.875rem;
    font-weight: 300;
    max-width: 340px;
}

.footer-heading {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--c-text-primary);
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--c-text-secondary);
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: var(--c-text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--c-border);
    font-size: 0.75rem;
    color: var(--c-text-secondary);
}

.legal-links {
    display: flex;
    gap: 2rem;
}

/* --- SCROLL REVEAL ANIMATIONS (Monolith Setup) --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

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

    .brand-col {
        grid-column: 1 / -1;
        margin-bottom: 2rem;
    }

    .partners-visual {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 768px) {

    .desktop-only {
        display: none !important;
    }

    .brand-logo-img,
    .logo-placeholder img {
        height: 34px;
    }

    .nav-links,
    .nav-cta {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    /* Mobile Menu Dropdown */
    .navbar.menu-open {
        background-color: var(--c-bg);
        border-bottom: 1px solid var(--c-border);
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--c-bg);
        padding: 2rem;
        border-bottom: 1px solid var(--c-border);
        gap: 1.25rem;
    }

    .nav-item.dropdown {
        width: 100%;
        display: block;
    }


    .nav-cta.active {
        display: block;
        position: absolute;
        top: 350px;
        left: 2rem;
        z-index: 1002;
    }

    .partners-container {
        justify-content: center;
        text-align: center;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .legal-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .news-title {
        max-width: 100%;
    }

    .news-arrow {
        display: none;
    }

    .news-item:hover {
        padding-left: 0;
    }
}

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

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

/* ========================================================================
   INVERTED LIGHT SECTIONS (35-40% White Background Ratio)
   ======================================================================== */
.theme-light-section {
    background-color: #f8f9fa !important;
    background-image: none !important;
    color: #18181b !important;
    border-top: 1px solid #e4e4e7;
    border-bottom: 1px solid #e4e4e7;
}

.theme-light-section .section-title,
.theme-light-section .product-name,
.theme-light-section .portfolio-title {
    color: #09090b !important;
}

.theme-light-section .product-desc,
.theme-light-section .portfolio-desc,
.theme-light-section .link-arrow {
    color: #4b5563 !important;
}

.theme-light-section .product-category,
.theme-light-section .portfolio-tag {
    color: #059669 !important;
    font-weight: 700;
}

/* Light Cards */
.theme-light-section .product-card,
.theme-light-section .portfolio-card {
    background-color: #ffffff !important;
    border: none !important;
    border-color: transparent !important;
    outline: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
}

.theme-light-section .product-card:hover,
.theme-light-section .portfolio-card:hover {
    background-color: #ffffff !important;
    border: none !important;
    border-color: transparent !important;
    outline: none !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08) !important;
}

.theme-light-section .card-glow {
    background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 0, 0, 0.04), transparent 80%) !important;
}

/* Light CTA Section */
.cta-section.theme-light-section {
    background-color: #ffffff !important;
}

.cta-section.theme-light-section .btn-primary {
    background-color: #09090b !important;
    color: #ffffff !important;
    border-color: #09090b !important;
}

.cta-section.theme-light-section .btn-primary:hover {
    background-color: #27272a !important;
    border-color: #27272a !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
}

/* ========================================================================
   GIANT EXTREME BOTTOM LOGO (70% PAGE WIDTH)
   ======================================================================== */
.footer-giant-logo-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 3.5rem;
    padding-bottom: 1.5rem;
    overflow: hidden;
    box-sizing: border-box;
}

.giant-footer-logo {
    width: 70%;
    max-width: 70vw;
    height: auto;
    object-fit: contain;
    filter: invert(1) brightness(2);
    opacity: 0.9;
    transition: opacity var(--transition-medium), transform var(--transition-medium);
}

.giant-footer-logo:hover {
    opacity: 1;
    transform: scale(1.015);
}

/* ========================================================================
   MODAL POPUP STYLES (Sleek Minimalist Design)
   ======================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(3, 3, 3, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 1.5rem;
    box-sizing: border-box;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: #0d0d12;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.25rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 1px rgba(255, 255, 255, 0.2);
    transform: scale(0.95) translateY(15px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: #ffffff;
}

.modal-container::-webkit-scrollbar {
    width: 5px;
}

.modal-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.modal-header {
    margin-bottom: 1.5rem;
}

.modal-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #059669;
    margin-bottom: 0.25rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.modal-subtitle {
    font-size: 0.84rem;
    color: #9ca3af;
    margin-top: 0.35rem;
    line-height: 1.4;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

    .modal-container {
        padding: 1.5rem;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #e4e4e7;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    background: #141419;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.875rem;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #6b7280;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: #141419;
    color: #ffffff;
}

.file-upload-box {
    position: relative;
    border: 2px dashed rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    padding: 1.1rem 1rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.file-upload-box:hover {
    border-color: #059669;
    background-color: rgba(5, 150, 105, 0.05);
}

.file-upload-box svg {
    color: #9ca3af;
}

.file-label {
    font-size: 0.8125rem;
    color: #9ca3af;
}

.file-upload-box input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-name-display {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #10b981;
    margin-top: 0.25rem;
}

.btn-full {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    margin-top: 0.4rem;
}

.form-status {
    font-size: 0.875rem;
    text-align: center;
    min-height: 1.25rem;
}

.form-status.success {
    color: #10b981;
}

.form-status.error {
    color: #ef4444;
}

/* ========================================================================
   ESTIMATION TECH STACK MARQUEE CAROUSEL
   ======================================================================== */
.tech-stack-section {
    padding: 65px 0;
    background-color: var(--c-surface);
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
    overflow: hidden;
}

.tech-stack-section.theme-light-section {
    background-color: #f4f4f5 !important;
    border-color: #e4e4e7 !important;
}

.tech-marquee-wrapper {
    display: flex;
    overflow: hidden;
    user-select: none;
    padding-top: 18px;
    padding-bottom: 18px;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.tech-marquee-content {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding-top: 8px;
    padding-bottom: 8px;
    animation: marquee-scroll 32s linear infinite;
    white-space: nowrap;
    will-change: transform;
}

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

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

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

.tech-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2.5rem;
    background: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    flex-shrink: 0;
    height: 110px;
    min-width: 220px;
}

.tech-item:hover {
    transform: translateY(-4px);
    border-color: #059669;
    box-shadow: 0 12px 28px rgba(5, 150, 105, 0.18);
}

.tech-logo-img {
    max-height: 70px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) contrast(140%) opacity(0.9);
    transition: filter 0.3s ease, transform 0.3s ease;
    mix-blend-mode: multiply;
}

.tech-item:hover .tech-logo-img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.08);
}