/**
 * BS Universe - Modern CSS Architecture (2030)
 * Advanced styling with CSS custom properties, animations, and cutting-edge features
 */

/* ============================================
   CSS Custom Properties & Theme Variables
   ============================================ */

:root {
    /* Color Palette - Dark Theme */
    --color-primary: #3b82f6;
    --color-primary-light: #60a5fa;
    --color-primary-dark: #2563eb;
    --color-secondary: #06b6d4;
    --color-accent: #0ea5e9;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    
    /* Dark Theme Colors */
    --color-bg-primary: #0a0a0f;
    --color-bg-secondary: #13131a;
    --color-bg-tertiary: #1a1a24;
    --color-bg-elevated: #20202e;
    --color-surface: rgba(255, 255, 255, 0.05);
    --color-surface-hover: rgba(255, 255, 255, 0.08);
    
    --color-text-primary: #e5e7eb;
    --color-text-secondary: #9ca3af;
    --color-text-tertiary: #6b7280;
    --color-border: rgba(255, 255, 255, 0.1);
    --color-border-hover: rgba(255, 255, 255, 0.2);

    /* Spidrahub Color */
    --color-spidrahub: #ffffff;

    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --gradient-hero: linear-gradient(180deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
    --gradient-mesh: radial-gradient(at 27% 37%, hsla(215, 98%, 61%, 0.2) 0px, transparent 50%),
                     radial-gradient(at 97% 21%, hsla(125, 98%, 72%, 0.1) 0px, transparent 50%),
                     radial-gradient(at 52% 99%, hsla(354, 98%, 61%, 0.1) 0px, transparent 50%),
                     radial-gradient(at 10% 29%, hsla(256, 96%, 67%, 0.2) 0px, transparent 50%);
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.4);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* Light Theme Variables */
[data-theme="light"] {
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #f9fafb;
    --color-bg-tertiary: #f3f4f6;
    --color-bg-elevated: #ffffff;
    --color-surface: rgba(0, 0, 0, 0.03);
    --color-surface-hover: rgba(0, 0, 0, 0.05);
    
    --color-text-primary: #111827;
    --color-text-secondary: #4b5563;
    --color-text-tertiary: #6b7280;
    --color-border: rgba(0, 0, 0, 0.1);
    --color-border-hover: rgba(0, 0, 0, 0.2);

    --color-spidrahub: #002b68;
    
    --gradient-hero: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.2);
}

/* RTL Support */
[dir="rtl"] {
    direction: rtl;
}

/* ============================================
   Reset & Base Styles
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-text-primary);
    background: var(--color-bg-primary);
    transition: background-color var(--transition-base), color var(--transition-base);
    overflow-x: hidden;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--color-text-primary);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
    margin-bottom: var(--space-md);
    color: var(--color-text-secondary);
}

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

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

/* ============================================
   Layout Components
   ============================================ */

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-sm {
    max-width: 768px;
}

.container-lg {
    max-width: 1536px;
}

/* ============================================
   Header & Navigation
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.8);
}

.header.scrolled {
    box-shadow: var(--shadow-lg);
    background: rgba(10, 10, 15, 0.95);
}

[data-theme="light"] .header.scrolled {
    background: rgba(255, 255, 255, 0.95);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    gap: var(--space-xl);
}

.logo {
    font-size: var(--text-2xl);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    transition: transform var(--transition-fast);
    direction: ltr !important;
}

.navbar .logo {
    padding-left: 80px;
}

.logo-image-dark,
.logo-image-light {
    transition: opacity var(--transition-base);
}

[data-theme="light"] .logo-image-dark {
    display: none !important;
}

[data-theme="light"] .logo-image-light {
    display: block !important;
}

[data-theme="dark"] .logo-image-dark {
    display: block !important;
}

[data-theme="dark"] .logo-image-light {
    display: none !important;
}

.logo:hover {
    transform: scale(1.05);
}

.header-logo {
    position: fixed;
    transform: translateX(-60px);
    height: 60px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-xl);
    align-items: center;
}

.nav-link {
    position: relative;
    color: var(--color-text-secondary);
    font-weight: 500;
    padding: var(--space-sm) 0;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    transition: all var(--transition-base);
}

/* Controls (Language & Theme) */
.header-controls {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.control-btn {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.control-btn:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-border-hover);
    color: var(--color-text-primary);
}

