/* Smooth scrolling for the entire site */
html {
    scroll-behavior: smooth;
}

/* Local Font Imports */
@font-face {
    font-family: 'Argent Pixel';
    src: url('../assets/font/ArgentPixel/Web/ArgentPixel/ArgentPixel-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    /* Add font metric overrides to prevent layout shifts */
    ascent-override: 90%;
    descent-override: 20%;
    line-gap-override: 0%;
}

@font-face {
    font-family: 'Argent Pixel Italic';
    src: url('../assets/font/ArgentPixel/Web/ArgentPixel/ArgentPixel-RegularItalic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
    /* Add font metric overrides to prevent layout shifts */
    ascent-override: 90%;
    descent-override: 20%;
    line-gap-override: 0%;
}

/* Argent Pixel utility classes for selective word highlighting */
.pixel-word, .emphasis-pixel {
    font-family: 'Argent Pixel Italic', 'Red Hat Display', sans-serif !important;
    font-weight: 400;
    font-style: italic;
}

.pixel-word-italic {
    font-family: 'Argent Pixel Italic', 'Red Hat Display', sans-serif !important;
    font-weight: 400;
    font-style: italic;
}

.pixel-accent {
    font-family: 'Argent Pixel Italic', 'Red Hat Display', sans-serif !important;
    color: var(--primary-color);
    font-weight: 400;
    font-style: italic;
}

.pixel-brand {
    font-family: 'Argent Pixel Italic', 'Red Hat Display', sans-serif !important;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.5px;
}

/* Elemento brand name - always Red Hat Display */
.elemento-brand {
    font-family: 'Red Hat Display', sans-serif !important;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--primary-color);
}

/* For highlighting key terms in headings */
.highlight-pixel {
    font-family: 'Argent Pixel Italic', 'Red Hat Display', sans-serif;
    color: var(--primary-color);
    font-weight: 400;
    font-style: italic;
}

/* For subtle pixel emphasis within text */
.emphasis-pixel {
    font-family: 'Argent Pixel Italic', 'Red Hat Display', sans-serif;
    font-weight: 400;
    font-style: italic;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    min-height: 100vh;
    min-width: 100vw;
    background-color: var(--background-color);
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background-color: var(--background-color);
    line-height: 1.6;
}

/* Container and layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    z-index: 10;
}

.hero-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    z-index: 2000;
    text-align: center;

}

.hero-left {
    max-width: 550px;
    text-align: left;
    margin-left: 50%;
    transform: translateX(calc(-100% - 10vmax));
}

.hero-left .hero-tagline, .hero-left .hero-cta{
    margin-left: 0;
}

@media (orientation: portrait) {
    .hero-container {
        margin: auto;
        transform: translateY(25%);
    }

    .hero-left {
        margin-left: 0;
        transform: translateX(0);
        text-align: center;
        margin: auto;
    }

    .hero-left .hero-tagline, .hero-left .hero-cta{
        margin: auto;
    }
}

.carousel-container {
    max-width: 100vw;
    overflow: hidden;
    margin: 0;
    padding: 0;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

@media (max-width: 1000px) {
    .container {
        margin-top: 50%;
    }
}

.section {
    padding: var(--space-4xl) 0;
    position: relative;
    z-index: 10;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-4xl);
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: var(--space-lg);
    font-family: var(--font-heading);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-family: var(--font-secondary);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9998; /* Changed from 10000 to stay behind splash screen */
    background: transparent; /* Remove background from parent */
    border-bottom: 1px solid var(--glassmorphism-border);
    box-shadow: var(--glassmorphism-shadow);
    transition: all 0.3s ease;
}

/* Add backdrop-filter to pseudo-element for navbar */
.navbar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--glassmorphism-background);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: -1;
    pointer-events: none; /* Allow clicks to pass through */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

.logo-icon {
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    mask: url('../assets/logos/Elemento.svg') no-repeat center / contain;
    -webkit-mask: url('../assets/logos/Elemento.svg') no-repeat center / contain;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-xl);
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    border-radius: var(--radius-xs);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: var(--space-sm);
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
    color: var(--text-color);
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.mobile-menu-btn {
    display: none;
    position: relative;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.mobile-menu-btn span {
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text-color);
    transition: all 0.3s ease;
    left: 0;
    transform-origin: center;
}

.mobile-menu-btn span:nth-child(1) {
    top: 0;
}

.mobile-menu-btn span:nth-child(2) {
    top: 8px;
}

.mobile-menu-btn span:nth-child(3) {
    top: 16px;
}

/* Dropdown styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    margin: auto;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    background: var(--glassmorphism-background);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glassmorphism-border);
    border-bottom: 1px solid var(--glassmorphism-border);
    box-shadow: var(--glassmorphism-shadow);
    padding: 0;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    width: 100%;
}

/* Hide mobile dropdown on desktop */
.mobile-dropdown {
    display: none;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.dropdown-menu ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.dropdown-menu ul li {
    flex: 0 0 auto;
}

.dropdown-link {
    display: flex;
    align-items: center;
    padding: var(--space-sm) var(--space-lg);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
    border-radius: var(--radius-lg);
    white-space: nowrap;
    background: transparent;
}

/* Product icons in dropdown */
.product-icon {
    width: 20px;
    height: 20px;
    margin-right: var(--space-sm);
    vertical-align: middle;
    flex-shrink: 0;
}

.dropdown-link:hover,
.dropdown-link.active {
    color: var(--primary-color);
    background: rgba(255, 166, 0, 0.08);
}

.dropdown-link.active::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -1px;
    width: 20px;
    height: 2px;
    background: var(--primary-color);
    border-radius: var(--radius-xs);
}

