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

:root {
    --primary: #00f7ff;
    --primary-dark: #00c8cc;
    --secondary: #6e00ff;
    --secondary-light: #9d4eff;
    --dark: #0a0a0a;
    --dark-light: #1a1a2e;
    --light: #f0f0f0;
    --text-gray: #b0b0b0;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient-1: linear-gradient(135deg, #00f7ff, #6e00ff);
    --gradient-2: linear-gradient(135deg, #6e00ff, #00f7ff);
    --shadow-primary: 0 8px 32px rgba(0, 247, 255, 0.2);
    --shadow-secondary: 0 8px 32px rgba(110, 0, 255, 0.2);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --font-primary: 'Poppins', sans-serif;
    --font-heading: 'Rajdhani', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: linear-gradient(135deg, var(--dark), var(--dark-light));
    color: var(--light);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Performance: CSS-only pattern instead of external texture */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(var(--glass-border) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

/* Accessibility: Focus visible styles */
:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

/* Custom Scrollbar */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark), var(--dark-light));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    font-size: 60px;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 247, 255, 0.1);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
    box-shadow: 0 0 30px rgba(0, 247, 255, 0.3);
}

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

.preloader-text {
    color: var(--text-gray);
    font-size: 14px;
    margin-top: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ==================== SCROLL PROGRESS BAR ==================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--gradient-1);
    z-index: 1001;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(0, 247, 255, 0.5);
}

/* ==================== BACK TO TOP BUTTON ==================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0, 247, 255, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top i {
    font-size: 24px;
    color: var(--dark);
    transition: var(--transition);
}

.back-to-top:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 247, 255, 0.6);
}

.back-to-top:hover i {
    transform: translateY(-3px);
}

.back-to-top::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: var(--gradient-1);
    opacity: 0;
    z-index: -1;
    animation: ripple 2s infinite;
}

@keyframes ripple {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ==================== WAVE DIVIDER ==================== */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.wave-divider .wave-path {
    fill: var(--dark-light);
    filter: drop-shadow(0 0 20px rgba(0, 247, 255, 0.3));
}

.wave-divider-top {
    top: 0;
    bottom: auto;
    transform: rotate(180deg);
}

/* Animated Background Gradient */
body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 247, 255, 0.03) 0%, transparent 70%);
    animation: bgRotate 30s linear infinite;
    z-index: -1;
    pointer-events: none;
}

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

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

::-webkit-scrollbar-track {
    background: var(--dark);
    border-left: 1px solid rgba(0, 247, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-1);
    border-radius: 10px;
    border: 2px solid var(--dark);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-2);
}

/* Glassmorphism Effect */
.glass {
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.glass:hover {
    border-color: rgba(0, 247, 255, 0.3);
    box-shadow: var(--shadow-primary);
}

/* ==================== HEADER ==================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
    background: rgba(10, 10, 10, 0.3);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    padding: 15px 10%;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(0, 247, 255, 0.2);
}

.logo {
    font-size: 28px;
    color: var(--light);
    text-decoration: none;
    font-weight: 700;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-1);
    transition: var(--transition);
    border-radius: 2px;
}

.logo:hover::before {
    width: 100%;
}

.logo i {
    color: var(--primary);
    font-size: 32px;
}

.navbar a {
    color: var(--light);
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    margin-left: 25px;
    position: relative;
    transition: var(--transition);
    padding: 8px 16px;
    border-radius: 8px;
}

.navbar a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient-1);
    transition: var(--transition);
    border-radius: 2px;
}

.navbar a:hover {
    color: var(--primary);
    background: rgba(0, 247, 255, 0.05);
}

.navbar a:hover::before {
    width: 80%;
}

.navbar a.active {
    color: var(--primary);
    background: rgba(0, 247, 255, 0.1);
}

.navbar a.active::before {
    width: 80%;
}

/* Hamburger Menu */
.menu-btn {
    display: none;
    cursor: pointer;
    font-size: 28px;
    color: var(--primary);
    transition: var(--transition);
    z-index: 1001;
}

.menu-btn:hover {
    color: var(--light);
    transform: scale(1.1);
}

/* ==================== HERO SECTION ==================== */
/* Video Background */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    /* Fallback background while video loads */
    background: linear-gradient(
        135deg,
        #0a0a1e 0%,
        #141432 50%,
        #0a0a1e 100%
    );
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.8;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 30, 0.6) 0%,
        rgba(20, 20, 50, 0.5) 50%,
        rgba(10, 10, 30, 0.6) 100%
    );
    z-index: 1;
}

/* Twinkling Stars Effect */
.video-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 30% 80%, white, transparent),
        radial-gradient(1px 1px at 90% 60%, white, transparent),
        radial-gradient(2px 2px at 10% 40%, white, transparent),
        radial-gradient(1px 1px at 40% 20%, white, transparent),
        radial-gradient(2px 2px at 70% 30%, white, transparent),
        radial-gradient(1px 1px at 20% 60%, white, transparent);
    background-size: 200% 200%;
    animation: twinkle 3s ease-in-out infinite;
    opacity: 0.4;
    pointer-events: none;
    z-index: 2;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    padding: 150px 10% 80px;
    position: relative;
    overflow: hidden;
}