/* Floating Controls (Mobile) */
.floating-controls {
    display: none;
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    z-index: 1000;
}

.floating-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
    transition: all var(--transition-base);
}

.floating-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.4);
}

.floating-toggle i {
    width: 24px;
    height: 24px;
}

.floating-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-md);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all var(--transition-base);
    min-width: 200px;
}

.floating-controls.active .floating-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.floating-btn {
    width: 100%;
    justify-content: flex-start;
    margin-bottom: var(--space-sm);
}

.floating-btn:last-child {
    margin-bottom: 0;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width var(--transition-slow), height var(--transition-slow);
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

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

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

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

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

.btn-lg {
    padding: var(--space-lg) var(--space-2xl);
    font-size: var(--text-lg);
}

.btn-sm {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-sm);
}

.btn-block {
    width: 100%;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--space-4xl) 0;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: -50px;
    background: var(--gradient-mesh);
    opacity: 0.3;
    animation: meshMove 20s ease-in-out infinite;
    overflow: hidden;
}

@keyframes meshMove {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, -20px) rotate(1deg);
    }
    50% {
        transform: translate(-20px, 30px) rotate(-1deg);
    }
    75% {
        transform: translate(20px, 20px) rotate(0.5deg);
    }
}

/* Floating effect for hero logo */
.hero-logo {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-logo-img {
    height: 120px;
    width: auto;
    display: block;
    margin: 0 auto;
    animation: floatLogo 3s ease-in-out infinite;
}
@keyframes floatLogo {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-18px);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
    animation: fadeInDown 0.6s ease-out;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    margin-bottom: var(--space-lg);
    line-height: 1.1;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-title .gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--text-2xl);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-description {
    font-size: var(--text-lg);
    color: var(--color-text-tertiary);
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-actions {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

/* ============================================
   Sections
   ============================================ */

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

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-3xl);
}

.section-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
}

.section-title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: var(--text-xl);
    color: var(--color-text-secondary);
}

/* ============================================
   Cards
   ============================================ */

.card {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--color-primary);
}

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

.card-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .card-glass {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* ============================================
   Form Elements
   ============================================ */

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

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

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-md);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    color: var(--color-text-primary);
    font-size: var(--text-base);
    transition: all var(--transition-fast);
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--color-primary);
    background: var(--color-surface-hover);
    outline: none;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right var(--space-md) center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: calc(var(--space-md) + 24px);
}

/* ============================================
   Grid Layouts
   ============================================ */

.grid {
    display: grid;
    gap: var(--space-xl);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-contact {
    grid-template-columns: 2fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes fadeInDown {
    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);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-slow);
}

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

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    padding: var(--space-3xl) 0 var(--space-xl);
    margin-top: var(--space-4xl);
}

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

.footer-section h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-lg);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.footer-section .footer-links-contact-info {
    direction: ltr !important;
}

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

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-logo.logo-align-right {
    text-align: right;
}

.footer-logo.logo-align-right .logo {
    display: -webkit-inline-box;
}

.text-align-right {
    text-align: right;
}
.text-align-right li {
    justify-content: flex-end;

}


