/* ===================================
   CSS CUSTOM PROPERTIES & RESET
   =================================== */

:root {
    /* Dark Premium Enterprise Theme - Deep Blue Night */
    --color-bg-primary: #0a0d1f;
    --color-bg-secondary: #050712;
    --color-bg-card: rgba(15, 18, 35, 0.9);
    --color-bg-card-hover: rgba(20, 25, 45, 0.95);

    /* Sophisticated Gradient Spectrum - Violet → Blue → Cyan */
    --color-accent-violet: #7c3aed;
    --color-accent-blue: #3b82f6;
    --color-accent-cyan: #06b6d4;
    --color-accent-indigo: #4f46e5;
    --color-accent-sky: #0ea5e9;

    /* Green Accents for Badges & Pills */
    --color-accent-green: #10b981;
    --color-accent-emerald: #059669;
    --color-accent-lime: #84cc16;

    /* LED COLOR SPECTRUM */
    --led-red: #ff0055;
    --led-orange: #ff6600;
    --led-yellow: #ffea00;
    --led-lime: #88ff00;
    --led-green: #00ff88;
    --led-cyan: #00ffff;
    --led-blue: #0080ff;
    --led-indigo: #4f46e5;
    --led-violet: #7c3aed;
    --led-purple: #a855f7;
    --led-fuchsia: #ff00ff;
    --led-pink: #ff1493;

    /* LED Glows */
    --glow-red: 0 0 25px rgba(255, 0, 85, 0.7), 0 0 50px rgba(255, 0, 85, 0.4);
    --glow-orange: 0 0 25px rgba(255, 102, 0, 0.7), 0 0 50px rgba(255, 102, 0, 0.4);
    --glow-yellow: 0 0 25px rgba(255, 234, 0, 0.7), 0 0 50px rgba(255, 234, 0, 0.4);
    --glow-fuchsia: 0 0 25px rgba(255, 0, 255, 0.7), 0 0 50px rgba(255, 0, 255, 0.4);
    --glow-pink: 0 0 25px rgba(255, 20, 147, 0.7), 0 0 50px rgba(255, 20, 147, 0.4);
    --glow-rainbow: 0 0 30px rgba(255, 0, 255, 0.5), 0 0 60px rgba(0, 255, 255, 0.4), 0 0 90px rgba(255, 234, 0, 0.3);

    /* Rainbow Gradient */
    --gradient-rainbow: linear-gradient(135deg, #ff0055, #ff6600, #ffea00, #00ff88, #00ffff, #0080ff, #a855f7, #ff00ff);

    /* Text Colors - High Contrast */
    --color-text-primary: #f8fafc;
    --color-text-secondary: #cbd5e1;
    --color-text-muted: #94a3b8;

    /* Soft Premium Glow Effects */
    --glow-violet: 0 0 20px rgba(124, 58, 237, 0.3),
        0 0 40px rgba(124, 58, 237, 0.15);
    --glow-blue: 0 0 20px rgba(59, 130, 246, 0.3),
        0 0 40px rgba(59, 130, 246, 0.15);
    --glow-cyan: 0 0 20px rgba(6, 182, 212, 0.3),
        0 0 40px rgba(6, 182, 212, 0.15);
    --glow-green: 0 0 20px rgba(16, 185, 129, 0.3),
        0 0 40px rgba(16, 185, 129, 0.15);
    --glow-gradient: 0 0 30px rgba(124, 58, 237, 0.2),
        0 0 50px rgba(59, 130, 246, 0.15),
        0 0 70px rgba(6, 182, 212, 0.1);
    --glow-card: 0 4px 20px rgba(124, 58, 237, 0.1),
        0 8px 40px rgba(59, 130, 246, 0.08);

    /* Gradient Definitions */
    --gradient-primary: linear-gradient(135deg, var(--color-accent-violet), var(--color-accent-blue), var(--color-accent-cyan));
    --gradient-card: linear-gradient(135deg, var(--color-accent-violet) 0%, var(--color-accent-blue) 50%, var(--color-accent-cyan) 100%);
    --gradient-text: linear-gradient(90deg, var(--color-accent-violet), var(--color-accent-blue), var(--color-accent-cyan));
    --gradient-bg: radial-gradient(ellipse at top, rgba(124, 58, 237, 0.1), transparent 50%),
        radial-gradient(ellipse at bottom, rgba(6, 182, 212, 0.08), transparent 50%);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-base: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 24px;
    --font-size-2xl: 32px;
    --font-size-3xl: 48px;
    --font-size-4xl: 64px;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Z-Index */
    --z-nav: 1000;
    --z-modal: 2000;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text-primary);
    background: linear-gradient(180deg, #050510 0%, #0a0a1a 100%);
    /* Darker, cleaner background */
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body.is-scrolling {
    pointer-events: none;
}



/* ===================================
   TYPOGRAPHY
   =================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: var(--font-size-4xl);
}

h2 {
    font-size: var(--font-size-3xl);
}

h3 {
    font-size: var(--font-size-2xl);
}

p {
    margin-bottom: var(--spacing-md);
}

strong {
    color: #00f0ff;
    /* Bright Neon Cyan */
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

/* ===================================
   LAYOUT
   =================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section {
    padding: var(--spacing-3xl) 0;
    position: relative;
}

/* ===================================
   NAVIGATION
   =================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 39, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
    z-index: var(--z-nav);
    padding: var(--spacing-sm) 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.logo-dot {
    color: var(--color-neon-cyan);
    text-shadow: var(--glow-cyan);
}

.logo:hover {
    color: var(--color-neon-cyan);
    text-shadow: var(--glow-cyan);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-accent-cyan);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent-cyan);
    box-shadow: var(--glow-cyan);
    transition: width var(--transition-base);
}

.nav-link:hover::after {
    width: 100%;
}

/* ===================================
   BUTTONS
   =================================== */

.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gradient-rainbow);
    background-size: 200% 200%;
    color: #ffffff;
    font-weight: 700;
    box-shadow: var(--glow-rainbow);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: gradient 6s ease infinite;
}

