:root {
    --font-sans: "Inter", system-ui, sans-serif;
    --font-heading: "Sora", system-ui, sans-serif;
    --font-mono: "JetBrains Mono", monospace;

    /* Enterprise Light Palette (Restored) */
    --color-primary: #1a1d29;
    /* Navy Dark */
    --color-primary-light: #2a2d39;
    --color-secondary: #6b7280;
    /* Gray 500 */
    --color-secondary-light: #9ca3af;

    --color-accent: #00d9ff;
    /* Cyan */
    --color-accent-light: #33e3ff;
    --color-accent-dark: #00a8cc;

    --color-background-enterprise: #f8f9fa;
    /* Light Gray */
    --color-white: #ffffff;

    --hero-gradient-start: #f8f9fa;
    --hero-gradient-end: #ffffff;

    --shadow-glow-cyan: 0 0 20px rgba(0, 217, 255, 0.3);
    --shadow-glow-cyan-lg: 0 0 40px rgba(0, 217, 255, 0.4);

    --radius-enterprise: 0.75rem;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-background-enterprise);
    color: var(--color-primary);
    -webkit-font-smoothing: antialiased;
    /* Noise Texture Overlay */
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Fluid Typography */
h1,
.display-3 {
    font-size: clamp(2.5rem, 5vw, 4.5rem) !important;
}

h2,
.display-4 {
    font-size: clamp(2rem, 4vw, 3.5rem) !important;
}

h3,
.display-5 {
    font-size: clamp(1.75rem, 3vw, 2.5rem) !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary);
}

.font-mono {
    font-family: var(--font-mono);
}

/* Utilities */
.text-primary-custom,
.text-primary {
    color: var(--color-primary) !important;
}

.text-secondary {
    color: var(--color-secondary) !important;
}

.text-secondary-light {
    color: var(--color-secondary-light);
}

.text-accent {
    color: var(--color-accent) !important;
}

.bg-primary-custom {
    background-color: var(--color-background-enterprise);
}

.bg-background-enterprise {
    background-color: var(--color-background-enterprise);
}

/* ... */

/* High Contrast Highlights (Specific for Cyan Text) */
.highlight-dark {
    background-color: #0f172a;
    /* Slate 900 */
    border: 1px solid rgba(0, 217, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.15);
}

.badge-dark-glow {
    background-color: #0f172a;
    color: var(--color-accent);
    border: 1px solid rgba(0, 217, 255, 0.3);
    padding: 0.5em 1.2em;
    font-weight: 600;
    border-radius: 9999px;
    letter-spacing: 0.05em;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.1);
    transition: all 0.3s ease;
}

.badge-dark-glow:hover {
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
    transform: translateY(-1px);
    border-color: var(--color-accent);
}

/* Timeline Styles */
.timeline-card {
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-top: 3px solid var(--color-accent);
    padding: 2rem;
    border-radius: var(--radius-enterprise);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Error Toast Card */
.error-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    background-color: #fff;
    border-left: 4px solid #ef4444;
    /* Red 500 */
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1050;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 300px;
    max-width: 90%;
}

.error-toast.show {
    transform: translateX(-50%) translateY(0);
}

.error-toast i {
    color: #ef4444;
    font-size: 1.5rem;
}

.error-toast p {
    margin: 0;
    color: #374151;
    /* Gray 700 */
    font-weight: 500;
}

.badge-tech {
    background-color: rgba(0, 217, 255, 0.05);
    /* Very light cyan */
    color: var(--color-accent-dark);
    border: 1px solid rgba(0, 217, 255, 0.2);
    font-size: 0.75rem;
    padding: 0.35em 0.8em;
    border-radius: 9999px;
    font-weight: 500;
    font-family: var(--font-mono);
    letter-spacing: -0.02em;
    transition: all 0.2s;
}

.badge-tech:hover {
    background-color: rgba(0, 217, 255, 0.1);
    border-color: var(--color-accent);
}

/* Custom Card - Enterprise Premium Dark */
.card-enterprise {
    border: 1px solid rgba(0, 0, 0, 0.03);
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    color: var(--color-primary);
}

