/* 
* Modern Premium Portfolio - Style.css
* Theme: Dark-first, Glassmorphism, Premium
*/

:root {
    /* Colors */
    --bg-dark: #0a0a0a;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-glass: rgba(10, 10, 10, 0.8);
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --accent: #3b82f6;
    /* Premium Blue */
    --border-light: rgba(255, 255, 255, 0.1);
    --accent-glow: rgba(59, 130, 246, 0.5);

    /* Gradients */
    --gradient-main: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);

    /* Vibrant Colors for Cards */
    --vibrant-1: #3b82f6;
    --vibrant-2: #8b5cf6;
    --vibrant-3: #d946ef;
    --vibrant-4: #f43f5e;
    --vibrant-5: #f59e0b;
    --vibrant-6: #10b981;
    --vibrant-7: #06b6d4;
    --vibrant-8: #84cc16;
    --vibrant-9: #ec4899;
    --vibrant-10: #6366f1;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 5rem;
    /* Increased from 4rem */
    --spacing-xl: 10rem;
    /* Increased from 8rem */

    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-md: 12px;
    --radius-lg: 18px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* UI Background Variables */
    --bg-grid: rgba(255, 255, 255, 0.03);
    --bg-glow-1: rgba(59, 130, 246, 0.08);
    /* Blue glow */
    --bg-glow-2: rgba(139, 92, 246, 0.08);
    /* Purple glow */
    --bg-glow-3: rgba(59, 130, 246, 0.03);
    /* Center glow */
}

[data-theme="light"] {
    --bg-dark: #f0f4f8;
    /* Slightly softer blue-gray background */
    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-glass: rgba(255, 255, 255, 0.85);
    --text-main: #1e293b;
    /* Premium slate gray for text */
    --text-muted: #64748b;
    --border-light: rgba(59, 130, 246, 0.15);
    --accent-glow: rgba(59, 130, 246, 0.25);

    /* UI Background Variables (Light Mode) */
    --bg-grid: rgba(59, 130, 246, 0.1);
    --bg-glow-1: rgba(59, 130, 246, 0.12);
    --bg-glow-2: rgba(139, 92, 246, 0.1);
    --bg-glow-3: rgba(59, 130, 246, 0.04);
}

/* Light Mode Specific Overrides */
[data-theme="light"] body {
    background-image:
        radial-gradient(circle at 10% 20%, var(--bg-glow-1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, var(--bg-glow-2) 0%, transparent 40%);
}

[data-theme="light"] .card,
[data-theme="light"] .glass-card,
[data-theme="light"] .carousel-card,
[data-theme="light"] .cert-card,
[data-theme="light"] .flip-card-front {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.05);
}

[data-theme="light"] .flip-card-front h3,
[data-theme="light"] .carousel-info h3,
[data-theme="light"] .cert-title {
    color: var(--text-main);
}

[data-theme="light"] .nexure-icon {
    mix-blend-mode: screen !important;
    /* Force screen to remove black background even in light mode */
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
}



[data-theme="light"] .cta-section {
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

[data-theme="light"] .cta-overlay {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(59, 130, 246, 0.1) 100%);
}

[data-theme="light"] .carousel-section {
    background: rgba(59, 130, 246, 0.03);
}

[data-theme="light"] .btn-ghost {
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--text-main);
}

[data-theme="light"] i[style*="color: var(--accent)"] {
    color: #2563eb !important;
    /* Slightly darker accent for better contrast on light */
}



/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
    position: relative;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}


/* Tech Background Elements */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 20%, var(--bg-glow-1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, var(--bg-glow-2) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, var(--bg-glow-3) 0%, transparent 60%);
    z-index: -2;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--bg-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
    pointer-events: none;
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
    -webkit-mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
    animation: techGridLoop 60s linear infinite;
}

@keyframes techGridLoop {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 60px 60px;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.75rem;
}

.text-gradient {
    background: var(--gradient-main);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--spacing-md);
}


.section {
    padding: var(--spacing-xl) 0;
    margin-bottom: 2rem;
    /* Consistent space between sections */
}

