/* ===== DANIEL SMITH PORTFOLIO - UPDATED CSS ===== */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #06b6d4;
    --accent: #f472b6;
    --dark: #0f172a;
    --darker: #020617;
    --light: #f8fafc;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
    --gradient-2: linear-gradient(135deg, #f472b6 0%, #6366f1 100%);
    --gradient-3: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--darker);
    color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color 0.5s ease;
}


/* ===== SCROLL PROGRESS BAR ===== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-1);
    z-index: 10000;
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}


/* ===== ENHANCED VIDEO-LIKE BACKGROUND ===== */

.video-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: var(--darker);
}

#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 20% 80%, rgba(99, 102, 241, 0.15) 0%, transparent 50%), radial-gradient(ellipse at 80% 20%, rgba(6, 182, 212, 0.12) 0%, transparent 50%), radial-gradient(ellipse at 50% 50%, rgba(244, 114, 182, 0.08) 0%, transparent 60%), radial-gradient(ellipse at 10% 10%, rgba(245, 158, 11, 0.05) 0%, transparent 40%);
    z-index: 2;
    animation: bgPulse 8s ease-in-out infinite;
}

@keyframes bgPulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.video-bg-grid {
    position: absolute;
    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: 50px 50px;
    z-index: 3;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }
    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px);
    }
}

.video-bg-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient( 0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.03) 2px, rgba(0, 0, 0, 0.03) 4px);
    z-index: 4;
    pointer-events: none;
    animation: scanlineMove 8s linear infinite;
}

@keyframes scanlineMove {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100vh);
    }
}

.video-bg-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(2, 6, 23, 0.6) 100%);
    z-index: 5;
    pointer-events: none;
}

.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 6;
    pointer-events: none;
    overflow: hidden;
}

.floating-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(99, 102, 241, 0.6);
    border-radius: 50%;
    animation: floatUp linear infinite;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}


/* ===== INTERACTIVE BACKGROUND HOVER EFFECTS ===== */

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient( 600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(99, 102, 241, 0.08), transparent 40%);
    transition: background 0.15s ease;
}

section {
    position: relative;
    transition: all 0.5s ease;
    padding: 6rem 5%;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient( 400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(99, 102, 241, 0.03), transparent 50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    border-radius: inherit;
}

section:hover::before {
    opacity: 1;
}

.skill-card,
.project-card,
.timeline-content,
.edu-card,
.cert-card,
.contact-form,
.contact-item {
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.skill-card::after,
.project-card::after,
.timeline-content::after,
.edu-card::after,
.cert-card::after,
.contact-form::after,
.contact-item::after {
    content: '';
    position: absolute;
    top: var(--card-mouse-y, 50%);
    left: var(--card-mouse-x, 50%);
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

.skill-card:hover::after,
.project-card:hover::after,
.timeline-content:hover::after,
.edu-card:hover::after,
.cert-card:hover::after,
.contact-form:hover::after,
.contact-item:hover::after {
    width: 300px;
    height: 300px;
    opacity: 1;
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
}

.hero::after {
    content: '';
    position: absolute;
    top: var(--mouse-y, 50%);
    left: var(--mouse-x, 50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    transition: top 0.3s ease, left 0.3s ease;
}

.about {
    background: linear-gradient(180deg, var(--darker) 0%, var(--dark) 100%);
    position: relative;
    overflow: hidden;
}

.about::after {
    content: '';
    position: absolute;
    top: var(--mouse-y, 50%);
    left: var(--mouse-x, 50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(244, 114, 182, 0.05) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    transition: top 0.4s ease, left 0.4s ease;
}

.social-section {
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.social-section::after {
    content: '';
    position: absolute;
    top: var(--mouse-y, 50%);
    left: var(--mouse-x, 50%);
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.06) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    transition: top 0.3s ease, left 0.3s ease;
}

.contact {
    background: linear-gradient(180deg, var(--darker) 0%, var(--dark) 100%);
    position: relative;
}

.contact::after {
    content: '';
    position: absolute;
    top: var(--mouse-y, 50%);
    left: var(--mouse-x, 50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    transition: top 0.3s ease, left 0.3s ease;
}

.experience {
    background: linear-gradient(180deg, var(--dark) 0%, var(--darker) 100%);
    position: relative;
}


/* ===== NAME HIGHLIGHT EFFECT ===== */

.name-highlight {
    position: relative;
    display: inline-block;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: nameShimmer 3s ease-in-out infinite;
    transition: all 0.4s ease;
    cursor: default;
}

.name-highlight:hover {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: nameGlow 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.5));
    transform: scale(1.02);
}

@keyframes nameShimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes nameGlow {
    0%,
    100% {
        filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.3)) drop-shadow(0 0 30px rgba(6, 182, 212, 0.2));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(99, 102, 241, 0.6)) drop-shadow(0 0 50px rgba(244, 114, 182, 0.4));
        transform: scale(1.03);
    }
}

.name-highlight::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-1);
    border-radius: 2px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.name-highlight:hover::after {
    width: 100%;
}