/* Add a subtle indicator for dropdown items */
.dropdown-link::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -1px;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
    border-radius: var(--radius-xs);
}

.dropdown-link:hover::before,
.dropdown-link.active::before {
    width: 30px;
}

/* Dropdown arrow */
.dropdown-arrow {
    font-size: 0.7rem;
    margin-left: var(--space-xs);
    transition: transform 0.3s ease;
    transform-origin: 50% 40%; 
    display: inline-block;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Grid system */
.grid {
    display: grid;
    gap: var(--space-xl);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Content with image layout - available across all pages */
.content-with-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.content-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: var(--space-lg);
    font-family: var(--font-heading);
}

.content-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.content-image {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.content-image img {
    height: 100%;
    object-fit: cover;
}

.hero-detail-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-2xl);
    box-shadow: var(--glassmorphism-shadow);
    transition: transform 0.3s ease;
}

.hero-detail-image:hover {
    transform: scale(1.02);
}

/* Cards with glassmorphism effect */
.card {
    background: var(--glassmorphism-background);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glassmorphism-border);
    border-radius: var(--card-border-radius);
    padding: var(--space-xl);
    box-shadow: var(--glassmorphism-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--glassmorphism-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.card:hover::before {
    opacity: 1;
}

.card > * {
    position: relative;
    z-index: 1;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-lg);
    display: block;
}

/* Product Icons */
.product-icon-large {
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-lg);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.product-icon-medium {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-md);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.product-icon-small {
    width: 32px;
    height: 32px;
    margin-bottom: var(--space-sm);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Hero product icons */
.hero-product-icon {
    width: 32%;
    height: 32%;
    display: block;
    position: absolute;
    top: 45%;
    left: 67%;
    transform: translate(-50%, -50%);
    z-index: 100;
    background-color: #000000;
    -webkit-mask: var(--icon-mask-url) no-repeat center / contain;
    mask: var(--icon-mask-url) no-repeat center / contain;
    mix-blend-mode: hard-light;
}

@media (max-width: 1000px) {
    .hero-product-icon {
        width: 25%;
        height: 25%;
        top: 25%;
    }
}

.hero-product-icon.atomos {
    background-color: var(--atomos-color);
    --icon-mask-url: url('../assets/logos/Atomos.svg');
}

.hero-product-icon.electros {
    background-color: var(--electros-color);
    --icon-mask-url: url('../assets/logos/Electros.svg');
}

.hero-product-icon.cloud-net {
    background-color: var(--cloud-net-color);
    --icon-mask-url: url('../assets/logos/Atomosphere.svg');
}

/* Hero title group - keeps icon and title together */
.hero-title-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: var(--space-lg);
}

.hero-title-group .hero-product-icon {
    margin-bottom: var(--space-md);
}

.hero-title-group .hero-title {
    margin-bottom: 0;
}

/* Feature icons for larger displays */
.feature-icon-product {
    width: 96px;
    height: 96px;
    margin: 0 auto var(--space-xl);
    display: block;
}

/* Inline product icons */
.inline-product-icon {
    width: 24px;
    height: 24px;
    margin-right: var(--space-sm);
    vertical-align: middle;
    display: inline-block;
}

.dropdown-link:hover,
.dropdown-link.active {
    color: var(--primary-color);
    background: rgba(255, 166, 0, 0.08);
}

.dropdown-link.active::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -1px;
    width: 20px;
    height: 2px;
    background: var(--primary-color);
    border-radius: var(--radius-xs);
}

/* Add a subtle indicator for dropdown items */
.dropdown-link::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -1px;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
    border-radius: var(--radius-xs);
}

.dropdown-link:hover::before,
.dropdown-link.active::before {
    width: 30px;
}

/* Dropdown arrow */
.dropdown-arrow {
    font-size: 0.7rem;
    margin-left: var(--space-xs);
    transition: transform 0.3s ease;
    transform-origin: 50% 40%; 
    display: inline-block;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Grid system */
.grid {
    display: grid;
    gap: var(--space-xl);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--button-border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: var(--font-primary);
    position: relative;
    overflow: hidden;
}

/* .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
} */

/* .btn:hover::before {
    left: 100%;
} */

.btn-primary {
    background: var(--primary-color);
    color: var(--button-text-color);
    box-shadow: 0 4px 16px rgba(255, 166, 0, 0.3);
}

.btn-primary:hover {
    background: var(--accent-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 166, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--glassmorphism-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--glassmorphism-background);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--button-text-color);
}

.w-full {
    width: 100%;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: static;
    left: auto;
    top: auto;
    width: auto;
    height: auto;
    background: #000;
    color: #fff;
    padding: 8px 16px;
    z-index: 1000;
}