/* Hero Visual - Code Editor (Right Side) */
.hero-visual {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    width: 42%;
    height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    z-index: 15;
    pointer-events: none;
}

.hero-visual > * {
    pointer-events: auto;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 247, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    animation: heroGlow 8s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(110, 0, 255, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    animation: heroGlow 8s ease-in-out infinite reverse;
    z-index: 2;
    pointer-events: none;
}

@keyframes heroGlow {
    0%, 100% { 
        transform: scale(1) translate(0, 0);
        opacity: 0.5;
    }
    50% { 
        transform: scale(1.2) translate(20px, -20px);
        opacity: 0.8;
    }
}

.hero-content {
    max-width: 650px;
    z-index: 20;
    animation: fadeInUp 1s ease;
    position: relative;
}

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

.hero-content h1 {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
    color: var(--light);
    text-shadow: 0 0 30px rgba(0, 247, 255, 0.5);
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
}

.hero-content h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
    animation: expandLine 2s ease-in-out infinite;
}

@keyframes expandLine {
    0%, 100% { width: 100px; }
    50% { width: 200px; }
}

.hero-content h1 span {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    animation: textGlow 3s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 5px rgba(0, 247, 255, 0.5));
    }
    50% { 
        filter: drop-shadow(0 0 20px rgba(0, 247, 255, 0.8));
    }
}

.hero-content .typing-text {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 247, 255, 0.05);
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid rgba(0, 247, 255, 0.2);
    display: inline-flex;
}

.hero-content .typing-text::before {
    content: '▍';
    animation: blink 1s infinite;
    color: var(--primary);
}

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

/* Ensure background particles don't affect grid layout */
.particles, #particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-content p {
    font-size: 17px;
    margin-bottom: 35px;
    line-height: 1.8;
    color: var(--text-gray);
    max-width: 600px;
    position: relative;
    padding-left: 20px;
    border-left: 3px solid rgba(0, 247, 255, 0.3);
}

.btn-box {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn {
    padding: 16px 40px;
    background: var(--gradient-1);
    color: var(--dark);
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 0 25px rgba(0, 247, 255, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: var(--transition);
}

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

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    padding: 2px;
    background: var(--gradient-1);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: var(--transition);
}

.btn:hover::after {
    opacity: 1;
}

.btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 40px rgba(0, 247, 255, 0.6), 0 0 20px rgba(0, 247, 255, 0.4);
}

.btn i {
    font-size: 18px;
    transition: var(--transition);
}

.btn:hover i {
    transform: scale(1.2) rotate(10deg);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: 0 0 15px rgba(0, 247, 255, 0.2);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--dark);
    box-shadow: 0 0 30px rgba(0, 247, 255, 0.5), 0 10px 40px rgba(0, 247, 255, 0.3);
}

/* ==================== ABOUT SECTION - REDESIGNED ==================== */
.about {
    padding: 120px 10%;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 247, 255, 0.04) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.about::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(110, 0, 255, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    animation: aboutGlow 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes aboutGlow {
    0%, 100% { 
        transform: scale(1) translate(0, 0);
        opacity: 0.5;
    }
    50% { 
        transform: scale(1.2) translate(-20px, 20px);
        opacity: 0.8;
    }
}

.about-container {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
}

/* Left Side - Image */
.about-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.about-image-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
}

.about-image-glow {
    position: absolute;
    inset: -20px;
    background: conic-gradient(from 0deg, var(--primary), var(--secondary), var(--primary));
    border-radius: 50%;
    animation: rotate 4s linear infinite;
    filter: blur(25px);
    opacity: 0.5;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.about-image {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(0, 247, 255, 0.3);
    z-index: 1;
    transition: var(--transition);
}

.about-image:hover {
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 0 60px rgba(0, 247, 255, 0.4);
}

.about-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--gradient-1);
    padding: 8px 20px;
    border-radius: 50px;
    z-index: 2;
    box-shadow: 0 5px 20px rgba(0, 247, 255, 0.4);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.badge-text {
    color: var(--dark);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Info Cards */
.about-info-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(10, 10, 10, 0.6);
    border-radius: 16px;
    border: 1px solid rgba(0, 247, 255, 0.1);
    transition: var(--transition);
}

.info-card:hover {
    border-color: var(--primary);
    background: rgba(10, 10, 10, 0.8);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 247, 255, 0.15);
}

.info-card i {
    font-size: 28px;
    color: var(--primary);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 247, 255, 0.1);
    border-radius: 50%;
}

.info-card h4 {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 4px;
    font-weight: 500;
}

.info-card p {
    font-size: 15px;
    color: var(--light);
    font-weight: 600;
}

/* Action Buttons */
.about-actions {
    display: flex;
    gap: 15px;
    width: 100%;
}

.about-actions .btn {
    flex: 1;
    justify-content: center;
}

