/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-light: #60A5FA;
    --secondary: #059669;
    --accent: #7C3AED;
    
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-tertiary: #F1F5F9;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.7);
    
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-light: #94A3B8;
    
    --border-color: #E2E8F0;
    --border-light: #F1F5F9;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 60px rgba(37, 99, 235, 0.1);
    
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --primary: #3B82F6;
    --primary-dark: #2563EB;
    --primary-light: #93C5FD;
    
    --bg-primary: #0F172A;
    --bg-secondary: #1E293B;
    --bg-tertiary: #1E293B;
    --bg-card: rgba(30, 41, 59, 0.85);
    --bg-glass: rgba(30, 41, 59, 0.7);
    
    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-light: #94A3B8;
    
    --border-color: #334155;
    --border-light: #1E293B;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 60px rgba(59, 130, 246, 0.15);
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============================================
   BACKGROUND EFFECTS
   ============================================ */
.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: orbFloat 20s ease-in-out infinite alternate;
}

[data-theme="dark"] .orb {
    opacity: 0.15;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.3), transparent 70%);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.2), transparent 70%);
    bottom: -150px;
    left: -150px;
    animation-delay: 5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.2), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

.orb-4 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.15), transparent 70%);
    top: 20%;
    left: 10%;
    animation-delay: 3s;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -80px) scale(1.1); }
    50% { transform: translate(-40px, 60px) scale(0.9); }
    75% { transform: translate(30px, -30px) scale(1.05); }
    100% { transform: translate(-20px, 40px) scale(1); }
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    animation: shapeFloat 15s ease-in-out infinite;
}

[data-theme="dark"] .shape {
    opacity: 0.05;
}

.shape-1 {
    width: 80px;
    height: 80px;
    background: var(--primary);
    top: 15%;
    left: 8%;
    animation-delay: 0s;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.shape-2 {
    width: 60px;
    height: 60px;
    background: var(--secondary);
    top: 75%;
    right: 5%;
    animation-delay: 3s;
    border-radius: 50% 50% 50% 50% / 60% 40% 60% 40%;
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: var(--accent);
    top: 45%;
    left: 2%;
    animation-delay: 6s;
    border-radius: 40% 60% 30% 70% / 50% 40% 60% 50%;
}

.shape-4 {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    top: 30%;
    right: 8%;
    animation-delay: 9s;
    border-radius: 60% 40% 40% 60% / 40% 60% 40% 60%;
}

.shape-5 {
    width: 70px;
    height: 70px;
    background: #EC4899;
    top: 85%;
    left: 50%;
    animation-delay: 12s;
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
}

@keyframes shapeFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { transform: translate(30px, -40px) rotate(90deg) scale(1.1); }
    50% { transform: translate(-20px, 30px) rotate(180deg) scale(0.9); }
    75% { transform: translate(40px, -20px) rotate(270deg) scale(1.05); }
}

#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
}

[data-theme="dark"] #particleCanvas {
    opacity: 0.3;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    background: rgba(37, 99, 235, 0.08);
    padding: 0.3rem 1.2rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
    backdrop-filter: blur(10px);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.section-desc {
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0.5rem auto 0;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.8rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 40px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
    padding: 0.8rem 0;
    transition: background 0.3s, border-color 0.3s;
}

[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.85);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.theme-toggle {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    background: var(--primary);
    color: white;
    transform: rotate(20deg);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 0 3rem;
    background: transparent;
    perspective: 1000px;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out, background 0.3s, border-color 0.3s, box-shadow 0.3s;
    will-change: transform;
}

.hero-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--secondary);
    background: rgba(5, 150, 105, 0.08);
    padding: 0.25rem 1rem;
    border-radius: 999px;
    margin-bottom: 0.8rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 500px;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hero-social {
    display: flex;
    gap: 1rem;
}

.hero-social a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
}

.hero-social a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.3);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    perspective: 800px;
}