/* Hero section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4xl) 0 var(--space-4xl) 0;
    background-color: var(--background-color);
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4xl);
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-text {
    text-align: left;
}

/* Hero tagline styling - consistent across all pages */
.hero-tagline {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin: auto;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: var(--space-lg);
    font-family: var(--font-heading);
    line-height: 1.2;
    width: 100%;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--subtitle-color);
    margin-bottom: var(--space-2xl);
    font-family: var(--font-secondary);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.hero-cta {
    margin: auto;
}

/* Removed .hero-image and .hero-placeholder styles as they're no longer needed */

/* 3D/Animated content placeholder styles */
.hero-3d-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
}

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

.hero-3d-content {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-3d-element {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-3d-sphere {
    width: 150px;
    height: 150px;
    border-radius: var(--radius-full);
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    box-shadow: 
        0 0 30px rgba(var(--primary-color-rgb), 0.3),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
    position: relative;
}

.hero-3d-sphere::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 30%;
    height: 30%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    filter: blur(2px);
}

.quick-contact-options {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
    justify-content: center;
    width: 100%;
}

.quick-contact-btn {
    gap: var(--space-sm);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(90deg);
    }
    50% {
        transform: translateY(0px) rotate(180deg);
    }
    75% {
        transform: translateY(10px) rotate(270deg);
    }
}

/* Features section */
.features {
    /* background: var(--background-color); */
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--space-lg);
    display: block;
}

/* Stats section */
.stats {
    background: var(--glassmorphism-background);
    backdrop-filter: blur(20px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
}

.stat-item {
    text-align: center;
    padding: var(--space-xl);
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--space-sm);
    font-family: var(--font-heading);
}

.stat-item p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--glassmorphism-background);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glassmorphism-border);
    padding: var(--space-4xl) 0 var(--space-2xl);
    margin-top: var(--space-4xl);
    z-index: 1100;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
    z-index: 1100;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    color: var(--text-color);
    font-family: var(--font-heading);
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--space-sm);
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--glassmorphism-border);
    color: var(--text-secondary);
}

.footer-bottom a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
    transition: all 0.3s ease;
}

.footer-bottom a:hover {
    text-decoration-thickness: 2px;
    opacity: 0.8;
}

/* Footer Social Links Styling */
.social-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.social-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--glassmorphism-background);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glassmorphism-border);
    border-radius: var(--card-border-radius, 12px);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--glassmorphism-gradient);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--glassmorphism-shadow), 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.social-link:hover::before {
    left: 0;
}

.social-link i {
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-link:hover i {
    transform: scale(1.1);
}

/* Individual social platform colors on hover */
.social-link[href*="youtube"]:hover {
    color: #ff0000;
    border-color: #ff0000;
}

.social-link[href*="linkedin"]:hover {
    color: #0077b5;
    border-color: #0077b5;
}

.social-link[href*="github"]:hover {
    color: #333;
    border-color: #333;
}

.social-link[href*="facebook"]:hover {
    color: #1877f2;
    border-color: #1877f2;
}

.social-link[href*="instagram"]:hover {
    color: #e4405f;
    border-color: #e4405f;
}

/* Responsive adjustments for social links */
@media (max-width: 768px) {
    .social-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .social-link {
        flex: 1;
        min-width: 120px;
        justify-content: center;
        text-align: center;
    }
}

/* Form styles */
.contact-form {
    background: var(--glassmorphism-background);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glassmorphism-border);
    border-radius: var(--card-border-radius);
    padding: var(--space-2xl);
    box-shadow: var(--glassmorphism-shadow);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--space-md);
    border: 1px solid var(--glassmorphism-border);
    border-radius: var(--card-border-radius);
    background: var(--input-bg-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    transition: all 0.3s ease;
}

/* Safari-specific styling for select elements */
.form-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right var(--space-md) center;
    background-size: 12px;
    padding-right: calc(var(--space-md) + 24px);
    cursor: pointer;
}

/* Dark theme select arrow */
.theme-dark .form-group select {
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23ccc" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
}

/* High contrast theme select arrow */
.theme-high-contrast .form-group select {
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23ffffff" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 166, 0, 0.1);
}

/* Enhanced focus state for Safari select */
.form-group select:focus {
    background-color: var(--input-bg-color);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* Team member styles */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.team-member {
    text-align: center;
    padding: var(--space-xl);
}

.team-avatar {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto var(--space-lg);
}

.team-member h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-color);
    font-family: var(--font-heading);
}

.team-member p {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: var(--space-xl);
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Toast notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--glassmorphism-background);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glassmorphism-border);
    border-radius: var(--card-border-radius);
    padding: var(--space-lg);
    box-shadow: var(--glassmorphism-shadow);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left: 4px solid var(--green);
}

.toast.error {
    border-left: 4px solid var(--red);
}

.toast.info {
    border-left: 4px solid var(--blue);
}

