/* ColorDev - Professional & Responsive Styles */
/* ניגודיות צבעים (WCAG AA): טקסט ראשי ≥4.5:1, טקסט משני/מוקטן ≥4.5:1, קישורים וכפתורים ברורים */
:root {
    /* Professional Color Palette */
    --brand-dark: #1e293b;       /* Softer dark blue */
    --brand-navy: #0f172a;       /* Deep navy */
    --brand-primary: #0ea5e9;    /* Professional sky blue */
    --brand-primary-dark: #0284c7; /* Darker blue - for contrast on light bg */
    --brand-secondary: #6366f1;  /* Professional indigo */
    --brand-secondary-dark: #4f46e5; /* Darker indigo */
    --brand-accent: #10b981;     /* Professional emerald */
    --brand-accent-light: #34d399;
    
    /* Neutrals - Dark theme: high contrast text on dark backgrounds */
    --light-bg: #0f172a;
    --lighter-bg: #1e293b;
    --white: #ffffff;
    --text-primary: #f8fafc;     /* Brighter for ≥12:1 on #0f172a */
    --text-secondary: #e2e8f0;   /* Stronger contrast on dark panels */
    --text-muted: #94a3b8;       /* Meets AA on #1e293b (~5.5:1) */
    --border-light: #334155;
    --border-medium: #475569;
    --border-color: #334155;     /* Unified border token */
    /* Link color on dark: use primary; focus ring must be visible */
    --link-color: #38bdf8;
    --link-color-hover: #7dd3fc;
    --focus-ring-color: #38bdf8;
    
    /* 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-primary: 0 4px 14px rgba(14, 165, 233, 0.25);
    --shadow-secondary: 0 4px 14px rgba(99, 102, 241, 0.25);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-theme: 0.3s ease;

    /* Theme-aware surfaces (dark default) */
    --surface-nav: rgba(30, 41, 59, 0.95);
    --surface-nav-scrolled: rgba(30, 41, 59, 0.98);
    --surface-panel: rgba(255, 255, 255, 0.98);
    --overlay-bg: rgba(0, 0, 0, 0.5);
    --nav-border: rgba(255, 255, 255, 0.1);
    --body-bg-start: #0f172a;
    --body-bg-mid: #1e293b;
    --body-bg-end: #0f172a;
    --shadow-nav: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-nav-scrolled: 0 8px 30px rgba(0, 0, 0, 0.15);
    --footer-bg-start: #0f172a;
    --footer-bg-end: #1e293b;
    --footer-text: #cbd5e1;       /* Solid color ~8:1 on dark footer */
    --footer-bottom-text: #94a3b8; /* Muted but readable */
    /* Cards and panels (dark theme) */
    --card-bg: rgba(30, 41, 59, 0.9);
    --card-bg-solid: #1e293b;
    --section-bg: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, #0f172a 100%);
    --modal-bg: rgba(15, 23, 42, 0.95);
    --input-bg: rgba(30, 41, 59, 0.6);
}

/* Light theme - attribute is set on <html> by script.js */
html[data-theme="light"],
[data-theme="light"] {
    --light-bg: #ffffff;
    --lighter-bg: #f8fafc;
    /* High-contrast text on white/light (WCAG AA+) */
    --text-primary: #0f172a;   /* ~14:1 on white */
    --text-secondary: #1e293b; /* ~12:1 */
    --text-muted: #334155;     /* ~8.5:1 - clearly readable muted */
    /* Stronger borders for better definition */
    --border-light: #cbd5e1;
    --border-medium: #94a3b8;
    --border-color: #94a3b8;
    /* Links on light: darker blue for ≥4.5:1 */
    --link-color: #0369a1;
    --link-color-hover: #0284c7;
    --focus-ring-color: #0369a1;
    --surface-nav: rgba(255, 255, 255, 0.98);
    --surface-nav-scrolled: rgba(255, 255, 255, 0.99);
    --surface-panel: rgba(255, 255, 255, 0.99);
    --overlay-bg: rgba(0, 0, 0, 0.4);
    --nav-border: rgba(0, 0, 0, 0.12);
    --body-bg-start: #ffffff;
    --body-bg-mid: #f8fafc;
    --body-bg-end: #f1f5f9;
    --shadow-nav: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-nav-scrolled: 0 8px 30px rgba(0, 0, 0, 0.12);
    --footer-bg-start: #f1f5f9;
    --footer-bg-end: #e2e8f0;
    --footer-text: #0f172a;   /* Strong contrast on light footer */
    --footer-bottom-text: #475569; /* Slightly muted but readable */
    /* Cards and panels (light theme) */
    --card-bg: #ffffff;
    --card-bg-solid: #ffffff;
    --section-bg: #ffffff;
    --modal-bg: #ffffff;
    --input-bg: #ffffff;
}

html[data-theme="light"] body::before,
[data-theme="light"] body::before {
    background:
        radial-gradient(circle at 20% 50%, rgba(14, 165, 233, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    opacity: 0.6;
}

html[data-theme="light"] .logo-img,
[data-theme="light"] .logo-img {
    mix-blend-mode: multiply;
    filter: brightness(0.95) contrast(1.1);
}
html[data-theme="light"] .logo a,
[data-theme="light"] .logo a {
    box-shadow: 0 0 10px rgba(3, 105, 161, 0.2), 0 0 20px rgba(3, 105, 161, 0.12);
}
html[data-theme="light"] .logo a:hover,
[data-theme="light"] .logo a:hover {
    box-shadow: 0 0 14px rgba(3, 105, 161, 0.3), 0 0 28px rgba(3, 105, 161, 0.18);
}

/* Light theme: תפריט וניווט - טקסט כהה על רקע בהיר (לא בהיר על בהיר) */
html[data-theme="light"] .navbar,
[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #94a3b8;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
html[data-theme="light"] .navbar .nav-link,
[data-theme="light"] .navbar .nav-link {
    color: #0f172a;
}
html[data-theme="light"] .navbar .nav-link:hover,
html[data-theme="light"] .navbar .nav-link.active,
[data-theme="light"] .navbar .nav-link:hover,
[data-theme="light"] .navbar .nav-link.active {
    color: #0369a1;
}
html[data-theme="light"] .navbar .lang-link,
[data-theme="light"] .navbar .lang-link {
    color: #1e293b;
}
html[data-theme="light"] .navbar .lang-link:hover,
html[data-theme="light"] .navbar .lang-link.active,
[data-theme="light"] .navbar .lang-link:hover,
[data-theme="light"] .navbar .lang-link.active {
    color: #0369a1;
}
html[data-theme="light"] .navbar .lang-sep,
[data-theme="light"] .navbar .lang-sep {
    color: #64748b;
}
html[data-theme="light"] .navbar .theme-toggle,
[data-theme="light"] .navbar .theme-toggle {
    background: rgba(3, 105, 161, 0.12);
    border-color: #0369a1;
    color: #0369a1;
}
html[data-theme="light"] .navbar .theme-toggle:hover,
[data-theme="light"] .navbar .theme-toggle:hover {
    background: rgba(3, 105, 161, 0.2);
}
html[data-theme="light"] .navbar .user-menu-btn,
[data-theme="light"] .navbar .user-menu-btn {
    background: rgba(3, 105, 161, 0.12);
    border-color: #0369a1;
    color: #0369a1;
    box-shadow: 0 2px 12px rgba(3, 105, 161, 0.25);
}
html[data-theme="light"] .navbar .user-menu-btn:hover,
[data-theme="light"] .navbar .user-menu-btn:hover {
    background: rgba(3, 105, 161, 0.25);
}
/* תפריט צד (משתמש) וניווט נייד - במצב בהיר */
html[data-theme="light"] .user-dropdown,
[data-theme="light"] .user-dropdown {
    background: #ffffff;
    border-left-color: #0369a1;
    color: #0f172a;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
}
html[data-theme="light"] .user-dropdown-header h3,
[data-theme="light"] .user-dropdown-header h3 {
    color: #0369a1;
}
html[data-theme="light"] .user-dropdown .dropdown-item,
[data-theme="light"] .user-dropdown .dropdown-item {
    color: #1e293b;
}
html[data-theme="light"] .mobile-menu,
[data-theme="light"] .mobile-menu {
    background: #ffffff;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
    color: #0f172a;
}
html[data-theme="light"] .mobile-nav-link,
[data-theme="light"] .mobile-nav-link {
    color: #0f172a !important;
    background: #f8fafc;
    border-color: #cbd5e1;
}
html[data-theme="light"] .mobile-nav-link:hover,
html[data-theme="light"] .mobile-nav-link.active,
[data-theme="light"] .mobile-nav-link:hover,
[data-theme="light"] .mobile-nav-link.active {
    color: #0369a1 !important;
    background: rgba(3, 105, 161, 0.1);
    border-color: #0369a1;
}
html[data-theme="light"] .mobile-nav-link i,
[data-theme="light"] .mobile-nav-link i {
    color: #0369a1;
}
/* מובייל: המבורגר מודגש – כהה על רקע בהיר (לא בהיר על בהיר) */
html[data-theme="light"] .navbar .hamburger,
[data-theme="light"] .navbar .hamburger {
    background: rgba(15, 23, 42, 0.06);
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 6px;
    box-sizing: border-box;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
}
html[data-theme="light"] .navbar .hamburger span,
[data-theme="light"] .navbar .hamburger span {
    background: #0f172a;
}
html[data-theme="light"] .navbar .hamburger:hover span,
[data-theme="light"] .navbar .hamburger:hover span {
    background: #1e40af;
}
html[data-theme="light"] .navbar .hamburger:hover,
[data-theme="light"] .navbar .hamburger:hover {
    background: rgba(15, 23, 42, 0.1);
    border-color: #94a3b8;
}

/* Light theme: darker primary buttons so white text has ≥4.5:1 contrast */
html[data-theme="light"] .skip-to-main,
[data-theme="light"] .skip-to-main {
    background: var(--brand-primary-dark);
    color: #fff;
}
/* Content/body links: use high-contrast --link-color (optional; sections with own link style keep it) */
.main-content a[href]:not(.btn):not(.nav-link):not([class*="btn"]),
article a[href]:not(.btn):not([class*="btn"]),
section a[href]:not(.btn):not([class*="btn"]) {
    color: var(--link-color);
}
.main-content a[href]:not(.btn):hover,
article a[href]:not(.btn):hover,
section a[href]:not(.btn):hover {
    color: var(--link-color-hover);
}

* { 
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll: enabled on both mobile (touch) and PC (wheel) */
html {
    overflow-x: hidden;
    overflow-y: scroll; /* always allow vertical scroll */
    width: 100%;
    min-height: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 5.5rem;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: auto;
    touch-action: pan-y pan-x; /* allow touch scroll */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Roboto', sans-serif;
    background: linear-gradient(135deg, var(--body-bg-start) 0%, var(--body-bg-mid) 50%, var(--body-bg-end) 100%);
    background-attachment: scroll;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: scroll; /* force scrollable on mobile + PC */
    font-weight: 400;
    width: 100%;
    min-height: 100vh;
    position: relative;
    left: 0;
    right: 0;
    transition: opacity 0.2s ease, background var(--transition-theme), color var(--transition-theme);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: auto;
    touch-action: pan-y pan-x;
}

/* Page enter: gentle fade-in for main content on load */
#main-content {
    opacity: 0;
    transform: translateY(10px);
    animation: pageFadeIn 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transition: opacity 0.22s ease;
}

body.page-exit #main-content {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stunning animated background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(14, 165, 233, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
    overflow: visible; /* don't clip third column in RTL grids */
}

@media (max-width: 640px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
}

@media (min-width: 640px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--spacing-xl);
    }
}