/* ===== NAVIGATION WITH LOGO ===== */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 0.8rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 0.6rem 5%;
    background: rgba(2, 6, 23, 0.95);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 45px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: brightness(1.1);
}

.logo:hover .logo-img {
    filter: brightness(1.3) drop-shadow(0 0 10px rgba(99, 102, 241, 0.5));
    transform: translateY(-2px);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.nav-links a:hover {
    color: var(--light);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
}


/* ===== HERO SECTION ===== */

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
    backdrop-filter: blur(10px);
}

.hero-badge i {
    color: #22c55e;
    font-size: 0.6rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--gray);
    margin-bottom: 2rem;
    max-width: 600px;
    animation: fadeInUp 0.8s ease 0.4s both;
    min-height: 3rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.btn {
    padding: 0.9rem 2rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    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.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(99, 102, 241, 0.4);
}

.btn-outline {
    background: var(--glass);
    color: var(--light);
    border: 1px solid var(--glass-border);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    border-color: var(--primary);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.stat-item h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item p {
    color: var(--gray);
    font-size: 0.85rem;
}


/* ===== HERO IMAGE ===== */

.hero-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: fadeInUp 0.8s ease 0.5s both;
}

.hero-image-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: var(--gradient-1);
    border-radius: 30px;
    opacity: 0.3;
    filter: blur(30px);
    animation: glowPulse 3s ease-in-out infinite;
}

.hero-image-wrapper::after {
    content: '';
    position: absolute;
    inset: -5px;
    background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent), var(--primary));
    border-radius: 30px;
    opacity: 0.5;
    z-index: 0;
    animation: rotateBorder 4s linear infinite;
}

@keyframes rotateBorder {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

@keyframes glowPulse {
    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.hero-image {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    object-fit: cover;
    position: relative;
    z-index: 1;
    border: 3px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: scale(1.02);
}

.hero-floating-tag {
    position: absolute;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    z-index: 2;
    animation: floatCard 4s ease-in-out infinite;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-floating-tag.tag-1 {
    top: 10%;
    right: -30px;
    animation-delay: 0s;
}

.hero-floating-tag.tag-2 {
    bottom: 20%;
    left: -40px;
    animation-delay: 1.5s;
}

.hero-floating-tag.tag-3 {
    bottom: 5%;
    right: -20px;
    animation-delay: 3s;
}

.hero-floating-tag i {
    font-size: 1.2rem;
    color: var(--secondary);
}

@keyframes floatCard {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(1deg);
    }
    75% {
        transform: translateY(5px) rotate(-1deg);
    }
}


/* ===== SECTION STYLES ===== */

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.section-header h2 span {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    color: var(--gray);
    max-width: 500px;
    margin: 0 auto;
}

.section-line {
    width: 60px;
    height: 4px;
    background: var(--gradient-1);
    margin: 1rem auto 0;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.section-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: lineShine 3s ease-in-out infinite;
}

@keyframes lineShine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}


/* ===== ABOUT SECTION ===== */

.about::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    animation: float 10s ease-in-out infinite;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.about-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.about-image-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    inset: -8px;
    background: var(--gradient-2);
    border-radius: 24px;
    opacity: 0.25;
    filter: blur(25px);
    animation: glowPulse 4s ease-in-out infinite;
}

