/* ==========================================
   Muhammad Naseer Portfolio - Enhanced Styles
   Modern, Radiant, Beautiful Animations
   ========================================== */

/* CSS Variables */
:root {
    /* Colors - Vibrant & Radiant */
    --bg-dark: #030014;
    --bg-card: rgba(15, 15, 35, 0.6);
    --bg-card-hover: rgba(25, 25, 55, 0.8);

    /* Accent Colors - Vibrant Purple to Cyan */
    --accent-1: #a855f7;
    --accent-2: #6366f1;
    --accent-3: #22d3ee;
    --accent-4: #f472b6;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #a855f7 0%, #6366f1 50%, #22d3ee 100%);
    --gradient-radial: radial-gradient(circle at center, #a855f7 0%, transparent 70%);
    --gradient-text: linear-gradient(90deg, #a855f7, #6366f1, #22d3ee, #a855f7);
    --gradient-glow: linear-gradient(135deg, rgba(168, 85, 247, 0.4), rgba(34, 211, 238, 0.4));

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    /* Effects */
    --glow-purple: 0 0 40px rgba(168, 85, 247, 0.5);
    --glow-cyan: 0 0 40px rgba(34, 211, 238, 0.5);
    --glow-pink: 0 0 40px rgba(244, 114, 182, 0.5);

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --section-padding: 120px 0;
    --container-max: 1200px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: all 0.3s var(--ease-out); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-padding);
    position: relative;
}

/* ==========================================
   Animated Background
   ========================================== */
.bg-gradient {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 80% at 50% -20%, rgba(120, 119, 198, 0.3), transparent),
        radial-gradient(ellipse 50% 50% at 80% 50%, rgba(168, 85, 247, 0.15), transparent),
        radial-gradient(ellipse 50% 50% at 20% 80%, rgba(34, 211, 238, 0.15), transparent);
    z-index: -3;
}

.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -2;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    z-index: -1;
    animation: float 20s infinite ease-in-out;
}

.bg-glow-1 {
    top: -200px;
    left: -200px;
    background: var(--accent-1);
    animation-delay: 0s;
}

.bg-glow-2 {
    top: 50%;
    right: -200px;
    background: var(--accent-3);
    animation-delay: -7s;
}

.bg-glow-3 {
    bottom: -200px;
    left: 30%;
    background: var(--accent-4);
    animation-delay: -14s;
}

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

/* Cursor Glow */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* ==========================================
   Typography Utilities
   ========================================== */
.gradient-text {
    background: var(--gradient-text);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s linear infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.highlight {
    color: var(--accent-1);
    font-weight: 600;
}

/* Icons */
.icon-sm { width: 16px; height: 16px; }
.icon-btn { width: 18px; height: 18px; }
.icon-title { width: 24px; height: 24px; color: var(--accent-1); }

/* ==========================================
   Navigation
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s var(--ease-out);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(3, 0, 20, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    box-shadow: var(--glow-purple);
    transition: all 0.3s var(--ease-out);
}

.logo-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 0 60px rgba(168, 85, 247, 0.7);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.3s var(--ease-out);
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--text-primary);
}

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

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: var(--accent-1);
    font-weight: 500;
    transition: all 0.3s var(--ease-out);
}

.nav-btn:hover {
    background: var(--accent-1);
    color: white;
    box-shadow: var(--glow-purple);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 28px;
    height: 28px;
    justify-content: center;
    z-index: 1001;
}

.nav-toggle span {
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
}

.hero-container {
    text-align: center;
    padding: 40px 20px;
}

.hero-content {
    animation: heroFadeIn 1s var(--ease-out);
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: var(--radius-full);
    margin-bottom: 40px;
    animation: heroFadeIn 1s var(--ease-out) 0.2s both;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #22d3ee;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

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

.hero-badge span {
    color: var(--accent-3);
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-image-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 40px;
    animation: heroFadeIn 1s var(--ease-out) 0.3s both;
}

.hero-image-ring {
    position: absolute;
    inset: -15px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-3)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: rotate 8s linear infinite;
}

.hero-image-ring.ring-2 {
    inset: -25px;
    animation: rotate 12s linear infinite reverse;
    opacity: 0.5;
}

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

.hero-image-glow {
    position: absolute;
    inset: -30px;
    background: var(--gradient-primary);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.6;
    animation: glow-pulse 4s infinite ease-in-out;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.hero-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.hero-name {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    animation: heroFadeIn 1s var(--ease-out) 0.4s both;
}

.name-line {
    display: block;
}

.hero-title {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    animation: heroFadeIn 1s var(--ease-out) 0.5s both;
}

.hero-tagline {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
    animation: heroFadeIn 1s var(--ease-out) 0.6s both;
}

.hero-tagline .divider {
    margin: 0 12px;
    opacity: 0.5;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
    animation: heroFadeIn 1s var(--ease-out) 0.7s both;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s var(--ease-out);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 30px rgba(168, 85, 247, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(168, 85, 247, 0.6);
}

.btn-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-primary:hover .btn-glow {
    transform: translateX(100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-1);
    transform: translateY(-3px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Social Buttons */
.hero-social {
    display: flex;
    gap: 16px;
    justify-content: center;
    animation: heroFadeIn 1s var(--ease-out) 0.8s both;
}

.social-btn {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s var(--ease-out);
}

.social-btn:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: var(--accent-1);
    color: var(--accent-1);
    transform: translateY(-4px);
    box-shadow: var(--glow-purple);
}