/* ============================================
   NAVIGATION
============================================ */
.navbar {
    background: var(--surface-nav);
    backdrop-filter: blur(20px) saturate(180%);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--nav-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-nav);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(14, 165, 233, 0.05) 10px,
            rgba(14, 165, 233, 0.05) 20px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 10px,
            rgba(99, 102, 241, 0.05) 10px,
            rgba(99, 102, 241, 0.05) 20px
        );
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.navbar.scrolled {
    background: var(--surface-nav-scrolled);
    box-shadow: var(--shadow-nav-scrolled);
    padding: var(--spacing-xs) 0;
}

.nav-container {
    position: relative;
    z-index: 1;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    gap: var(--spacing-md);
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .nav-container {
        padding: 0 var(--spacing-lg);
    }
}

.logo a {
    text-decoration: none;
    display: inline-block;
    background: transparent;
    border-radius: 999px;
    padding: 4px 8px;
    box-shadow: 
        0 0 10px rgba(14, 165, 233, 0.25),
        0 0 20px rgba(14, 165, 233, 0.15);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.logo a:hover {
    box-shadow: 
        0 0 14px rgba(14, 165, 233, 0.35),
        0 0 28px rgba(14, 165, 233, 0.2);
}

.logo-img {
    height: 45px;
    width: auto;
    max-width: 180px;
    display: block;
    transition: transform var(--transition-base);
    object-fit: contain;
    background: transparent;
    border-radius: 999px;
    mix-blend-mode: screen;
    filter: brightness(1.2) contrast(1.1);
}

html[data-theme="light"] .logo-img,
[data-theme="light"] .logo-img {
    mix-blend-mode: multiply;
    filter: brightness(0.9) contrast(1.15);
    opacity: 0.95;
}

.logo a:hover .logo-img {
    transform: scale(1.05);
}

.nav-menu {
    display: none;
    list-style: none;
    gap: var(--spacing-lg);
    margin: 0;
    padding: 0;
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
        flex: 1;
        justify-content: center;
    }
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-base);
    position: relative;
    padding: var(--spacing-xs) 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-primary);
    transition: width var(--transition-slow);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand-primary);
}

.nav-link.active {
    font-weight: 600;
}

/* Language switcher EN | HE */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}
.lang-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition-base), background var(--transition-base);
}
.lang-link:hover {
    color: var(--brand-primary);
}
.lang-link.active {
    color: var(--brand-primary);
}
.lang-sep {
    color: var(--text-muted);
    font-size: 0.85rem;
    user-select: none;
}

/* Theme Toggle */
.theme-toggle {
    background: rgba(14, 165, 233, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(14, 165, 233, 0.25);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition-base);
    padding: 0;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: rgba(14, 165, 233, 0.22);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-color: var(--brand-primary);
}
.theme-toggle:active {
    transform: scale(0.98);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    display: none;
}

.theme-toggle .icon-sun {
    display: block;
}

html[data-theme="light"] .theme-toggle .icon-sun,
[data-theme="light"] .theme-toggle .icon-sun {
    display: none;
}

html[data-theme="light"] .theme-toggle .icon-moon,
[data-theme="light"] .theme-toggle .icon-moon {
    display: block;
}

/* User Menu */
.nav-user-menu {
    position: relative;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.user-menu-btn {
    background: rgba(14, 165, 233, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(14, 165, 233, 0.25);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all var(--transition-base);
    padding: 0;
    position: relative;
    z-index: 1;
    box-shadow: 
        0 0 10px rgba(14, 165, 233, 0.3),
        0 0 20px rgba(14, 165, 233, 0.2),
        inset 0 0 12px rgba(255, 255, 255, 0.06);
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(14, 165, 233, 0.3), 0 0 20px rgba(14, 165, 233, 0.2), inset 0 0 12px rgba(255, 255, 255, 0.06);
    }
    50% {
        box-shadow: 0 0 15px rgba(14, 165, 233, 0.5), 0 0 30px rgba(14, 165, 233, 0.3), inset 0 0 14px rgba(255, 255, 255, 0.08);
    }
}

.user-menu-btn:hover {
    background: rgba(14, 165, 233, 0.28);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-color: var(--brand-primary);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.5), 0 0 40px rgba(14, 165, 233, 0.3), inset 0 0 14px rgba(255, 255, 255, 0.08);
    animation: none;
}
.user-menu-btn:active {
    transform: scale(0.98);
}

.user-menu-btn i {
    filter: drop-shadow(0 0 3px rgba(14, 165, 233, 0.5));
    transition: all var(--transition-base);
}

.user-menu-btn:hover i {
    filter: drop-shadow(0 0 6px rgba(14, 165, 233, 0.8));
}

.user-dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-bg);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
    transition: all var(--transition-slow);
}

.user-dropdown-overlay.active {
    opacity: 1;
    visibility: visible;
}

.user-dropdown {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--surface-panel);
    color: var(--text-primary);
    backdrop-filter: blur(20px);
    border-left: 2px solid var(--brand-primary);
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: all var(--transition-slow);
    z-index: 10000;
    overflow-y: auto;
}

.user-dropdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(14, 165, 233, 0.03) 10px,
            rgba(14, 165, 233, 0.03) 20px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 10px,
            rgba(99, 102, 241, 0.03) 10px,
            rgba(99, 102, 241, 0.03) 20px
        );
    background-size: 40px 40px;
    animation: textureMove 20s linear infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 1;
}

@media (min-width: 640px) {
    .user-dropdown {
        max-width: 480px;
    }
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.user-dropdown-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-light);
    background: rgba(14, 165, 233, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    backdrop-filter: blur(10px);
    z-index: 1;
}

