/* ========================================
   Premium Portfolio - Design System
   Clean, Modern, Eye-catching
   ======================================== */

:root {
    /* Premium Color Palette - Light & Airy */
    /* --primary: #3b82f6; */
    /* Slightly more vibrant blue */
    --primary: #4f46e5;
    /* Indigo for a more premium feel */
    --primary-dark: #4338ca;
    --primary-light: #eef2ff;

    --secondary: #7c3aed;
    --accent: #0ea5e9;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Neutral Colors - Refined for Light Theme */
    --white: #ffffff;
    --bg-main: #fcfcfd;
    --bg-secondary: #f3f4f6;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Premium Glassmorphism - Light Mode */
    --glass-white: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

    /* Typography */
    --font-display: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows - Ultra Soft Premium Elevation */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px 0 rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 50px -10px rgba(0, 0, 0, 0.06), 0 10px 20px -10px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 40px 80px -12px rgba(0, 0, 0, 0.08);
    --shadow-primary: 0 10px 30px -5px rgba(79, 70, 229, 0.25);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 700ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 500ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ========================================
   Base Styles
   ======================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: auto; /* Let Lenis handle smooth scroll */
}

html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--gray-800);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-base);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* ========================================
   Typography
   ======================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

.highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

/* ========================================
   Buttons - Premium Solid Style
   ======================================== */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 16px 32px;
    background: var(--primary);
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: var(--shadow-primary);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px -10px rgba(79, 70, 229, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 16px 32px;
    background: var(--white);
    color: var(--gray-800);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-full {
    width: 100%;
}


/* ========================================
   Navigation - Premium Glass Effect
   ======================================== */

.main-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-xl);
    z-index: 1000;
    padding: var(--space-md) 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition-base);
}

.main-nav.scrolled {
    top: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.nav-logo-img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.nav-logo span {
    color: var(--gray-900);
}

.nav-links {
    display: flex;
    gap: var(--space-xl);
}

.nav-links a {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-700);
    position: relative;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
}

.nav-links a:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-800);
    cursor: pointer;
}

/* ========================================
   Hero Section - Premium Layout
   ======================================== */

/* Hero Background Elements */
.hero-bg-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: blob-float 15s infinite alternate ease-in-out;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-light);
    top: -100px;
    right: -100px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: rgba(124, 58, 237, 0.15);
    bottom: -50px;
    left: -50px;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: rgba(14, 165, 233, 0.1);
    top: 40%;
    left: 20%;
    animation-delay: -2s;
}

@keyframes blob-float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(40px, 40px) scale(1.1);
    }
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 var(--space-4xl);
    background: var(--bg-main);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px 20px;
    background: var(--white);
    color: var(--gray-700);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 800;
    margin-bottom: var(--space-lg);
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray-600);
    margin-bottom: var(--space-2xl);
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Stats Row */
.hero-stats {
    display: flex;
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--gray-200);
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: var(--space-xs);
}


/* ========================================
   Profile Image - Premium Animated Circle
   ======================================== */

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-container {
    position: relative;
}

.profile-wrapper {
    position: relative;
    width: 380px;
    height: 380px;
    z-index: 2;
}

.glass-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    opacity: 0.3;
    z-index: 1;
    pointer-events: none;
}

/* Animated Rings */
.profile-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary);
    border-radius: 50%;
    animation: rotate 15s linear infinite;
}

.profile-ring::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    transform: translateX(-50%);
}

.profile-ring-inner {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 2px dashed var(--gray-300);
    border-radius: 50%;
    animation: rotate-reverse 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes rotate-reverse {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

.profile-img {
    position: absolute;
    top: 40px;
    left: 40px;
    right: 40px;
    bottom: 40px;
    border-radius: 50%;
    object-fit: cover;
    width: calc(100% - 80px);
    height: calc(100% - 80px);
    border: 8px solid var(--white);
    box-shadow: var(--shadow-2xl);
    background: var(--white);
    z-index: 2;
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    background: var(--white);
    padding: 12px 18px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-800);
    animation: float 4s ease-in-out infinite;
    border: 1px solid var(--gray-100);
}

.floating-badge i {
    color: var(--primary);
    font-size: 1rem;
}

.floating-badge.top-right {
    top: 30px;
    right: -10px;
    animation-delay: 0s;
}

.floating-badge.bottom-left {
    bottom: 50px;
    left: -20px;
    animation-delay: 2s;
}

.floating-badge.top-left {
    top: 80px;
    left: -30px;
    animation-delay: 1s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* ========================================
   Section Styles
   ======================================== */

.section {
    padding: var(--space-4xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
    letter-spacing: 0.5px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: var(--space-md);
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   About Section - Premium Design
   ======================================== */

.about-section {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-4xl);
    align-items: center;
}

.about-image {
    position: relative;
}

.about-img-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.about-img-wrapper img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.about-pattern {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--primary-light) 25%, transparent 25%),
                linear-gradient(-135deg, var(--primary-light) 25%, transparent 25%),
                linear-gradient(45deg, var(--primary-light) 25%, transparent 25%),
                linear-gradient(-45deg, var(--primary-light) 25%, transparent 25%);
    background-size: 20px 20px;
    border-radius: var(--radius-lg);
    z-index: -1;
}

.about-content h3 {
    font-size: 1.75rem;
    margin-bottom: var(--space-lg);
    color: var(--gray-900);
}

.about-content p {
    color: var(--gray-600);
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin: var(--space-xl) 0;
    padding: var(--space-lg);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary);
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.highlight-icon {
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    box-shadow: var(--shadow-sm);
}

.highlight-text {
    display: flex;
    flex-direction: column;
}

.highlight-text strong {
    color: var(--gray-900);
    font-size: 0.95rem;
}

.highlight-text span {
    color: var(--gray-500);
    font-size: 0.85rem;
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .about-img-wrapper img {
        height: 350px;
    }
    
    .about-pattern {
        display: none;
    }
}

/* ========================================
   Skills Section - Premium Cards
   ======================================== */

.skills-section {
    background: var(--bg-secondary);
}

.skills-grid-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

@media (max-width: 992px) {
    .skills-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .skills-grid-modern {
        grid-template-columns: 1fr;
    }
}

.skill-modern-card {
    background: var(--white);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
    transition: var(--transition-spring);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.skill-modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.skill-modern-card:hover::before {
    transform: scaleX(1);
}

.skill-modern-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.skill-card-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto var(--space-lg);
    transition: var(--transition-base);
}

.skill-modern-card:hover .skill-card-icon {
    background: var(--primary);
    color: var(--white);
    transform: rotateY(180deg);
}

.skill-card-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-xl);
    color: var(--gray-900);
}