.btn-primary:hover {
    box-shadow: var(--glow-rainbow), 0 0 40px rgba(255, 255, 255, 0.3);
    transform: translateY(-3px) scale(1.05);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--led-green);
    border: 2px solid var(--led-green);
    font-weight: 600;
}

.btn-secondary:hover {
    background: var(--led-green);
    color: var(--color-bg-secondary);
    box-shadow: var(--glow-green);
    transform: translateY(-2px);
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(0, 240, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 102, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.blob-container {
    position: absolute;
    width: 400px;
    height: 400px;
    z-index: 0;
}

.blob {
    width: 100%;
    height: 100%;
    filter: blur(40px);
    opacity: 0.4;
}

.profile-photo {
    position: relative;
    z-index: 1;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--color-accent-cyan);
    box-shadow: var(--glow-strong);
}

.hero-greeting {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xs);
}

.hero-title {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--spacing-xs);
    background: var(--gradient-rainbow);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient 8s linear infinite;
    font-weight: 900;
    letter-spacing: -0.01em;
    text-shadow: 0 0 40px rgba(255, 0, 255, 0.3);
}

.hero-subtitle {
    font-size: var(--font-size-2xl);
    color: var(--led-cyan);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
    text-shadow: var(--glow-cyan);
}

.hero-description {
    color: var(--color-text-secondary);
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--color-accent-cyan);
    color: var(--color-accent-cyan);
    transition: all var(--transition-base);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link:hover {
    background: var(--color-accent-cyan);
    color: var(--color-bg-secondary);
    box-shadow: var(--glow-cyan);
    transform: translateY(-4px);
}

/* ===================================
   SECTIONS
   =================================== */

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-md);
    background: var(--gradient-rainbow);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient 10s linear infinite;
    font-weight: 800;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-2xl);
}

/* ===================================
   ABOUT SECTION
   =================================== */

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.certifications {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    margin-top: var(--spacing-2xl);
}

.cert-badge {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-xl);
    background: transparent;
    border: 3px solid var(--led-green);
    border-radius: var(--radius-lg);
    box-shadow: var(--glow-green);
}

.cert-icon {
    width: 48px;
    height: 48px;
    color: var(--color-accent-purple);
}

.cert-title {
    display: block;
    font-weight: 700;
    font-size: var(--font-size-lg);
    color: var(--color-text-primary);
}

.cert-desc {
    display: block;
    font-size: 14px;
    color: var(--color-text-secondary);
}

/* ===================================
   SERVICES SECTION
   =================================== */

