/* ========================================
   ULTRA MODERN PORTFOLIO - VISUAL IMPACT
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Syne:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #6366f1;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    --bg-dark: #030014;
    --bg-card: rgba(15, 10, 40, 0.7);
    --text-primary: #ffffff;
    --text-muted: #a5b4fc;
    --glow-primary: 0 0 60px rgba(99, 102, 241, 0.5);
    --glow-accent: 0 0 40px rgba(6, 182, 212, 0.4);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
    background: var(--bg-dark);
    color: var(--text-primary);
    cursor: none !important;
    min-height: 100vh;
}

/* Animated Background Gradient */
.bg-gradient-animated {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    z-index: -2;
    animation: gradientMove 15s ease-in-out infinite;
}

@keyframes gradientMove {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(3deg); }
}

/* Mouse Follow Gradient */
.mouse-gradient {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
}

body * {
    cursor: none !important;
}

a, button, input, textarea {
    cursor: none !important;
}

/* Custom Cursor */

.custom-cursor {
    width: 30px;
    height: 30px;
    border: 3px solid #a78bfa;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: radial-gradient(circle, rgba(139, 92, 246, 0.6) 0%, rgba(167, 139, 250, 0.3) 50%, transparent 70%);
    box-shadow:
        0 0 25px rgba(139, 92, 246, 1),
        0 0 50px rgba(139, 92, 246, 0.8),
        0 0 75px rgba(139, 92, 246, 0.6),
        inset 0 0 25px rgba(167, 139, 250, 0.7);
    animation: cursor-pulse 2s ease-in-out infinite;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.custom-cursor::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 255, 255, 1);
}

.custom-cursor.cursor-hover {
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, rgba(167, 139, 250, 0.15) 50%, transparent 70%);
    border-color: #c4b5fd;
    box-shadow:
        0 0 30px rgba(139, 92, 246, 1),
        0 0 60px rgba(139, 92, 246, 0.8),
        0 0 90px rgba(139, 92, 246, 0.6),
        inset 0 0 30px rgba(167, 139, 250, 0.6);
}

@keyframes cursor-pulse {
    0%, 100% {
        box-shadow:
            0 0 25px rgba(139, 92, 246, 1),
            0 0 50px rgba(139, 92, 246, 0.8),
            0 0 75px rgba(139, 92, 246, 0.6),
            inset 0 0 25px rgba(167, 139, 250, 0.7);
        border-color: #a78bfa;
    }
    50% {
        box-shadow:
            0 0 35px rgba(139, 92, 246, 1),
            0 0 70px rgba(139, 92, 246, 1),
            0 0 105px rgba(139, 92, 246, 0.8),
            inset 0 0 35px rgba(167, 139, 250, 0.9);
        border-color: #c4b5fd;
    }
}

/* Three.js Canvas Background */
#three-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: transparent;
}

/* Noise Texture Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    z-index: 1;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Grid Background */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

/* Content wrapper */
.content-wrapper {
    position: relative;
    z-index: 1;
}