.grid {
    display: grid;
    gap: var(--spacing-md);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.metrics-section {
    margin-top: -50px;
}


/* Components */

/* Header - Premium Floating Pill Design */
.header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: var(--container-width);
    height: 65px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border: 1px solid var(--border-light);
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-smooth);
}

.header.scrolled {
    top: 10px;
    height: 60px;
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--accent);
}

.header.hidden {
    transform: translate(-50%, -100px);
    opacity: 0;
    pointer-events: none;
}



.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 1.5rem;
}


/* Padding handled by .container wrapper */
.logo img {
    height: 40px;
    width: auto;
    vertical-align: middle;
    background: white;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
}

.logo:hover img {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--accent-glow);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    opacity: 0.8;
    position: relative;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.nav-link:not(.btn-nav):hover,
.nav-link:not(.btn-nav).active {
    opacity: 1;
    color: var(--accent);
}


/* Underline animation for normal links */
.nav-link:not(.btn-nav)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition-fast);
}

.nav-link:not(.btn-nav):hover::after,
.nav-link:not(.btn-nav).active::after {
    width: 100%;
}

/* Button Style for Contact Link - Matching Standard Button Design */
.nav-link.btn-nav {
    background: var(--accent);
    color: white !important;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-md);
    opacity: 1 !important;
    font-weight: 600;
    box-shadow: 0 4px 12px var(--accent-glow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-link.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--accent-glow);
    background: var(--vibrant-2);
    /* Slight color shift on hover like other premium buttons */
    opacity: 1 !important;
}


/* Mobile Menu */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.75rem;
    color: var(--text-main);
    padding: 0.5rem;
    transition: var(--transition-fast);
}

.mobile-socials {
    display: none;
}



/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--accent-glow);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border-light);
}

.btn-ghost:hover {
    background: var(--bg-card);
    border-color: var(--accent);
}

/* Theme Toggle Styling */
.theme-toggle {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.theme-toggle:hover {
    background: var(--accent);
    color: white;
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 20%,
            rgba(255, 255, 255, 0.1) 48%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0.1) 52%,
            transparent 80%);
    transform: rotate(25deg) translateY(100%);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
}

.card:hover::after {
    transform: rotate(25deg) translateY(-100%);
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.08);
}

/* Vibrant Multi-Color Hover Effects - Global Application */
.card:nth-child(7n+1):hover {
    border-color: var(--vibrant-1);
    box-shadow: 0 15px 70px -5px rgba(59, 130, 246, 0.8);
}

.card:nth-child(7n+2):hover {
    border-color: var(--vibrant-2);
    box-shadow: 0 15px 70px -5px rgba(139, 92, 246, 0.8);
}

.card:nth-child(7n+3):hover {
    border-color: var(--vibrant-3);
    box-shadow: 0 15px 70px -5px rgba(217, 70, 239, 0.8);
}

.card:nth-child(7n+4):hover {
    border-color: var(--vibrant-4);
    box-shadow: 0 15px 70px -5px rgba(244, 63, 94, 0.8);
}

.card:nth-child(7n+5):hover {
    border-color: var(--vibrant-5);
    box-shadow: 0 15px 70px -5px rgba(245, 158, 11, 0.8);
}

.card:nth-child(7n+6):hover {
    border-color: var(--vibrant-6);
    box-shadow: 0 15px 70px -5px rgba(16, 185, 129, 0.8);
}

.card:nth-child(7n+7):hover {
    border-color: var(--vibrant-7);
    box-shadow: 0 15px 70px -5px rgba(6, 182, 212, 0.8);
}

/* Apply also to glass-cards globally */
.glass-card:nth-child(7n+1):hover {
    border-color: var(--vibrant-1);
    box-shadow: 0 15px 70px -5px rgba(59, 130, 246, 0.6);
}

.glass-card:nth-child(7n+2):hover {
    border-color: var(--vibrant-2);
    box-shadow: 0 15px 70px -5px rgba(139, 92, 246, 0.6);
}

.glass-card:nth-child(7n+3):hover {
    border-color: var(--vibrant-3);
    box-shadow: 0 15px 70px -5px rgba(217, 70, 239, 0.6);
}

.glass-card:nth-child(7n+4):hover {
    border-color: var(--vibrant-4);
    box-shadow: 0 15px 70px -5px rgba(244, 63, 94, 0.6);
}