.social-tooltip {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s var(--ease-out);
}

.social-btn:hover .social-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
    animation: heroFadeIn 1s var(--ease-out) 1s both;
}

.scroll-line {
    width: 2px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.scroll-dot {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: scroll-down 2s infinite ease-in-out;
}

@keyframes scroll-down {
    0% { top: 0; opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* ==========================================
   Section Headers
   ========================================== */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: var(--radius-full);
    color: var(--accent-1);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 20px;
}

/* ==========================================
   About Section
   ========================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text {
    margin-bottom: 40px;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-text strong {
    color: var(--accent-1);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-item {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.3s var(--ease-out);
}

.stat-item:hover {
    border-color: var(--accent-1);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.15);
}

.stat-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    margin-bottom: 8px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-suffix {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-3);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.skill-card {
    position: relative;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.4s var(--ease-out);
    overflow: hidden;
}

.skill-card:hover {
    border-color: var(--accent-1);
    transform: translateY(-4px) scale(1.02);
}

.skill-card:hover .skill-glow {
    opacity: 1;
}

.skill-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.skill-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(34, 211, 238, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-1);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.skill-icon svg {
    width: 24px;
    height: 24px;
}

.skill-info {
    position: relative;
    z-index: 1;
}

.skill-name {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.skill-level {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================
   Experience Section
   ========================================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-1), var(--accent-3), transparent);
}

.timeline-item {
    position: relative;
    padding-left: 70px;
    padding-bottom: 50px;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s var(--ease-out);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 12px;
    top: 10px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-dot {
    width: 12px;
    height: 12px;
    background: var(--gradient-primary);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
    position: relative;
    z-index: 1;
}

.marker-pulse {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.3);
    animation: marker-pulse 2s infinite;
}

@keyframes marker-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0; }
}

.timeline-card {
    position: relative;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    transition: all 0.4s var(--ease-out);
    overflow: hidden;
}

.timeline-card:hover {
    border-color: var(--accent-1);
    transform: translateX(8px);
}

.timeline-card:hover .card-glow {
    opacity: 1;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(34, 211, 238, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-1);
    flex-shrink: 0;
}

.card-meta {
    flex: 1;
    min-width: 200px;
}

.card-meta h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.card-meta .company {
    color: var(--accent-1);
    font-weight: 500;
}

.date-badge {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.card-description {
    color: var(--text-secondary);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* ==========================================
   Projects Section
   ========================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.project-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s var(--ease-out);
    opacity: 0;
    transform: translateY(30px);
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    border-color: var(--accent-1);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.2);
}

.project-card:hover .card-glow {
    opacity: 1;
}

.project-card.featured {
    grid-column: span 2;
}

.project-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.project-card.featured .project-image {
    height: 300px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s var(--ease-out);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(3, 0, 20, 0.9) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 30px;
    opacity: 0;
    transition: all 0.4s var(--ease-out);
}

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

.overlay-content {
    transform: translateY(20px);
    transition: transform 0.4s var(--ease-out);
}

.project-card:hover .overlay-content {
    transform: translateY(0);
}

.project-links {
    display: flex;
    gap: 12px;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s var(--ease-out);
}

.project-link:hover {
    transform: scale(1.05);
    box-shadow: var(--glow-purple);
}

.project-link.solo {
    padding: 14px 28px;
}

.featured-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    box-shadow: var(--glow-purple);
}

.project-content {
    padding: 28px;
    position: relative;
    z-index: 1;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.project-metrics {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
}

.metric {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.metric strong {
    color: var(--accent-1);
}

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

.tag {
    padding: 6px 14px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-1);
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: var(--accent-1);
}

/* ==========================================
   Testimonials Section
   ========================================== */
.testimonials-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-carousel {
    position: relative;
    min-height: 350px;
}

.testimonial-card {
    position: absolute;
    inset: 0;
    padding: 48px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    opacity: 0;
    transform: translateX(50px);
    pointer-events: none;
    transition: all 0.5s var(--ease-out);
    overflow: hidden;
}

.testimonial-card.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.testimonial-card:hover .card-glow {
    opacity: 1;
}

.quote-icon {
    color: var(--accent-1);
    opacity: 0.5;
    margin-bottom: 24px;
}

.testimonial-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 32px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.author-info h4 {
    font-weight: 600;
    margin-bottom: 4px;
}

.author-info span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.testimonial-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
}

.nav-arrow {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s var(--ease-out);
}

.nav-arrow:hover {
    background: var(--accent-1);
    border-color: var(--accent-1);
    color: white;
    transform: scale(1.1);
}

.testimonial-dots {
    display: flex;
    gap: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s var(--ease-out);
}

.dot.active {
    background: var(--gradient-primary);
    box-shadow: var(--glow-purple);
    transform: scale(1.2);
}

.dot:hover {
    background: var(--accent-1);
}

/* ==========================================
   Contact Section
   ========================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

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

.contact-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    transition: all 0.4s var(--ease-out);
    overflow: hidden;
}

.contact-card:hover {
    border-color: var(--accent-1);
    transform: translateX(8px);
}

.contact-card:hover .card-glow {
    opacity: 1;
}

.contact-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(34, 211, 238, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-1);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.contact-details {
    position: relative;
    z-index: 1;
}

.contact-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.contact-details a,
.contact-details span {
    color: var(--text-primary);
    font-weight: 500;
}

.contact-details a:hover {
    color: var(--accent-1);
}

.social-row {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

/* Contact Form */
.contact-form {
    position: relative;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.contact-form:hover .form-glow {
    opacity: 1;
}

.form-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.08), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s var(--ease-out);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-1);
    background: rgba(168, 85, 247, 0.05);
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 16px;
}