.user-dropdown-header h3 {
    font-size: 1.25rem;
    color: var(--brand-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.user-dropdown-close {
    background: transparent;
    border: 2px solid rgba(14, 165, 233, 0.3);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all var(--transition-base);
    padding: 0;
}

.user-dropdown-close:hover {
    background: rgba(14, 165, 233, 0.1);
    border-color: var(--brand-primary);
    transform: rotate(90deg);
}

.user-dropdown-content {
    padding: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition-base);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-xs);
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.5);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    transition: transform var(--transition-base);
}

.dropdown-item:hover {
    background: rgba(14, 165, 233, 0.1);
    color: var(--brand-primary);
    border-color: rgba(14, 165, 233, 0.3);
    transform: translateX(-4px);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.15);
}

.dropdown-item:hover i {
    transform: scale(1.1);
}

.dropdown-divider {
    height: 1px;
    background: rgba(14, 165, 233, 0.2);
    margin: var(--spacing-sm) 0;
}

/* ============================================
   HERO SECTION
============================================ */
.hero {
    padding: clamp(80px, 12vw, 140px) 0 clamp(60px, 8vw, 100px) 0;
    text-align: center;
    position: relative;
    background: 
        linear-gradient(135deg, rgba(14, 165, 233, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%);
    overflow: hidden;
    z-index: 1;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .hero {
        padding: clamp(60px, 10vw, 100px) 0 clamp(40px, 6vw, 60px) 0;
        overflow: visible;
        min-height: 75vh;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -30%;
    width: 160%;
    height: 160%;
    background: 
        radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    animation: rotate 25s linear infinite reverse;
    pointer-events: none;
    z-index: 0;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: 2;
    animation: heroFadeIn 1s ease-out;
    will-change: transform, opacity;
    transform: translateZ(0);
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary), var(--brand-accent));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
    line-height: 1.1;
    animation: gradientShift 5s ease infinite;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 8px rgba(14, 165, 233, 0.2));
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 2rem);
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
    width: 100%;
}

.feature-item {
    display: flex !important;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    z-index: 2;
    min-width: fit-content;
    white-space: nowrap;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.2), transparent);
    transition: left 0.5s ease;
}

.feature-item:hover::before {
    left: 100%;
}

.feature-item:hover {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-primary);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--brand-primary);
    transition: all var(--transition-base);
}

.feature-item:hover .feature-icon {
    color: var(--brand-secondary);
    transform: scale(1.1);
}

/* ============================================
   PAGE HEADER
============================================ */
.page-header {
    padding: clamp(60px, 8vw, 80px) 0;
    text-align: center;
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.1) 0%, var(--light-bg) 100%);
    position: relative;
}

.page-title { 
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.page-subtitle { 
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
}

/* ============================================
   SOLUTIONS / PORTFOLIO
============================================ */
.filters-section { 
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.filter-btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    margin: var(--spacing-xs);
    border: 2px solid var(--brand-primary);
    background: transparent;
    color: var(--text-primary);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-base);
    font-size: 0.9rem;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--brand-primary);
    color: white;
    box-shadow: var(--shadow-primary);
    transform: translateY(-2px);
}

/* Solutions/portfolio section – prevent third column cut-off */
.portfolio-section {
    overflow: visible;
    width: 100%;
    max-width: 100%;
}

.portfolio-section .container {
    overflow: visible;
    max-width: 100%;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: var(--spacing-xl);
    padding: var(--spacing-xl) 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    position: relative;
    overflow: visible;
}

@media (min-width: 640px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.portfolio-item {
    min-width: 0; /* allow third column to shrink and prevent cut-off */
    max-width: 100%;
    overflow: visible;
}

.portfolio-card {
    min-width: 0; /* prevent third column cut-off in grid */
    max-width: 100%;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    overflow: visible;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease, z-index 0s;
    border: 1px solid var(--border-light);
    position: relative;
    transform-style: preserve-3d;
    min-height: 300px;
    will-change: transform;
    backface-visibility: hidden;
    z-index: 1;
    isolation: isolate;
}

.portfolio-card:hover {
    z-index: 100;
    position: relative;
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05), rgba(99, 102, 241, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.portfolio-card:hover { 
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(14, 165, 233, 0.3);
    border-color: var(--brand-primary);
}

.portfolio-card:hover::before {
    opacity: 1;
}

.portfolio-image {
    background: linear-gradient(135deg, var(--lighter-bg) 0%, var(--light-bg) 100%);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.portfolio-placeholder {
    font-size: 3.5rem;
    color: var(--brand-primary);
    transition: all var(--transition-base);
}

.portfolio-card:hover .portfolio-placeholder {
    color: var(--brand-secondary);
    transform: scale(1.1);
}

.portfolio-content { 
    padding: var(--spacing-lg);
    position: relative;
    z-index: 2;
}

.portfolio-content h3 {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.portfolio-content p {
    line-height: 1.7;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.portfolio-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(14, 165, 233, 0.1);
    color: var(--brand-primary);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(14, 165, 233, 0.2);
    margin-top: var(--spacing-sm);
}

.portfolio-tag.licensing-tag {
    background: rgba(99, 102, 241, 0.1);
    color: var(--brand-secondary);
    border-color: rgba(99, 102, 241, 0.2);
}

.portfolio-tag.digital-tag {
    background: rgba(16, 185, 129, 0.1);
    color: var(--brand-accent);
    border-color: rgba(16, 185, 129, 0.2);
}

/* ============================================
   METHODOLOGY
============================================ */
.method-step {
    display: flex;
    gap: var(--spacing-xl);
    margin-bottom: clamp(40px, 8vw, 80px);
    align-items: flex-start;
    min-height: 200px;
    will-change: transform, opacity;
    backface-visibility: hidden;
    contain: layout style paint;
}

@media (max-width: 768px) {
    .method-step {
        flex-direction: column;
        gap: var(--spacing-md);
    }
}

.step-number {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    color: var(--brand-primary);
    opacity: 0.2;
    line-height: 1;
    min-width: 120px;
}

@media (max-width: 768px) {
    .step-number {
        min-width: auto;
    }
}

.method-step h2 {
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.method-step h3 {
    font-weight: 600;
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: var(--brand-secondary);
    margin-bottom: var(--spacing-md);
}

.method-step p {
    line-height: 1.8;
    color: var(--text-secondary);
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.tech-item {
    background: var(--card-bg-solid);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    transition: all var(--transition-base);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
}

.tech-item span {
    color: var(--text-primary);
    font-weight: 500;
}

html[data-theme="light"] .tech-item {
    background: #ffffff;
    border-color: var(--border-medium);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .tech-item span {
    color: #0a0e1a;
}

.tech-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-primary);
}

.tech-icon {
    font-size: 1.75rem;
    color: var(--brand-primary);
    transition: all var(--transition-base);
    width: 36px;
    text-align: center;
}

.tech-item:hover .tech-icon {
    color: var(--brand-secondary);
    transform: scale(1.15);
}

/* ============================================
   CONTACT FORM
============================================ */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    padding: clamp(40px, 8vw, 60px) 0;
}

@media (min-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1.5fr 1fr;
    }
}

.contact-form {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: clamp(24px, 5vw, 40px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.contact-info-wrapper {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: clamp(24px, 5vw, 40px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.contact-info-wrapper h2 {
    color: var(--brand-secondary);
    margin-bottom: var(--spacing-xl);
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
    position: relative;
    z-index: 1;
    isolation: isolate;
}

.contact-item:hover {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-primary);
    transform: translateX(-4px);
    z-index: 10;
    position: relative;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--brand-primary);
    transition: all var(--transition-base);
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(14, 165, 233, 0.15);
    border: 2px solid rgba(14, 165, 233, 0.3);
    border-radius: var(--radius-lg);
    flex-shrink: 0;
    position: relative;
    margin-top: 2px; /* Align with text */
}

.contact-item:hover .contact-icon {
    color: var(--brand-secondary);
    border-color: var(--brand-primary);
    background: rgba(14, 165, 233, 0.2);
    transform: scale(1.1);
}

.contact-details {
    flex: 1;
    min-width: 0;
}

.contact-details h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    font-size: 1rem;
}

.contact-details p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.contact-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-base);
    display: inline-block;
}

.contact-link:hover {
    color: var(--brand-primary);
}

.whatsapp-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-base);
    display: inline-block;
}

.whatsapp-link:hover {
    color: #25D366;
}

.contact-cta {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-xl);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05), rgba(99, 102, 241, 0.05));
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--border-light);
}

.contact-cta h3 {
    color: var(--brand-secondary);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
    font-size: 1.25rem;
}

.contact-cta p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

/* Facebook Section */
.facebook-section {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-2xl);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-radius: var(--radius-xl);
    border: 2px solid rgba(14, 165, 233, 0.3);
    box-shadow: 0 10px 40px rgba(14, 165, 233, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.facebook-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary), var(--brand-primary));
    background-size: 200% 100%;
    animation: gradientMove 3s ease infinite;
}