/* Responsive design */
@media (max-width: 1000px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: transparent; /* Remove background from parent */
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--glassmorphism-border);
        flex-direction: column;
        padding: var(--space-xl);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.25);

        /* Ensure mobile menu is scrollable within viewport */
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: calc(var(--space-xl) + env(safe-area-inset-bottom));
    }
    
    .nav-menu::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        pointer-events: none; /* Allow clicks to pass through */
        z-index: -1; /* Put behind the content */
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    /* Theme-specific mobile menu backgrounds for better readability */
    .theme-dark .nav-menu::after {
        background: rgba(26, 28, 32, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
    
    .theme-high-contrast .nav-menu::after {
        background: rgba(0, 0, 0, 0.98);
        border: 2px solid var(--primary-color);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
    
    /* Mobile nav-link styles to ensure they're clickable and visible */
    .nav-menu .nav-link {
        position: relative;
        z-index: 1;
        color: var(--text-color);
        font-weight: 600;
        padding: var(--space-md) 0;
        display: block;
        text-align: center;
        border-radius: var(--border-radius);
        transition: all 0.3s ease;
    }
    
    .nav-menu .nav-link:hover {
        color: var(--primary-color);
        background: rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu .nav-link.active {
        color: var(--primary-color);
        background: rgba(255, 255, 255, 0.15);
    }
    
    /* Theme-specific mobile nav-link styles */
    .theme-dark .nav-menu .nav-link {
        color: var(--white-light);
    }
    
    .theme-dark .nav-menu .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .theme-high-contrast .nav-menu .nav-link {
        color: var(--white-light);
        border: 1px solid transparent;
    }
    
    .theme-high-contrast .nav-menu .nav-link:hover {
        border-color: var(--primary-color);
        background: rgba(255, 166, 0, 0.1);
    }
    
    /* Mobile dropdown menu improvements */
    .dropdown-menu {
        position: static; /* Position relative to the mobile menu */
        top: auto;
        left: auto;
        right: auto;
        margin: 0;
        border-radius: var(--radius-none);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.25);
        border-top: 1px solid var(--glassmorphism-border);
        border-bottom: 1px solid var(--glassmorphism-border);
        opacity: 1;
        visibility: visible;
        transform: none;
        width: 100%;
        max-width: none;
    }
    
    .theme-dark .dropdown-menu {
        background: rgba(26, 28, 32, 0.95);
        backdrop-filter: blur(20px);
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    
    .theme-high-contrast .dropdown-menu {
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(20px);
        border-top: 2px solid var(--primary-color);
        border-bottom: 2px solid var(--primary-color);
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.5),
            inset 0 1px 0 rgba(255, 166, 0, 0.2);
    }
    
    /* Mobile dropdown link styles */
    .dropdown-menu .dropdown-link {
        position: relative;
        z-index: 1;
        color: var(--text-color);
        font-weight: 500;
        padding: var(--space-md) var(--space-lg);
        display: flex;
        align-items: center;
        gap: var(--space-sm);
        text-decoration: none;
        transition: all 0.3s ease;
        border-radius: var(--border-radius);
    }
    
    .dropdown-menu .dropdown-link:hover {
        color: var(--primary-color);
        background: rgba(255, 255, 255, 0.1);
    }
    
    .dropdown-menu .dropdown-link.active {
        color: var(--primary-color);
        background: rgba(255, 255, 255, 0.15);
    }
    
    /* Theme-specific mobile dropdown link styles */
    .theme-dark .dropdown-menu .dropdown-link {
        color: var(--white-light);
    }
    
    .theme-dark .dropdown-menu .dropdown-link:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .theme-high-contrast .dropdown-menu .dropdown-link {
        color: var(--white-light);
        border: 1px solid transparent;
    }
    
    .theme-high-contrast .dropdown-menu .dropdown-link:hover {
        border-color: var(--primary-color);
        background: rgba(255, 166, 0, 0.1);
    }
    
    /* Mobile dropdown specific styles */
    .mobile-dropdown {
        display: block; /* Always show when mobile menu is active */
        position: static;
        background: transparent;
        backdrop-filter: none;
        box-shadow: none;
        border: none;
        margin: 0;
        padding: 0;
        width: 100%;
    }
    
    .mobile-dropdown ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .mobile-dropdown li {
        margin: 0;
    }
    
    .mobile-dropdown .dropdown-link {
        padding: var(--space-sm) var(--space-md);
        margin: 0;
        border-radius: var(--radius-none);
        background: rgba(255, 255, 255, 0.05);
        border-left: 3px solid transparent;
    }
    
    .mobile-dropdown .dropdown-link:hover {
        background: rgba(255, 255, 255, 0.1);
        border-left-color: var(--primary-color);
    }
    
    .mobile-dropdown .dropdown-link.active {
        background: rgba(255, 255, 255, 0.15);
        border-left-color: var(--primary-color);
    }
    
    /* Theme-specific mobile dropdown styles */
    .theme-dark .mobile-dropdown .dropdown-link {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .theme-dark .mobile-dropdown .dropdown-link:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .theme-high-contrast .mobile-dropdown .dropdown-link {
        background: rgba(255, 166, 0, 0.05);
        border-left-color: transparent;
    }
    
    .theme-high-contrast .mobile-dropdown .dropdown-link:hover {
        background: rgba(255, 166, 0, 0.1);
        border-left-color: var(--primary-color);
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    /* Hide desktop dropdown on mobile */
    .desktop-dropdown {
        display: none;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg);
        top: 8px;
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg);
        top: 8px;
    }
    
    /* Hero responsive */
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
        text-align: center;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-placeholder {
        max-width: 400px;
    }

    
    .hero-3d-placeholder {
        min-height: 300px;
    }
    
    .hero-3d-content {
        width: 250px;
        height: 250px;
    }
    
    .hero-3d-sphere {
        width: 120px;
        height: 120px;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .content-with-image {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .content-text h2 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 var(--space-md);
    }
    
    .nav-container {
        padding: 0 var(--space-md);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .content-text h2 {
        font-size: 1.75rem;
    }
    
    .content-text p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .card {
        padding: var(--space-lg);
    }
    
    .btn {
        padding: var(--space-sm) var(--space-lg);
        font-size: 0.9rem;
    }
    
    .hero-3d-content {
        width: 200px;
        height: 200px;
    }
    
    .hero-3d-sphere {
        width: 100px;
        height: 100px;
    }

}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll-based animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Blog Styles */
.blog-list {
    display: grid;
    gap: var(--space-2xl);
    margin-top: var(--space-4xl);
}

.blog-card {
    background: var(--glassmorphism-background);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glassmorphism-border);
    border-radius: var(--card-border-radius);
    padding: var(--space-2xl);
    box-shadow: var(--glassmorphism-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--glassmorphism-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.blog-card:hover::before {
    opacity: 1;
}

.blog-card > * {
    position: relative;
    z-index: 1;
}

.blog-card h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--text-color);
    font-family: var(--font-heading);
}

.blog-card h2 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card h2 a:hover {
    color: var(--primary-color);
}

.blog-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
    font-family: var(--font-secondary);
}

.blog-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    font-family: var(--font-secondary);
}

/* Blog Post Page Styles */
.blog-post {
    background: var(--glassmorphism-background);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glassmorphism-border);
    border-radius: var(--card-border-radius);
    padding: var(--space-3xl);
    box-shadow: var(--glassmorphism-shadow);
    margin-top: var(--space-4xl);
    position: relative;
    overflow: hidden;
}