.tracking-tight {
    letter-spacing: -0.025em;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

.hover-text-accent:hover {
    color: var(--color-accent) !important;
    transition: color 0.2s;
}

/* Buttons */
.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary:hover {
    background-color: var(--color-primary-light);
    border-color: var(--color-primary-light);
    box-shadow: 0 4px 12px rgba(26, 29, 41, 0.2);
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

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

/* Header & Glass Effect Refined */
.glass {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background-color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

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

.glass-dark {
    background-color: rgba(42, 45, 57, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 20px rgba(0, 217, 255, 0.05);
}

.logo-box {
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    box-shadow: var(--shadow-glow-cyan);
    border: 1px solid rgba(0, 217, 255, 0.3);
    transition: all 0.3s ease;
}

.navbar-brand:hover .logo-box {
    box-shadow: var(--shadow-glow-cyan-lg);
    border-color: var(--color-accent);
}

.logo-inner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--color-accent);
}

/* Animations */
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }
}

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

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

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

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

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

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

/* Section Spacing */
section,
.py-24 {
    padding-top: clamp(4rem, 8vh, 8rem);
    padding-bottom: clamp(4rem, 8vh, 8rem);
}

.min-h-90vh {
    min-height: 90vh;
}

/* Custom Card - Enterprise Premium */
.card-enterprise {
    border: 1px solid rgba(0, 0, 0, 0.03);
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.card-enterprise::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.card-enterprise:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

.card-enterprise .card-body {
    z-index: 1;
    position: relative;
}

.rounded-enterprise {
    border-radius: var(--radius-enterprise);
}

/* Badges */
.badge-custom {
    padding: 0.5em 1em;
    font-weight: 600;
    border: 1px solid rgba(0, 217, 255, 0.3);
    color: var(--color-accent-dark);
    background-color: rgba(0, 217, 255, 0.08);
    border-radius: 9999px;
    letter-spacing: 0.05em;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 90vh;
    min-height: 90dvh;
    padding-top: 8rem;
    padding-bottom: 5rem;
    overflow: hidden;
    /* Hero Image with Dark Overlay (Reduced Opacity) */
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.5)), url('../public/hero-bridge.png');
    background-size: cover;
    background-position: center;
    background-attachment: local;
    display: flex;
    align-items: center;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    background-color: rgba(0, 217, 255, 0.08);
    will-change: transform;
}

.hero-orb-1 {
    top: 10%;
    right: 10%;
    width: 600px;
    height: 600px;
    animation: float 8s ease-in-out infinite;
}

.hero-orb-2 {
    bottom: 10%;
    left: 10%;
    width: 500px;
    height: 500px;
    background-color: rgba(107, 114, 128, 0.05);
    animation: float-reverse 10s ease-in-out infinite;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

.underline-accent {
    text-decoration: none;
    background-image: linear-gradient(120deg, rgba(0, 217, 255, 0.2) 0%, rgba(0, 217, 255, 0.2) 100%);
    background-repeat: no-repeat;
    background-size: 100% 0.3em;
    background-position: 0 88%;
    transition: background-size 0.25s ease-in;
}

.underline-accent:hover {
    background-size: 100% 88%;
}

.text-balance {
    text-wrap: balance;
}

/* Premium Footer */
.footer-enterprise {
    background-color: #0f172a;
    /* Slate 900 - Premium Dark */
    color: #94a3b8;
    /* Slate 400 - Readable Gray */
    position: relative;
    overflow: hidden;
}

.footer-enterprise h6 {
    color: #f8fafc;
    /* Slate 50 - Almost White */
    font-weight: 700;
    letter-spacing: 0.05em;
}

.footer-enterprise a {
    color: #94a3b8;
    transition: all 0.2s ease;
}

.footer-enterprise a:hover {
    color: var(--color-accent);
    transform: translateX(4px);
    display: inline-block;
}

.footer-enterprise .text-accent {
    color: var(--color-accent) !important;
}

.footer-enterprise .border-accent {
    border-color: rgba(0, 217, 255, 0.2) !important;
}

.footer-enterprise img {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}