.skill-card-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
}

.skill-tag {
    padding: 6px 14px;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: var(--transition-fast);
}

.skill-tag:hover {
    background: var(--white);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}


/* ========================================
   Projects Section - Premium Cards
   ======================================== */

/* ========================================
   Projects Section - Premium Bento Grid
   ======================================== */

/* Projects Grid - 2x2 Layout */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.project-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-100);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 2px;
    background: linear-gradient(135deg, transparent, rgba(79, 70, 229, 0.1), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-16px) scale(1.02);
    box-shadow: 0 30px 60px -15px rgba(79, 70, 229, 0.3),
                0 15px 30px -10px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover::after {
    opacity: 1;
}

.project-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--gray-100) 50%, rgba(124, 58, 237, 0.1) 100%);
}

/* Placeholder pattern for missing images */
.project-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(79, 70, 229, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.project-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
    position: relative;
    z-index: 1;
}

.project-card:hover .project-preview {
    transform: scale(1.1);
    filter: brightness(1.05);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
}

.project-overlay::before {
    display: none;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-actions {
    display: flex;
    gap: var(--space-lg);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.project-card:hover .project-actions {
    transform: translateY(0);
    opacity: 1;
}

.action-btn {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.action-btn i {
    position: relative;
    z-index: 1;
}

.action-btn:hover {
    transform: scale(1.15) rotate(8deg);
    box-shadow: 0 15px 35px rgba(79, 70, 229, 0.4);
}

.action-btn:hover::before {
    opacity: 1;
}

.action-btn:hover i {
    color: var(--white);
}

.project-content {
    padding: var(--space-xl) var(--space-xl) var(--space-2xl);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    position: relative;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.project-category {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 8px 16px;
    border-radius: var(--radius-full);
    letter-spacing: 0.08em;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    transition: all 0.3s ease;
}

.project-card:hover .project-category {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.project-tags span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-600);
    background: var(--gray-50);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-100);
}

.project-card:hover .project-tags span {
    background: var(--primary-light);
    color: var(--primary);
    border-color: transparent;
    transform: translateY(-2px);
}

.project-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-top: var(--space-md);
    transition: all 0.3s ease;
    line-height: 1.3;
}

.project-card:hover .project-name {
    color: var(--primary);
}

.project-desc {
    color: var(--gray-500);
    font-size: 0.95rem;
    line-height: 1.8;
    flex-grow: 1;
    margin-top: var(--space-xs);
}

/* Project card number indicator */
.project-card .project-content::before {
    content: '';
    position: absolute;
    top: -30px;
    right: var(--space-xl);
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.project-card:hover .project-content::before {
    opacity: 0;
}

/* ========================================
   Experience Section - Timeline
   ======================================== */

.experience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
}

.experience-column h3 {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 1.5rem;
    margin-bottom: var(--space-xl);
    color: var(--gray-900);
}

.experience-column h3 i {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
}

.timeline {
    position: relative;
    padding-left: var(--space-xl);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-light), var(--primary), var(--primary-light));
    border-radius: var(--radius-full);
}

.timeline-item {
    position: relative;
    padding-bottom: var(--space-xl);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: calc(-1 * var(--space-xl) - 6px);
    top: 5px;
    width: 15px;
    height: 15px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    box-shadow: 0 0 0 6px var(--primary-light);
}

.timeline-content {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: var(--transition-base);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 12px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid var(--gray-100);
    transition: var(--transition-base);
}

.timeline-content:hover::before {
    border-right-color: var(--primary);
}