.blog-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--glassmorphism-gradient);
    opacity: 0.1;
    pointer-events: none;
}

.blog-post > * {
    position: relative;
    z-index: 1;
}

.blog-post h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: var(--space-lg);
    font-family: var(--font-heading);
    line-height: 1.2;
}

.blog-post .blog-meta {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: var(--space-lg);
    font-family: var(--font-secondary);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--glassmorphism-border);
}

.blog-summary {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    font-family: var(--font-secondary);
    font-style: italic;
    line-height: 1.6;
}

.blog-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    font-family: var(--font-secondary);
}

.blog-content p {
    margin-bottom: var(--space-lg);
}

.blog-content h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
    margin: var(--space-2xl) 0 var(--space-lg) 0;
    font-family: var(--font-heading);
}

.blog-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin: var(--space-xl) 0 var(--space-md) 0;
    font-family: var(--font-heading);
}

.blog-content ul, .blog-content ol {
    margin: var(--space-lg) 0;
    padding-left: var(--space-xl);
}

.blog-content li {
    margin-bottom: var(--space-sm);
}

.blog-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: var(--space-lg);
    margin: var(--space-xl) 0;
    font-style: italic;
    color: var(--text-secondary);
}

.blog-content code {
    background: var(--monospace-background-color);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-md);
    font-family: var(--code-font);
    font-size: 0.9rem;
}

.blog-content pre {
    background: var(--monospace-background-color);
    padding: var(--space-lg);
    border-radius: var(--card-border-radius);
    overflow-x: auto;
    margin: var(--space-lg) 0;
}

.blog-content pre code {
    background: none;
    padding: 0;
}

/* Blog responsive styles */
@media (max-width: 1000px) {
    .blog-post {
        padding: var(--space-xl);
        margin-top: var(--space-2xl);
    }
    
    .blog-post h1 {
        font-size: 2rem;
    }
    
    .blog-content {
        font-size: 1rem;
    }
    
    .blog-card {
        padding: var(--space-xl);
    }
    
    .blog-card h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .blog-post h1 {
        font-size: 1.8rem;
    }
    
    .blog-post {
        padding: var(--space-lg);
    }
    
    .blog-card {
        padding: var(--space-lg);
    }
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== REUSABLE COMPONENTS (moved from atomos.css) ===== */

/* Page header with extra padding */
.section-header-padded {
    padding-top: 120px;
}

/* Grid with centered alignment and large gap */
.grid-centered {
    align-items: center;
    gap: var(--space-4xl);
}

/* Feature list container - reusable across all pages */
.feature-list-container {
    margin: var(--space-lg) 0;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.feature-check {
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2em;
    height: 1.2em;
    flex-shrink: 0;
}

/* Installation card styles - reusable for any installation guide */
.installation-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--glassmorphism-background);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glassmorphism-border);
    box-shadow: var(--glassmorphism-shadow);
}