.footer-links h4,
.footer-social h4 {
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-links nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-1);
    transform: translateX(5px);
}

.footer-social .social-links {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s var(--ease-out);
}

.footer-social a:hover {
    background: var(--accent-1);
    border-color: var(--accent-1);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--glow-purple);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.icon-heart {
    width: 16px;
    height: 16px;
    color: #ef4444;
    animation: heartbeat 1.5s infinite;
}

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

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .project-card.featured {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(3, 0, 20, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 100px 40px;
        gap: 30px;
        transition: right 0.4s var(--ease-out);
        border-left: 1px solid rgba(168, 85, 247, 0.2);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .section {
        padding: 80px 0;
    }

    .hero-name {
        font-size: 2.5rem;
    }

    .hero-image-wrapper {
        width: 150px;
        height: 150px;
    }

    .hero-image {
        width: 150px;
        height: 150px;
    }

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

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .timeline-line {
        left: 16px;
    }

    .timeline-item {
        padding-left: 50px;
    }

    .timeline-marker {
        left: 5px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: 32px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .footer-social .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

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

    .timeline-card {
        padding: 20px;
    }

    .card-header {
        flex-direction: column;
        gap: 12px;
    }

    .contact-form {
        padding: 24px;
    }
}

/* ==========================================
   Animations & Utilities
   ========================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

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

/* Selection */
::selection {
    background: rgba(168, 85, 247, 0.3);
    color: white;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-1), var(--accent-3));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-1);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