.spidrahub-container {
    margin-top: var(--space-lg);
    padding: var(--space-md);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.spidrahub-label {
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
    margin-bottom: var(--space-xs);
}

.spidrahub-link {
    color: var(--color-text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.spidrahub-logo {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    display: inline-block;
}

.spidrahub-logo-container {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.spidrahub-logo-container .spidrahub-logo {
    width: 48px;
    height: 48px;
}

.spidrahub-desc {
    font-size: var(--text-xs);
    color: var(--color-text-tertiary);
    margin-top: var(--space-xs);
}

.social-links {
    margin-top: var(--space-lg);
}

.footer-copyright {
    color: var(--color-text-tertiary);
    font-size: var(--text-sm);
}

.footer-links-bottom a {
    color: var(--color-text-tertiary);
    font-size: var(--text-sm);
}

.footer-separator {
    color: var(--color-border);
    margin: 0 var(--space-sm);
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transition: all var(--transition-fast);
}

.social-link i[data-feather],
.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link:hover {
    transform: translateY(-3px);
    color: #f9fafb;
}
.social-link:hover svg {
    width: 30px;
    height: 30px;
}

/* ============================================
   Feather Icons Styling
   ============================================ */

/* Floating Controls - Show at 993px and below */
@media (max-width: 993px) {
    .header-controls {
        display: none;
    }

    .floating-controls {
        display: block;
    }

    .hero {
        min-height: auto;
        padding: calc(var(--space-3xl) + 80px) 0 var(--space-3xl);
    }
}

/* Mobile Navigation - Show at 768px and below */
@media (max-width: 768px) {
    :root {
        --text-5xl: 2.25rem;
        --text-4xl: 1.875rem;
        --text-3xl: 1.5rem;
    }

    .navbar {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        padding: var(--space-lg) 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .hero-actions {
        flex-direction: column;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .grid-contact {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

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

/* High-contrast text for cards on blue/gradient backgrounds */
.card-contrast-title {
    color: #fff;
    margin-bottom: var(--space-lg);
    text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.card-contrast-text {
    color: #f8fafd;
    line-height: 1.8;
    text-shadow: 0 1px 6px rgba(0,0,0,0.13);
}
.card-contrast-lead {
    color: #f9fafb;
    margin-bottom: var(--space-md);
    font-weight: 500;
    letter-spacing: 0.01em;
}
.card-contrast-strong {
    color: #fff;
    text-shadow: 0 1px 6px rgba(0,0,0,0.13);
}

/* About values restyle: icon in top corner with filled background */
.about-value-card {
    position: relative;
    padding-top: 2.5em;
}
.about-value-icon-wrap {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--color-primary);
    border-radius: 0 0 15px 0;
    width: 2.5em;
    height: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    transition: background 0.2s;
}
.about-value-icon-wrap.rtl {
    left: auto;
    right: 0;
    border-radius: 0 0 0 15px;
}
.about-value-icon-filled {
    width: 1.4em;
    height: 1.4em;
    color: #fff;
    stroke-width: 2.2px;
}
.about-value-content {
    margin-top: 0.2em;
}
.about-value-title {
    margin-bottom: var(--space-md);
    color: var(--color-text-primary);
    font-weight: 700;
    font-size: 1.2em;
    display: block;
    padding: 0 20px;
}
.about-value-text {
    line-height: 1.7;
}
/* About section icons and titles */
.about-section-title {
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.about-section-icon {
    width: 3.2rem;
    height: 3.2rem;
    stroke-width: 2.5px;
    color: var(--color-primary);
}
.about-section-text {
    line-height: 1.8;
}
.about-value-title {
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}
.about-value-icon {
    width: 1.2em;
    height: 1.2em;
    stroke-width: 2.1px;
    color: var(--color-primary);
}
.about-value-text {
    line-height: 1.7;
}
/* Home page values grid custom style */
.home-value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: var(--space-md) var(--space-sm);
    border-radius: var(--radius-lg);
    background: var(--color-bg-elevated);
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.04);
    min-height: 180px;
    transition: box-shadow 0.2s;
}
.home-value-item:hover {
    box-shadow: 0 4px 24px 0 rgba(59,130,246,0.10);
}
.home-value-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: var(--color-primary-light);
    border-radius: 50%;
    margin-bottom: var(--space-md);
    box-shadow: 0 2px 8px 0 rgba(59,130,246,0.10);
}
.home-value-icon {
    width: 2.2rem;
    height: 2.2rem;
    color: var(--color-primary);
    stroke-width: 2.2px;
}
.home-value-title {
    color: var(--color-text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    text-align: center;
}
.home-value-text {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    text-align: center;
}
/* About section icon row for mission/vision */
.about-section-icon-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--space-md);
}
.about-section-title {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
}
/* ============================================
   Page Hero (Universal for all pages)
   ============================================ */
.page-hero {
    background: var(--gradient-hero);
    padding: var(--space-4xl) 0 var(--space-3xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-mesh);
    opacity: 0.3;
}
.page-hero-content {
    position: relative;
    z-index: 1;
}
.page-hero-icon {
    font-size: 5rem;
    margin-bottom: var(--space-lg);
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}
.page-hero-icon svg,
.page-hero-icon i {
    color: var(--color-primary);
    stroke: var(--color-primary);
}
.page-hero-title {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-md);
}
.page-hero-subtitle {
    font-size: var(--text-xl);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}
@media (max-width: 993px) {
    .page-hero {
        padding: calc(var(--space-4xl) + 80px) 0 var(--space-3xl);
    }
}
@media (max-width: 768px) {
    .page-hero-icon {
        font-size: 4rem;
    }
    .page-hero-title {
        font-size: var(--text-3xl);
    }
}
/* ============================================
   Page Hero (Generic for all pages)
   ============================================ */
.icon-hero {
    width: 80px;
    height: 128px;
    display: block;
    margin: 0 auto;
    color: var(--color-primary);
    stroke-width: 1.5;
}
.page-hero-desc {
    color: var(--color-text-secondary);
    font-size: var(--text-lg);
    margin-top: var(--space-md);
}

/* ============================================
   Utility Classes
   ============================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow {
    box-shadow: var(--shadow-glow);
}

/* ============================================
   Feather Icons Styling
   ============================================ */

.control-btn i[data-feather],
.control-btn svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
}

.theme-icon svg {
    transition: transform var(--transition-base);
}

.control-btn:hover .theme-icon svg {
    transform: rotate(20deg);
}

i[data-feather],
svg.feather {
    vertical-align: middle;
}

/* Icon Sizes */
.icon-sm {
    width: 16px;
    height: 16px;
}

.icon-md {
    width: 20px;
    height: 20px;
}

.icon-lg {
    width: 40px;
    height: 40px;
}

/* Animation Delays */
.delay-01 { animation-delay: 0.1s; }
.delay-02 { animation-delay: 0.2s; }
.delay-03 { animation-delay: 0.3s; }
.delay-04 { animation-delay: 0.4s; }
.delay-05 { animation-delay: 0.5s; }
.delay-06 { animation-delay: 0.6s; }

/* About Section */
.about-section {
    background: var(--color-bg-secondary);
}

.about-grid {
    margin-top: var(--space-3xl);
}

.about-card-title {
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
}

.about-values-grid {
    margin-top: var(--space-2xl);
}

.about-values-title {
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
    text-align: center;
}

.about-value-item {
    text-align: center;
    padding: var(--space-lg);
}

.about-founder-grid {
    margin-top: var(--space-2xl);
    gap: var(--space-xl);
}

.about-founder-text {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
}

.about-cta {
    margin-top: var(--space-3xl);
}

/* CTA Section */
/* CTA Section */
.cta-card {
    padding: var(--space-3xl);
    text-align: center;
    background: var(--gradient-primary);
    border: none;
}

.cta-title {
    color: white;
    margin-bottom: var(--space-lg);
}

.cta-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--text-lg);
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
}

[data-theme="light"] .cta-card {
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
}
[data-theme="light"] .cta-title {
    color: var(--color-primary);
}
[data-theme="light"] .cta-description {
    color: var(--color-text-secondary);
}

.portfolio-spidrahub-links {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.portfolio-logo {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    display: inline-block;
    margin-right: var(--space-xs);
}