.services {
    background: linear-gradient(180deg, transparent, rgba(0, 240, 255, 0.02), transparent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.service-card {
    padding: var(--spacing-xl);
    background: var(--color-bg-card);
    border: 1px solid transparent;
    background-image: linear-gradient(var(--color-bg-card), var(--color-bg-card)),
        var(--gradient-card);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    position: relative;
}

.service-card:hover {
    background: var(--color-bg-card-hover);
    box-shadow: var(--glow-card);
    transform: translateY(-4px);
    border-color: rgba(124, 58, 237, 0.3);
}

.service-card:nth-child(1) .service-icon {
    color: var(--color-neon-cyan);
    filter: drop-shadow(0 0 15px var(--color-neon-cyan));
}

.service-card:nth-child(2) .service-icon {
    color: var(--color-neon-green);
    filter: drop-shadow(0 0 15px var(--color-neon-green));
}

.service-card:nth-child(3) .service-icon {
    color: var(--color-neon-purple);
    filter: drop-shadow(0 0 15px var(--color-neon-purple));
}

.service-card:nth-child(4) .service-icon {
    color: var(--color-neon-magenta);
    filter: drop-shadow(0 0 15px var(--color-neon-magenta));
}

.service-card:nth-child(5) .service-icon {
    color: var(--color-neon-pink);
    filter: drop-shadow(0 0 15px var(--color-neon-pink));
}

.service-card:nth-child(6) .service-icon {
    color: var(--color-neon-orange);
    filter: drop-shadow(0 0 15px var(--color-neon-orange));
}

.service-icon {
    width: 64px;
    height: 64px;
    margin-bottom: var(--spacing-md);
    transition: all 0.3s ease;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
}

.service-description {
    color: var(--color-text-secondary);
    line-height: 1.8;
}

/* ===================================
   PORTFOLIO SECTION
   ================================== */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.project-card {
    background: var(--color-bg-card);
    border: 1px solid transparent;
    background-image: linear-gradient(var(--color-bg-card), var(--color-bg-card)),
        var(--gradient-card);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.project-card:hover {
    background: var(--color-bg-card-hover);
    box-shadow: var(--glow-card), 0 12px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-6px);
}

.project-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-content {
    padding: var(--spacing-lg);
}

.project-title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
}

.project-description {
    color: var(--color-text-secondary);
    line-height: 1.8;
}

.dev-badge {
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--color-accent-cyan);
    color: var(--color-bg-secondary);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--glow-cyan);
}

/* ===================================
   CONTACT SECTION
   =================================== */

.contact {
    background: linear-gradient(180deg, transparent, rgba(0, 240, 255, 0.02));
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-primary);
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: var(--spacing-md);
    background: var(--color-bg-card);
    border: 2px solid rgba(0, 240, 255, 0.2);
    border-radius: var(--radius-sm);
    color: var(--color-text-primary);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent-cyan);
    box-shadow: var(--glow-cyan);
}

.form-input::placeholder {
    color: var(--color-text-muted);
}

textarea.form-input {
    resize: vertical;
    min-height: 150px;
}

.btn-submit {
    width: 100%;
    margin-top: var(--spacing-md);
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    padding: var(--spacing-2xl) 0;
    border-top: 1px solid rgba(0, 240, 255, 0.1);
    margin-top: var(--spacing-3xl);
}

.footer-content {
    text-align: center;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.footer-copyright {
    color: var(--color-text-muted);
    font-size: 14px;
}

/* ===================================
   n8n SECTION
   =================================== */

.n8n {
    background: linear-gradient(180deg, transparent, rgba(124, 58, 237, 0.05), transparent);
}

.n8n-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.n8n-card {
    background: var(--color-bg-card);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.n8n-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--glow-violet), 0 12px 30px rgba(0, 0, 0, 0.4);
    border-color: var(--color-accent-violet);
}

.n8n-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.n8n-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.n8n-card:hover .n8n-image {
    transform: scale(1.05);
}

.n8n-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
}

.n8n-status {
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
}

.n8n-status.demo {
    background: rgba(255, 234, 0, 0.2);
    color: var(--led-yellow);
    border: 1px solid var(--led-yellow);
    box-shadow: 0 0 10px rgba(255, 234, 0, 0.3);
}