/* Glass morphism effect */
.glass {
    background: rgba(15, 15, 35, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
}

.glass-light {
    background: rgba(139, 92, 246, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

/* Gradient text - ULTRA VERSION */
.gradient-text {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 25%, #06b6d4 50%, #8b5cf6 75%, #6366f1 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Split Text Effect */
.split-text {
    display: inline-block;
    overflow: hidden;
}

.split-text .char {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s;
}

.split-text.revealed .char {
    transform: translateY(0);
    opacity: 1;
}

/* Magnetic Button Effect */
.magnetic-btn {
    position: relative;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.magnetic-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.magnetic-btn:hover::before {
    opacity: 1;
}

/* Spotlight Effect on Cards */
.spotlight-card {
    position: relative;
    overflow: hidden;
}

.spotlight-card::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

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

/* Neon glow effect */
.neon-glow {
    text-shadow:
        0 0 10px rgba(139, 92, 246, 0.8),
        0 0 20px rgba(139, 92, 246, 0.6),
        0 0 30px rgba(139, 92, 246, 0.4);
}

.neon-border {
    box-shadow:
        0 0 20px rgba(139, 92, 246, 0.5),
        inset 0 0 20px rgba(139, 92, 246, 0.1);
}

/* Cyber cards - PREMIUM GLASS EFFECT */
.cyber-card {
    position: relative;
    background: linear-gradient(135deg, rgba(15, 10, 40, 0.9) 0%, rgba(30, 20, 60, 0.8) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 24px;
    padding: 2rem;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Animated border gradient */
.cyber-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.5), rgba(6, 182, 212, 0.5), rgba(139, 92, 246, 0.5));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s;
}

/* Shine sweep effect */
.cyber-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: skewX(-20deg);
    transition: left 0.8s;
}

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

.cyber-card:hover::after {
    left: 150%;
}

.cyber-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: transparent;
    box-shadow:
        0 25px 50px -12px rgba(99, 102, 241, 0.4),
        0 0 80px rgba(99, 102, 241, 0.15),
        inset 0 0 60px rgba(99, 102, 241, 0.05);
}

/* Card 3D tilt on hover */
.cyber-card.tilt-effect {
    transform-style: preserve-3d;
}

/* Blinking cursor */
.blinking-cursor {
    animation: blink 1s step-end infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Glitch text effect */
.glitch {
    position: relative;
    animation: glitch-skew 1s infinite linear alternate-reverse;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #4da6ff;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-1 2s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00d4ff;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-2 2s infinite linear alternate-reverse;
}

@keyframes glitch-1 {
    0% { clip: rect(132px, 9999px, 101px, 0); }
    25% { clip: rect(17px, 9999px, 94px, 0); }
    50% { clip: rect(121px, 9999px, 36px, 0); }
    75% { clip: rect(75px, 9999px, 78px, 0); }
    100% { clip: rect(26px, 9999px, 147px, 0); }
}

@keyframes glitch-2 {
    0% { clip: rect(129px, 9999px, 36px, 0); }
    25% { clip: rect(17px, 9999px, 98px, 0); }
    50% { clip: rect(85px, 9999px, 115px, 0); }
    75% { clip: rect(48px, 9999px, 62px, 0); }
    100% { clip: rect(103px, 9999px, 74px, 0); }
}

@keyframes glitch-skew {
    0% { transform: skew(0deg); }
    10% { transform: skew(-2deg); }
    20% { transform: skew(2deg); }
    30% { transform: skew(0deg); }
    100% { transform: skew(0deg); }
}

/* Scroll indicator - ULTRA */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(99, 102, 241, 0.1);
    z-index: 100;
    overflow: hidden;
}

.scroll-progress {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #06b6d4, #8b5cf6, #6366f1);
    background-size: 300% 100%;
    animation: scrollGradient 3s linear infinite;
    width: 0%;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.8), 0 0 40px rgba(6, 182, 212, 0.4);
}

@keyframes scrollGradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

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

::-webkit-scrollbar-track {
    background: rgba(15, 15, 35, 0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #667eea, #764ba2);
    border-radius: 10px;
}

/* Navbar - GLASS ULTRA */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(3, 0, 20, 0.6);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.navbar.scrolled {
    background: rgba(3, 0, 20, 0.9);
    backdrop-filter: blur(30px);
    box-shadow: 
        0 4px 30px rgba(99, 102, 241, 0.15),
        0 1px 0 rgba(99, 102, 241, 0.2);
}

.nav-link {
    position: relative;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #06b6d4);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.nav-link:hover {
    color: #06b6d4;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link-mobile {
    font-weight: 500;
    transition: all 0.3s;
}

.nav-link-mobile:hover {
    padding-left: 1rem;
    color: #06b6d4;
}

/* AI Chatbot styles */
.ai-pulse {
    animation: ai-pulse 2s ease-in-out infinite;
    position: relative;
}

.ai-pulse::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #667eea);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: rotate-border 3s linear infinite;
}

@keyframes ai-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7),
                    0 0 30px rgba(139, 92, 246, 0.4);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(139, 92, 246, 0),
                    0 0 40px rgba(139, 92, 246, 0.6);
    }
}

@keyframes rotate-border {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.chat-bubble-ai {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 18px 18px 18px 4px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    animation: slideIn 0.3s ease-out;
}

.chat-bubble-user {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 18px 18px 4px 18px;
    box-shadow: 0 4px 12px rgba(240, 147, 251, 0.3);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.typing-animation {
    display: inline-block;
    animation: typing-dots 1.4s infinite;
    color: rgba(255, 255, 255, 0.8);
}

@keyframes typing-dots {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-5px); }
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(139, 92, 246, 0.1);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #667eea, #764ba2);
    border-radius: 10px;
}