/* Right Side - Content */
.about-right {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-header {
    margin-bottom: 10px;
}

.about-subtitle {
    display: inline-block;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    padding: 6px 16px;
    background: rgba(0, 247, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(0, 247, 255, 0.2);
}

.about-header h2 {
    font-size: 48px;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 0;
}

.about-header h2 span {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-description {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-description p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
}

.about-description strong {
    color: var(--light);
    font-weight: 600;
}

.about-description .highlight {
    color: var(--primary);
    font-weight: 600;
    padding: 2px 8px;
    background: rgba(0, 247, 255, 0.05);
    border-radius: 6px;
}

.intro-text {
    font-size: 18px;
    padding-left: 20px;
    border-left: 3px solid var(--primary);
}

/* Tech Stack */
.tech-stack {
    padding: 25px;
    background: rgba(10, 10, 10, 0.5);
    border-radius: 20px;
    border: 1px solid rgba(0, 247, 255, 0.1);
}

.stack-title {
    font-size: 18px;
    color: var(--light);
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stack-title::before {
    content: '⚡';
    font-size: 20px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    padding: 8px 16px;
    background: rgba(0, 247, 255, 0.05);
    border: 1px solid rgba(0, 247, 255, 0.2);
    border-radius: 20px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.tech-tag:hover {
    background: rgba(0, 247, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 247, 255, 0.2);
}

/* What I Do */
.what-i-do {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    padding: 25px 20px;
    background: rgba(10, 10, 10, 0.5);
    border-radius: 16px;
    border: 1px solid rgba(0, 247, 255, 0.1);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 247, 255, 0.15);
    background: rgba(10, 10, 10, 0.7);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: rgba(0, 247, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: var(--dark);
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 0 30px rgba(0, 247, 255, 0.4);
}

.service-card h4 {
    font-size: 16px;
    color: var(--light);
    margin-bottom: 8px;
    font-weight: 600;
}

.service-card p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.5;
}

/* Personal Info */
.personal-info {
    padding: 25px;
    background: rgba(10, 10, 10, 0.5);
    border-radius: 20px;
    border: 1px solid rgba(0, 247, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-label {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
    min-width: 100px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-label i {
    color: var(--primary);
    font-size: 16px;
}

.info-value {
    font-size: 15px;
    color: var(--light);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.info-value:hover {
    color: var(--primary);
}

/* ==================== SKILLS SECTION ==================== */
.skills {
    padding: 120px 10%;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
}

.skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(0, 247, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.skills h2 {
    font-size: 48px;
    text-align: center;
    margin-bottom: 20px;
    color: var(--light);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.skills h2 span {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skills .section-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 18px;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    position: relative;
    z-index: 1;
}

.skill-card {
    padding: 25px 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 247, 255, 0.1);
    background: rgba(10, 10, 10, 0.5);
    border-radius: 20px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.skill-card:hover::before {
    opacity: 0.05;
}

.skill-card > * {
    position: relative;
    z-index: 1;
}

.skill-card:hover {
    transform: translateY(-15px) scale(1.03);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 247, 255, 0.25);
}

.skill-card img {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(0, 247, 255, 0.3));
    transition: var(--transition);
}

.skill-card:hover img {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 20px rgba(0, 247, 255, 0.5));
}

.skill-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--light);
    font-weight: 600;
}

.skill-card p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-gray);
}

/* ==================== PROJECTS SECTION - PRO REDESIGN ==================== */
.projects {
    padding: 120px 10%;
    position: relative;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 50%, rgba(110, 0, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.projects-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.projects-header h2 {
    font-size: 48px;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 15px;
}

.projects-header h2 span {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.projects-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 60px;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

/* Pro Project Card */
.project-card.pro {
    background: rgba(10, 10, 10, 0.6);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 247, 255, 0.1);
    transition: var(--transition);
    opacity: 1;
    transform: scale(1);
}

.project-card.pro:hover {
    border-color: var(--primary);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 247, 255, 0.15);
    transform: translateY(-10px);
}

/* Image Wrapper */
.project-image-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card.pro:hover .project-img {
    transform: scale(1.15);
}

/* Overlay */
.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.project-card.pro:hover .project-overlay {
    opacity: 1;
}

.overlay-content {
    width: 100%;
}

.preview-btn {
    width: 100%;
    padding: 12px;
    background: var(--gradient-1);
    color: var(--dark);
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.preview-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 247, 255, 0.5);
}

/* Project Badge */
.project-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.project-badge.web {
    background: linear-gradient(135deg, #00f7ff, #00c8cc);
    color: var(--dark);
}

.project-badge.python {
    background: linear-gradient(135deg, #ffd343, #ffaa00);
    color: var(--dark);
}

.project-badge.ai {
    background: linear-gradient(135deg, #6e00ff, #9d4eff);
    color: var(--light);
}

/* Project Content */
.project-content {
    padding: 25px;
}

.project-rating {
    display: flex;
    gap: 5px;
    margin-bottom: 12px;
}

.project-rating i {
    color: #ffd343;
    font-size: 14px;
}

.project-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 12px;
}

.project-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 20px;
}

/* Tech Badges */
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-badge {
    padding: 6px 14px;
    background: rgba(0, 247, 255, 0.08);
    color: var(--primary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(0, 247, 255, 0.2);
    transition: var(--transition);
}

.tech-badge:hover {
    background: rgba(0, 247, 255, 0.15);
    transform: translateY(-2px);
}

/* Project Actions */
.project-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.action-btn.live {
    color: var(--primary);
}

.action-btn.live:hover {
    background: var(--primary);
    color: var(--dark);
    box-shadow: 0 5px 20px rgba(0, 247, 255, 0.4);
}

.action-btn.code {
    color: var(--light);
    border-color: rgba(255, 255, 255, 0.3);
}

.action-btn.code:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    border-color: var(--light);
}

.action-btn.disabled {
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
    cursor: not-allowed;
}

.action-btn.disabled:hover {
    background: transparent;
    box-shadow: none;
}

/* ==================== PROJECT MODAL ==================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    overflow-y: auto;
}

.modal-content {
    background: rgba(10, 10, 10, 0.95);
    margin: 5% auto;
    padding: 0;
    border-radius: 24px;
    max-width: 1000px;
    width: 90%;
    border: 1px solid rgba(0, 247, 255, 0.2);
    position: relative;
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 40px;
    font-weight: bold;
    color: var(--light);
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.modal-close:hover {
    color: var(--primary);
    background: rgba(0, 247, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 0;
}

.modal-project {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.modal-image-wrapper {
    height: 100%;
    min-height: 500px;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    padding: 50px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.modal-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 10px;
}

.modal-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
}

.modal-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.modal-features h4 {
    font-size: 18px;
    color: var(--light);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-features h4 i {
    color: var(--primary);
}

.modal-features ul {
    list-style: none;
    padding-left: 0;
}

.modal-features li {
    font-size: 15px;
    color: var(--text-gray);
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.modal-features li i {
    position: absolute;
    left: 0;
    color: var(--primary);
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.modal-actions .action-btn {
    flex: 1;
    padding: 15px;
    font-size: 15px;
}

/* ==================== AI EXPERTISE SECTION ==================== */
.ai-section {
    padding: 120px 10%;
    background: linear-gradient(135deg, rgba(110, 0, 255, 0.08), rgba(0, 247, 255, 0.05));
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ai-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 247, 255, 0.03) 0%, transparent 60%);
    animation: bgRotate 40s linear infinite;
}

.ai-section::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(110, 0, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    animation: aiGlow 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes aiGlow {
    0%, 100% { 
        transform: scale(1) translate(0, 0);
        opacity: 0.5;
    }
    50% { 
        transform: scale(1.2) translate(-20px, 20px);
        opacity: 0.8;
    }
}

.ai-section h2 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--light);
    text-shadow: 0 0 30px rgba(0, 247, 255, 0.5);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.ai-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
    animation: expandLine 3s ease-in-out infinite;
}

.ai-section h2 span {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-intro {
    text-align: center;
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    position: relative;
    z-index: 1;
    padding: 20px;
    background: rgba(0, 247, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(0, 247, 255, 0.1);
}

/* AI Badges */
.ai-badge-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(0, 247, 255, 0.05);
    border: 2px solid rgba(0, 247, 255, 0.3);
    border-radius: 50px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 247, 255, 0.2);
}

.ai-badge i {
    font-size: 18px;
    animation: badgePulse 2s ease-in-out infinite;
}

.ai-badge:hover {
    background: rgba(0, 247, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 247, 255, 0.3);
    border-color: var(--primary);
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.ai-tools-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.ai-tool-card {
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(16px);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.ai-tool-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(0, 247, 255, 0.15), transparent);
    animation: rotate 4s linear infinite;
    opacity: 0;
    transition: var(--transition);
}

.ai-tool-card:hover::before {
    opacity: 1;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ai-tool-card::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: rgba(10, 10, 10, 0.95);
    border-radius: 25px;
    z-index: 0;
}

.ai-tool-card > * {
    position: relative;
    z-index: 1;
}

.ai-tool-card:hover {
    transform: translateY(-20px) scale(1.03);
    border-color: var(--primary);
    box-shadow: 0 30px 60px rgba(0, 247, 255, 0.25), 0 0 40px rgba(0, 247, 255, 0.1);
}

/* AI Icon Wrapper with Glow */
.ai-icon-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ai-icon-bg {
    position: absolute;
    inset: -10px;
    background: var(--gradient-1);
    border-radius: 50%;
    opacity: 0.2;
    filter: blur(15px);
    animation: iconGlow 3s ease-in-out infinite;
}

@keyframes iconGlow {
    0%, 100% { 
        opacity: 0.2;
        transform: scale(1);
    }
    50% { 
        opacity: 0.4;
        transform: scale(1.1);
    }
}

.ai-icon {
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    background: rgba(0, 247, 255, 0.05);
    border-radius: 50%;
    padding: 15px;
    position: relative;
    z-index: 1;
}

.ai-tool-card:hover .ai-icon {
    transform: scale(1.15) rotate(10deg);
    background: rgba(0, 247, 255, 0.15);
    box-shadow: 0 0 40px rgba(0, 247, 255, 0.4);
}

.ai-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 247, 255, 0.3));
}