.facebook-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(14, 165, 233, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(14, 165, 233, 0.5);
}

.facebook-section h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-xl);
    font-weight: 800;
    font-size: clamp(1.5rem, 4vw, 2rem);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: var(--spacing-md);
}

.facebook-section h3 i.fab {
    color: #1877F2;
    font-size: 1.3em;
    margin-left: var(--spacing-xs);
    filter: drop-shadow(0 2px 8px rgba(24, 119, 242, 0.4));
    transition: all 0.3s ease;
}

.facebook-section:hover h3 i.fab {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 4px 12px rgba(24, 119, 242, 0.6));
}

.facebook-home-section {
    padding: clamp(60px, 10vw, 100px) 0;
    background: var(--section-bg);
    position: relative;
}

.facebook-home-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.facebook-home-section .section-title {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-2xl);
}

.facebook-home-section .section-title i.fab {
    color: #1877F2;
    font-size: 1.3em;
    margin-left: var(--spacing-xs);
    filter: drop-shadow(0 2px 8px rgba(24, 119, 242, 0.4));
    animation: float 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.facebook-home-section:hover .section-title i.fab {
    animation: float 3s ease-in-out infinite, pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.fb-like-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: var(--spacing-xl);
    position: relative;
    z-index: 1;
    padding: var(--spacing-xl);
    background: var(--input-bg);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(14, 165, 233, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.fb-like-wrapper:hover {
    background: var(--card-bg);
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 12px 48px rgba(14, 165, 233, 0.2);
    transform: translateY(-3px);
}

.fb-like-wrapper .fb-like {
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    .facebook-section {
        padding: var(--spacing-lg);
        margin-top: var(--spacing-lg);
    }
    
    .facebook-section h3 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .facebook-home-section {
        padding: var(--spacing-xl) 0;
    }
    
    .facebook-home-section .section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .fb-like-wrapper {
        padding: var(--spacing-lg);
    }
}

.form-group { 
    margin-bottom: var(--spacing-lg);
}

.form-group label { 
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: 2px solid var(--border-medium);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-primary) !important;
    background: var(--input-bg) !important;
    backdrop-filter: blur(10px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.captcha-group {
    background: rgba(14, 165, 233, 0.1);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid rgba(14, 165, 233, 0.3);
}

.captcha-group label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.captcha-group #captchaQuestion {
    font-weight: 700;
    color: var(--brand-primary);
    font-size: 1.1em;
    padding: 2px 8px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: var(--radius-sm);
}

.captcha-group input[type="number"] {
    max-width: 120px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

.captcha-hint {
    display: block;
    margin-top: var(--spacing-xs);
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

.form-message {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    font-weight: 500;
    display: none;
    animation: slideInMessage 0.3s ease-out;
    position: relative;
    z-index: 10;
}

.form-message.success {
    background: rgba(16, 185, 129, 0.25);
    color: #34d399;
    border: 2px solid rgba(16, 185, 129, 0.5);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.form-message.error {
    background: rgba(239, 68, 68, 0.25);
    color: #f87171;
    border: 2px solid rgba(239, 68, 68, 0.5);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

@keyframes slideInMessage {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.submit-btn {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: white;
    border: none;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-primary);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.submit-btn:active {
    transform: translateY(0);
}

/* ============================================
   TESTIMONIALS
============================================ */
.testimonials {
    padding: clamp(50px, 8vw, 70px) 0;
    background: var(--section-bg);
    overflow: visible;
}

.testimonials-container {
    overflow: visible;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

@media (min-width: 640px) {
    .testimonials-container {
        padding-left: var(--spacing-lg);
        padding-right: var(--spacing-lg);
    }
}

@media (min-width: 1024px) {
    .testimonials-container {
        padding-left: var(--spacing-xl);
        padding-right: var(--spacing-xl);
    }
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--spacing-xl);
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    will-change: transform;
    transform: translateZ(0);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    width: 100%;
    min-width: 0;
    overflow: visible;
}

/* User comments – form of comments (no left clip) */
.comments-section-title {
    font-size: clamp(1.35rem, 3.5vw, 1.75rem);
    font-weight: 700;
    margin: var(--spacing-2xl) 0 var(--spacing-lg);
    color: var(--text-primary);
    text-align: center;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
    margin-bottom: var(--spacing-xl);
}

.comments-list .user-review-card,
.comments-list .comment-item {
    display: block;
    text-align: right;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
}

.comments-list .user-review-card::before,
.comments-list .comment-item::before {
    display: none;
}

.comments-list .review-content,
.comments-list .comment-body {
    padding-right: 0;
}

.comments-list .review-author,
.comments-list .comment-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-sm);
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    min-width: 0;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    will-change: transform;
    backface-visibility: hidden;
    contain: layout style paint;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 120px;
    color: rgba(14, 165, 233, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -10px rgba(14, 165, 233, 0.25);
    border-color: var(--brand-primary);
}

.testimonial-card:hover::before {
    color: rgba(14, 165, 233, 0.2);
    transform: scale(1.1);
}

.testimonial-content {
    margin-bottom: var(--spacing-lg);
}

.testimonial-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-style: italic;
}

.testimonial-author {
    color: var(--brand-secondary);
    font-weight: 700;
}

/* User Reviews Section */
.user-reviews-section {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-2xl);
    border-top: 1px solid var(--border-light);
}

.reviews-subtitle {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--text-primary);
}

.user-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.user-review-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: visible;
    min-height: 120px;
    will-change: transform;
    backface-visibility: hidden;
}

.comments-list .user-review-card {
    overflow: visible;
}

.user-review-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 120px;
    color: rgba(14, 165, 233, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
    transition: all 0.4s ease;
}

.user-review-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -10px rgba(14, 165, 233, 0.25);
    border-color: var(--brand-primary);
}

.review-content {
    margin-bottom: var(--spacing-lg);
}

.review-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin: 0;
}

.review-author {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.review-stars {
    display: flex;
    gap: 4px;
    margin-bottom: var(--spacing-xs);
}

.review-stars .fa-star {
    color: var(--text-muted);
    font-size: 1rem;
    transition: color 0.2s ease;
}

.review-stars .fa-star.filled {
    color: #fbbf24;
}

.review-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.no-reviews {
    text-align: center;
    color: var(--text-muted);
    padding: var(--spacing-xl);
    grid-column: 1 / -1;
}

/* Review Form Section */
.review-form-section {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-2xl);
    border-top: 1px solid var(--border-light);
}

.review-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm);
    background: var(--input-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Star Rating */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 8px;
    margin-top: var(--spacing-xs);
}

.star-rating input[type="radio"] {
    display: none;
}

.star-rating .star {
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    line-height: 1;
}

.star-rating .star:hover,
.star-rating .star.active {
    color: #fbbf24;
    transform: scale(1.1);
}

.star-rating input[type="radio"]:checked ~ .star,
.star-rating .star.active {
    color: #fbbf24;
}

.star-rating:hover .star {
    color: var(--text-muted);
}

.star-rating .star:hover ~ .star {
    color: var(--text-muted);
}

.submit-review-btn {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-lg);
}

.submit-review-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.submit-review-btn:active:not(:disabled) {
    transform: translateY(0);
}

.submit-review-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 0.95rem;
}

.form-message.success {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-message.error {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

@media (max-width: 768px) {
    .user-reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .review-form {
        padding: var(--spacing-md);
    }
    
    .star-rating .star {
        font-size: 1.5rem;
    }
}

/* ============================================
   VALUES SECTION
============================================ */
.values-section {
    padding: clamp(50px, 8vw, 70px) 0;
    background: linear-gradient(180deg, var(--lighter-bg) 0%, var(--light-bg) 100%);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    width: 100%;
    min-width: 0; /* allow grid to shrink inside container and prevent column clip */
}

@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.value-card {
    min-width: 0; /* prevent overflow clipping in grid */
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    will-change: transform;
    backface-visibility: hidden;
    contain: layout style paint;
}

.value-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.value-card:hover::after {
    width: 300px;
    height: 300px;
}

.value-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 40px -10px rgba(14, 165, 233, 0.25);
    border-color: var(--brand-primary);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    color: var(--brand-primary);
    transition: all var(--transition-base);
}

.value-card:hover .value-icon {
    color: var(--brand-secondary);
    transform: scale(1.1);
}

.value-card h3 {
    color: var(--brand-secondary);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.value-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ============================================
   CTA SECTION
============================================ */
.cta-section {
    padding: clamp(50px, 8vw, 70px) 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(99, 102, 241, 0.15));
}

.cta-section h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-section p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   BUTTONS
============================================ */
.cta-button {
    display: inline-block !important;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    background-size: 200% 200%;
    color: white;
    padding: var(--spacing-md) var(--spacing-2xl);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: var(--shadow-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: gradientMove 3s ease infinite;
    z-index: 2;
    margin-top: var(--spacing-md);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

@keyframes gradientMove {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 20px 40px -10px rgba(14, 165, 233, 0.4);
    background-position: 100% 50%;
}

.cta-button-secondary {
    display: inline-block;
    background: transparent;
    border: 2px solid var(--brand-primary);
    color: var(--brand-primary);
    padding: var(--spacing-md) var(--spacing-2xl);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all var(--transition-base);
    cursor: pointer;
}

.cta-button-secondary:hover {
    background: var(--brand-primary);
    color: white;
    transform: translateY(-2px);
}

.cta-button-presentation {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: white;
    padding: var(--spacing-md) var(--spacing-2xl);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button-presentation::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.cta-button-presentation:hover::before {
    left: 100%;
}

.cta-button-presentation i {
    font-size: 1.2rem;
    transition: transform var(--transition-base);
}

.cta-button-presentation:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.5);
}

.cta-button-presentation:hover i {
    transform: scale(1.2) rotate(5deg);
}

.cta-button-presentation:active {
    transform: translateY(-1px) scale(1.02);
}

/* ============================================
   POPUP AD
============================================ */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--modal-bg);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-slow);
    padding: var(--spacing-md);
}