/* Tech stack grid - FLOATING EFFECT */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 1rem;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.05) 100%);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 20px;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
}

.tech-item:nth-child(2) { animation-delay: -1s; }
.tech-item:nth-child(3) { animation-delay: -2s; }
.tech-item:nth-child(4) { animation-delay: -3s; }
.tech-item:nth-child(5) { animation-delay: -4s; }
.tech-item:nth-child(6) { animation-delay: -5s; }
.tech-item:nth-child(7) { animation-delay: -0.5s; }
.tech-item:nth-child(8) { animation-delay: -1.5s; }

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

.tech-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.3) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tech-item:hover::before {
    opacity: 1;
}

.tech-item:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(6, 182, 212, 0.15) 100%);
    transform: translateY(-12px) scale(1.08);
    box-shadow: 
        0 20px 40px rgba(99, 102, 241, 0.3),
        0 0 30px rgba(99, 102, 241, 0.2),
        inset 0 0 20px rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.4);
    animation: none;
}

.tech-item img {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.3));
}

.tech-item:hover img {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.6));
}

/* Project tags - GLOW EFFECT */
.tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(6, 182, 212, 0.08) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    color: #a5b4fc;
}

.tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.tag:hover::before {
    left: 100%;
}

.tag:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(6, 182, 212, 0.2) 100%);
    border-color: rgba(6, 182, 212, 0.5);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 20px rgba(99, 102, 241, 0.3),
        0 0 20px rgba(6, 182, 212, 0.2);
    color: #06b6d4;
}

/* Profile Photo - ULTRA PREMIUM */
.profile-photo {
    border-radius: 50%;
    width: 220px;
    height: 220px;
    object-fit: cover;
    border: 3px solid transparent;
    background: linear-gradient(var(--bg-dark), var(--bg-dark)) padding-box,
                conic-gradient(from 0deg, #6366f1, #06b6d4, #8b5cf6, #ec4899, #6366f1) border-box;
    box-shadow: 
        0 0 60px rgba(99, 102, 241, 0.4),
        0 0 100px rgba(6, 182, 212, 0.2),
        inset 0 0 30px rgba(99, 102, 241, 0.1);
    animation: profile-rotate 8s linear infinite, profile-pulse 4s ease-in-out infinite;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.profile-photo::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0%, rgba(99, 102, 241, 0.3) 25%, transparent 50%, rgba(6, 182, 212, 0.3) 75%, transparent 100%);
    animation: profile-rotate 6s linear infinite reverse;
    z-index: -1;
}

.profile-photo:hover {
    transform: scale(1.08);
    box-shadow: 
        0 0 80px rgba(99, 102, 241, 0.6),
        0 0 120px rgba(6, 182, 212, 0.4),
        inset 0 0 40px rgba(99, 102, 241, 0.2);
}

@keyframes profile-rotate {
    from { --angle: 0deg; }
    to { --angle: 360deg; }
}

@keyframes profile-pulse {
    0%, 100% {
        box-shadow: 
            0 0 60px rgba(99, 102, 241, 0.4),
            0 0 100px rgba(6, 182, 212, 0.2);
    }
    50% {
        box-shadow: 
            0 0 80px rgba(99, 102, 241, 0.6),
            0 0 140px rgba(6, 182, 212, 0.4);
    }
}

/* Section reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
}

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

/* 3D Card Effect */
.card-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card-3d-inner {
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.card-3d:hover .card-3d-inner {
    transform: rotateY(10deg) rotateX(10deg);
}

/* Parallax layers */
.parallax-layer {
    will-change: transform;
}

/* Magnetic button effect */
.magnetic-btn {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive */
@media (max-width: 1024px) {
    .cyber-card {
        padding: 1.75rem;
    }
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    .custom-cursor {
        display: none;
    }

    .cyber-card {
        padding: 1.5rem;
    }

    .cyber-card:hover {
        transform: translateY(-4px);
    }

    #aiChatWidget {
        width: calc(100vw - 2rem);
        right: 1rem;
        left: 1rem;
        height: 450px;
    }

    #aiChatButton {
        bottom: 1rem;
        right: 1rem;
    }

    .profile-photo {
        width: 150px;
        height: 150px;
    }

    .tech-item {
        padding: 0.75rem;
    }

    .tech-item:hover {
        transform: translateY(-4px) scale(1.02);
    }

    h1 {
        font-size: 2.5rem !important;
    }

    h2 {
        font-size: 2rem !important;
    }

    h3 {
        font-size: 1.25rem !important;
    }
}