.n8n-status.production {
    background: rgba(16, 185, 129, 0.2);
    color: var(--color-accent-green);
    border: 1px solid var(--color-accent-green);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.n8n-status.dev {
    background: rgba(59, 130, 246, 0.2);
    color: var(--color-accent-blue);
    border: 1px solid var(--color-accent-blue);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.n8n-content {
    padding: var(--spacing-lg);
}

.n8n-title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
}

.n8n-description {
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.n8n-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: var(--spacing-md);
}

.feature-pill {
    font-size: 13px;
    color: var(--color-accent-cyan);
    background: rgba(6, 182, 212, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.n8n-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: var(--spacing-md);
}

.tech-badge {
    font-size: 12px;
    color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .n8n-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1024px) {
    :root {
        --font-size-4xl: 48px;
        --font-size-3xl: 36px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image-wrapper {
        order: -1;
    }

    .hero-buttons {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .blob-container {
        width: 300px;
        height: 300px;
    }

    .profile-photo {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 768px) {
    :root {
        --font-size-4xl: 36px;
        --font-size-3xl: 28px;
        --font-size-2xl: 24px;
        --spacing-3xl: 4rem;
    }

    .nav-menu {
        gap: var(--spacing-md);
        font-size: 14px;
    }

    .hero {
        padding-top: 100px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .blob-container {
        width: 250px;
        height: 250px;
    }

    .profile-photo {
        width: 220px;
        height: 220px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    .nav-menu {
        gap: var(--spacing-sm);
    }

    .section {
        padding: var(--spacing-2xl) 0;
    }
}

/* Contact Email Button Styles */
.contact-actions {
    display: flex;
    justify-content: center;
    margin-top: var(--spacing-xl);
    width: 100%;
}

.contact-email-btn {
    font-size: 1.25rem;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-accent-violet), var(--color-accent-blue));
    color: white;
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-email-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 0 50px rgba(124, 58, 237, 0.6);
    background: linear-gradient(135deg, var(--color-accent-blue), var(--color-accent-violet));
}


/* Cursor Glow Effect */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.12) 0%, rgba(124, 58, 237, 0.08) 30%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    /* Changed from -1 to 0 to sit above background */
    transform: translate(-50%, -50%);
    border-radius: 50%;
    mix-blend-mode: screen;
    will-change: transform;
    transition: opacity 0.3s ease;
}

/* ===================================
   TOAST NOTIFICATION
   =================================== */

#toast-notification {
    visibility: hidden;
    min-width: 250px;
    background-color: var(--color-bg-card);
    color: var(--color-text-primary);
    text-align: center;
    border-radius: var(--radius-md);
    padding: 16px;
    position: fixed;
    z-index: var(--z-modal);
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    box-shadow: var(--glow-card);
    border: 1px solid var(--color-accent-blue);
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s;
}

#toast-notification.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}

/* ===================================
   KEYFRAME ANIMATIONS
   =================================== */

/* Blob Animation */
@keyframes morph {
    0% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(20px, -20px) scale(1.1);
    }

    50% {
        transform: translate(-15px, 10px) scale(0.9);
    }

    75% {
        transform: translate(10px, 15px) scale(1.05);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

.blob {
    animation: morph 15s ease-in-out infinite;
}

/* Glow Pulse Animation */
@keyframes glow-pulse {

    0%,
    100% {
        opacity: 0.4;
        filter: blur(40px);
    }

    50% {
        opacity: 0.6;
        filter: blur(50px);
    }
}

.blob {
    animation: morph 15s ease-in-out infinite, glow-pulse 3s ease-in-out infinite;
}

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-up.delay-1 {
    animation-delay: 0.2s;
}

.fade-in-up.delay-2 {
    animation-delay: 0.4s;
}

.fade-in-up.delay-3 {
    animation-delay: 0.6s;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Scale In Animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Slide In Left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide In Right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Glow Intensity Animation */
@keyframes glowIntensity {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(0, 240, 255, 0.3),
            0 0 40px rgba(0, 240, 255, 0.2),
            0 0 60px rgba(0, 240, 255, 0.1);
    }

    50% {
        box-shadow: 0 0 30px rgba(0, 240, 255, 0.5),
            0 0 60px rgba(0, 240, 255, 0.3),
            0 0 90px rgba(0, 240, 255, 0.2);
    }
}

.profile-photo {
    animation: glowIntensity 3s ease-in-out infinite;
}

/* Floating Animation */
@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Gradient Animation for Background */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}


/* ===================================
   SCROLL-TRIGGERED ANIMATIONS
   =================================== */

/* Elements that will animate on scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Service Cards Stagger */
.service-card {
    transition: all 0.3s ease;
}

.service-card:nth-child(1) {
    transition-delay: 0.1s;
}

.service-card:nth-child(2) {
    transition-delay: 0.2s;
}

.service-card:nth-child(3) {
    transition-delay: 0.3s;
}

.service-card:nth-child(4) {
    transition-delay: 0.4s;
}

.service-card:nth-child(5) {
    transition-delay: 0.5s;
}

.service-card:nth-child(6) {
    transition-delay: 0.6s;
}

/* Project Cards Stagger */
.project-card {
    transition: all 0.3s ease;
}

.project-card:nth-child(1) {
    transition-delay: 0.1s;
}

.project-card:nth-child(2) {
    transition-delay: 0.2s;
}

.project-card:nth-child(3) {
    transition-delay: 0.3s;
}

.project-card:nth-child(4) {
    transition-delay: 0.4s;
}

.project-card:nth-child(5) {
    transition-delay: 0.5s;
}

.project-card:nth-child(6) {
    transition-delay: 0.6s;
}

/* ===================================
   HOVER ANIMATIONS
   =================================== */

/* Button Hover */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Social Link Hover */
.social-link {
    position: relative;
}

.social-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 0 var(--color-accent-cyan);
    opacity: 0;
    transition: all 0.5s ease;
}

.social-link:hover::after {
    box-shadow: 0 0 20px 8px transparent;
    opacity: 1;
}

/* Card Image Overlay Slide */
.project-overlay {
    transform: translateY(100%);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.project-card:hover .project-overlay {
    transform: translateY(0);
    opacity: 1;
}

/* Nav Link Glow */
.nav-link {
    position: relative;
}

.nav-link:hover {
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* Form Input Focus Animation */
.form-input:focus {
    animation: inputGlow 0.3s ease forwards;
}

@keyframes inputGlow {
    from {
        box-shadow: 0 0 0 0 rgba(0, 240, 255, 0);
    }

    to {
        box-shadow: 0 0 20px rgba(0, 240, 255, 0.3),
            0 0 40px rgba(0, 240, 255, 0.2);
    }
}

/* Certificate Badge Pulse */
.cert-badge:hover {
    animation: certPulse 0.5s ease;
}

@keyframes certPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* ===================================
   LOADING ANIMATIONS
   =================================== */

/* Page Load Animation */
@keyframes pageLoadFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

body {
    animation: pageLoadFade 0.5s ease;
}

/* ===================================
   SMOOTH TRANSITIONS
   =================================== */

/* Smooth all transitions */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===================================
   SCROLL PROGRESS INDICATOR
   =================================== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent-cyan), var(--color-accent-purple), var(--color-accent-magenta), var(--color-accent-pink));
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.8),
        0 0 40px rgba(168, 85, 247, 0.4),
        0 0 60px rgba(231, 64, 255, 0.2);
    z-index: 9999;
    transform-origin: left;
    animation: progressGlow 2s ease-in-out infinite;
    transition: height 0.2s ease;
}