.popup-overlay.active {
    opacity: 1;
}

.popup-ad-container {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-slow);
    padding: var(--spacing-2xl);
    text-align: center;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
}

.popup-overlay.active .popup-ad-container {
    transform: scale(1) translateY(0);
}

.popup-close-btn {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    width: 36px;
    height: 36px;
    border: none;
    background: var(--light-bg);
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close-btn:hover {
    background: var(--brand-primary);
    color: white;
    transform: rotate(90deg);
}

.popup-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.popup-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.popup-image {
    margin: var(--spacing-lg) 0;
}

.popup-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.popup-qr {
    margin: var(--spacing-lg) auto;
    display: inline-block;
    padding: var(--spacing-md);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.popup-qr img {
    max-width: 180px;
    height: auto;
    display: block;
}

.popup-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: white;
    padding: var(--spacing-md) var(--spacing-2xl);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: var(--shadow-primary);
    transition: all var(--transition-base);
    margin-top: var(--spacing-lg);
}

.popup-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* ============================================
   FOOTER
============================================ */
.footer {
    background: linear-gradient(180deg, var(--footer-bg-start) 0%, var(--footer-bg-end) 100%);
    color: var(--text-primary);
    padding: clamp(40px, 8vw, 60px) 0 var(--spacing-lg);
    margin-top: clamp(60px, 10vw, 80px);
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-2xl);
    width: 100%;
    min-width: 0;
}

.footer-section {
    min-width: 0;
}

.footer-section h3,
.footer-section h4 { 
    color: var(--brand-primary);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.footer-section ul { 
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li a { 
    color: var(--footer-text);
    text-decoration: none;
    line-height: 2;
    transition: color var(--transition-base);
}

.footer-section ul li a:hover {
    color: var(--brand-primary);
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: var(--spacing-md);
    display: block;
    object-fit: contain;
    /* Remove white background */
    mix-blend-mode: screen;
    filter: brightness(1.2) contrast(1.1);
    background: transparent;
}

html[data-theme="light"] .footer-logo {
    mix-blend-mode: multiply;
    filter: brightness(0.9) contrast(1.15);
    opacity: 0.95;
    mix-blend-mode: multiply;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-xl);
    margin-top: var(--spacing-xl);
    border-top: 1px solid var(--border-light);
    font-size: 0.9rem;
    color: var(--footer-bottom-text);
}

.footer-cache-actions {
    margin-top: var(--spacing-md);
    margin-bottom: 0;
}

.btn-clear-cache {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: var(--brand-primary);
    background: transparent;
    border: 1px solid rgba(14, 165, 233, 0.5);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-clear-cache:hover {
    background: rgba(14, 165, 233, 0.15);
    border-color: var(--brand-primary);
}

/* ספירת מבקרים וקליקים – קטן ועדין בתחתית */
.footer-stats {
    margin-top: var(--spacing-sm);
    margin-bottom: 0;
    font-size: 0.7rem;
    opacity: 0.6;
    color: var(--footer-bottom-text);
}
.footer-stats-sep {
    margin: 0 0.35em;
    opacity: 0.7;
}

.footer-video-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: var(--brand-dark);
    margin-top: 0;
}

.footer-video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 180px;
    max-height: 350px;
}

.footer-video::-webkit-media-controls {
    display: none !important;
}

/* ============================================
   RESPONSIVE UTILITIES
============================================ */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
}

/* Text utilities */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* Spacing utilities */
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

/* Prevent horizontal scroll */
html {
    max-width: 100vw;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    max-width: 100vw;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
}

* {
    box-sizing: border-box;
}

*:not(img):not(video):not(svg) {
    max-width: 100%;
}

img, video, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
    overflow: visible;
}