@media (max-width: 480px) {
    .profile-photo {
        width: 120px;
        height: 120px;
    }

    .cyber-card {
        padding: 1.25rem;
    }

    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }

    .tech-item {
        padding: 0.5rem;
    }

    .tag {
        font-size: 0.7rem;
        padding: 0.25rem 0.65rem;
    }
}

/* Smooth reveal for text */
.text-reveal {
    overflow: hidden;
}

.text-reveal-inner {
    display: inline-block;
}

/* Floating animations */
.floating-slow {
    animation: float-slow 6s ease-in-out infinite;
}

.floating-fast {
    animation: float-fast 4s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes float-fast {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-5deg); }
}

/* Stagger animations */
.stagger-item {
    opacity: 0;
    transform: translateY(30px);
}

/* Contact icons */
.contact-icon {
    position: relative;
    overflow: hidden;
}

.contact-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.contact-icon:hover::before {
    width: 100%;
    height: 100%;
}

.contact-icon:hover {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.6),
                0 0 60px rgba(139, 92, 246, 0.3);
}

/* Smooth transitions for all links */
a {
    transition: all 0.3s ease;
}

/* Experience cards */
.experience-card {
    position: relative;
}

.experience-card::after {
    content: '';
    position: absolute;
    left: 2rem;
    bottom: -2rem;
    width: 2px;
    height: 2rem;
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.5), transparent);
}

.experience-card:last-child::after {
    display: none;
}

.icon-pulse {
    animation: icon-pulse 3s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

@keyframes icon-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(139, 92, 246, 0.7);
    }
}

/* ==========================================
   ULTRA VISUAL ADDITIONS
   ========================================== */

/* Hero Section Title - MASSIVE IMPACT */
.hero-mega-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(3.5rem, 12vw, 9rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.hero-mega-subtitle {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 1.5rem;
}

/* Section Titles - Editorial Style */
.section-title-ultra {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

.section-title-ultra::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

/* Animated Counter */
.stat-number {
    font-family: 'Syne', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Marquee/Ticker Effect */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    padding: 2rem 0;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.05), transparent);
}

.marquee-content {
    display: inline-flex;
    animation: marquee 30s linear infinite;
    gap: 4rem;
}

.marquee-item {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(99, 102, 241, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Glowing Orbs Background */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
    z-index: -1;
}

.glow-orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(99, 102, 241, 0.3);
    top: -100px;
    right: -100px;
    animation: orb-float 20s ease-in-out infinite;
}

.glow-orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(6, 182, 212, 0.25);
    bottom: -100px;
    left: -100px;
    animation: orb-float 25s ease-in-out infinite reverse;
}

.glow-orb-3 {
    width: 300px;
    height: 300px;
    background: rgba(139, 92, 246, 0.2);
    top: 50%;
    left: 50%;
    animation: orb-float 15s ease-in-out infinite;
}

@keyframes orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -50px) scale(1.1); }
    50% { transform: translate(-30px, 30px) scale(0.9); }
    75% { transform: translate(20px, 50px) scale(1.05); }
}

/* Text Stroke Effect */
.text-stroke {
    -webkit-text-stroke: 2px var(--primary);
    -webkit-text-fill-color: transparent;
    transition: all 0.3s;
}

.text-stroke:hover {
    -webkit-text-fill-color: var(--primary);
}

/* Horizontal Scroll Section */
.horizontal-scroll-section {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 2rem 0;
}

.horizontal-scroll-section::-webkit-scrollbar {
    height: 8px;
}

.horizontal-scroll-section::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 4px;
}

.horizontal-card {
    flex-shrink: 0;
    width: 350px;
    scroll-snap-align: start;
}