.ai-tool-card h3 {
    font-size: 26px;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.ai-tool-card p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* AI Card Footer */
.ai-card-footer {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 247, 255, 0.1);
}

.ai-tag {
    background: rgba(110, 0, 255, 0.1);
    color: var(--secondary-light);
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(110, 0, 255, 0.2);
}

.ai-usage {
    background: rgba(0, 247, 255, 0.1);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(0, 247, 255, 0.2);
}

/* AI Stats Container */
.ai-stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.ai-stat-item {
    padding: 30px 25px;
    background: rgba(10, 10, 10, 0.5);
    border-radius: 20px;
    border: 1px solid rgba(0, 247, 255, 0.1);
    transition: var(--transition);
    text-align: center;
}

.ai-stat-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 247, 255, 0.2);
    background: rgba(10, 10, 10, 0.7);
}

.ai-stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: rgba(0, 247, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    color: var(--primary);
    transition: var(--transition);
}

.ai-stat-item:hover .ai-stat-icon {
    background: var(--primary);
    color: var(--dark);
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 0 30px rgba(0, 247, 255, 0.5);
}

.ai-stat-number {
    font-size: 42px;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.ai-stat-label {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==================== CERTIFICATIONS SECTION ==================== */
.certifications {
    padding: 120px 10%;
    text-align: center;
    position: relative;
    background: rgba(0, 0, 0, 0.3);
}

.certifications::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 30%, rgba(0, 247, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.certifications h2 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--light);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.certifications h2 span {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.certifications .section-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 18px;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.certifications-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    position: relative;
    z-index: 1;
}

.certification-card {
    padding: 20px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 247, 255, 0.1);
    background: rgba(10, 10, 10, 0.5);
    border-radius: 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.certification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: var(--transition);
}

.certification-card:hover::before {
    opacity: 0.05;
}

.certification-card > * {
    position: relative;
    z-index: 1;
}

.certification-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 247, 255, 0.2);
}