.scene-3d {
    transform-style: preserve-3d;
    animation: float3D 6s ease-in-out infinite;
}

@keyframes float3D {
    0%, 100% { transform: translateY(0) rotateX(0) rotateY(0); }
    50% { transform: translateY(-15px) rotateX(3deg) rotateY(5deg); }
}

.profile-avatar {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.25), 0 0 100px rgba(37, 99, 235, 0.1);
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.profile-avatar:hover {
    transform: rotateY(10deg) rotateX(5deg) scale(1.02);
}

.depth-layer {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.15;
    transform-style: preserve-3d;
}

.layer-1 {
    width: 340px;
    height: 340px;
    border: 2px solid var(--primary);
    transform: translateZ(-20px);
    animation: pulseRing 4s ease-in-out infinite;
}

.layer-2 {
    width: 360px;
    height: 360px;
    border: 2px dashed var(--primary-light);
    transform: translateZ(-40px);
    animation: pulseRing 4s ease-in-out infinite 0.5s;
}

.layer-3 {
    width: 380px;
    height: 380px;
    border: 2px dotted var(--secondary);
    transform: translateZ(-60px);
    animation: pulseRing 4s ease-in-out infinite 1s;
}

@keyframes pulseRing {
    0%, 100% { transform: translateZ(var(--tz)) scale(1); opacity: 0.15; }
    50% { transform: translateZ(var(--tz)) scale(1.05); opacity: 0.3; }
}

.layer-1 { --tz: -20px; }
.layer-2 { --tz: -40px; }
.layer-3 { --tz: -60px; }

.floating-badge {
    position: absolute;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 0.7rem 1.6rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 0 60px rgba(37, 99, 235, 0.05);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transform-style: preserve-3d;
    will-change: transform;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: default;
    min-width: 160px;
}

.badge-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.badge-icon i {
    color: var(--primary);
    font-size: 1rem;
    transition: transform 0.4s ease;
}

.badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.badge-number {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.badge-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-1 { top: -5%; right: -15%; animation: floatBadge1 5s ease-in-out infinite; }
.badge-2 { bottom: 5%; left: -15%; animation: floatBadge2 5.5s ease-in-out infinite; }
.badge-3 { bottom: 40%; right: -20%; animation: floatBadge3 6s ease-in-out infinite; }

@keyframes floatBadge1 {
    0%, 100% { transform: translateY(0) translateZ(20px) rotate(0deg); }
    25% { transform: translateY(-12px) translateZ(35px) rotate(3deg); }
    50% { transform: translateY(-4px) translateZ(25px) rotate(0deg); }
    75% { transform: translateY(8px) translateZ(15px) rotate(-2deg); }
}

@keyframes floatBadge2 {
    0%, 100% { transform: translateY(0) translateZ(20px) rotate(0deg); }
    25% { transform: translateY(8px) translateZ(15px) rotate(-2deg); }
    50% { transform: translateY(-10px) translateZ(30px) rotate(3deg); }
    75% { transform: translateY(-2px) translateZ(25px) rotate(0deg); }
}

@keyframes floatBadge3 {
    0%, 100% { transform: translateY(0) translateZ(20px) rotate(0deg); }
    25% { transform: translateY(-6px) translateZ(28px) rotate(-3deg); }
    50% { transform: translateY(10px) translateZ(18px) rotate(2deg); }
    75% { transform: translateY(-8px) translateZ(32px) rotate(0deg); }
}

.floating-badge:hover {
    transform: translateY(-8px) scale(1.06) translateZ(40px) !important;
    border-color: var(--primary);
    box-shadow: 0 15px 50px rgba(37, 99, 235, 0.15), 0 0 80px rgba(37, 99, 235, 0.08);
    background: var(--bg-card);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about { padding: 5rem 0; background: transparent; position: relative; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-text p { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.8; margin-bottom: 1rem; }

.about-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.detail-item:hover {
    transform: translateX(8px) scale(1.02);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.detail-item i {
    color: var(--primary);
    font-size: 1rem;
    width: 20px;
}

.detail-item div {
    display: flex;
    flex-direction: column;
}

.detail-item strong {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.about-avatar {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.2), 0 0 80px rgba(37, 99, 235, 0.08);
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
    animation: floatAvatar 6s ease-in-out infinite;
}

@keyframes floatAvatar {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills { padding: 5rem 0; background: transparent; position: relative; }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1.2rem; }

.skill-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    padding: 1.5rem 1rem;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    cursor: default;
    transform-style: preserve-3d;
    will-change: transform;
}

.skill-card:hover {
    transform: translateY(-8px) rotateX(5deg) rotateY(5deg) scale(1.02);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.skill-card i {
    font-size: 2.5rem;
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
    transition: transform 0.5s;
}

.skill-card:hover i {
    transform: scale(1.1) rotateY(360deg);
}

.skill-card span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ============================================
   EXPERIENCE SECTION
   ============================================ */
.experience { padding: 5rem 0; background: transparent; position: relative; }
.experience-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 900px; margin: 0 auto; }

.experience-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    transform-style: preserve-3d;
    will-change: transform;
}

.experience-card:hover {
    transform: translateY(-8px) rotateX(3deg) rotateY(5deg);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    border-color: var(--border-color);
}

.exp-icon { font-size: 2.5rem; margin-bottom: 0.8rem; display: inline-block; transition: transform 0.3s; }
.experience-card:hover .exp-icon { transform: scale(1.1) rotate(-5deg); }
.exp-content h3 { font-size: 1.2rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.2rem; }
.exp-meta { font-size: 0.85rem; color: var(--primary); font-weight: 600; margin-bottom: 0.8rem; }

.exp-content ul { list-style: none; padding: 0; }
.exp-content ul li { padding: 0.3rem 0; padding-left: 1.5rem; position: relative; color: var(--text-secondary); font-size: 0.9rem; }
.exp-content ul li::before { content: '▸'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects { padding: 5rem 0; background: transparent; position: relative; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }

.project-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    transform-style: preserve-3d;
    will-change: transform;
}

.project-card:hover {
    transform: translateY(-12px) rotateX(4deg) rotateY(6deg) scale(1.01);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    border-color: var(--border-color);
}

.project-thumbnail {
    height: 200px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    transition: transform 0.5s;
}

.project-card:hover .project-thumbnail { transform: scale(1.05) rotate(-2deg); }

.project-info { padding: 1.5rem; transform: translateZ(20px); }
.project-info h3 { font-size: 1.2rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.4rem; }
.project-info p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; margin-bottom: 1rem; }

.project-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.project-tags span { font-size: 0.7rem; font-weight: 600; color: var(--primary); background: rgba(37, 99, 235, 0.08); padding: 0.25rem 0.9rem; border-radius: 999px; }

.project-links { display: flex; gap: 1.5rem; }
.project-links a { font-size: 0.85rem; font-weight: 600; color: var(--primary); transition: var(--transition); }
.project-links a:hover { color: var(--primary-dark); transform: translateX(3px); }
.project-links i { margin-right: 0.3rem; }

/* ============================================
   AI INSIGHTS SECTION
   ============================================ */
.ai-insights { padding: 5rem 0; background: transparent; position: relative; }
.ai-container { max-width: 800px; margin: 0 auto; }

.ai-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transition: var(--transition);
}

.ai-input-group { display: flex; flex-direction: column; gap: 1rem; }

.ai-input-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: var(--transition);
    resize: vertical;
    min-height: 100px;
}

.ai-input-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.ai-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

.ai-response { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border-light); }

.ai-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.ai-result {
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    line-height: 1.8;
    white-space: pre-wrap;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.suggestions-label { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.8rem; }

.suggestion-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.chip {
    padding: 0.4rem 1.2rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--bg-glass);
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(37, 99, 235, 0.08);
    transform: translateY(-2px);
}