/* Smooth scrolling */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Content Loading States */
.content-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    padding: var(--spacing-xl);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(14, 165, 233, 0.2);
    border-top-color: var(--brand-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Prevent layout shifts and improve performance */
.portfolio-grid,
.testimonials-grid,
.method-steps,
.values-grid,
.user-reviews-grid {
    min-height: 300px;
    transition: opacity 0.3s ease;
    contain: layout style paint;
    content-visibility: auto;
    will-change: contents;
    transform: translateZ(0);
}

/* Avoid contain on solutions grid so third column is not clipped */
.portfolio-section .portfolio-grid {
    contain: none;
}

/* Prevent jumps when content loads */
.portfolio-card,
.testimonial-card,
.value-card,
.method-step,
.feature-item,
.user-review-card {
    min-height: 200px;
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
    contain: layout style paint;
    content-visibility: auto;
}

/* Ensure images don't cause layout shifts */
.portfolio-image img,
.portfolio-card img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-image img.loaded,
.portfolio-card img.loaded {
    opacity: 1;
}

/* Add loading placeholder for images with fixed aspect ratio */
.portfolio-image,
.portfolio-card .portfolio-image {
    background: linear-gradient(135deg, var(--lighter-bg) 0%, var(--light-bg) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.portfolio-image img,
.portfolio-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-item {
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
    position: relative;
    z-index: 1;
    isolation: isolate;
}

.portfolio-item:hover {
    z-index: 100;
    position: relative;
}

.portfolio-item:hover .portfolio-card {
    z-index: 100;
}

.testimonial-card,
.method-step,
.value-card {
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
    contain: layout style paint;
}

/* Smooth content transitions */
.portfolio-grid.loading,
.testimonials-grid.loading,
.method-steps.loading {
    opacity: 0.5;
    pointer-events: none;
}

.portfolio-grid.loaded,
.testimonials-grid.loaded,
.method-steps.loaded {
    opacity: 1;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Focus styles for accessibility - high contrast on both themes */
:focus-visible {
    outline: 3px solid var(--focus-ring-color);
    outline-offset: 2px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--focus-ring-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .popup-overlay,
    .user-dropdown {
        display: none !important;
    }
}


/* ============================================
   ADDITIONAL STYLES FOR ENHANCED FEATURES
============================================ */

/* Skip to Main Content Link (Accessibility) */
.skip-to-main {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1rem 1.5rem;
    background: var(--brand-primary);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 var(--radius-md) 0;
}

.skip-to-main:focus {
    left: 0;
    top: 0;
}

/* ============================================
   MOBILE HAMBURGER MENU
============================================ */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
    transition: all var(--transition-base);
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: var(--brand-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
    display: block;
    position: relative;
    z-index: 1;
}

.hamburger:hover span {
    background: var(--brand-secondary);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
}

/* ============================================
   MOBILE MENU
============================================ */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    background: var(--surface-panel);
    color: var(--text-primary);
    backdrop-filter: blur(20px);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 9998;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    visibility: hidden;
    will-change: right, visibility;
    display: block;
    transform: translateZ(0); /* Force hardware acceleration */
}

.mobile-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(14, 165, 233, 0.03) 10px,
            rgba(14, 165, 233, 0.03) 20px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 10px,
            rgba(99, 102, 241, 0.03) 10px,
            rgba(99, 102, 241, 0.03) 20px
        );
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.mobile-menu.active {
    right: 0 !important;
    visibility: visible !important;
    display: block !important;
}

.mobile-menu-content {
    padding: 80px var(--spacing-lg) var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-list li {
    margin-bottom: var(--spacing-sm);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    color: var(--text-primary) !important;
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    border: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}

.mobile-nav-link i {
    font-size: 1.25rem;
    color: #0ea5e9;
    width: 24px;
    text-align: center;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(14, 165, 233, 0.15);
    border-color: var(--brand-primary);
    transform: translateX(-4px);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.2);
    color: var(--text-primary) !important;
}

.mobile-nav-link:hover i,
.mobile-nav-link.active i {
    color: #0ea5e9;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    width: 100vw;
    height: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 9997;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
    touch-action: none;
    will-change: opacity, visibility;
    transform: translateZ(0); /* Force hardware acceleration */
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   BACK TO TOP BUTTON
============================================ */
.back-to-top {
    position: fixed;
    bottom: 90px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    background-size: 200% 200%;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    animation: gradientMove 3s ease infinite;
}

.back-to-top::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    filter: blur(8px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 15px 35px rgba(14, 165, 233, 0.4);
    background-position: 100% 50%;
}

.back-to-top:hover::before {
    opacity: 0.6;
}

.back-to-top:active {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 90px;
        left: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* ============================================
   PAGE LOADER
============================================ */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: opacity var(--transition-slow);
}

.page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-light);
    border-top-color: var(--brand-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   SERVICES PREVIEW SECTION
============================================ */
.services-preview {
    padding: clamp(50px, 8vw, 70px) 0;
    background: var(--input-bg);
}

/* ============================================
   SOCIAL LINKS HOVER EFFECTS
============================================ */
.social-links a:hover {
    color: var(--brand-primary) !important;
    transform: translateY(-3px);
}

/* ============================================
   ENHANCED FEATURE ITEMS
============================================ */
.feature-item {
    position: relative;
    overflow: hidden;
}

.feature-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
    pointer-events: none;
}

.feature-item:hover::after {
    width: 200px;
    height: 200px;
}

/* ============================================
   ENHANCED TESTIMONIALS
============================================ */
.testimonial-author strong {
    display: block;
    margin-top: var(--spacing-xs);
    color: var(--text-primary);
}

.testimonial-author i {
    margin-left: 2px;
}

/* ============================================
   RESPONSIVE NAVIGATION ADJUSTMENTS
============================================ */
@media (max-width: 768px) {
    .nav-menu {
        display: none !important;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .nav-container {
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 0.5rem;
        padding: 0 1rem;
    }
    
    .nav-user-menu {
        order: 2;
        flex-shrink: 0;
    }
    
    .hamburger {
        order: 3;
        flex-shrink: 0;
    }
    
    .logo {
        order: 1;
        flex-shrink: 1;
        min-width: 0;
        max-width: 50%;
    }
    
    .logo-img {
        height: 32px !important;
        max-width: 140px;
        width: auto;
        object-fit: contain;
    }
    
    .user-menu-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .hamburger {
        width: 40px;
        height: 40px;
    }
}

/* ============================================
   IMPROVED TOUCH TARGETS FOR MOBILE
============================================ */
@media (max-width: 768px) {
    .hero-content {
        padding: 0 var(--spacing-sm);
        z-index: 2;
        position: relative;
    }
    
    .hero-features {
        display: flex !important;
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: center;
        width: 100%;
        margin-bottom: var(--spacing-lg);
        z-index: 2;
        position: relative;
    }
    
    .feature-item {
        display: flex !important;
        flex-shrink: 0;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        min-width: auto;
        white-space: nowrap;
    }
    
    .feature-item span {
        display: inline-block;
    }
    
    .feature-icon {
        font-size: 1.2rem;
        flex-shrink: 0;
    }
    
    .cta-button {
        display: inline-block !important;
        min-height: 48px;
        padding: var(--spacing-md) var(--spacing-xl);
        font-size: 0.95rem;
        width: auto;
        max-width: 100%;
        z-index: 2;
        position: relative;
        margin-top: var(--spacing-md);
    }
    
    .cta-button-secondary {
        display: inline-block !important;
        min-height: 48px;
        padding: var(--spacing-md) var(--spacing-xl);
    }
    
    .submit-btn,
    .filter-btn {
        min-height: 48px;
        padding: var(--spacing-md) var(--spacing-xl);
    }
    
    .nav-link,
    .dropdown-item {
        min-height: 44px;
        padding: var(--spacing-md);
    }
    
    /* Contact form mobile fixes */
    .contact-item {
        align-items: center;
        flex-wrap: nowrap;
    }
    
    .contact-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
        font-size: 1.3rem;
    }
    
    .contact-details {
        flex: 1;
        min-width: 0;
    }
    
    .form-group input,
    .form-group textarea {
        background: var(--input-bg);
        color: var(--text-primary);
    }
    
    .form-group input::placeholder,
    .form-group textarea::placeholder {
        color: var(--text-muted);
        opacity: 0.8;
    }
}

/* ============================================
   FOCUS INDICATORS
============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex="0"]:focus-visible {
    outline: 3px solid var(--brand-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* ============================================
   REDUCED MOTION SUPPORT
============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.05ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.05ms !important;
    }
    
    .back-to-top,
    .mobile-menu,
    .user-dropdown {
        transition-duration: 0.05ms;
    }
    
    #main-content {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    body.page-exit #main-content {
        transition-duration: 0.05ms;
    }
}

/* ============================================
   HIGH CONTRAST MODE SUPPORT
============================================ */
@media (prefers-contrast: high) {
    .cta-button,
    .cta-button-secondary {
        border: 2px solid currentColor;
    }
    
    .portfolio-card,
    .testimonial-card,
    .value-card {
        border: 2px solid var(--text-primary);
    }
}

/* ============================================
   DARK MODE SUPPORT (Optional)
============================================ */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed */
    body {
        background: var(--brand-navy);
        color: var(--white);
    }
}

/* ============================================
   PRINT STYLES
============================================ */
@media print {
    .navbar,
    .footer,
    .back-to-top,
    .mobile-menu,
    .user-dropdown,
    .cta-section {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero,
    .testimonials,
    .values-section {
        page-break-inside: avoid;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* ============================================
   LOADING ANIMATIONS
============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@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);
    }
}

.fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.slide-in-left {
    animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.slide-in-right {
    animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.scale-in {
    animation: scaleIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ============================================
   UTILITY CLASSES
============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.visible {
    display: block !important;
}

.hidden {
    display: none !important;
}

.portfolio-item.hidden {
    visibility: hidden;
    opacity: 0;
    height: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    transform: scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease, height 0.3s ease, margin 0.3s ease, padding 0.3s ease;
    pointer-events: none;
}

.portfolio-item:not(.hidden) {
    visibility: visible;
    opacity: 1;
    height: auto;
    min-height: auto;
    animation: fadeInUp 0.5s ease forwards;
}

/* ============================================
   TOAST NOTIFICATIONS
============================================ */
.toast-notification {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    max-width: 400px;
    margin: 0 auto;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(14, 165, 233, 0.2);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex: 1;
    min-width: 0;
}

.toast-content i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.toast-message {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.5;
    flex: 1;
}

.toast-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.toast-action-btn {
    background: var(--brand-primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: var(--spacing-xs);
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.toast-action-btn:hover {
    background: var(--brand-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

/* Toast Types */
.toast-info {
    border-left: 4px solid var(--brand-primary);
}

.toast-info .toast-content i {
    color: var(--brand-primary);
}

.toast-success {
    border-left: 4px solid var(--brand-accent);
}

.toast-success .toast-content i {
    color: var(--brand-accent);
}

.toast-warning {
    border-left: 4px solid #f59e0b;
}

.toast-warning .toast-content i {
    color: #f59e0b;
}

.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-error .toast-content i {
    color: #ef4444;
}

.toast-update {
    border-left: 4px solid var(--brand-secondary);
    background: var(--card-bg);
    cursor: pointer;
}

.toast-update:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(99, 102, 241, 0.3);
}

.toast-update .toast-content i {
    color: var(--brand-secondary);
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .toast-notification {
        left: 10px;
        right: 10px;
        max-width: none;
        top: 10px;
    }
    
    .toast-message {
        font-size: 0.85rem;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   ASPECT RATIO CONTAINERS
============================================ */
.aspect-ratio-16-9 {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.aspect-ratio-16-9 > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ============================================
   SMOOTH SCROLL BEHAVIOR
============================================ */
/* Already defined above - removed duplicate */

/* ============================================
   BACKGROUND TEXT ELEMENTS
============================================ */
.bg-text-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-text {
    position: absolute;
    font-size: clamp(6rem, 12vw, 10rem);
    font-weight: 900;
    color: rgba(14, 165, 233, 0.03);
    white-space: nowrap;
    user-select: none;
    line-height: 1;
    opacity: 0.3;
    text-shadow: none;
}

.bg-text:nth-child(1) {
    top: 10%;
    left: 5%;
}

.bg-text:nth-child(2) {
    top: 25%;
    right: 10%;
}

.bg-text:nth-child(3) {
    top: 45%;
    left: 15%;
}

.bg-text:nth-child(4) {
    top: 60%;
    right: 5%;
}

.bg-text:nth-child(5) {
    top: 75%;
    left: 10%;
}

.bg-text:nth-child(6) {
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
}

.bg-text:nth-child(7) {
    top: 50%;
    right: 20%;
}

.bg-text:nth-child(8) {
    top: 80%;
    right: 15%;
}

@media (max-width: 768px) {
    .bg-text {
        font-size: clamp(4rem, 15vw, 8rem);
        opacity: 0.06;
        color: rgba(14, 165, 233, 0.1);
    }
}

/* ============================================
   SELECTION STYLING
============================================ */
::selection {
    background: var(--brand-primary);
    color: white;
}

::-moz-selection {
    background: var(--brand-primary);
    color: white;
}

/* ============================================
   LEGAL DISCLAIMER MODAL
============================================ */
.legal-disclaimer-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-family: inherit;
}

.legal-disclaimer-btn:hover {
    background: rgba(14, 165, 233, 0.2);
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    transform: translateY(-1px);
}

.legal-disclaimer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background: var(--modal-bg);
    backdrop-filter: blur(10px);
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.legal-disclaimer-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.legal-disclaimer-content {
    background: var(--card-bg-solid);
    color: var(--text-primary);
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    margin: 40px auto;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(14, 165, 233, 0.3);
    position: relative;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.legal-disclaimer-modal.active .legal-disclaimer-content {
    transform: scale(1);
}

.legal-disclaimer-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(14, 165, 233, 0.3);
}

.legal-disclaimer-header h1 {
    font-size: 2rem;
    color: var(--brand-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.legal-disclaimer-header h1 i {
    color: var(--brand-secondary);
}

.legal-disclaimer-close {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(14, 165, 233, 0.2);
    border: 1px solid rgba(14, 165, 233, 0.4);
    color: var(--brand-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.legal-disclaimer-close:hover {
    background: var(--brand-primary);
    color: white;
    transform: rotate(90deg);
}

.legal-disclaimer-section {
    margin-bottom: 25px;
    padding: 20px;
    background: var(--input-bg);
    border-radius: 12px;
    border-right: 3px solid var(--brand-primary);
}

.legal-disclaimer-section h2 {
    color: var(--brand-primary);
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-disclaimer-section h2 i {
    color: var(--brand-secondary);
    font-size: 1.2rem;
}

.legal-disclaimer-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.legal-disclaimer-section ul {
    margin-right: 20px;
    margin-bottom: 12px;
}

.legal-disclaimer-section li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 8px;
}

.legal-disclaimer-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid rgba(14, 165, 233, 0.3);
}

.legal-disclaimer-footer p {
    color: var(--text-muted);
    margin-bottom: 10px;
}

.legal-disclaimer-footer a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-disclaimer-footer a:hover {
    color: var(--brand-secondary);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .legal-disclaimer-content {
        width: 95%;
        padding: 30px 20px;
        margin: 20px auto;
    }
    
    .legal-disclaimer-header h1 {
        font-size: 1.5rem;
    }
    
    .legal-disclaimer-section {
        padding: 15px;
    }
    
    .legal-disclaimer-section h2 {
        font-size: 1.1rem;
    }
}

/* ============================================
   RIPPLE EFFECT ANIMATION
============================================ */
@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(4);
        opacity: 0;
    }
}

/* ============================================
   ENHANCED BUTTON EFFECTS
============================================ */
.submit-btn, .cta-button, .cta-button-secondary {
    position: relative;
    overflow: hidden;
}

.submit-btn::after, .cta-button::after, .cta-button-secondary::after {
    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 0.6s ease, height 0.6s ease;
}

.submit-btn:active::after, .cta-button:active::after, .cta-button-secondary:active::after {
    width: 300px;
    height: 300px;
}

/* ============================================
   ENHANCED NAVBAR LINK EFFECTS
============================================ */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.2), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

/* ============================================
   GLOW EFFECTS
============================================ */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(14, 165, 233, 0.6);
    }
}

.portfolio-card:hover,
.value-card:hover,
.testimonial-card:hover {
    animation: glow 2s ease-in-out infinite;
}

/* ============================================
   FLOATING ANIMATION
============================================ */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.feature-icon,
.value-icon {
    animation: float 3s ease-in-out infinite;
}

.feature-item:hover .feature-icon,
.value-card:hover .value-icon {
    animation: float 1s ease-in-out infinite;
}

/* ============================================
   PULSE ANIMATION
============================================ */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.hero-features .feature-item {
    animation: pulse 3s ease-in-out infinite;
}

.hero-features .feature-item:nth-child(1) {
    animation-delay: 0s;
}

.hero-features .feature-item:nth-child(2) {
    animation-delay: 0.5s;
}

.hero-features .feature-item:nth-child(3) {
    animation-delay: 1s;
}

/* ============================================
   ENHANCED FORM INPUTS
============================================ */
.form-group input:focus,
.form-group textarea:focus {
    transform: scale(1.02);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1), 0 4px 12px rgba(14, 165, 233, 0.15);
}

.form-group input,
.form-group textarea {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   SMOOTH SCROLL INDICATOR
============================================ */
@keyframes scrollIndicator {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(10px);
        opacity: 0;
    }
}

/* ============================================
   ENHANCED SOCIAL LINKS
============================================ */
.social-links a {
    position: relative;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-links a::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.1);
    transform: scale(0);
    transition: transform 0.3s ease;
}

.social-links a:hover::before {
    transform: scale(1.5);
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.1);
    color: var(--brand-primary) !important;
}

/* ============================================
   LOADING SPINNER ENHANCEMENT
============================================ */
.loader-spinner {
    border-width: 4px;
    border-style: solid;
    border-color: var(--border-light);
    border-top-color: var(--brand-primary);
    border-right-color: var(--brand-secondary);
    animation: spin 0.8s linear infinite;
    position: relative;
}

.loader-spinner::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 4px solid transparent;
    border-top-color: var(--brand-secondary);
    border-radius: 50%;
    animation: spin 1.2s linear infinite reverse;
    opacity: 0.5;
}

/* ============================================
   PRESENTATION / SLIDESHOW GALLERY
============================================ */
.presentation-section {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
    background: var(--body-bg-start);
}

.presentation-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 250px);
    min-height: 600px;
}

@media (max-width: 768px) {
    .presentation-container {
        height: auto;
        min-height: auto;
    }
}

.presentation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.presentation-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.presentation-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.presentation-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--card-bg-solid);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