.timeline-content:hover {
    box-shadow: var(--shadow-xl);
    transform: translateX(10px) scale(1.02);
    border-color: var(--primary);
}

.timeline-date {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-sm);
}

.timeline-title {
    font-size: 1.15rem;
    margin-bottom: 4px;
    color: var(--gray-900);
}

.timeline-org {
    color: var(--gray-500);
    font-size: 0.95rem;
}

.timeline-grade {
    margin-top: var(--space-sm);
    font-weight: 700;
    color: var(--success);
    font-size: 0.9rem;
}


/* ========================================
   Contact Section - Premium Design
   ======================================== */

.contact-section {
    background: var(--gray-50);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-2xl);
    align-items: start;
}

.contact-info {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: var(--space-3xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-primary);
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    color: var(--white);
}

.contact-info>p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    color: var(--white);
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.social-links {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    transition: var(--transition-base);
}

.social-link:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-5px);
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.form-group {
    margin-bottom: var(--space-lg);
    position: relative;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--gray-700);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-base);
    background: var(--gray-50);
    color: var(--gray-800);
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: var(--gray-300);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.form-group input:focus + label,
.form-group textarea:focus + label {
    color: var(--primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}

.form-group textarea {
    resize: none;
    min-height: 140px;
}

/* Submit Button Enhancement */
.contact-form .btn-primary {
    position: relative;
    overflow: hidden;
}

.contact-form .btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.contact-form .btn-primary:active::after {
    width: 300px;
    height: 300px;
}

.error-message {
    display: block;
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: var(--space-xs);
    min-height: 1rem;
}

.form-status {
    text-align: center;
    margin-top: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    display: none;
    font-weight: 500;
}

.form-status.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.form-status.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

/* ========================================
   Footer - Clean Simple Design
   ======================================== */

.footer {
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--gray-100);
    margin-bottom: var(--space-lg);
}

.footer-main {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer-logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
}

.footer-logo span {
    color: var(--gray-800);
}

.footer-tagline {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.footer-nav {
    display: flex;
    gap: var(--space-xl);
}

.footer-nav a {
    color: var(--gray-600);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-base);
}

.footer-nav a:hover {
    color: var(--primary);
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.footer-social-link {
    width: 42px;
    height: 42px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    font-size: 1.1rem;
    transition: var(--transition-base);
    border: 1px solid var(--gray-200);
}

.footer-social-link:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.footer-bottom {
    text-align: center;
}

.footer-copy {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.footer-copy i {
    color: var(--danger);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: var(--space-xl);
        text-align: center;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-md);
    }
}

@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .footer-brand {
        max-width: 100%;
        text-align: center;
    }

    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-links-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links-col ul li a {
        justify-content: center;
    }

    .footer-location,
    .footer-status {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-lg);
        text-align: center;
    }
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-2xl);
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .profile-wrapper {
        width: 300px;
        height: 300px;
    }

    .floating-badge {
        display: none;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .experience-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero {
        padding-top: 100px;
    }

    .profile-wrapper {
        width: 250px;
        height: 250px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }
}

/* ========================================
   Mobile Drawer
   ======================================== */

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--white);
    padding: var(--space-3xl) var(--space-xl);
    z-index: 1001;
    transition: right var(--transition-slow);
    box-shadow: var(--shadow-2xl);
}

.mobile-drawer.active {
    right: 0;
}

.drawer-close {
    position: absolute;
    top: var(--space-xl);
    right: var(--space-xl);
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-800);
    cursor: pointer;
}

.drawer-links {
    margin-top: var(--space-3xl);
}

.drawer-links li {
    margin-bottom: var(--space-lg);
}

.drawer-links a {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
}

.drawer-links a:hover {
    color: var(--primary);
}

.drawer-cta {
    margin-top: var(--space-2xl);
    width: 100%;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    transition: var(--transition-base);
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   Typing Animation
   ======================================== */

.typed-name {
    display: inline;
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 0.9em;
    background: var(--primary);
    margin-left: 4px;
    animation: blink 1s infinite;
    vertical-align: text-bottom;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* ========================================
   Reveal Animation
   ======================================== */

.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Enhanced Scroll Animations
   ======================================== */

.section {
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
}

/* Smooth section transitions */
.skills-section {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--white) 100%);
}

.contact-section {
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
}

/* Card hover glow effect */
.project-card:hover,
.skill-modern-card:hover {
    box-shadow: 0 20px 40px -15px rgba(79, 70, 229, 0.2);
}

/* Smooth link underline animation */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 80%;
}

/* Better focus states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[loading] {
    opacity: 0;
}

/* Better button press effect */
.btn-primary:active,
.btn-secondary:active {
    transform: translateY(0) scale(0.98);
}

/* Floating animation for badges */
@keyframes float-smooth {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(1deg);
    }
    75% {
        transform: translateY(-5px) rotate(-1deg);
    }
}

.floating-badge {
    animation: float-smooth 5s ease-in-out infinite;
}

.floating-badge.top-right {
    animation-delay: 0s;
}

.floating-badge.bottom-left {
    animation-delay: 1.5s;
}

/* Gradient text for highlights */
.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Stat number animation */
.stat-number {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}