/* Button with Arrow Animation */
.btn-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    position: relative;
}

.btn-arrow::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    opacity: 0;
    transition: opacity 0.4s;
}

.btn-arrow:hover::before {
    opacity: 1;
}

.btn-arrow span {
    position: relative;
    z-index: 1;
}

.btn-arrow i {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
}

.btn-arrow:hover i {
    transform: translateX(6px);
}

.btn-arrow:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.4);
}

/* Bento Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1.5rem;
}

.bento-item {
    border-radius: 24px;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bento-item:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-wide {
    grid-column: span 2;
}

.bento-tall {
    grid-row: span 2;
}

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-large, .bento-wide, .bento-tall {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 640px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
}

/* Status Badge - Available for Work */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    color: #22c55e;
}

.status-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Reveal on Scroll Classes */
.reveal-up {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* ========================================
   TYPING EFFECT STYLES
   ======================================== */

.typing-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-family: 'Fira Code', 'Space Grotesk', monospace;
    font-size: 1.1rem;
    color: var(--secondary);
    min-height: 30px;
}

.typing-text {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.typing-cursor {
    color: var(--accent);
    animation: cursor-blink 1s step-end infinite;
    font-weight: 100;
}

@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Location Badge */
.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.location-badge .flag-emoji {
    font-size: 1.2rem;
}

/* ========================================
   SRE PROJECT CARDS
   ======================================== */

.sre-project-card {
    position: relative;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sre-project-card:hover {
    transform: translateY(-8px);
}

.sre-project-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* SRE Tags with specific colors */
.tag-sre {
    font-size: 0.7rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-kubernetes {
    background: rgba(50, 108, 229, 0.2);
    color: #326CE5;
    border: 1px solid rgba(50, 108, 229, 0.4);
}

.tag-grafana {
    background: rgba(248, 104, 0, 0.2);
    color: #F86800;
    border: 1px solid rgba(248, 104, 0, 0.4);
}

.tag-prometheus {
    background: rgba(230, 82, 44, 0.2);
    color: #E6522C;
    border: 1px solid rgba(230, 82, 44, 0.4);
}

.tag-bigpanda {
    background: rgba(124, 58, 237, 0.2);
    color: #A78BFA;
    border: 1px solid rgba(124, 58, 237, 0.4);
}

.tag-datadog {
    background: rgba(99, 44, 166, 0.2);
    color: #9D6FD1;
    border: 1px solid rgba(99, 44, 166, 0.4);
}

.tag-splunk {
    background: rgba(100, 100, 100, 0.2);
    color: #AAAAAA;
    border: 1px solid rgba(100, 100, 100, 0.4);
}

.tag-loki {
    background: rgba(248, 104, 0, 0.15);
    color: #F8A800;
    border: 1px solid rgba(248, 168, 0, 0.4);
}

.tag-aws {
    background: rgba(255, 153, 0, 0.2);
    color: #FF9900;
    border: 1px solid rgba(255, 153, 0, 0.4);
}

.tag-terraform {
    background: rgba(123, 66, 188, 0.2);
    color: #A78BFA;
    border: 1px solid rgba(123, 66, 188, 0.4);
}

/* ========================================
   STATS DASHBOARD
   ======================================== */

.stats-dashboard {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-family: 'Syne', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 0.25rem;
}

.stat-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* ========================================
   CERTIFICATIONS SECTION
   ======================================== */

.certifications-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.cert-category {
    margin-bottom: 2rem;
}

.cert-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.cert-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cert-icon {
    font-size: 1.2rem;
}

.cert-logo {
    width: 24px;
    height: 24px;
}

/* AWS */
.cert-aws {
    background: linear-gradient(135deg, rgba(255, 153, 0, 0.15), rgba(255, 153, 0, 0.05));
    border: 1px solid rgba(255, 153, 0, 0.4);
    color: #FF9900;
}

/* Azure */
.cert-azure {
    background: linear-gradient(135deg, rgba(0, 120, 212, 0.15), rgba(0, 120, 212, 0.05));
    border: 1px solid rgba(0, 120, 212, 0.4);
    color: #5DADE2;
}

/* DevOps */
.cert-devops {
    background: linear-gradient(135deg, rgba(0, 200, 150, 0.15), rgba(0, 200, 150, 0.05));
    border: 1px solid rgba(0, 200, 150, 0.4);
    color: #00C896;
}

/* OpenTofu */
.cert-opentofu {
    background: linear-gradient(135deg, rgba(61, 101, 196, 0.15), rgba(61, 101, 196, 0.05));
    border: 1px solid rgba(61, 101, 196, 0.4);
    color: #7C9DFA;
}

/* Datadog */
.cert-datadog {
    background: linear-gradient(135deg, rgba(99, 44, 166, 0.15), rgba(99, 44, 166, 0.05));
    border: 1px solid rgba(99, 44, 166, 0.4);
    color: #9D6FD1;
}

/* Linux Foundation */
.cert-linux {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
}

/* Platform Engineering */
.cert-platform {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(236, 72, 153, 0.05));
    border: 1px solid rgba(236, 72, 153, 0.4);
    color: #F472B6;
}

/* Kubernetes */
.cert-k8s {
    background: linear-gradient(135deg, rgba(50, 108, 229, 0.15), rgba(50, 108, 229, 0.05));
    border: 1px solid rgba(50, 108, 229, 0.4);
    color: #326CE5;
}

/* Google */
.cert-google {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.15), rgba(66, 133, 244, 0.05));
    border: 1px solid rgba(66, 133, 244, 0.4);
    color: #4285F4;
}