.glass-card:nth-child(7n+5):hover {
    border-color: var(--vibrant-5);
    box-shadow: 0 15px 70px -5px rgba(245, 158, 11, 0.6);
}

.glass-card:nth-child(7n+6):hover {
    border-color: var(--vibrant-6);
    box-shadow: 0 15px 70px -5px rgba(16, 185, 129, 0.6);
}

.glass-card:nth-child(7n+7):hover {
    border-color: var(--vibrant-7);
    box-shadow: 0 15px 70px -5px rgba(6, 182, 212, 0.6);
}

.card-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
    position: relative;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Footer */
.footer {
    background: var(--bg-card);
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-xl);
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.social-icon {
    font-size: 2rem;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.social-icon:hover {
    opacity: 1;
    color: var(--accent);
    transform: translateY(-3px);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Utilities */
.text-center {
    text-align: center;
}

@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.08);
}

/* Vibrant Multi-Color Hover Effects - Global Application */
.card:nth-child(7n+1):hover {
    border-color: var(--vibrant-1);
    box-shadow: 0 15px 70px -5px rgba(59, 130, 246, 0.8);
}

.card:nth-child(7n+2):hover {
    border-color: var(--vibrant-2);
    box-shadow: 0 15px 70px -5px rgba(139, 92, 246, 0.8);
}

.card:nth-child(7n+3):hover {
    border-color: var(--vibrant-3);
    box-shadow: 0 15px 70px -5px rgba(217, 70, 239, 0.8);
}

.card:nth-child(7n+4):hover {
    border-color: var(--vibrant-4);
    box-shadow: 0 15px 70px -5px rgba(244, 63, 94, 0.8);
}

.card:nth-child(7n+5):hover {
    border-color: var(--vibrant-5);
    box-shadow: 0 15px 70px -5px rgba(245, 158, 11, 0.8);
}

.card:nth-child(7n+6):hover {
    border-color: var(--vibrant-6);
    box-shadow: 0 15px 70px -5px rgba(16, 185, 129, 0.8);
}

.card:nth-child(7n+7):hover {
    border-color: var(--vibrant-7);
    box-shadow: 0 15px 70px -5px rgba(6, 182, 212, 0.8);
}

/* Apply also to glass-cards globally */
.glass-card:nth-child(7n+1):hover {
    border-color: var(--vibrant-1);
    box-shadow: 0 15px 70px -5px rgba(59, 130, 246, 0.6);
}

.glass-card:nth-child(7n+2):hover {
    border-color: var(--vibrant-2);
    box-shadow: 0 15px 70px -5px rgba(139, 92, 246, 0.6);
}

.glass-card:nth-child(7n+3):hover {
    border-color: var(--vibrant-3);
    box-shadow: 0 15px 70px -5px rgba(217, 70, 239, 0.6);
}

.glass-card:nth-child(7n+4):hover {
    border-color: var(--vibrant-4);
    box-shadow: 0 15px 70px -5px rgba(244, 63, 94, 0.6);
}

.glass-card:nth-child(7n+5):hover {
    border-color: var(--vibrant-5);
    box-shadow: 0 15px 70px -5px rgba(245, 158, 11, 0.6);
}

.glass-card:nth-child(7n+6):hover {
    border-color: var(--vibrant-6);
    box-shadow: 0 15px 70px -5px rgba(16, 185, 129, 0.6);
}

.glass-card:nth-child(7n+7):hover {
    border-color: var(--vibrant-7);
    box-shadow: 0 15px 70px -5px rgba(6, 182, 212, 0.6);
}

.card-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
    position: relative;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Footer */
.footer {
    background: var(--bg-card);
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-xl);
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.social-icon {
    font-size: 2rem;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.social-icon:hover {
    opacity: 1;
    color: var(--accent);
    transform: translateY(-3px);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

/* Glass Card Global */
.flip-card-front {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: white;
    gap: 1.2rem;
    position: relative;
    overflow: hidden;
}

.flip-card-front::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 20%,
            rgba(255, 255, 255, 0.1) 48%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0.1) 52%,
            transparent 80%);
    transform: rotate(25deg) translateY(100%);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
}

