/* Skillux Custom Styles
   Created: 2025 by Skillux Team
   Note: Using CSS custom properties for easy theming */

/* Design System - Color palette and spacing */

:root {
    /* Color System - Organic Luxury (Human & Warm) */

    /* Primary (Deep Navy - Professional yet deep) */
    --color-primary-50: #f0f4f8;
    --color-primary-100: #d9e2ec;
    --color-primary-200: #bcccdc;
    --color-primary-300: #9fb3c8;
    --color-primary-400: #829ab1;
    --color-primary-500: #627d98;
    --color-primary-600: #486581;
    --color-primary-700: #334e68;
    --color-primary-800: #243b53;
    --color-primary-900: #102a43;

    /* Accent (Warm Gold - Skill & Aura) */
    --color-accent-50: #fff9eb;
    --color-accent-100: #ffecd9;
    --color-accent-200: #ffe0b3;
    --color-accent-300: #ffd38c;
    --color-accent-400: #ffc266;
    --color-accent-500: #ffb040;
    --color-accent-600: #d98e26;
    --color-accent-700: #b36e16;
    --color-accent-800: #8c5208;
    --color-accent-900: #663a00;

    /* Highlight (Soft Teal - Nature/Tech Balance) */
    --color-highlight-500: #3ebd93;

    /* Neutrals (Warm Stone) */
    --color-neutral-50: #faf9f7;
    --color-neutral-100: #f0efeb;
    --color-neutral-800: #3e3d3b;
    --color-neutral-900: #1a1918;

    --color-white: #ffffff;
    --color-dark: #102a43;

    /* Semantic Colors */
    --color-success: #3ebd93;
    --color-warning: #ffb040;
    --color-error: #e12d39;
    --color-info: #4098d7;

    /* ===== Spacing System (Fluid) ===== */
    --space-3xs: clamp(0.25rem, 0.23rem + 0.11vw, 0.31rem);
    --space-2xs: clamp(0.5rem, 0.46rem + 0.22vw, 0.63rem);
    --space-xs: clamp(0.75rem, 0.68rem + 0.33vw, 0.94rem);
    --space-sm: clamp(1rem, 0.91rem + 0.43vw, 1.25rem);
    --space-md: clamp(1.5rem, 1.37rem + 0.65vw, 1.88rem);
    --space-lg: clamp(2rem, 1.83rem + 0.87vw, 2.5rem);
    --space-xl: clamp(3rem, 2.74rem + 1.3vw, 3.75rem);
    --space-2xl: clamp(4rem, 3.65rem + 1.74vw, 5rem);
    --space-3xl: clamp(6rem, 5.48rem + 2.61vw, 7.5rem);

    /* ===== Typography System (Fluid) ===== */
    --font-size-xs: clamp(0.75rem, 0.7rem + 0.22vw, 0.88rem);
    --font-size-sm: clamp(0.875rem, 0.82rem + 0.28vw, 1.06rem);
    --font-size-base: clamp(1rem, 0.96rem + 0.22vw, 1.13rem);
    --font-size-lg: clamp(1.125rem, 1.06rem + 0.33vw, 1.31rem);
    --font-size-xl: clamp(1.25rem, 1.14rem + 0.54vw, 1.56rem);
    --font-size-2xl: clamp(1.5rem, 1.33rem + 0.87vw, 2rem);
    --font-size-3xl: clamp(1.875rem, 1.58rem + 1.52vw, 2.75rem);
    --font-size-4xl: clamp(2.25rem, 1.83rem + 2.17vw, 3.5rem);
    --font-size-5xl: clamp(3rem, 2.35rem + 3.26vw, 5rem);

    --line-height-tight: 1.1;
    --line-height-snug: 1.375;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;
    --line-height-loose: 2;

    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;

    /* ===== Shadows (Soft & Diffused) ===== */
    --shadow-xs: 0 2px 4px rgba(0, 0, 0, 0.02);
    --shadow-sm: 0 4px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.1);

    /* ===== Organic Radius ===== */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --radius-blob: 60% 40% 30% 70% / 60% 30% 70% 40%;

    /* ===== Transitions (Relaxed) ===== */
    --transition-base: 400ms cubic-bezier(0.2, 0.8, 0.2, 1);

    /* ===== Z-Index Scale ===== */
    --z-below: -1;
    --z-base: 0;
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;

    /* ===== Breakpoints (for JS) ===== */
    --bp-sm: 640px;
    --bp-md: 768px;
    --bp-lg: 1024px;
    --bp-xl: 1280px;
    --bp-2xl: 1536px;
}


/* Gradients - Blue to purple tech vibes */

/* Custom Gradients */
/* Organic text gradient (Gold to Teal) */
.text-gradient {
    background: linear-gradient(135deg, var(--color-accent-600) 0%, var(--color-highlight-500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-primary-700) 100%);
}

.bg-gradient-accent {
    background: linear-gradient(135deg, var(--color-accent-500) 0%, var(--color-accent-700) 100%);
}

.bg-gradient-tech {
    background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-accent-500) 50%, var(--color-primary-700) 100%);
}

.bg-gradient-radial {
    background: radial-gradient(circle at 30% 50%, var(--color-primary-100), transparent 70%);
}


/* Organic Card - No Glassmorphism (Simple Transparency) */
/* Organic Card - Dark Glass (Better contrast for dark backgrounds) */
.glass-card {
    background: rgba(15, 23, 42, 0.75);
    /* Dark Slate 900 with transparency */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-lg);
    color: white !important;
    /* Force text to be white */
}

.glass-card h3,
.glass-card p,
.glass-card i {
    color: white !important;
    /* Force all internal elements to be white/light */
}

.glass-card:hover {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

/* Timeline Connector Line */
.timeline-line::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #e2e8f0;
    transform: translateX(-50%);
    z-index: -1;
}

/* Reveal Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar shadow when scrolled
   Adds depth when user scrolls down */
.navbar-scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Custom scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-neutral-100);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary-500);
    border-radius: var(--radius-md);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-600);
}

/* Focus outline for accessibility
   Making sure keyboard navigation looks good */
*:focus {
    outline: 2px solid var(--color-primary-500);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

/* Button Hover Effects */
button,
a[href] {
    transition: all var(--transition-base);
}

button:hover,
a[href]:hover {
    transform: translateY(-1px);
}

button:active,
a[href]:active {
    transform: translateY(0);
}

/* Loading Animation for Newsletter */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading {
    animation: spin 1s linear infinite;
}

/* Responsive Table for Mobile */
@media (max-width: 768px) {
    table {
        font-size: 0.875rem;
    }

    table th,
    table td {
        padding: 0.75rem 0.5rem;
    }
}

/* Mobile Menu Transition */
#mobile-menu {
    transition: max-height 0.3s ease-in-out;
    overflow: hidden;
}

#mobile-menu.show {
    max-height: 500px;
}

/* Enhanced Card Hover Effects */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Pulse Animation Variations */
@keyframes pulse-slow {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.animate-pulse-slow {
    animation: pulse-slow 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Floating Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Background Blob Animation */
@keyframes blob {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.animate-blob {
    animation: blob 7s infinite;
}

/* Print Styles */
@media print {

    nav,
    footer,
    #mobile-menu {
        display: none;
    }

    body {
        font-size: 12pt;
    }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Dark Mode Support (Optional - can be enabled) */
@media (prefers-color-scheme: dark) {
    /* Uncomment to enable dark mode
    body {
        background-color: #0f172a;
        color: #e2e8f0;
    }
    */
}