@keyframes progressGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(0, 240, 255, 0.8),
            0 0 40px rgba(0, 240, 255, 0.4);
    }

    50% {
        box-shadow: 0 0 30px rgba(0, 240, 255, 1),
            0 0 60px rgba(0, 240, 255, 0.6),
            0 0 90px rgba(0, 240, 255, 0.3);
    }
}

/* ===================================
   TEXT ANIMATIONS
   =================================== */

/* Gradient Text Shimmer */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.hero-title,
.section-title {
    background-size: 200% auto;
    animation: shimmer 8s linear infinite;
}

/* Typing Cursor Effect (Optional) */
@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: var(--color-accent-cyan);
    margin-left: 4px;
    animation: blink 1s infinite;
}

/* Gradient Animation for Rainbow Effects */
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}


/* Border Glow Animation for Cards */
@keyframes borderGlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ===================================
   LIGHT THEME SUPPORT
   =================================== */

[data-theme="light"] {
    /* Light Theme Colors */
    --color-bg-primary: #f8fafc;
    --color-bg-secondary: #ffffff;
    --color-bg-card: rgba(255, 255, 255, 0.9);

    /* Text Colors for Light Theme */
    --color-text-primary: #0a0e27;
    --color-text-secondary: #475569;
    --color-text-muted: #94a3b8;

    /* Adjusted Glow for Light Theme */
    --glow-cyan: 0 0 15px rgba(0, 240, 255, 0.2),
        0 0 30px rgba(0, 240, 255, 0.1);
    --glow-blue: 0 0 15px rgba(0, 102, 255, 0.2),
        0 0 30px rgba(0, 102, 255, 0.1);
    --glow-strong: 0 0 20px rgba(0, 240, 255, 0.3),
        0 0 40px rgba(0, 240, 255, 0.2),
        0 0 60px rgba(0, 240, 255, 0.1);
}