.flip-card:hover .flip-card-front::after {
    transform: rotate(25deg) translateY(-100%);
}

/* Professional Icon Styling */
.flip-card-front i {
    font-size: 3.2rem;
    background: var(--gradient-main);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 12px var(--accent-glow));
    transition: transform 0.5s var(--transition-smooth);
    position: relative;
    z-index: 2;
}

.flip-card:hover .flip-card-front i {
    transform: scale(1.1) rotate(5deg);
}

.flip-card-front h3 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin: 0;
    position: relative;
    z-index: 2;
}

.flip-card-back {
    color: white;
    transform: rotateY(180deg);
    text-align: center;
    font-weight: 500;
    padding: 2.5rem;
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 20%,
            rgba(255, 255, 255, 0.05) 48%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(255, 255, 255, 0.05) 52%,
            transparent 80%);
    transform: rotate(25deg) translateY(100%);
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.glass-card:hover::after {
    transform: rotate(25deg) translateY(-100%);
}

.glass-card:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.2);
    transform: translateY(-5px);
}

/* Section 1: About Me */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-image-container {
    position: relative;
    padding: 20px;
}

.about-image-card {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transform: rotate(-3deg);
    transition: var(--transition-smooth);
}

.about-image-card:hover {
    transform: rotate(0deg) scale(1.02);
}

.about-image-wrapper {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
    display: flex;
    align-items: center;
    justify-content: center;
}

.role-title {
    color: var(--accent);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

.about-text {
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

.quick-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.fact-item {
    display: flex;
    gap: 0.5rem;
}

.fact-label {
    font-weight: 600;
    color: var(--text-main);
}

.fact-value {
    color: var(--text-muted);
}

.about-buttons {
    display: flex;
    gap: var(--spacing-sm);
}

/* Section 2: Technologies */
.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
}

.tech-card {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    cursor: default;
}

.tech-icon {
    font-size: 1.5rem;
    color: var(--accent);
}

/* Section 3: Expertise */
.expertise-card {
    padding: var(--spacing-md);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.expertise-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.expertise-card h3 {
    margin-bottom: 0.5rem;
}

.expertise-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Section 4: Skills */
.skills-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.skill-bar-bg {
    width: 100%;
    height: 8px;
    background: var(--bg-card);
    border-radius: 4px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    background: var(--gradient-main);
    width: 0;
    /* Animated via JS */
    border-radius: 4px;
    transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Section 5: Process (Timeline) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-md) 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--border-light);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: var(--spacing-md);
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
}

.timeline-content {
    width: 45%;
    padding: var(--spacing-md);
    position: relative;
}

.timeline-item:nth-child(odd) {
    justify-content: flex-start;
}

.timeline-item:nth-child(even) {
    justify-content: flex-end;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
    margin-right: 50px;
    /* Space for line */
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
    margin-left: 50px;
    /* Space for line */
    text-align: left;
}

.timeline-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: var(--bg-dark);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--accent);
    z-index: 5;
    transform: translate(-50%, -50%);
    /* Centers it perfectly */
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.timeline-item:nth-child(odd) .timeline-icon,
.timeline-item:nth-child(even) .timeline-icon {
    left: 50%;
    right: auto;
    /* Reset specific positioning since we are centering it on the line */
}

/* Ensure chatbot icon is visible on gradient */
/* .nexure-icon { filter: brightness(0) invert(1); } - REMOVED */


/* Responsive */
/* --- MOBILITY & RESPONSIVENESS --- */

/* Grid System Refinement */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* --- MOBILITY & RESPONSIVENESS --- */