.certification-card img {
    max-width: 100%;
    height: 160px;
    object-fit: contain;
    margin-bottom: 25px;
    border-radius: 12px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    transition: var(--transition);
    border: 2px solid rgba(0, 247, 255, 0.1);
}

.certification-card:hover img {
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 247, 255, 0.2);
}

.certification-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--light);
    font-weight: 600;
}

.certification-card p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-gray);
}

/* Badge for certifications */
.certification-card::after {
    content: '🏆';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    opacity: 0;
    transition: var(--transition);
}

.certification-card:hover::after {
    opacity: 1;
    transform: rotate(15deg) scale(1.2);
}

/* ==================== CONTACT SECTION ==================== */
.contact {
    padding: 120px 10%;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 70%, rgba(110, 0, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.contact h2 {
    font-size: 48px;
    text-align: center;
    margin-bottom: 20px;
    color: var(--light);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.contact h2 span {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact .section-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 18px;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 60px;
    position: relative;
    z-index: 1;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    border-radius: 16px;
    transition: var(--transition);
    border: 1px solid rgba(0, 247, 255, 0.1);
    background: rgba(10, 10, 10, 0.5);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 0;
    background: var(--gradient-1);
    transition: var(--transition);
}

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

.contact-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 247, 255, 0.15);
    transform: translateX(10px);
}

.contact-card i {
    width: 65px;
    height: 65px;
    background: rgba(0, 247, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
    color: var(--primary);
    transition: var(--transition);
    flex-shrink: 0;
}

.contact-card:hover i {
    background: var(--primary);
    color: var(--dark);
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 0 25px rgba(0, 247, 255, 0.5);
}

.contact-card h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: var(--light);
    font-weight: 600;
}

.contact-card p {
    font-size: 15px;
    color: var(--text-gray);
}

.contact-card a {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
}

.contact-card a:hover {
    color: var(--primary);
}

.contact-form {
    padding: 40px;
    border: 1px solid rgba(0, 247, 255, 0.1);
    background: rgba(10, 10, 10, 0.5);
    border-radius: 24px;
}

.contact-form:hover {
    border-color: rgba(0, 247, 255, 0.3);
}

.input-box {
    position: relative;
    margin-bottom: 35px;
}

.input-box input,
.input-box textarea {
    width: 100%;
    padding: 18px 20px;
    background: rgba(10, 10, 10, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 16px;
    color: var(--light);
    outline: none;
    transition: var(--transition);
}

.input-box input:focus,
.input-box textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 247, 255, 0.2);
    background: rgba(10, 10, 10, 0.8);
}

.input-box label {
    position: absolute;
    top: 18px;
    left: 20px;
    font-size: 16px;
    color: var(--text-gray);
    pointer-events: none;
    transition: var(--transition);
    background: transparent;
    padding: 0 5px;
}