[data-theme="light"] body {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
}

[data-theme="light"] .nav {
    background: rgba(248, 250, 252, 0.95);
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}

[data-theme="light"] .service-card,
[data-theme="light"] .project-card,
[data-theme="light"] .form-input {
    background: var(--color-bg-card);
    border-color: rgba(0, 240, 255, 0.3);
}

[data-theme="light"] .project-overlay {
    background: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .blob {
    opacity: 0.2;
}

/* Canvas Background */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

[data-theme="light"] #particle-canvas {
    opacity: 0.3;
}

/* Shooting Stars Background Canvas */
#shooting-stars-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    /* Behind particle canvas */
    pointer-events: none;
    opacity: 0.8;
    /* Additional subtlety control */
}

/* Language Toggle in Navbar */
.language-toggle-nav {
    min-width: 45px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--color-neon-cyan);
    color: var(--color-neon-cyan);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: var(--spacing-lg);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.language-toggle-nav:hover {
    transform: scale(1.05);
    box-shadow: var(--glow-cyan);
    background: rgba(0, 255, 255, 0.1);
    border-color: var(--color-accent-cyan);
}

.language-toggle-nav .lang-icon {
    transition: all 0.2s ease;
}

.language-toggle-nav:active .lang-icon {
    transform: scale(0.9);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-rainbow);
    background-size: 200% auto;
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px) scale(0.8);
    animation: gradient 8s linear infinite !important;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-to-top:hover {
    transform: translateY(-10px) scale(1.15);
    box-shadow: 0 0 40px rgba(255, 0, 255, 0.6),
        0 0 80px rgba(0, 240, 255, 0.3);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
}

/* Success Message */
.success-message {
    position: fixed;
    top: 100px;
    right: 2rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--color-accent-cyan), var(--color-accent-blue));
    color: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--glow-strong);
    font-weight: 600;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    z-index: 9998;
    pointer-events: none;
}

.success-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Card Glow on Hover */
.service-card:hover,
.project-card:hover {
    border-color: var(--color-accent-cyan);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.4),
        0 0 60px rgba(0, 240, 255, 0.2),
        0 0 90px rgba(0, 240, 255, 0.1);
    transform: translateY(-10px) scale(1.02);
}

/* Button Premium Effects */
.btn-primary:hover {
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.6),
        0 0 80px rgba(0, 240, 255, 0.3),
        0 0 120px rgba(0, 240, 255, 0.2);
    transform: translateY(-3px) scale(1.08);
}

.btn-secondary:hover {
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.5),
        0 0 60px rgba(0, 240, 255, 0.3);
}

/* ===================================
   ANIMATED ORBITAL ICON BORDERS
   =================================== */

/* Service Icon Container with Orbital Ring */
.service-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
}

/* Static Icon in Center */
.service-icon {
    position: relative;
    z-index: 2;
    width: 48px;
    height: 48px;
    margin: 16px auto;
    color: var(--color-text-primary);
    transition: all 0.3s ease;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

/* Animated Orbital Ring Border */
.service-icon-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    padding: 3px;
    background: var(--gradient-card);
    -webkit-mask: linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: orbit 4s linear infinite;
    opacity: 0.8;
}

/* Animated Glow Ring */
.service-icon-wrapper::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: var(--gradient-card);
    filter: blur(8px);
    opacity: 0;
    animation: orbit 4s linear infinite, glowPulse 2s ease-in-out infinite;
    z-index: -1;
}

/* Orbit Animation */
@keyframes orbit {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Glow Pulse Animation */
@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }
}

/* Color Variations for Each Service Card */
.service-card:nth-child(1) .service-icon-wrapper::before,
.service-card:nth-child(1) .service-icon-wrapper::after {
    background: linear-gradient(135deg, var(--color-accent-violet), var(--color-accent-blue));
    animation-duration: 3s;
}