/* Table Breakpoint (e.g., iPads) */
@media (max-width: 1024px) {
    :root {
        --container-width: 95%;
        --spacing-xl: 6rem;
        --spacing-lg: 3rem;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    h1 {
        font-size: 2.8rem;
    }
}

/* Mobile Breakpoint (e.g., Smartphones) */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 6rem;
        /* Increased from 4rem for mobile breathing room */
        --spacing-lg: 3rem;
        --spacing-md: 1.5rem;
        --header-height: 70px;
    }

    .section {
        padding: var(--spacing-xl) 0;
    }

    .container {
        padding: 0 1.25rem !important;
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }


    main.container.section[style*="padding-top: 120px"] {
        padding-top: 100px !important;
    }


    /* Grids to single column */
    .grid-2,
    .grid-3,
    .grid-4,
    .about-grid,
    .quick-facts,
    .project-actions {
        grid-template-columns: 1fr !important;
    }

    /* Floating Nav Mobile */
    .header {
        top: 15px;
        width: calc(100% - 30px);
        height: 60px;
        border-radius: 30px;
    }

    /* Mobile Menu - Final High-Fidelity White Card Style */
    .nav-links {
        position: fixed !important;
        top: 14% !important;
        left: 50% !important;
        transform: translateX(-50%) scale(0.9);
        width: 85% !important;
        max-width: 320px !important;
        max-height: 85vh !important;
        height: auto !important;
        background: #ffffff !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        border-radius: 40px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        z-index: 10000 !important;
        box-shadow: 0 40px 120px rgba(0, 0, 0, 0.3) !important;
        gap: 0.15rem !important;
        padding: 2.25rem 1.5rem 1.5rem !important;
        opacity: 0;

        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        text-align: center;
        overflow-y: auto !important;
        scrollbar-width: none;
        pointer-events: none;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }



    .nav-links.active {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateX(-50%) scale(1);
        pointer-events: auto;
    }


    /* Backdrop Overlay (No Blur) */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        /* Darker overlay without blur */
        z-index: 9999;
        animation: fadeIn 0.3s ease forwards;
    }


    .nav-link {
        font-size: 1.1rem !important;
        font-weight: 600 !important;
        color: #1a1a1a !important;
        width: 100% !important;
        padding: 0.3rem 0 !important;
        text-decoration: none !important;
        display: block !important;
        transition: color 0.3s ease;
    }

    /* Style for the Contact button inside the mobile card */
    .nav-links .nav-link.btn-nav {
        background: #1e40af !important;
        color: white !important;
        border-radius: 12px !important;
        margin-top: 0.25rem !important;
        padding: 0.65rem 0 !important;
        width: 100% !important;
        box-shadow: 0 10px 20px rgba(30, 64, 175, 0.2) !important;
    }



    /* Active Item Coloring - Burgundy per reference image */
    .nav-links .nav-link.active {
        color: #a01a31 !important;
        font-weight: 700 !important;
    }



    .nav-link.active::after {
        content: '';
        display: block;
        width: 25px;
        height: 2px;
        background: #a01a31;
        margin: 6px auto 0;
        border-radius: 2px;
    }



    /* Social Icon at the bottom of menu */
    .mobile-socials {
        display: none;
        margin-top: 2rem;
    }

    .nav-links .mobile-socials {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .mobile-socials a {
        font-size: 1.5rem;
        color: var(--accent);
        transition: var(--transition-fast);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-socials a:hover {
        transform: scale(1.2);
    }



    .hamburger {
        display: block;
        z-index: 1001;
        font-size: 1.75rem;
        cursor: pointer;
        padding: 0.5rem;
    }

    /* Hero Section Mobile */
    .hero {
        min-height: auto;
        padding-top: 6rem;
        padding-bottom: 4rem;
    }


    h1 {
        font-size: 2.25rem;
    }

    h2 {
        margin-top: 2.5rem;
        /* Gap from section above */
    }

    .hero p {
        font-size: 1.05rem;
    }

    /* Buttons stack on mobile */
    .hero div[style*="display: flex"],
    .about-buttons {
        flex-direction: column;
        gap: 1.25rem;
    }

    .btn {
        width: 100% !important;
        justify-content: center;
        text-align: center;
        padding: 0.9rem 1.5rem;
        box-sizing: border-box;
    }


    .metrics-section {
        margin-top: 3rem !important;
        /* Fix overlap */
        margin-bottom: 3rem !important;
        /* defensive spacing */
        position: relative;
        z-index: 5;
    }

    .cta-section {
        margin-top: 1rem !important;
        margin-bottom: 2rem !important;
    }


    /* Group hamburger and theme toggle on the right */
    .nav {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        justify-content: flex-start;
        /* Reset global space-between */
    }

    .logo {
        margin-right: auto !important;
        /* Push everything else to the right */
    }


    .theme-toggle {
        margin-left: 0 !important;
        order: 2;
        width: 38px;
        height: 38px;
        font-size: 1rem;
        flex-shrink: 0;
    }


    .hamburger {
        order: 3;
        font-size: 1.6rem;
        flex-shrink: 0;
        padding-right: 0;
    }




    /* Timeline Mobile */
    .timeline::before {
        left: 15px;
    }

    .timeline-item {
        justify-content: flex-start !important;
        margin-bottom: 2rem;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: calc(100% - 45px);
        margin-left: 45px;
        margin-right: 0;
        text-align: left;
    }

    .timeline-icon {
        left: -3px !important;
        right: auto !important;
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    /* Carousel Adjustment */
    .carousel-item {
        width: 260px !important;
        /* Smaller to prevent overflow */
    }

    .cert-carousel .carousel-item {
        width: 220px !important;
    }

    /* Chatbot Mobile - Move back to Left */
    .nexure-window {
        bottom: calc(90px + env(safe-area-inset-bottom, 0px));
        left: 15px;
        right: auto;
        width: calc(100vw - 30px);
        height: 500px;
        transform-origin: bottom left;
    }

    .nexure-chatbot {
        left: 15px;
        right: auto;
        bottom: calc(15px + env(safe-area-inset-bottom, 0px));
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Scroll to Top stays on Right on mobile to avoid overlap */
    .scroll-to-top {
        right: 15px;
        left: auto;
        bottom: 20px;
        width: 50px;
        height: 50px;
    }




    .scroll-to-top i {
        font-size: 1rem;
    }

    /* Experience/Education Card Refinement */
    .card div[style*="display: flex"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.75rem;
    }

    .card span[style*="background"] {
        align-self: flex-start;
    }

    /* About Page Quick Facts Refinement */
    .fact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    /* Ensure chatbot icon is Always visible */
    .nexure-chatbot {
        z-index: 10000 !important;
    }

    .scroll-to-top {
        z-index: 9999 !important;
    }

}



/* Extra Small Devices */
@media (max-width: 480px) {
    h1 {
        font-size: 1.85rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .cta-headline {
        font-size: 1.5rem;
    }

    .footer {
        padding: var(--spacing-md) 0;
    }

    .hero p {
        font-size: 0.95rem;
    }
}

/* Project Specific Styles */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #1a1a1a;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.project-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.project-card:hover .project-image-wrapper img {
    transform: scale(1.1);
}

.category-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-features {
    margin: 1rem 0;
    padding-left: 1.2rem;
}

.feature-item {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    position: relative;
}

.feature-item::before {
    content: '\2022';
    position: absolute;
    left: -1.2rem;
    color: var(--accent);
    font-weight: bold;
}

.tech-stack-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    margin-bottom: 1.5rem;
}

.tech-tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    color: var(--text-muted);
}

.project-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.project-actions .btn {
    font-size: 0.85rem;
    padding: 0.6rem;
}

/* Animations for filtering */
.project-card-container {
    transition: all 0.4s ease;
}

.project-card-container.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.8);
}