html[data-theme="light"] .presentation-btn {
    border-color: var(--border-medium);
    background: #ffffff;
    color: #0a0e1a;
}

.presentation-btn:hover {
    background: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
    transform: translateY(-2px);
}

.presentation-btn.active {
    background: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
}

.presentation-btn.active .fa-play::before {
    content: "\f04c"; /* pause icon */
}

.slide-counter {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

html[data-theme="light"] .slide-counter {
    color: #1e293b;
}

.slideshow-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 0;
}

.slideshow-container {
    flex: 1;
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--card-bg-solid);
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .slideshow-container {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--border-medium);
}

.slideshow-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
    gap: 1rem;
}

.slideshow-loading .fa-spinner {
    font-size: 3rem;
    color: var(--brand-primary);
}

.slideshow-content {
    height: 100%;
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

@media (max-width: 768px) {
    .slideshow-content {
        min-height: 300px;
    }
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity var(--transition-theme);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.slide-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2rem;
}

.slide-image-link {
    display: inline-block;
    cursor: pointer;
    transition: all var(--transition-base);
}

.slide-image-link:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.slide-image-link:hover .slide-image {
    box-shadow: 0 12px 40px rgba(14, 165, 233, 0.3);
}

.slide-image {
    max-width: 100%;
    max-height: 60%;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transition: all var(--transition-base);
    cursor: pointer;
}

.slide-image-link .slide-image {
    cursor: pointer;
}

.slide-image-placeholder {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--section-bg);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 4rem;
}

.slideshow-arrow {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    z-index: 10;
    flex-shrink: 0;
}

.slideshow-arrow:hover {
    background: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
    transform: scale(1.1);
}

.slideshow-arrow:active {
    transform: scale(0.95);
}

.slideshow-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.presentation-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--card-bg-solid);
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .presentation-info {
    border-color: var(--border-medium);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.slide-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.75rem 0;
}

html[data-theme="light"] .slide-title {
    color: #0a0e1a; /* Even darker for better contrast */
}

.slide-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

html[data-theme="light"] .slide-description {
    color: #1e293b; /* Darker for better readability */
}

.slide-download-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-base);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.slide-download-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
    color: white;
}

.slide-download-link:active {
    transform: translateY(0);
}

.slide-download-link i {
    font-size: 0.9rem;
}

.slide-download-link-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-base);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.slide-download-link-inline:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
    color: white;
}