.service-card:nth-child(2) .service-icon-wrapper::before,
.service-card:nth-child(2) .service-icon-wrapper::after {
    background: linear-gradient(135deg, var(--color-accent-blue), var(--color-accent-cyan));
    animation-duration: 3.5s;
}

.service-card:nth-child(3) .service-icon-wrapper::before,
.service-card:nth-child(3) .service-icon-wrapper::after {
    background: linear-gradient(135deg, var(--color-accent-cyan), var(--color-accent-sky));
    animation-duration: 4s;
}

.service-card:nth-child(4) .service-icon-wrapper::before,
.service-card:nth-child(4) .service-icon-wrapper::after {
    background: linear-gradient(135deg, var(--color-accent-violet), var(--color-accent-indigo));
    animation-duration: 4.5s;
}

.service-card:nth-child(5) .service-icon-wrapper::before,
.service-card:nth-child(5) .service-icon-wrapper::after {
    background: linear-gradient(135deg, var(--color-accent-blue), var(--color-accent-violet));
    animation-duration: 3.2s;
}

.service-card:nth-child(6) .service-icon-wrapper::before,
.service-card:nth-child(6) .service-icon-wrapper::after {
    background: linear-gradient(135deg, var(--color-accent-cyan), var(--color-accent-blue));
    animation-duration: 3.8s;
}

/* Hover Effect - Speed Up Rotation */
.service-card:hover .service-icon-wrapper::before {
    animation-duration: 2s !important;
}

.service-card:hover .service-icon-wrapper::after {
    animation-duration: 2s !important;
    opacity: 0.8;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.4));
}

/* LED COLOR OVERRIDES FOR SERVICE CARDS */

/* Individual LED Border Colors */
.service-card:nth-child(1) {
    border-color: var(--led-red) !important;
}

.service-card:nth-child(1):hover {
    box-shadow: var(--glow-red) !important;
}

.service-card:nth-child(2) {
    border-color: var(--led-orange) !important;
}

.service-card:nth-child(2):hover {
    box-shadow: var(--glow-orange) !important;
}

.service-card:nth-child(3) {
    border-color: var(--led-yellow) !important;
}

.service-card:nth-child(3):hover {
    box-shadow: var(--glow-yellow) !important;
}

.service-card:nth-child(4) {
    border-color: var(--led-green) !important;
}

.service-card:nth-child(4):hover {
    box-shadow: var(--glow-green) !important;
}

.service-card:nth-child(5) {
    border-color: var(--led-cyan) !important;
}

.service-card:nth-child(5):hover {
    box-shadow: var(--glow-cyan) !important;
}

.service-card:nth-child(6) {
    border-color: var(--led-fuchsia) !important;
}

.service-card:nth-child(6):hover {
    box-shadow: var(--glow-fuchsia) !important;
}

/* Icon LED Colors */
.service-card:nth-child(1) .service-icon {
    color: var(--led-red) !important;
    filter: drop-shadow(0 0 20px var(--led-red)) !important;
}

.service-card:nth-child(2) .service-icon {
    color: var(--led-orange) !important;
    filter: drop-shadow(0 0 20px var(--led-orange)) !important;
}

.service-card:nth-child(3) .service-icon {
    color: var(--led-yellow) !important;
    filter: drop-shadow(0 0 20px var(--led-yellow)) !important;
}

.service-card:nth-child(4) .service-icon {
    color: var(--led-green) !important;
    filter: drop-shadow(0 0 20px var(--led-green)) !important;
}

.service-card:nth-child(5) .service-icon {
    color: var(--led-cyan) !important;
    filter: drop-shadow(0 0 20px var(--led-cyan)) !important;
}

.service-card:nth-child(6) .service-icon {
    color: var(--led-fuchsia) !important;
    filter: drop-shadow(0 0 20px var(--led-fuchsia)) !important;
}

/* Make service cards have thicker borders */
.service-card {
    border-width: 3px !important;
}

/* Project Cards - Make them visible with colored borders */
.project-card {
    border: 3px solid var(--led-fuchsia) !important;
    background: var(--color-bg-card) !important;
}

.project-card:hover {
    box-shadow: var(--glow-fuchsia) !important;
    transform: translateY(-8px) scale(1.02) !important;
}