/* Flip Cards for Skills */
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 220px;
    perspective: 1000px;
    margin-bottom: 2rem;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
    overflow: hidden;
}

.flip-card-front {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    gap: 1.5rem;
}

.flip-card-front::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 20%,
            rgba(255, 255, 255, 0.05) 48%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(255, 255, 255, 0.05) 52%,
            transparent 80%);
    transform: rotate(25deg) translateY(120%);
    transition: transform 0.8s var(--transition-smooth);
    pointer-events: none;
}

.flip-card:hover .flip-card-front::after {
    transform: rotate(25deg) translateY(-120%);
}

.flip-card-front i {
    font-size: 3.2rem;
    background: var(--gradient-main);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 12px var(--accent-glow));
    transition: transform 0.4s var(--transition-smooth);
}

.flip-card:hover .flip-card-front i {
    transform: scale(1.15) rotate(8deg);
}

.flip-card-front h3 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.flip-card-back {
    color: white;
    transform: rotateY(180deg);
    text-align: center;
    font-weight: 500;
    line-height: 1.6;
}

.flip-card-back p {
    font-size: 1.15rem;
    margin: 0;
}

/* Universal CTA Section */
.cta-section {
    position: relative;
    padding: 5rem 2rem;
    margin-top: -35px;
    margin-bottom: 5rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1518770660439-4636190af475?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    z-index: -1;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.8) 0%, rgba(59, 130, 246, 0.2) 100%);
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.cta-headline {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Vibrant Skill Backgrounds */
.skill-bg-1 .flip-card-back {
    background: #3b82f6;
}

.skill-bg-2 .flip-card-back {
    background: #8b5cf6;
}

.skill-bg-3 .flip-card-back {
    background: #d946ef;
}

.skill-bg-4 .flip-card-back {
    background: #f43f5e;
}

.skill-bg-5 .flip-card-back {
    background: #f59e0b;
}

.skill-bg-6 .flip-card-back {
    background: #10b981;
}

.skill-bg-7 .flip-card-back {
    background: #06b6d4;
}

.skill-bg-8 .flip-card-back {
    background: #84cc16;
}

.skill-bg-9 .flip-card-back {
    background: #ec4899;
}

.skill-bg-10 .flip-card-back {
    background: #6366f1;
}

/* Infinite Project Carousel */
.carousel-section {
    padding: var(--spacing-xl) 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    position: relative;
}

.carousel-container {
    display: flex;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.carousel-track {
    display: flex;
    gap: 2rem;
    animation: scroll 40s linear infinite;
    width: max-content;
}

.carousel-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 1rem));
    }
}