.slide-download-link-inline:active {
    transform: translateY(0) scale(1);
}

.slide-download-link-inline i {
    font-size: 1rem;
}

.slide-links-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.slide-website-link-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--brand-secondary), var(--brand-primary));
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-base);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.slide-website-link-inline:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    color: white;
}

.slide-website-link-inline:active {
    transform: translateY(0) scale(1);
}

.slide-website-link-inline i {
    font-size: 1rem;
}

.slide-links-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.slide-website-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, var(--brand-secondary), var(--brand-primary));
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-base);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.slide-website-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    color: white;
}

.slide-website-link:active {
    transform: translateY(0);
}

.slide-website-link i {
    font-size: 0.9rem;
}

/* Tablet styles */
@media (max-width: 1024px) {
    .presentation-container {
        height: auto;
        min-height: calc(100vh - 200px);
        padding: 0 1rem;
    }
    
    .presentation-title {
        font-size: 2rem;
    }
    
    .slideshow-wrapper {
        min-height: 500px;
    }
    
    .slide-image {
        max-height: 55%;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .presentation-section {
        padding: 1rem 0;
        min-height: auto;
    }
    
    .presentation-container {
        height: auto;
        min-height: auto;
        padding: 0 1rem;
    }
    
    .presentation-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 1.5rem;
        gap: 1rem;
    }
    
    .presentation-title {
        font-size: 1.5rem;
        width: 100%;
    }
    
    .presentation-controls {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    
    .presentation-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .slide-counter {
        font-size: 1rem;
    }
    
    .slideshow-wrapper {
        flex-direction: column;
        min-height: 400px;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .slideshow-container {
        min-height: 400px;
        height: 400px;
    }
    
    .slideshow-arrow {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 20;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    
    .slideshow-arrow-prev {
        right: 10px;
    }
    
    .slideshow-arrow-next {
        left: 10px;
    }
    
    .slideshow-arrow:hover {
        transform: translateY(-50%) scale(1.1);
        background: var(--brand-primary);
        color: white;
    }
    
    .slide {
        padding: 0.75rem;
    }
    
    .slide-content {
        gap: 1rem;
    }
    
    .slide-image {
        max-height: 45%;
        max-width: 100%;
    }
    
    .slide-image-placeholder {
        width: 150px;
        height: 150px;
        font-size: 3rem;
    }
    
    .presentation-info {
        margin-top: 1rem;
        padding: 1rem;
    }
    
    .slide-title {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .slide-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .presentation-title {
        font-size: 1.25rem;
    }
    
    .slideshow-container {
        min-height: 300px;
        height: 300px;
    }
    
    .slideshow-wrapper {
        min-height: 300px;
    }
    
    .slideshow-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .slide-image {
        max-height: 40%;
    }
    
    .slide-image-placeholder {
        width: 120px;
        height: 120px;
        font-size: 2.5rem;
    }
    
    .presentation-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .slide-title {
        font-size: 1.1rem;
    }
    
    .slide-description {
        font-size: 0.85rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .slide {
        transition: none;
    }
    
    .slideshow-arrow {
        transition: background-color 0.2s, border-color 0.2s;
    }
}

/* ============================================
   FLOATING STAR BUTTON & DEV IDEAS CHAT
============================================ */
/* Star on opposite side from accessibility: right in LTR, left in RTL */
.floating-star-btn {
    position: fixed;
    bottom: 30px;
    left: auto;
    right: 30px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    animation: starPulse 2s ease-in-out infinite;
}

.floating-star-btn i {
    animation: starSpin 3s linear infinite;
}

.floating-star-btn:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 12px 35px rgba(14, 165, 233, 0.6);
}

.floating-star-btn:active {
    transform: scale(0.95);
}

.floating-star-btn .pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--brand-primary);
    animation: pulseRing 2s ease-out infinite;
    opacity: 0;
}

@keyframes starPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes starSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.chat-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

.chat-overlay.active {
    opacity: 1;
    visibility: visible;
}

.dev-ideas-chat-widget {
    position: fixed;
    bottom: 120px;
    left: auto;
    right: 30px;
    width: 400px;
    max-width: calc(100vw - 60px);
    max-height: calc(100vh - 150px);
    background: var(--card-bg-solid);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all var(--transition-base);
    border: 1px solid var(--border-light);
}

html[data-theme="light"] .dev-ideas-chat-widget {
    border-color: var(--border-medium);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.dev-ideas-chat-widget.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chat-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: white;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.chat-header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-header-content i {
    font-size: 1.5rem;
}

.chat-header-content h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.chat-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.chat-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.chat-widget-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 0;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    overflow-y: auto;
    padding-bottom: 0.5rem;
}

.chat-message {
    display: flex;
    margin-bottom: 1rem;
}

.chat-message.bot-message {
    justify-content: flex-start;
}

.chat-message {
    display: flex;
    margin-bottom: 0;
    animation: messageSlideIn 0.3s ease-out;
}

.chat-message.user-message {
    justify-content: flex-end;
}

.chat-message.user-message .message-content {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: white;
}

.chat-message.bot-message {
    justify-content: flex-start;
}

.chat-message .message-content {
    background: var(--section-bg);
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    max-width: 85%;
    border: 1px solid var(--border-light);
    word-wrap: break-word;
}

html[data-theme="light"] .chat-message .message-content {
    background: #f8fafc;
    border-color: var(--border-medium);
}

.chat-message .message-content p {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 0.95rem;
}

html[data-theme="light"] .chat-message .message-content p {
    color: #0a0e1a;
}

.chat-input-container {
    display: flex;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.chat-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-base);
}

html[data-theme="light"] .chat-input {
    border-color: var(--border-medium);
    background: #ffffff;
    color: #0a0e1a;
}

.chat-input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

html[data-theme="light"] .chat-input:focus {
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

.chat-send-btn {
    width: 45px;
    height: 45px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.chat-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}

.chat-send-btn:active {
    transform: scale(0.95);
}

.chat-send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile: star opposite to accessibility (right in LTR, left in RTL) */
@media (max-width: 768px) {
    .floating-star-btn {
        bottom: 20px;
        left: auto;
        right: 20px;
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .dev-ideas-chat-widget {
        bottom: 100px;
        left: 20px;
        right: 20px;
        width: auto;
        max-height: calc(100vh - 120px);
    }

    [dir="rtl"] .floating-star-btn {
        left: 20px;
        right: auto;
    }
    
    [dir="rtl"] .dev-ideas-chat-widget {
        left: 20px;
        right: 20px;
    }
}

/* RTL: star and chat on left (opposite to accessibility which is on right) */
[dir="rtl"] .floating-star-btn {
    left: 30px;
    right: auto;
}

[dir="rtl"] .dev-ideas-chat-widget {
    left: 30px;
    right: auto;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .floating-star-btn {
        animation: none;
    }
    
    .floating-star-btn .pulse-ring {
        animation: none;
    }
    
    .dev-ideas-chat-widget {
        transition: opacity 0.2s, visibility 0.2s;
    }
}

/* ============================================
   DEVELOPERS / ABOUT PAGE
============================================ */
.developers-section {
    padding: 4rem 0;
    background: var(--bg-primary);
}

.developers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.developer-card {
    background: var(--card-bg-solid);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-base);
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
}

html[data-theme="light"] .developer-card {
    border-color: var(--border-medium);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.developer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] .developer-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.developer-image-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    margin-bottom: 1.5rem;
}

.developer-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--brand-primary);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.2);
}

.developer-image-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    border: 4px solid var(--brand-primary);
}

.developer-info {
    flex: 1;
    width: 100%;
}

.developer-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

html[data-theme="light"] .developer-name {
    color: #0a0e1a;
}

.developer-role {
    font-size: 1.1rem;
    color: var(--brand-primary);
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.developer-bio {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
}

html[data-theme="light"] .developer-bio {
    color: #1e293b;
}

.developer-social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.developer-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--section-bg);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all var(--transition-base);
    border: 2px solid var(--border-light);
    font-size: 1.1rem;
}

html[data-theme="light"] .developer-social-link {
    background: #f8fafc;
    border-color: var(--border-medium);
    color: #0a0e1a;
}

.developer-social-link:hover {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
    transform: translateY(-2px) scale(1.1);
}

.loading-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.loading-placeholder .fa-spinner {
    font-size: 3rem;
    color: var(--brand-primary);
    margin-bottom: 1rem;
}

.no-developers {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

/* Mobile styles */
@media (max-width: 768px) {
    .developers-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .developer-card {
        padding: 1.5rem;
    }
    
    .developer-image-wrapper {
        width: 120px;
        height: 120px;
    }
    
    .developer-name {
        font-size: 1.3rem;
    }
    
    .developer-role {
        font-size: 1rem;
    }
    
    .developer-bio {
        font-size: 0.95rem;
    }
}