/* Different colors for each project card */
.project-card:nth-child(1) {
    border-color: var(--led-cyan) !important;
}

.project-card:nth-child(1):hover {
    box-shadow: var(--glow-cyan) !important;
}

.project-card:nth-child(2) {
    border-color: var(--led-green) !important;
}

.project-card:nth-child(2):hover {
    box-shadow: var(--glow-green) !important;
}

.project-card:nth-child(3) {
    border-color: var(--led-orange) !important;
}

.project-card:nth-child(3):hover {
    box-shadow: var(--glow-orange) !important;
}

.project-card:nth-child(4) {
    border-color: var(--led-fuchsia) !important;
}

.project-card:nth-child(4):hover {
    box-shadow: var(--glow-fuchsia) !important;
}

.project-card:nth-child(5) {
    border-color: var(--led-yellow) !important;
}

.project-card:nth-child(5):hover {
    box-shadow: var(--glow-yellow) !important;
}

.project-card:nth-child(6) {
    border-color: var(--led-red) !important;
}

.project-card:nth-child(6):hover {
    box-shadow: var(--glow-red) !important;
}

/* ===================================
   BACKGROUND CANVASES
   =================================== */

#particle-canvas,
#shooting-stars-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Allow clicking through */
    z-index: -1;
    /* Behind everything */
}

/* ===================================
   PERFORMANCE OPTIMIZATIONS
   =================================== */

html,
body {
    scroll-behavior: auto !important;
    /* Prevent total conflict with Lenis */
}

body.is-scrolling {
    pointer-events: none !important;
}

body.is-scrolling * {
    pointer-events: none !important;
}

/* Enable hardware acceleration for animated elements */
.fade-in-up,
.service-card,
.project-card,
.hero-image-wrapper,
.about-content,
.hero-content {
    will-change: transform, opacity;
    transform: translateZ(0);
    /* Force GPU layer */
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Contain layout recalculations */
.section,
.hero,
.footer,
.nav {
    content-visibility: auto;
    /* Newer property to skip rendering off-screen content */
    contain: content;
}

/* Optimize Navigation */
.nav {
    /* Removed heavy backdrop-filter blur */
    background: rgba(10, 14, 39, 0.98) !important;
    /* Less transparency, no blur needed */
    backdrop-filter: none !important;
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

/* Optimize Hero Title while keeping the Rainbow Effect */
.hero-title {
    background: var(--gradient-rainbow) !important;
    background-size: 300% auto !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    animation: gradient 12s linear infinite !important;
    /* Slightly slower for perf */
    text-shadow: 0 0 30px rgba(124, 58, 237, 0.2) !important;
}

/* Optimize Cards */
.service-card,
.project-card {
    /* Remove complex gradients on cards, use solid colors or simpler gradients */
    background: #0f1223 !important;
    border: 1px solid rgba(124, 58, 237, 0.1) !important;
    box-shadow: none !important;
    /* Remove default shadow */
}

.service-card:hover,
.project-card:hover {
    /* Simpler hover effect */
    transform: translateY(-4px);
    border-color: var(--color-accent-cyan) !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5) !important;
}

/* Restore Rainbow Effect on Section Titles */
.section-title {
    background: var(--gradient-rainbow) !important;
    background-size: 300% auto !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    animation: gradient 12s linear infinite !important;
}

/* Disable all animations on mobile for speed */
/* Disable complex animations on mobile for speed, but keep essential transitions */
@media (max-width: 768px) {

    /* Force visibility for elements that might rely on broken/missing JS */
    .fade-in-up,
    [style*="opacity: 0"] {
        opacity: 1 !important;
        transform: translate(0, 0) !important;
        animation: none !important;
    }

    /* Cursor Halo Effect - High Visibility */
    .cursor-halo {
        position: fixed;
        top: 0;
        left: 0;
        width: 40px;
        height: 40px;
        background: rgba(0, 240, 255, 0.1);
        border: 2px solid rgba(0, 240, 255, 1);
        border-radius: 50%;
        pointer-events: none;
        z-index: 100000;
        transform: translate(-50%, -50%);
        box-shadow: 0 0 20px rgba(0, 240, 255, 0.8), inset 0 0 15px rgba(0, 240, 255, 0.4);
        transition: width 0.1s, height 0.1s;
        will-change: transform;
        backdrop-filter: blur(2px);
    }
}