.carousel-item {
    width: 350px;
    flex-shrink: 0;
}

.carousel-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-smooth);
    height: 100%;
}

.carousel-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.carousel-info {
    padding: 1.5rem;
}

.carousel-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.carousel-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Certifications Carousel */
.cert-carousel .carousel-item {
    width: 300px;
}

.cert-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cert-image-container {
    width: 100%;
    aspect-ratio: 1.4;
    background: #1a1a1a;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cert-image-container img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

.cert-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

/* Final Polish */
body {
    animation: pageLoad 0.6s ease-out;
}

@keyframes pageLoad {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Nexure Chatbot Styles */
.nexure-chatbot {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}



.nexure-toggle {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--gradient-main);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    padding: 0;
    overflow: hidden;
    /* FIX: Clips any square corners of the icon */
}


.nexure-toggle:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.6);
}

.nexure-toggle.active {
    transform: scale(0.9) rotate(-90deg);
}

.nexure-icon {
    width: 60%;
    height: 60%;
    object-fit: contain;
    mix-blend-mode: screen;
    filter: contrast(3) brightness(1.1);
    display: block;
    user-select: none;
    pointer-events: none;
}







.nexure-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.6;
    z-index: -1;
    animation: nexure-pulse-anim 2s infinite;
}

@keyframes nexure-pulse-anim {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.nexure-window {
    position: absolute;
    bottom: 85px;
    left: 0;
    right: auto;
    width: 380px;
    height: 600px;
    max-height: calc(100vh - 150px);
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transform-origin: bottom left;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
}



.nexure-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.nexure-header {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nexure-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nexure-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--gradient-main);
    padding: 5px;
}

.nexure-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.nexure-status {
    font-size: 0.75rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 5px;
}

.nexure-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
}

.nexure-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: color 0.3s;
}

.nexure-close:hover {
    color: var(--text-main);
}

.nexure-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nexure-message {
    max-width: 85%;
    display: flex;
    gap: 10px;
}

.nexure-bot {
    align-self: flex-start;
}

.nexure-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.nexure-msg-avatar {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--bg-card);
    padding: 4px;
    flex-shrink: 0;
}

.nexure-msg-content {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.nexure-bot .nexure-msg-content {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border-light);
}

.nexure-user .nexure-msg-content {
    background: var(--accent);
    color: white;
    border-bottom-right-radius: 4px;
}

.nexure-suggestions {
    padding: 10px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
}

.nexure-suggestion {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
}

.nexure-input-area {
    padding: 20px;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 10px;
}

.nexure-input-area input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-main);
}

#nexure-send {
    background: var(--gradient-main);
    width: 45px;
    height: 45px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 65px;
    height: 65px;

    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.1) translateY(-5px);
}