.terminal-container {
    background: rgba(0, 0, 0, 0.8);
    color: #00ff00;
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    font-family: 'Courier New', monospace;
    line-height: 1.8;
    font-size: 1.1rem;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.terminal-header {
    margin-bottom: var(--space-lg);
    color: #ffff00;
}

.terminal-step {
    margin-bottom: var(--space-md);
    color: #87ceeb;
}

.terminal-step-success {
    margin-bottom: var(--space-md);
    color: #98fb98;
}

.terminal-code {
    background: rgba(0, 0, 0, 0.5);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.terminal-success {
    color: #98fb98;
}

.terminal-footer {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(0, 255, 0, 0.3);
    color: #ffa500;
}

/* Comparison table styles - reusable for any comparison tables */
.comparison-table-container {
    background: var(--glassmorphism-background);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glassmorphism-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--glassmorphism-shadow);
    margin-top: var(--space-xl);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table-header {
    background: var(--glassmorphism-background);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glassmorphism-border);
}

.comparison-table-header th {
    padding: var(--space-lg) var(--space-md);
    text-align: left;
    color: var(--text-primary);
    font-weight: 900;
    font-size: 1.1rem;
    text-align: center;
}

.comparison-table-row-alt {
    border-bottom: 1px solid var(--glassmorphism-border);
    background: rgba(255, 255, 255, 0.05);
}

.comparison-table-row {
    border-bottom: 1px solid var(--glassmorphism-border);
    background: rgba(255, 255, 255, 0.02);
}

.comparison-table-cell {
    padding: var(--space-lg) var(--space-md);
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

.comparison-table-cell-secondary {
    padding: var(--space-lg) var(--space-md);
    color: var(--text-secondary);
}

.comparison-table-cell-primary {
    padding: var(--space-lg) var(--space-md);
    color: var(--text-primary);
    font-weight: 400;
}

.comparison-table-cell-success {
    padding: var(--space-lg) var(--space-md);
    color: var(--success-color);
    font-weight: 400;
    text-align: center;
}

.comparison-table-cell-warning {
    padding: var(--space-lg) var(--space-md);
    color: var(--warning-color);
    font-weight: 400;
    text-align: center;
}

.comparison-table-cell-error {
    padding: var(--space-lg) var(--space-md);
    color: var(--error-color);
    font-weight: 400;
    text-align: center;
}

/* OS compatibility grid - reusable for any OS/tag grids */
.os-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.os-tag {
    background: var(--bg-secondary);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    text-align: center;
}

.windows-section {
    margin-top: var(--space-lg);
}

.windows-client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.windows-server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-sm);
}

.windows-tag {
    background: var(--success-color);
    color: white;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 0.9rem;
}

/* C4 Protocol section - reusable for any content with benefits list */
.c4-content {
    align-items: center;
}

.c4-benefits {
    margin: var(--space-lg) 0;
}

.c4-benefits h4 {
    margin-bottom: var(--space-md);
}

.c4-benefits ul {
    list-style: none;
    padding: 0;
}

.c4-benefits li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.c4-benefits .feature-check {
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2em;
    height: 1.2em;
    flex-shrink: 0;
}

.c4-card {
    text-align: center;
    padding: var(--space-3xl);
}

.c4-icon {
    margin: 0 auto var(--space-xl);
}

/* Plans section - reusable for any pricing/plan cards */
.plans-grid {
    gap: var(--space-4xl);
}

.plan-card {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.plan-price {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: var(--space-lg) 0;
}

.plan-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: var(--space-sm);
}