.about-image-wrapper::after {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(45deg, var(--accent), var(--primary));
    border-radius: 24px;
    z-index: 0;
    animation: rotateBorder 5s linear infinite;
}

.about-image-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
    position: relative;
    z-index: 1;
    border: 3px solid rgba(244, 114, 182, 0.2);
    transition: transform 0.3s ease;
}

.about-image-wrapper img:hover {
    transform: scale(1.03);
}

.about-text h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.info-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.1);
}

.info-item i {
    color: var(--primary);
    font-size: 1.1rem;
}

.info-item span {
    font-size: 0.85rem;
    color: var(--gray);
}

.info-item strong {
    color: var(--light);
    display: block;
    font-size: 0.9rem;
}


/* ===== SKILLS SECTION ===== */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.skill-card:hover::before {
    transform: scaleX(1);
}

.skill-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.skill-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.skill-card:hover .skill-icon {
    transform: scale(1.1) rotate(5deg);
}

.skill-card:nth-child(1) .skill-icon {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.skill-card:nth-child(2) .skill-icon {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
}

.skill-card:nth-child(3) .skill-icon {
    background: rgba(244, 114, 182, 0.15);
    color: var(--accent);
}

.skill-card:nth-child(4) .skill-icon {
    background: rgba(6, 182, 212, 0.15);
    color: var(--secondary);
}

.skill-card:nth-child(5) .skill-icon {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.skill-card:nth-child(6) .skill-icon {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.skill-card-header h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.skill-tag {
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--gray);
    transition: all 0.3s ease;
    cursor: default;
}

.skill-tag:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary);
    color: var(--light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.2);
}


/* ===== EXPERIENCE SECTION ===== */