[data-theme="dark"] .chip { background: rgba(30, 41, 59, 0.5); }
[data-theme="dark"] .chip:hover { background: rgba(59, 130, 246, 0.15); }

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact { padding: 5rem 0; background: transparent; position: relative; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; max-width: 950px; margin: 0 auto; }
.contact-info { display: flex; flex-direction: column; gap: 1.2rem; }

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    transform-style: preserve-3d;
    will-change: transform;
}

.contact-item:hover {
    border-color: var(--primary);
    transform: translateX(8px) rotateY(3deg);
    box-shadow: var(--shadow-glow);
}

.contact-item i {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-item h4 { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-light); }
.contact-item a { font-size: 0.95rem; font-weight: 500; color: var(--text-primary); transition: var(--transition); }
.contact-item a:hover { color: var(--primary); }

.contact-form .form-group { margin-bottom: 1.2rem; }
.contact-form label { display: block; font-weight: 600; font-size: 0.85rem; color: var(--text-primary); margin-bottom: 0.3rem; }

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1), var(--shadow-glow);
    transform: scale(1.01);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 2rem 0;
    text-align: center;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-light);
    color: var(--text-light);
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

.footer strong { color: var(--text-primary); }
.footer i { color: #EF4444; animation: heartBeat 1.5s ease-in-out infinite; }

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.footer-sub { font-size: 0.8rem; margin-top: 0.2rem; }

/* ============================================
   DARK MODE
   ============================================ */
[data-theme="dark"] .floating-badge {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(30, 41, 59, 0.7);
}

[data-theme="dark"] .floating-badge:hover {
    border-color: var(--primary);
    background: rgba(30, 41, 59, 0.9);
}

[data-theme="dark"] .badge-icon { background: rgba(59, 130, 246, 0.15); }
[data-theme="dark"] .floating-badge:hover .badge-icon { background: var(--primary); }
[data-theme="dark"] .ai-card { background: rgba(30, 41, 59, 0.7); }
[data-theme="dark"] .ai-input-group textarea { background: var(--bg-secondary); }
[data-theme="dark"] .ai-result { background: var(--bg-tertiary); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-description { margin: 0 auto 2rem; }
    .hero-stats { justify-content: center; }
    .hero-buttons { justify-content: center; }
    .hero-social { justify-content: center; }
    .hero-image { order: -1; }
    .profile-avatar { width: 220px; height: 220px; font-size: 4rem; }
    .depth-layer { display: none; }
    .floating-badge { display: none; }
    .about-grid { grid-template-columns: 1fr; text-align: center; }
    .about-details { grid-template-columns: 1fr; max-width: 400px; margin: 1.5rem auto 0; }
    .contact-grid { grid-template-columns: 1fr; }
    .experience-list { grid-template-columns: 1fr; }
    .section-title { font-size: 2rem; }
    .hero-content { padding: 2rem; }
    .orb-1, .orb-2, .orb-3, .orb-4 { width: 300px; height: 300px; }
    .ai-actions { flex-direction: column; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-title { font-size: 2.5rem; }
    .hero-stats { gap: 1.5rem; }
    .stat-number { font-size: 1.4rem; }
    .projects-grid { grid-template-columns: 1fr; }
    .container { padding: 0 1.2rem; }
    .about-avatar { width: 200px; height: 200px; font-size: 3.5rem; }
    .shape { display: none; }
    .ai-card { padding: 1.5rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-buttons .btn { width: 100%; justify-content: center; }
    .skills-grid { grid-template-columns: repeat(2, 1fr); }
    .profile-avatar { width: 180px; height: 180px; font-size: 3rem; }
    .hero-content { padding: 1.5rem; }
    .ai-actions .btn { width: 100%; justify-content: center; }
}