.input-box input:focus ~ label,
.input-box input:valid ~ label,
.input-box textarea:focus ~ label,
.input-box textarea:valid ~ label {
    top: -12px;
    left: 15px;
    font-size: 13px;
    background: var(--dark);
    color: var(--primary);
    padding: 0 10px;
    border-radius: 10px;
}

.input-box textarea {
    resize: vertical;
    min-height: 150px;
    max-height: 250px;
}

.input-box i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 18px;
}

.form-btn {
    width: 100%;
    padding: 18px;
    background: var(--gradient-1);
    color: var(--dark);
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 0 25px rgba(0, 247, 255, 0.3);
}

.form-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 247, 255, 0.5);
}

.form-btn i {
    transition: var(--transition);
}

.form-btn:hover i {
    transform: translateX(5px);
}

/* ==================== HERO VISUAL - CODE EDITOR ==================== */
.code-editor {
    width: 100%;
    max-width: 550px;
    background: rgba(10, 10, 10, 0.95);
    border-radius: 16px;
    border: 1px solid rgba(0, 247, 255, 0.2);
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(0, 247, 255, 0.1),
        inset 0 0 60px rgba(0, 247, 255, 0.02);
    overflow: hidden;
    transform: rotateY(-5deg) rotateX(5deg);
    animation: editorFloat 6s ease-in-out infinite;
    backdrop-filter: blur(20px);
}

@keyframes editorFloat {
    0%, 100% { 
        transform: rotateY(-5deg) rotateX(5deg) translateY(0); 
    }
    50% { 
        transform: rotateY(-3deg) rotateX(3deg) translateY(-20px); 
    }
}

.code-editor:hover {
    transform: rotateY(0deg) rotateX(0deg) translateY(-10px);
    box-shadow: 
        0 35px 100px rgba(0, 0, 0, 0.6),
        0 0 80px rgba(0, 247, 255, 0.2);
    border-color: rgba(0, 247, 255, 0.4);
}

/* Editor Header */
.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(20, 20, 30, 0.8);
    border-bottom: 1px solid rgba(0, 247, 255, 0.1);
}

.editor-buttons {
    display: flex;
    gap: 8px;
}

.editor-buttons span {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    transition: var(--transition);
}

.btn-close {
    background: #ff5f56;
    box-shadow: 0 0 10px rgba(255, 95, 86, 0.5);
}

.btn-minimize {
    background: #ffbd2e;
    box-shadow: 0 0 10px rgba(255, 189, 46, 0.5);
}

.btn-maximize {
    background: #27ca40;
    box-shadow: 0 0 10px rgba(39, 202, 64, 0.5);
}

.editor-buttons span:hover {
    transform: scale(1.2);
    filter: brightness(1.2);
}

.editor-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-gray);
    font-size: 14px;
    font-family: var(--font-primary);
}

.editor-title i {
    color: var(--primary);
}

/* Editor Body */
.editor-body {
    padding: 25px;
    background: rgba(5, 5, 10, 0.9);
    min-height: 320px;
    position: relative;
    overflow: hidden;
}