.plan-features {
    list-style: none;
    padding: 0;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.plan-features .feature-check {
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2em;
    height: 1.2em;
    flex-shrink: 0;
}

.plan-cta {
    text-align: center;
    margin-top: var(--space-xl);
}

/* Green economy section - reusable for any benefits grid */
.green-economy-grid {
    align-items: center;
    gap: var(--space-4xl);
}

.green-benefits {
    margin: var(--space-lg) 0;
}

.green-benefits h4 {
    margin-bottom: var(--space-md);
}

.green-benefits ul {
    list-style: none;
    padding: 0;
}

.green-benefits li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.green-benefits .feature-check {
    color: var(--success-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2em;
    height: 1.2em;
    flex-shrink: 0;
}

.green-card {
    text-align: center;
    padding: var(--space-3xl);
}

.green-icon {
    margin: 0 auto var(--space-xl);
}

.green-result {
    margin-top: var(--space-lg);
    padding: var(--space-md);
    background: rgba(76, 175, 80, 0.1);
    border-radius: var(--radius-md);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.green-result strong {
    color: var(--success-color);
}

/* Footer styles */
.footer-logo-container {
    position: relative;
    display: inline-block;
    height: 40px;
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    background-color: var(--text-color);
    mask: url('../assets/logos/Elemento.svg') no-repeat center / contain;
    -webkit-mask: url('../assets/logos/Elemento.svg') no-repeat center / contain;
}

.footer-logo-section {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.footer-logo-section h3 {
    margin: 0;
    font-size: 30px;
    font-weight: 600;
    color: var(--text-color);
    font-family: var(--font-heading);
}

/* Stat icon styles - reusable for any stats section */
.stat-icon {
    margin-bottom: var(--space-md);
    font-size: 2.5rem;
    color: var(--primary-color);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* FAQ Styles - Shared across all pages */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--glassmorphism-background);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glassmorphism-border);
    border-radius: var(--card-border-radius);
    margin-bottom: var(--space-lg);
    box-shadow: var(--glassmorphism-shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-item:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    border-color: var(--glassmorphism-border);
}

.faq-question {
    width: 100%;
    padding: var(--space-xl);
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--glassmorphism-background);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.faq-question.active {
    background: var(--glassmorphism-background);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.faq-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.faq-question.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.02);
    opacity: 0;
    transform: translateY(-10px);
    padding: 0 var(--space-xl);
    margin: 0;
}

.faq-answer.active {
    max-height: 300px;
    padding: 0 var(--space-xl) var(--space-xl);
    opacity: 1;
    transform: translateY(0);
    margin-bottom: var(--space-lg);
}

.faq-answer p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

/* Enhanced Form Components - Shared across all pages */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.character-count {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: var(--space-xs);
}

.policy-link {
    color: var(--primary-color);
    text-decoration: none;
}

.policy-link:hover {
    text-decoration: underline;
}

.form-success-message {
    background: var(--success-color);
    color: white;
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    text-align: center;
    margin-top: var(--space-lg);
}

.form-success-message i {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.form-success-message h4 {
    margin: 0 0 var(--space-sm) 0;
    font-size: 1.2rem;
}

.form-success-message p {
    margin: 0;
    opacity: 0.9;
}

/* Support Features Tags - Shared component */
.support-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin: var(--space-lg) 0;
    justify-content: center;
}

.feature-tag {
    background: var(--bg-secondary);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Responsive adjustments for reusable components */
@media (max-width: 1000px) {
    .os-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .windows-client-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .windows-server-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
    
    .installation-card {
        max-width: 100%;
    }
    
    .terminal-container {
        font-size: 1rem;
        padding: var(--space-lg);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .faq-question {
        font-size: 1rem;
        padding: var(--space-lg);
    }
    
    .faq-answer.active {
        padding: 0 var(--space-lg) var(--space-lg);
    }
}

/* SVG Diagram Container */
.diagram-svg {
    width: 100%;
    height: 70vh;
    min-height: 300px;
    max-height: 1103px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.diagram-svg path {
    transition: stroke 0.3s ease;
}

.diagram-svg path:hover[stroke="var(--svg-tile-stroke)"] {
    stroke: var(--primary-color);
}

.diagram-svg svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

/* Form Message Display Override - Ensure proper visibility control */
.form-success-message,
.form-error-message {
    display: none;
}

.form-success-message.show,
.form-error-message.show {
    display: block;
}

/* Trusted Section Logo Carousel */
.trusted-section {
    padding: var(--space-3xl) 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.trusted-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--background-color) 100%);
    z-index: 1;
}

.trusted-section .container {
    position: relative;
    z-index: 2;
}

.trusted-section .carousel-container {
    position: relative;
    z-index: 2;
}

.trusted-section .section-header {
    margin-bottom: var(--space-3xl);
}

.trusted-section .section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: var(--space-md);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.logo-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: var(--space-xl) 0;
    min-height: 120px;
    margin: 0;
}

/* Loading state */
.logo-carousel-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
    color: var(--text-secondary);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--bg-tertiary);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: var(--space-md);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Fallback state */
.logo-carousel-fallback {
    text-align: center;
    padding: var(--space-2xl);
    color: var(--text-secondary);
}

.fallback-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-xl);
    margin-top: var(--space-lg);
}

.fallback-logo {
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.logo-track {
    display: flex;
    animation: scroll-logos 30s linear infinite;
    width: max-content;
    gap: var(--space-3xl);
}

.logo-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.logo-item {
    flex-shrink: 0;
    padding: 0 var(--space-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    /* min-width: 350px; */
    height: 90px;
    cursor: pointer;
    transition: transform 0.3s ease;
    background: none !important;
}

.logo-item * {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.company-logo-carousel {
    max-width: 100%;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1) opacity(0.7);
    transition: all 0.3s ease;
    opacity: 0.7;
}

.company-logo-carousel.loaded {
    opacity: 0.7;
}

/* Responsive adjustments for logo carousel */
@media (max-width: 768px) {
    .logo-item {
        min-width: 180px;
        height: 100px;
        padding: 0 var(--space-lg);
    }
    
    .company-logo-carousel {
        max-height: 60px;
    }
    
    .logo-track {
        animation-duration: 20s;
        gap: var(--space-2xl);
    }
    
    .fallback-logos {
        gap: var(--space-md);
    }
    
    .fallback-logo {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .logo-item {
        min-width: 140px;
        height: 80px;
        padding: 0 var(--space-md);
    }
    
    .company-logo-carousel {
        max-height: 50px;
    }
    
    .logo-track {
        animation-duration: 15s;
        gap: var(--space-xl);
    }
    
    .fallback-logos {
        flex-direction: column;
        align-items: center;
    }
}

/* Floating Feature Boxes */
.floating-features {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 1000;
    width: 40vw;
    height: 50vh;
    pointer-events: none;
}

@media (orientation: portrait) {
    .floating-features {
        display: none !important;
    }
    
    /* Center hero content on portrait orientation for product pages */
    .hero-container {
        text-align: center;
        justify-content: center;
        align-items: center;
    }

    .hero-vert-center {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .hero-content {
        text-align: center;
        max-width: 100%;
        width: 100%;
    }
    
    .hero-title {
        text-align: center;
    }
    
    .hero-subtitle {
        text-align: center;
    }
    
    .hero-cta {
        justify-content: center;
        text-align: center;
    }

}

.floating-box {
    position: absolute;
    width: 15vw;
    margin: 0;
    padding: var(--space-lg);
    pointer-events: auto;
    background: var(--glassmorphism-background);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glassmorphism-border);
    border-radius: var(--card-border-radius);
    box-shadow: var(--glassmorphism-shadow);
    transition: all 0.3s ease;
    overflow: hidden;
    animation: orbital-motion-1 12s ease-in-out infinite;
}

.floating-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--glassmorphism-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.floating-box:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: var(--primary-color);
}

.floating-box:hover::before {
    opacity: 0.1;
}

.floating-box-icon {
    font-size: 2rem;
    margin: 0 0 var(--space-sm) 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-md);
    background: var(--background-color);
    color: var(--primary-color);
}

.floating-box-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 var(--space-xs) 0;
    font-family: var(--font-heading);
}