/* Anthropic */
.cert-anthropic {
    background: linear-gradient(135deg, rgba(204, 122, 83, 0.15), rgba(204, 122, 83, 0.05));
    border: 1px solid rgba(204, 122, 83, 0.4);
    color: #D4967A;
}

/* IBM */
.cert-ibm {
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.15), rgba(30, 144, 255, 0.05));
    border: 1px solid rgba(30, 144, 255, 0.4);
    color: #1E90FF;
}

/* Duoc */
.cert-duoc {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 193, 7, 0.05));
    border: 1px solid rgba(255, 193, 7, 0.4);
    color: #FFC107;
}

/* Education Card */
.education-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--bg-card);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    max-width: 500px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.education-icon {
    font-size: 2.5rem;
}

.education-content {
    text-align: left;
}

/* ========================================
   EXPERIENCE SECTION ENHANCEMENTS
   ======================================== */

/* Current Job Badge */
.current-job {
    position: relative;
    border-color: rgba(34, 197, 94, 0.4) !important;
}

.current-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #22c55e, #10b981);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

/* Highlighted Tag */
.tag-highlight {
    background: rgba(34, 197, 94, 0.2) !important;
    border-color: rgba(34, 197, 94, 0.5) !important;
    color: #4ade80 !important;
}

/* Sub-projects within experience */
.sub-projects {
    border-left: 2px solid rgba(139, 92, 246, 0.3);
    padding-left: 1rem;
    margin-left: 0.5rem;
}

.sub-project-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sub-project-item:last-child {
    border-bottom: none;
}

.sub-project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sub-project-client {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}

.sub-project-date {
    color: var(--text-muted);
    font-size: 0.75rem;
    background: rgba(139, 92, 246, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

/* Stats Plus Sign */
.stat-plus {
    font-size: 1.5rem;
    vertical-align: super;
}

/* ========================================
   MOBILE RESPONSIVE FOR NEW ELEMENTS
   ======================================== */

@media (max-width: 768px) {
    .typing-container {
        font-size: 0.9rem;
        padding: 0 1rem;
    }
    
    .location-badge {
        font-size: 0.8rem;
        padding: 6px 16px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    .stats-dashboard {
        padding: 1.5rem;
    }
    
    .sre-project-card {
        padding: 1.5rem;
    }
    
    .sre-project-icon {
        font-size: 2.5rem;
    }
    
    .certifications-grid {
        gap: 0.75rem;
    }
    
    .cert-badge {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
    
    .education-card {
        padding: 1rem 1.5rem;
        gap: 1rem;
    }
    
    .education-icon {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .typing-container {
        font-size: 0.8rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .stat-desc {
        font-size: 0.7rem;
    }
    
    .tag-sre {
        font-size: 0.6rem;
        padding: 3px 8px;
    }
    
    .cert-badge {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
    
    .cert-icon {
        font-size: 0.9rem;
    }
}