.editor-body pre {
    margin: 0;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.8;
    color: var(--light);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.editor-body code {
    font-family: inherit;
}

/* Syntax Highlighting */
.syntax-keyword { color: #c678dd; font-weight: 600; }
.syntax-function { color: #61afef; }
.syntax-string { color: #98c379; }
.syntax-comment { color: #5c6370; font-style: italic; }
.syntax-variable { color: #e06c75; }
.syntax-number { color: #d19a66; }
.syntax-operator { color: #56b6c2; }
.syntax-class { color: #e5c07b; }

/* Cursor */
.cursor-blink {
    position: absolute;
    width: 10px;
    height: 20px;
    background: var(--primary);
    animation: cursorBlink 1s step-end infinite;
    box-shadow: 0 0 10px var(--primary);
    display: none;
}

.cursor-blink.active {
    display: inline-block;
}

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

/* Editor Footer */
.editor-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: rgba(20, 20, 30, 0.8);
    border-top: 1px solid rgba(0, 247, 255, 0.1);
    font-size: 12px;
    color: var(--text-gray);
    font-family: var(--font-primary);
}

.editor-status {
    display: flex;
    gap: 15px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.status-item:hover {
    color: var(--primary);
}

.status-item i {
    font-size: 11px;
}

.editor-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-badge {
    background: rgba(0, 247, 255, 0.1);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(0, 247, 255, 0.2);
}

.line-col {
    font-family: 'Fira Code', monospace;
}

/* Floating Code Snippets */
.floating-code {
    position: absolute;
    background: rgba(10, 10, 10, 0.8);
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid rgba(0, 247, 255, 0.2);
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: floatCodeSnippet 3s ease-in-out infinite;
}

.floating-code-1 {
    top: 5%;
    right: 5%;
    animation-delay: 0s;
}

.floating-code-2 {
    bottom: 15%;
    right: -2%;
    animation-delay: 1s;
}

.floating-code-3 {
    top: 25%;
    left: -5%;
    animation-delay: 2s;
}

@keyframes floatCodeSnippet {
    0%, 100% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    50% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.code-tag {
    color: var(--primary);
    font-weight: 600;
}

/* Code Syntax Highlighting */
.code-keyword {
    color: #c678dd;
    font-weight: 600;
}

.code-variable {
    color: #e5c07b;
}

.code-string {
    color: #98c379;
}

.code-property {
    color: #e06c75;
}

.code-function {
    color: #61afef;
}

.code-comment {
    color: #5c6370;
    font-style: italic;
}

.code-number {
    color: #d19a66;
}

/* Glowing Effect on Code */
@keyframes codeGlow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(0, 247, 255, 0.3);
    }
    50% {
        text-shadow: 0 0 15px rgba(0, 247, 255, 0.6);
    }
}

.editor-body pre {
    animation: codeGlow 4s ease-in-out infinite;
}

/* Floating Particles */
.floating-particle {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* ==================== FOOTER ==================== */
footer {
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.8), rgba(0, 0, 0, 1));
    color: var(--light);
    padding: 0 10% 30px;
    text-align: center;
    position: relative;
    border-top: 1px solid rgba(0, 247, 255, 0.1);
}

footer .wave-divider {
    position: relative;
    bottom: auto;
    top: -1px;
    transform: none;
}

footer .wave-divider svg {
    transform: rotate(180deg);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-social {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-social a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: rgba(0, 247, 255, 0.05);
    border: 2px solid rgba(0, 247, 255, 0.3);
    border-radius: 50%;
    font-size: 22px;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.footer-social a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: var(--transition);
}

.footer-social a:hover::before {
    opacity: 1;
}

.footer-social a:hover {
    color: var(--dark);
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 247, 255, 0.4);
    border-color: var(--primary);
}

.footer-social a i {
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    font-size: 15px;
    color: var(--text-gray);
    margin: 5px 0;
}

.footer-credits {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.footer-credits .fa-heart {
    color: #ff4757;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ==================== LIGHTBOX ==================== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 900px;
    max-height: 80vh;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(0, 247, 255, 0.3);
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 40px;
    color: var(--light);
    font-size: 50px;
    font-weight: bold;
    transition: var(--transition);
    cursor: pointer;
    z-index: 2001;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.close-btn:hover {
    color: var(--primary);
    background: rgba(0, 247, 255, 0.2);
    transform: rotate(90deg);
}

/* ==================== VIEW MORE BUTTON ==================== */
.view-more-container {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.view-more-btn {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.view-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: var(--transition);
}

.view-more-btn:hover::before {
    opacity: 0.1;
    left: 0;
}

.view-more-btn:hover {
    background: rgba(0, 247, 255, 0.1);
    color: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 247, 255, 0.3);
}

.view-more-btn i {
    transition: var(--transition);
}

.view-more-btn:hover i {
    transform: translateY(5px);
}

/* ==================== HIDDEN ELEMENTS ==================== */
.hidden-skill,
.hidden-project,
.hidden-certification {
    display: none;
}

.hidden-skill.show,
.hidden-project.show,
.hidden-certification.show {
    display: block;
    animation: fadeInUp 0.5s ease;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1200px) {
    header, .hero, .about, .skills, .projects, .ai-section, .certifications, .contact {
        padding-left: 8%;
        padding-right: 8%;
    }
    
    .hero-content h1 {
        font-size: 52px;
    }
}

@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 46px;
    }

    .about-content h2,
    .skills h2,
    .projects h2,
    .ai-section h2,
    .certifications h2,
    .contact h2 {
        font-size: 40px;
    }

    /* About Section Responsive */
    .about-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-left {
        order: 1;
    }

    .about-right {
        order: 2;
    }

    .about-image-wrapper {
        width: 300px;
        height: 300px;
    }

    .about-info-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .what-i-do {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }

    .navbar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        z-index: 999;
    }

    .navbar.active {
        right: 0;
    }

    .navbar a {
        margin: 15px 0;
        font-size: 24px;
        padding: 15px 30px;
    }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 100px;
        text-align: center;
        justify-content: center;
        gap: 40px;
    }

    .hero::before,
    .hero::after {
        display: none;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 38px;
    }

    .hero-content h1::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .hero-content h3 {
        font-size: 22px;
        justify-content: center;
    }

    .hero-content p {
        font-size: 16px;
        border-left: none;
        border-bottom: 3px solid rgba(0, 247, 255, 0.3);
        padding-left: 0;
        padding-bottom: 15px;
    }

    .btn-box {
        justify-content: center;
    }

    .hero-visual {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        width: 100%;
        height: auto;
        margin-top: 30px;
        perspective: 1000px;
    }

    .code-editor {
        max-width: 100%;
        transform: none !important;
        animation: none;
    }

    .code-editor:hover {
        transform: none !important;
    }

    .floating-code {
        display: none;
    }

    .ai-section::after {
        display: none;
    }

    .ai-section h2 {
        font-size: 36px;
    }

    /* About Section - Tablet/Mobile */
    .about {
        padding: 80px 8%;
    }

    .about-container {
        gap: 40px;
    }

    .about-image-wrapper {
        width: 280px;
        height: 280px;
    }

    .about-info-cards {
        grid-template-columns: 1fr;
    }

    .about-actions {
        flex-direction: column;
    }

    .about-actions .btn {
        width: 100%;
    }

    .what-i-do {
        grid-template-columns: 1fr;
    }

    .tech-tags {
        justify-content: center;
    }

    .about-header h2 {
        font-size: 36px;
    }

    .about-subtitle {
        font-size: 13px;
        padding: 5px 14px;
    }

    .about-description p {
        font-size: 15px;
    }

    .intro-text {
        border-left: none;
        border-bottom: 3px solid var(--primary);
        padding-left: 0;
        padding-bottom: 15px;
    }

    .personal-info {
        padding: 20px;
    }

    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .info-label {
        min-width: auto;
    }

    .ai-badge-container {
        flex-direction: column;
        align-items: center;
    }

    .ai-badge {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .ai-stats-container {
        grid-template-columns: 1fr;
    }

    .ai-stat-number {
        font-size: 36px;
    }

    .about {
        flex-direction: column;
        text-align: center;
    }

    .about::after {
        display: none;
    }

    .about-img, .about-content {
        min-width: 100%;
        max-width: 100%;
    }

    .about-content {
        margin-top: 50px;
        padding: 30px 20px;
    }

    .about-content h2 {
        font-size: 36px;
    }

    .about-content h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .about-content h3 {
        font-size: 20px;
    }

    .about {
        flex-direction: column;
        text-align: center;
    }

    .about-img, .about-content {
        min-width: 100%;
        max-width: 100%;
    }

    .about-content {
        margin-top: 50px;
    }

    .about-content h2,
    .skills h2,
    .projects h2,
    .ai-section h2,
    .certifications h2,
    .contact h2 {
        font-size: 36px;
    }

    .skills-container,
    .projects-container-new,
    .ai-tools-container,
    .certifications-container {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-info {
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }

    .avatar-3d {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content h3 {
        font-size: 18px;
    }

    .btn {
        padding: 12px 25px;
        font-size: 14px;
    }

    .about-content h2,
    .skills h2,
    .projects h2,
    .ai-section h2,
    .certifications h2,
    .contact h2 {
        font-size: 30px;
    }

    .skill-card,
    .project-card-new,
    .ai-tool-card,
    .certification-card {
        padding: 25px 20px;
    }

    .contact-form {
        padding: 25px;
    }

    .avatar-3d {
        width: 250px;
        height: 250px;
    }

    /* About Section - Small Mobile */
    .about {
        padding: 60px 5%;
    }

    .about-image-wrapper {
        width: 250px;
        height: 250px;
    }

    .about-header h2 {
        font-size: 32px;
    }

    .about-subtitle {
        font-size: 12px;
        padding: 4px 12px;
    }

    .tech-tag {
        font-size: 13px;
        padding: 6px 12px;
    }

    .service-card {
        padding: 20px 15px;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .info-card {
        padding: 15px;
    }

    .info-card i {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .badge-text {
        font-size: 11px;
    }
}

/* ==================== SCROLL ANIMATIONS ==================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== 3D AVATAR SECTION ==================== */
.avatar-3d-container {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.avatar-3d {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    position: relative;
    transform-style: preserve-3d;
    animation: avatarFloat 6s ease-in-out infinite;
}

@keyframes avatarFloat {
    0%, 100% { 
        transform: translateY(0) rotateY(0deg); 
    }
    50% { 
        transform: translateY(-20px) rotateY(10deg); 
    }
}

.avatar-3d::before {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent, var(--primary), transparent, var(--secondary), transparent);
    animation: rotate 4s linear infinite;
    filter: blur(20px);
    opacity: 0.5;
}

.avatar-3d::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--dark);
}

.avatar-3d img {
    width: calc(100% - 6px);
    height: calc(100% - 6px);
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 1;
    border: 3px solid rgba(0, 247, 255, 0.5);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Floating particles around avatar */
.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    animation: particleFloat 3s ease-in-out infinite;
    box-shadow: 0 0 15px var(--primary);
}

.particle:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; }
.particle:nth-child(2) { top: 20%; right: 15%; animation-delay: 0.5s; }
.particle:nth-child(3) { bottom: 15%; left: 25%; animation-delay: 1s; }
.particle:nth-child(4) { bottom: 25%; right: 20%; animation-delay: 1.5s; }
.particle:nth-child(5) { top: 50%; left: 10%; animation-delay: 2s; }
.particle:nth-child(6) { top: 30%; right: 5%; animation-delay: 2.5s; }

@keyframes particleFloat {
    0%, 100% { 
        transform: translateY(0) scale(1); 
        opacity: 0.5;
    }
    50% { 
        transform: translateY(-30px) scale(1.2); 
        opacity: 1;
    }
}

/* Selection Color */
::selection {
    background: var(--primary);
    color: var(--dark);
}

::-moz-selection {
    background: var(--primary);
    color: var(--dark);
}

/* Smooth Scroll Offset */
html {
    scroll-padding-top: 100px;
}