.floating-box-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}

/* Individual box positioning and animations - focused on middle 50vh */
.floating-box-1 {
    top: 0%;
    left: 5%;
    animation: orbital-motion-1 12s ease-in-out infinite;
    animation-delay: 0s;
}

.floating-box-2 {
    top: 70%;
    left: 15%;
    animation: orbital-motion-2 15s ease-in-out infinite;
    animation-delay: 3s;
}

.floating-box-3 {
    top: 35%;
    left: 34%;
    animation: orbital-motion-3 18s ease-in-out infinite;
    animation-delay: 6s;
}

/* Orbital motion keyframes - boxes orbit around their center point */
@keyframes orbital-motion-1 {
    0% {
        transform: translate(0px, 0px);
    }
    25% {
        transform: translate(20px, -15px);
    }
    50% {
        transform: translate(0px, -30px);
    }
    75% {
        transform: translate(-20px, -15px);
    }
    100% {
        transform: translate(0px, 0px);
    }
}

@keyframes orbital-motion-2 {
    0% {
        transform: translate(0px, 0px);
    }
    20% {
        transform: translate(15px, 10px);
    }
    40% {
        transform: translate(25px, -10px);
    }
    60% {
        transform: translate(10px, -25px);
    }
    80% {
        transform: translate(-15px, -20px);
    }
    100% {
        transform: translate(0px, 0px);
    }
}

@keyframes orbital-motion-3 {
    0% {
        transform: translate(0px, 0px);
    }
    15% {
        transform: translate(-10px, 20px);
    }
    30% {
        transform: translate(-25px, 5px);
    }
    45% {
        transform: translate(-20px, -15px);
    }
    60% {
        transform: translate(-5px, -25px);
    }
    75% {
        transform: translate(15px, -20px);
    }
    90% {
        transform: translate(25px, -5px);
    }
    100% {
        transform: translate(0px, 0px);
    }
}

/* Responsive design */
@media (max-width: 1200px) {
    .floating-features {
        right: 0;
        width: 35vw;
        height: 45vh;
    }
    
    .floating-box {
        width: 240px;
        padding: var(--space-md);
    }
    
    .floating-box-content h3 {
        font-size: 1rem;
    }
    
    .floating-box-content p {
        font-size: 0.85rem;
    }
}

@media (max-width: 1000px) {
    .floating-features {
        position: static;
        transform: none;
        width: 100%;
        height: auto;
        margin-top: var(--space-2xl);
        padding: 0 var(--space-lg);
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-md);
    }
    
    .floating-box {
        position: static;
        width: 100%;
        max-width: 200px;
        justify-self: center;
        /* Reduced orbital motion for tablet */
        animation: orbital-motion-tablet 8s ease-in-out infinite;
    }
    
    .floating-box-1 {
        animation: orbital-motion-tablet 8s ease-in-out infinite;
        animation-delay: 0s;
    }
    
    .floating-box-2 {
        animation: orbital-motion-tablet 10s ease-in-out infinite;
        animation-delay: 2s;
    }
    
    .floating-box-3 {
        animation: orbital-motion-tablet 12s ease-in-out infinite;
        animation-delay: 4s;
    }
    
    .floating-box:hover {
        transform: translateY(-4px) scale(1.01);
    }
}

/* Reduced orbital motion for tablet */
@keyframes orbital-motion-tablet {
    0% {
        transform: translate(0px, 0px);
    }
    25% {
        transform: translate(12px, -8px);
    }
    50% {
        transform: translate(0px, -16px);
    }
    75% {
        transform: translate(-12px, -8px);
    }
    100% {
        transform: translate(0px, 0px);
    }
}

@media (max-width: 768px) {
    .floating-features {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
        margin-top: var(--space-xl);
    }
    
    .floating-box {
        max-width: 100%;
        padding: var(--space-sm) var(--space-md);
        /* Subtle orbital motion for mobile */
        animation: orbital-motion-mobile 6s ease-in-out infinite;
    }
    
    .floating-box-1 {
        animation: orbital-motion-mobile 6s ease-in-out infinite;
        animation-delay: 0s;
    }
    
    .floating-box-2 {
        animation: orbital-motion-mobile 8s ease-in-out infinite;
        animation-delay: 1s;
    }
    
    .floating-box-3 {
        animation: orbital-motion-mobile 10s ease-in-out infinite;
        animation-delay: 2s;
    }
    
    .floating-box-icon {
        font-size: 1.5rem;
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .floating-box-content h3 {
        font-size: 0.95rem;
    }
    
    .floating-box-content p {
        font-size: 0.8rem;
    }
}

/* Subtle orbital motion for mobile */
@keyframes orbital-motion-mobile {
    0% {
        transform: translate(0px, 0px);
    }
    25% {
        transform: translate(6px, -4px);
    }
    50% {
        transform: translate(0px, -8px);
    }
    75% {
        transform: translate(-6px, -4px);
    }
    100% {
        transform: translate(0px, 0px);
    }
}