.experience::before {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
    animation: float 12s ease-in-out infinite reverse;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-1);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-dot {
    position: absolute;
    left: 20px;
    top: 5px;
    width: 22px;
    height: 22px;
    background: var(--dark);
    border: 3px solid var(--primary);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

.timeline-dot::after {
    content: '';
    position: absolute;
    inset: -6px;
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    animation: ripple 2s infinite;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.timeline-content {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.timeline-content:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateX(5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-header h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    color: var(--light);
}

.timeline-header .company {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.timeline-date {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--primary);
}

.timeline-content ul {
    list-style: none;
    padding: 0;
}

.timeline-content li {
    color: var(--gray);
    font-size: 0.9rem;
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    transition: color 0.3s ease;
}

.timeline-content li:hover {
    color: var(--light);
}

.timeline-content li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary);
}


/* ===== EDUCATION & CERTS ===== */

.edu-certs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.edu-card,
.cert-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.edu-card:hover,
.cert-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.edu-card .icon,
.cert-card .icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(99, 102, 241, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.edu-card:hover .icon,
.cert-card:hover .icon {
    transform: scale(1.1) rotate(10deg);
}

.edu-card h3,
.cert-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.edu-card .institution,
.cert-card .institution {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.edu-card .date,
.cert-card .date {
    color: var(--gray);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.cert-card ul {
    list-style: none;
    padding: 0;
}

.cert-card li {
    color: var(--gray);
    font-size: 0.9rem;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    border-bottom: 1px solid var(--glass-border);
    transition: color 0.3s ease;
}

.cert-card li:hover {
    color: var(--light);
}

.cert-card li:last-child {
    border-bottom: none;
}

.cert-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: bold;
}


/* ===== PROJECTS SECTION ===== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.project-card:hover .project-image::before {
    left: 100%;
}

.project-image i {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.project-card:hover .project-image i {
    transform: scale(1.1);
    color: rgba(255, 255, 255, 0.5);
}

.project-content {
    padding: 1.8rem;
}

.project-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.project-content p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.project-tag {
    padding: 0.3rem 0.8rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.project-tag:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: translateY(-1px);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--gray);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.project-links a:hover {
    color: var(--primary);
}


/* ===== SOCIAL SECTION ===== */

.social-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(244, 114, 182, 0.1) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}

.social-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.8rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    text-decoration: none;
    color: var(--light);
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.social-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.social-card i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.social-card:hover i {
    transform: scale(1.2);
}

.social-card.github:hover {
    border-color: #333;
    background: rgba(51, 51, 51, 0.1);
}

.social-card.instagram:hover {
    border-color: #e4405f;
    background: rgba(228, 64, 95, 0.1);
}

.social-card.instagram:hover i {
    color: #e4405f;
}

.social-card.tiktok:hover {
    border-color: #ff0050;
    background: rgba(255, 0, 80, 0.1);
}

.social-card.tiktok:hover i {
    color: #ff0050;
}

.social-card.youtube:hover {
    border-color: #ff0000;
    background: rgba(255, 0, 0, 0.1);
}

.social-card.youtube:hover i {
    color: #ff0000;
}

.social-card.x-twitter:hover {
    border-color: #1da1f2;
    background: rgba(29, 161, 242, 0.1);
}

.social-card.x-twitter:hover i {
    color: #1da1f2;
}

.social-card.linkedin:hover {
    border-color: #0077b5;
    background: rgba(0, 119, 181, 0.1);
}

.social-card.linkedin:hover i {
    color: #0077b5;
}

.social-card.whatsapp:hover {
    border-color: #25d366;
    background: rgba(37, 211, 102, 0.1);
}

.social-card.whatsapp:hover i {
    color: #25d366;
}

.social-card.email:hover {
    border-color: #ea4335;
    background: rgba(234, 67, 53, 0.1);
}

.social-card.email:hover i {
    color: #ea4335;
}

.social-card.phone:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.social-card.phone:hover i {
    color: var(--primary);
}


/* ===== CONTACT SECTION ===== */

.contact::before {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    animation: float 10s ease-in-out infinite;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-info h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--gray);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    margin-bottom: 1rem;
    text-decoration: none;
    color: inherit;
}

.contact-item:hover {
    border-color: var(--primary);
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.1);
}

.contact-item .icon-box {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-item:hover .icon-box {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.contact-item .info h4 {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.contact-item .info span {
    font-size: 0.85rem;
    color: var(--gray);
}

.contact-form {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.contact-form:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--light);
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(100, 116, 139, 0.6);
}

.form-status {
    padding: 0.8rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.form-status.success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
    display: flex;
}

.form-status.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    display: flex;
}


/* ===== FOOTER ===== */

footer {
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    position: relative;
    background: var(--darker);
}

footer .social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

footer .social-links a {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

footer .social-links a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

footer p {
    color: var(--gray);
    font-size: 0.85rem;
}


/* ===== ANIMATIONS ===== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes float {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.05);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}


/* ===== SCROLL TO TOP ===== */

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5);
}


/* ===== RESPONSIVE ===== */

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content {
        max-width: 100%;
        order: 2;
    }
    .hero-image-container {
        order: 1;
        margin-bottom: 2rem;
    }
    .hero-image-wrapper {
        width: 280px;
        height: 280px;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-floating-tag {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(2, 6, 23, 0.98);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        border-bottom: 1px solid var(--glass-border);
    }
    .nav-links.active {
        display: flex;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero-stats {
        gap: 1.5rem;
    }
    .about-grid,
    .edu-certs-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .about-info {
        grid-template-columns: 1fr;
    }
    .about-image-wrapper {
        width: 250px;
        height: 250px;
    }
    .timeline::before {
        left: 15px;
    }
    .timeline-item {
        padding-left: 50px;
    }
    .timeline-dot {
        left: 5px;
    }
    .social-grid {
        gap: 1rem;
    }
    .social-card {
        padding: 0.8rem 1.2rem;
        font-size: 0.85rem;
    }
    .video-bg-grid {
        background-size: 30px 30px;
    }
    .logo-img {
        height: 35px;
    }
}