/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Animated Background */
.particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.6;
}

/* Modern Gradients */
.gradient-bg-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-bg-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.gradient-bg-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Glass Morphism */
.glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

[data-theme="dark"] .glass {
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Button Ripple Effect */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

/* Micro-animations */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.pulse {
    animation: pulse 2s infinite;
}

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

.float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* CSS Variables for Better Color Management */
:root {
    --primary: #6366f1;
    --primary-light: #8b5cf6;
    --primary-dark: #4f46e5;
    --secondary: #64748b;
    --accent: #06b6d4;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --gradient-secondary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    --gradient-mesh: radial-gradient(circle at 20% 50%, #6366f1 0%, transparent 50%), radial-gradient(circle at 80% 20%, #8b5cf6 0%, transparent 50%), radial-gradient(circle at 40% 80%, #06b6d4 0%, transparent 50%);
    --shadow-light: 0 1px 3px rgba(99, 102, 241, 0.12), 0 1px 2px rgba(99, 102, 241, 0.24);
    --shadow-medium: 0 4px 12px rgba(99, 102, 241, 0.15), 0 2px 4px rgba(99, 102, 241, 0.12);
    --shadow-heavy: 0 25px 50px rgba(99, 102, 241, 0.25), 0 12px 24px rgba(99, 102, 241, 0.15);
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    --border-radius-sm: 12px;
    --border-radius-md: 20px;
    --border-radius-lg: 32px;
    --spacing-fluid: clamp(1rem, 4vw, 3rem);
}

/* Enhanced Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate-right.animate {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate-fade {
    opacity: 0;
    transition: opacity 1s ease;
}

.scroll-animate-fade.animate {
    opacity: 1;
}

.scroll-animate-zoom {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate-zoom.animate {
    opacity: 1;
    transform: scale(1);
}

.scroll-animate-rotate {
    opacity: 0;
    transform: rotate(-10deg) scale(0.9);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate-rotate.animate {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.scroll-animate-slide-up {
    opacity: 0;
    transform: translateY(80px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate-slide-up.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Animation Delays */
.scroll-animate:nth-child(1) { transition-delay: 0.1s; }
.scroll-animate:nth-child(2) { transition-delay: 0.2s; }
.scroll-animate:nth-child(3) { transition-delay: 0.3s; }
.scroll-animate:nth-child(4) { transition-delay: 0.4s; }
.scroll-animate:nth-child(5) { transition-delay: 0.5s; }
.scroll-animate:nth-child(6) { transition-delay: 0.6s; }

.scroll-animate-left:nth-child(odd) { transition-delay: 0.1s; }
.scroll-animate-left:nth-child(even) { transition-delay: 0.3s; }

.scroll-animate-right:nth-child(odd) { transition-delay: 0.2s; }
.scroll-animate-right:nth-child(even) { transition-delay: 0.4s; }

/* Smooth Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.scroll-animate-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease;
}

.scroll-animate-scale.animate {
    opacity: 1;
    transform: scale(1);
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #2563eb;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10001;
    font-weight: 600;
    display: none;
}

.skip-link:focus {
    top: 6px;
    display: block;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    background-color: #ffffff;
}

[data-theme="dark"] html {
    background-color: #000000 !important;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    background: #ffffff;
    overflow-x: hidden;
    cursor: none;
    opacity: 0;
    animation: pageLoad 0.8s ease forwards;
}

@keyframes pageLoad {
    to {
        opacity: 1;
    }
}



/* Typography Hierarchy */
h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    line-height: 1.3;
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 600;
    line-height: 1.4;
}

h5 {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    font-weight: 500;
    line-height: 1.4;
}

h6 {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    font-weight: 500;
    line-height: 1.5;
}

p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    font-weight: 400;
    line-height: 1.6;
    color: #1f2937;
}

[data-theme="dark"] p {
    color: #e5e7eb;
}

.text-large {
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    font-weight: 400;
    line-height: 1.7;
    color: #1f2937;
}

.text-small {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    font-weight: 400;
    line-height: 1.5;
    color: #374151;
}

.text-xs {
    font-size: clamp(0.75rem, 1vw, 0.875rem);
    font-weight: 400;
    line-height: 1.4;
    color: #4b5563;
}

[data-theme="dark"] .text-large {
    color: #e5e7eb;
}

[data-theme="dark"] .text-small {
    color: #d1d5db;
}

[data-theme="dark"] .text-xs {
    color: #9ca3af;
}

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

/* Enhanced Focus States */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #2563eb;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Breadcrumb */
.breadcrumb {
    background: rgba(248, 250, 252, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    margin-top: 70px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
}

.breadcrumb-item {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.breadcrumb-item.active {
    color: var(--primary);
    font-weight: 600;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #9ca3af;
}

[data-theme="dark"] .breadcrumb {
    background: rgba(17, 17, 17, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .breadcrumb-item {
    color: #9ca3af;
}

[data-theme="dark"] .breadcrumb-item:hover,
[data-theme="dark"] .breadcrumb-item.active {
    color: var(--accent);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-mesh), linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 120%;
    height: 120%;
    background-size: cover;
    background-position: center;
    will-change: transform;
    z-index: -1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "text image";
    gap: 4rem;
    align-items: center;
}

.hero-text {
    grid-area: text;
}

.hero-image {
    grid-area: image;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 400;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.1rem);
    margin-bottom: 2rem;
    opacity: 0.8;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.btn {
    padding: 14px 28px;
    border-radius: var(--border-radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    font-size: clamp(0.9rem, 2vw, 1rem);
    backdrop-filter: blur(10px);
}

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

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

.btn-primary {
    background: #2563eb;
    color: white;
    border: 2px solid #2563eb;
}

.btn-primary:hover {
    background: var(--gradient-secondary);
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-heavy);
    border-radius: var(--border-radius-lg);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.social-links {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.8s ease 1s both;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.social-links a:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-medium);
    animation: pulse 0.6s ease;
}

.theme-toggle {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.profile-photo {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    border: 5px solid rgba(255, 255, 255, 0.2);
    animation: fadeInRight 0.8s ease 0.4s both, float 6s ease-in-out infinite 2s;
    box-shadow: var(--shadow-heavy);
    transition: var(--transition);
}

.profile-photo:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.4);
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section Styles */
section {
    padding: 60px 0;
    scroll-margin-top: 80px;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 1.5rem;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    animation: fadeInUp 0.6s ease both;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-secondary);
    border-radius: 2px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

/* About Section */
.about {
    background: white;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4b5563;
    text-align: justify;
    text-justify: inter-word;
    margin-bottom: 1.5rem;
}

.about-content p:last-of-type {
    margin-bottom: 0;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas: "stat1 stat2 stat3";
    gap: 30px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
}

.stat-item:nth-child(1) { grid-area: stat1; }
.stat-item:nth-child(2) { grid-area: stat2; }
.stat-item:nth-child(3) { grid-area: stat3; }

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: #2563eb;
    margin-bottom: 10px;
    font-weight: 700;
}

.stat-item p {
    color: #6b7280;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease both;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 50%;
    padding-right: 2rem;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 50%;
    padding-left: 2rem;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 20px;
    width: 16px;
    height: 16px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    transition: var(--transition);
    cursor: pointer;
}

.timeline-dot:hover {
    transform: translateX(-50%) scale(1.5);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.timeline-dot::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    top: -7px;
    left: -7px;
    opacity: 0;
    transform: scale(0.8);
    transition: var(--transition);
}

.timeline-dot:hover::after {
    opacity: 1;
    transform: scale(1.2);
    animation: pulse 2s infinite;
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.timeline-content:hover {
    transform: translateY(-12px) rotateY(2deg);
    box-shadow: var(--shadow-heavy);
    border-left: 4px solid var(--primary);
    border-radius: var(--border-radius-md);
}

.timeline-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.timeline-date {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.achievements {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.achievements li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: #6b7280;
    font-size: 0.9rem;
}

.achievements li:before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
}

/* Skills Section */
.skills {
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}



.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas: 
        "tech cloud"
        "data ai";
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.skill-category:nth-child(1) { grid-area: tech; }
.skill-category:nth-child(2) { grid-area: cloud; }
.skill-category:nth-child(3) { grid-area: data; }
.skill-category:nth-child(4) { grid-area: ai; }

.skill-category {
    animation: fadeInUp 0.6s ease both;
}

.skill-category:nth-child(1) { animation-delay: 0.1s; }
.skill-category:nth-child(2) { animation-delay: 0.2s; }
.skill-category:nth-child(3) { animation-delay: 0.3s; }
.skill-category:nth-child(4) { animation-delay: 0.4s; }

.skill-category h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-item span {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.skill-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-secondary);
    border-radius: 4px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
}

.skill-progress::after {
    content: attr(data-width);
    position: absolute;
    right: -45px;
    top: -30px;
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease 1.5s;
}

.skill-item:hover .skill-progress::after {
    opacity: 1;
}

/* Portfolio Section */
.portfolio {
    padding: 60px 0;
    background: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas: 
        "project1 project2 project3"
        "project4 project5 project6";
    gap: 40px;
    margin-top: 60px;
}

.portfolio-item:nth-child(1) { grid-area: project1; }
.portfolio-item:nth-child(2) { grid-area: project2; }
.portfolio-item:nth-child(3) { grid-area: project3; }
.portfolio-item:nth-child(4) { grid-area: project4; }
.portfolio-item:nth-child(5) { grid-area: project5; }
.portfolio-item:nth-child(6) { grid-area: project6; }

.portfolio-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    transition: var(--transition);
    animation: fadeInUp 0.6s ease both;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.portfolio-item:nth-child(1) { animation-delay: 0.1s; }
.portfolio-item:nth-child(2) { animation-delay: 0.2s; }
.portfolio-item:nth-child(3) { animation-delay: 0.3s; }
.portfolio-item:nth-child(4) { animation-delay: 0.4s; }
.portfolio-item:nth-child(5) { animation-delay: 0.5s; }
.portfolio-item:nth-child(6) { animation-delay: 0.6s; }

.portfolio-item:hover {
    transform: translateY(-20px) scale(1.03) rotateX(5deg) rotateY(2deg);
    box-shadow: var(--shadow-heavy);
    border-color: rgba(99, 102, 241, 0.3);
}

.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.card-3d:hover {
    transform: rotateY(10deg) rotateX(5deg) translateZ(20px);
}

.portfolio-image {
    height: 250px;
    background: var(--gradient-primary);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.portfolio-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: var(--transition);
    opacity: 0;
}

.portfolio-item:hover .portfolio-image::before {
    opacity: 1;
    animation: shimmer 0.8s ease;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.portfolio-overlay {
    text-align: center;
    color: white;
    padding: 30px;
}

.portfolio-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.portfolio-overlay p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.portfolio-tech {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.portfolio-tech span {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    backdrop-filter: blur(10px);
}

.portfolio-metrics {
    padding: 25px;
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #f1f5f9;
}

.metric {
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
}

.metric-label {
    font-size: 0.8rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Certifications Section */
.certifications {
    padding: 60px 0;
    background: #f8fafc;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.cert-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
    transition: var(--transition);
    animation: fadeInUp 0.6s ease both;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cert-item:nth-child(1) { animation-delay: 0.1s; }
.cert-item:nth-child(2) { animation-delay: 0.2s; }
.cert-item:nth-child(3) { animation-delay: 0.3s; }
.cert-item:nth-child(4) { animation-delay: 0.4s; }
.cert-item:nth-child(5) { animation-delay: 0.5s; }
.cert-item:nth-child(6) { animation-delay: 0.6s; }

.cert-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary);
}

.cert-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: white;
    transition: var(--transition);
    position: relative;
}

.cert-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--gradient-secondary);
    opacity: 0.3;
    transform: scale(1.2);
    animation: float 3s ease-in-out infinite;
}

.cert-item:hover .cert-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-medium);
}

.cert-item h3 {
    color: #1f2937;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.cert-item p {
    color: #6b7280;
    font-size: 0.9rem;
}

.cert-link {
    text-align: center;
    margin-top: 40px;
}

/* Recommendations Section */
.recommendations {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.recommendations::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.recommendations-container {
    max-width: 1100px;
    margin: 60px auto 0;
}

.recommendations-stack {
    position: relative;
    min-height: 320px;
    overflow: hidden;
}

.recommendation-card {
    display: none;
}

.recommendation-card.active {
    display: block;
}

.card-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
}

.card-nav-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #667eea;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.card-nav-btn:active {
    width: 35px;
    height: 35px;
    border: 2px solid #667eea;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transform: scale(0.95);
}

.card-nav-btn:hover {
    color: #764ba2;
    transform: scale(1.2);
}

.card-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.card-indicators {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
}

.card-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-dot.active {
    background: #667eea;
    transform: scale(1.5);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.card-counter {
    display: none;
}

.card-radio-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.card-radio-group input[type="radio"] {
    display: none;
}

.card-radio-btn {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: block;
}

.card-radio-btn:hover {
    background: rgba(99, 102, 241, 0.5);
    transform: scale(1.2);
}

input[name="recommendation"]:checked + .card-radio-btn {
    background: #667eea;
    transform: scale(1.4);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.4);
}

.recommendation-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-left: 4px solid transparent;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-left-color 0.3s ease;
    position: relative;
    min-height: 220px;
}

.recommendation-card:nth-child(1) { animation-delay: 0.1s; }
.recommendation-card:nth-child(2) { animation-delay: 0.3s; }
.recommendation-card:nth-child(3) { animation-delay: 0.5s; }
.recommendation-card:nth-child(4) { animation-delay: 0.7s; }
.recommendation-card:nth-child(5) { animation-delay: 0.9s; }
.recommendation-card:nth-child(6) { animation-delay: 1.1s; }

.recommendation-card:hover {
    transform: translateY(-12px) rotateY(2deg);
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.25), 0 12px 24px rgba(99, 102, 241, 0.15);
    border-left-color: #667eea;
    border-radius: 16px;
}

.recommendation-card::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.recommendation-card:hover::before {
    opacity: 0.1;
}



.quote-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    opacity: 0.9;
    animation: float 3s ease-in-out infinite;
}

.recommendation-content {
    position: relative;
    z-index: 2;
}

.recommendation-content p {
    font-style: italic;
    line-height: 1.7;
    color: #374151;
    font-size: 1.05rem;
    margin: 0;
    position: relative;
    padding-left: 30px;
    padding-right: 70px;
    text-align: justify;
}

.recommendation-content p::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -8px;
    font-size: 3rem;
    color: #667eea;
    font-family: 'Georgia', serif;
    opacity: 0.5;
    line-height: 1;
}

.recommendation-author {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(99, 102, 241, 0.15);
    position: relative;
    z-index: 2;
}

.author-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.4rem;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.25);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.author-name-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-info h4 {
    color: #1f2937;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.author-designation-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-info p {
    color: #6b7280;
    font-size: 1rem;
    margin: 0;
    font-style: normal;
}

.author-role {
    display: inline-block;
    background: rgba(99, 102, 241, 0.1);
    color: #667eea;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.rating-stars {
    display: flex;
    gap: 4px;
    margin-top: 5px;
}

.star {
    color: #fbbf24;
    font-size: 1.3rem;
    transition: all 0.2s ease;
    animation: starTwinkle 3s ease-in-out infinite;
}

.star:nth-child(1) { animation-delay: 0s; }
.star:nth-child(2) { animation-delay: 0.3s; }
.star:nth-child(3) { animation-delay: 0.6s; }
.star:nth-child(4) { animation-delay: 0.9s; }
.star:nth-child(5) { animation-delay: 1.2s; }

@keyframes starTwinkle {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.7; }
}



/* Insights Section */
.insights {
    padding: 60px 0;
    background: white;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.insight-card {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: var(--spacing-fluid);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: var(--transition);
    animation: fadeInUp 0.6s ease both;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.insight-card:nth-child(1) { animation-delay: 0.1s; }
.insight-card:nth-child(2) { animation-delay: 0.2s; }
.insight-card:nth-child(3) { animation-delay: 0.3s; }

.insight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), transparent);
    opacity: 0;
    transition: var(--transition);
}

.insight-card:hover::before {
    opacity: 1;
}

.insight-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: var(--shadow-heavy);
    border-color: rgba(99, 102, 241, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.insight-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.insight-date {
    color: #6b7280;
}

.insight-category {
    color: #2563eb;
    font-weight: 500;
}

.insight-card h3 {
    color: #1f2937;
    margin-bottom: 15px;
    font-size: 1.3rem;
    line-height: 1.4;
}

.insight-card p {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 20px;
}

.insight-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.insight-tags span {
    background: #e0e7ff;
    color: #3730a3;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.insight-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 15px;
    padding: 8px 16px;
    background: #0077b5;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.insight-link:hover {
    background: #005885;
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.insight-link i {
    font-size: 1rem;
}

/* Contact Section */
.contact {
    padding: 60px 0;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "info form";
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    grid-area: info;
}

.contact-form {
    grid-area: form;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.contact-info p {
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-item i {
    width: 20px;
    color: #2563eb;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    animation: fadeInRight 0.6s ease 0.2s both;
    transition: var(--transition);
}

.contact-form:hover {
    box-shadow: var(--shadow-medium);
}

.contact-info {
    animation: fadeInLeft 0.6s ease 0.2s both;
}

.form-group {
    margin-bottom: 1.5rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 12px;
    color: #6b7280;
    z-index: 1;
    transition: color 0.3s ease;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background: #fafafa;
}

.form-group textarea {
    padding-left: 40px;
    resize: vertical;
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: var(--primary-light);
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-color: var(--primary);
    background: white;
    transform: scale(1.02);
}

.form-group input:focus + .input-icon,
.form-group textarea:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
    color: var(--primary);
}

.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    min-height: 1.25rem;
    display: block;
}

.form-group input.error,
.form-group textarea.error {
    border-color: #dc2626;
}

.btn-loading {
    display: none;
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.success-animation {
    text-align: center;
    padding: 3rem 2rem;
    animation: fadeInScale 0.6s ease both;
}

.success-checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #10b981;
    margin: 0 auto 2rem;
    box-shadow: inset 0px 0px 0px #10b981;
    animation: fill 0.4s ease-in-out 0.4s forwards, scale 0.3s ease-in-out 0.9s both;
    position: relative;
}

.success-checkmark .check-icon {
    width: 56px;
    height: 56px;
    position: absolute;
    left: 12px;
    top: 12px;
    transform: scale(0);
    animation: scale 0.3s ease-in-out 0.9s both;
}

.check-icon .icon-line {
    height: 2px;
    background: #10b981;
    display: block;
    border-radius: 2px;
    position: absolute;
}

.check-icon .line-tip {
    top: 46px;
    left: 14px;
    width: 25px;
    transform: rotate(45deg);
    animation: icon-line-tip 0.75s;
}

.check-icon .line-long {
    top: 38px;
    right: 8px;
    width: 47px;
    transform: rotate(-45deg);
    animation: icon-line-long 0.75s;
}

.check-icon .icon-circle {
    top: -2px;
    left: -2px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    position: absolute;
    border: 4px solid rgba(16, 185, 129, 0.2);
    animation: icon-circle 0.6s ease-in-out;
}

.success-animation h3 {
    color: #10b981;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.success-animation p {
    color: #6b7280;
    font-size: 1rem;
}

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

@keyframes fill {
    100% { box-shadow: inset 0px 0px 0px 30px #10b981; }
}

@keyframes scale {
    0%, 20% { transform: scale(0); }
    100% { transform: scale(1); }
}

@keyframes icon-line-tip {
    0% { width: 0; left: 1px; top: 19px; }
    54% { width: 0; left: 1px; top: 19px; }
    70% { width: 50px; left: -8px; top: 37px; }
    84% { width: 17px; left: 21px; top: 48px; }
    100% { width: 25px; left: 14px; top: 45px; }
}

@keyframes icon-line-long {
    0% { width: 0; right: 46px; top: 54px; }
    65% { width: 0; right: 46px; top: 54px; }
    84% { width: 55px; right: 0px; top: 35px; }
    100% { width: 47px; right: 8px; top: 38px; }
}

@keyframes icon-circle {
    0% { transform: scale(0); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
}

*:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.nav-link:focus,
.btn:focus,
.social-links a:focus,
.theme-toggle:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

img {
    max-width: 100%;
    height: auto;
}

.footer {
    background: #1f2937;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Dark Mode */
[data-theme="dark"] {
    --bg-primary: #000000;
    --bg-secondary: #111111;
    --text-primary: #ffffff;
    --text-secondary: #e5e5e5;
    --accent: #4f46e5;
}

body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] body {
    background: var(--bg-primary) !important;
    background-color: #000000 !important;
    color: var(--text-primary) !important;
}

.theme-transition {
    transition: all 0.3s ease;
}

.theme-transition * {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .navbar {
    background: rgba(0, 0, 0, 0.95) !important;
}

[data-theme="dark"] .nav-logo {
    color: var(--accent) !important;
}

[data-theme="dark"] .nav-link {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .nav-link:hover {
    color: var(--accent) !important;
}

[data-theme="dark"] .about,
[data-theme="dark"] .skills,
[data-theme="dark"] .portfolio,
[data-theme="dark"] .certifications,
[data-theme="dark"] .contact {
    background: var(--bg-secondary) !important;
}

[data-theme="dark"] .experience,
[data-theme="dark"] .recommendations,
[data-theme="dark"] .insights {
    background: var(--bg-primary) !important;
}

[data-theme="dark"] .timeline-content,
[data-theme="dark"] .cert-item,
[data-theme="dark"] .recommendation-card,
[data-theme="dark"] .portfolio-item,
[data-theme="dark"] .insight-card,
[data-theme="dark"] .contact-form {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    border: 1px solid #333 !important;
}

[data-theme="dark"] .section-title,
[data-theme="dark"] .timeline-content h3,
[data-theme="dark"] .timeline-content h4,
[data-theme="dark"] .timeline-content p,
[data-theme="dark"] .about-content p,
[data-theme="dark"] .contact-info h3,
[data-theme="dark"] .contact-info p,
[data-theme="dark"] .skill-category h3,
[data-theme="dark"] .skill-item span,
[data-theme="dark"] .cert-item h3,
[data-theme="dark"] .cert-item p,
[data-theme="dark"] .recommendation-content p,
[data-theme="dark"] .author-info h4,
[data-theme="dark"] .author-info p,
[data-theme="dark"] .insight-card h3,
[data-theme="dark"] .insight-card p {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .achievements li,
[data-theme="dark"] .timeline-date,
[data-theme="dark"] .stat-item p,
[data-theme="dark"] .insight-date,
[data-theme="dark"] .contact-item span {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .stat-item h3,
[data-theme="dark"] .metric-value,
[data-theme="dark"] .insight-category {
    color: var(--accent) !important;
}

[data-theme="dark"] .timeline-content h4,
[data-theme="dark"] .contact-item i {
    color: var(--accent) !important;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border: 2px solid #333 !important;
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus {
    border-color: var(--accent) !important;
}

[data-theme="dark"] .form-group input::placeholder,
[data-theme="dark"] .form-group textarea::placeholder {
    color: #888 !important;
}

[data-theme="dark"] .error-message {
    color: #f87171 !important;
}

[data-theme="dark"] .form-group input.error,
[data-theme="dark"] .form-group textarea.error {
    border-color: #f87171 !important;
}

[data-theme="dark"] .skip-link {
    background: var(--accent) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .timeline::before {
    background: #333 !important;
}

[data-theme="dark"] .timeline-dot {
    background: var(--accent) !important;
}

[data-theme="dark"] .skill-bar {
    background: #333 !important;
}

[data-theme="dark"] .hamburger span {
    background: var(--text-primary) !important;
}

[data-theme="dark"] .nav-menu {
    background: var(--bg-primary) !important;
    border: none !important;
}

/* Certificate Styles */
[data-theme="dark"] .preview-item {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    border: 1px solid #333 !important;
}

[data-theme="dark"] .preview-item h4 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .mobile-pdf-placeholder {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%) !important;
    color: var(--text-primary) !important;
    border-color: rgba(99, 102, 241, 0.4) !important;
}

[data-theme="dark"] .mobile-pdf-placeholder:hover {
    background: linear-gradient(135deg, var(--bg-primary) 0%, #1a1a2e 100%) !important;
    border-color: var(--accent) !important;
}

[data-theme="dark"] .mobile-pdf-placeholder i {
    color: var(--accent) !important;
}

[data-theme="dark"] .mobile-view-btn {
    background: var(--accent) !important;
}

[data-theme="dark"] .filter-btn {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    border-color: #333 !important;
}

[data-theme="dark"] .filter-btn:hover {
    border-color: var(--accent) !important;
    color: var(--accent) !important;
}

[data-theme="dark"] .filter-btn.active {
    background: var(--accent) !important;
    color: var(--text-primary) !important;
    border-color: var(--accent) !important;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.preview-item {
    background: white;
    border-radius: var(--border-radius-md);
    padding: 20px 20px 0 20px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.preview-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-heavy);
    border-color: rgba(99, 102, 241, 0.3);
}

.preview-item h4 {
    text-align: center;
    color: #111827;
    margin-bottom: 15px;
    font-size: 1.1rem;
    flex-shrink: 0;
    font-weight: 600;
}

.preview-item embed {
    width: 100% !important;
    height: 235px !important;
    border: none !important;
    display: block !important;
    background: #ffffff !important;
    object-fit: fill !important;
    transform: scale(1.02);
    pointer-events: none;
    border-radius: 8px;
    overflow: hidden !important;
}

.mobile-pdf-placeholder {
    display: none;
    width: 100%;
    height: 235px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 2px dashed rgba(99, 102, 241, 0.3);
    border-radius: var(--border-radius-sm);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    color: #1f2937;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.mobile-pdf-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.8s ease;
}

.mobile-pdf-placeholder:hover::before {
    left: 100%;
}

.mobile-pdf-placeholder:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.mobile-pdf-placeholder i {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: var(--primary);
    animation: float 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.mobile-pdf-placeholder p {
    margin: 0 0 15px 0;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}

.mobile-view-btn {
    background: var(--gradient-secondary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.mobile-view-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-heavy);
}

.mobile-view-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Enhanced fallback styles */
.mobile-fallback .mobile-pdf-placeholder {
    display: flex !important;
    animation: fadeInUp 0.6s ease both;
}

.mobile-fallback embed {
    display: none !important;
}

.mobile-fallback {
    cursor: pointer;
}

.mobile-fallback:hover {
    transform: translateY(-8px) scale(1.02);
}

/* PDF unavailable indicator */
.pdf-unavailable {
    position: relative;
}

.pdf-unavailable::after {
    content: 'PDF Viewer Not Available';
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(220, 38, 38, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 3;
}

.cert-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 12px 24px;
    border: 2px solid rgba(99, 102, 241, 0.2);
    background: white;
    color: #1f2937;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-medium);
}

.filter-btn.active {
    background: var(--gradient-secondary);
    color: white;
    border-color: var(--primary);
    box-shadow: var(--shadow-medium);
}

/* Custom Cursor */
.cursor {
    width: 12px;
    height: 12px;
    border: 1px solid rgba(99, 102, 241, 0.6);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.15s ease;
    background: rgba(99, 102, 241, 0.1);
}

.cursor.hover {
    transform: scale(1.5);
    border-color: rgba(99, 102, 241, 0.8);
    background: rgba(99, 102, 241, 0.05);
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }
    
    .cursor,
    .cursor-follower {
        display: none;
    }
    
    .btn, .filter-btn, .preview-item {
        transform: none !important;
        transition: background-color 0.2s ease, box-shadow 0.2s ease;
    }
    
    .btn:active, .filter-btn:active {
        transform: scale(0.98);
    }
    
    .mobile-pdf-placeholder {
        height: 280px;
    }
    
    .mobile-pdf-placeholder i {
        font-size: 4rem;
    }
    
    .mobile-pdf-placeholder p {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
    
    .mobile-view-btn {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    .cert-filter {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
    
    /* Mobile section spacing adjustments */
    section:not(.hero) {
        padding-top: 80px;
        padding-bottom: 80px;
    }
    
    .hero {
        padding-top: 70px;
        min-height: calc(100vh - 70px);
    }
    
    html {
        scroll-padding-top: 80px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        z-index: 999;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        grid-template-areas: "text" "image";
        text-align: center;
        gap: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin: 0;
        padding-left: 3rem;
        text-align: left;
    }
    
    .timeline-dot {
        left: 20px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        grid-template-areas: "tech" "cloud" "data" "ai";
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        grid-template-areas: "info" "form";
        gap: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        grid-template-areas: "stat1 stat2" "stat3 stat3";
        gap: 20px;
    }

    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .recommendations-container {
        max-width: 100%;
        margin: 40px 15px 0;
        min-height: auto;
    }
    
    .recommendations-stack {
        min-height: auto;
        padding: 0 5px;
    }
    
    .card-controls {
        gap: 15px;
        margin-top: 30px;
        padding: 0 10px;
    }
    
    .card-radio-group {
        display: flex;
        gap: 8px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .card-radio-btn {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: rgba(99, 102, 241, 0.3);
        cursor: pointer;
        transition: all 0.3s ease;
        border: none;
        padding: 0;
    }
    
    input[name="recommendation"]:checked + .card-radio-btn {
        background: #667eea;
        transform: scale(1.3);
    }
    
    .recommendation-card {
        padding: 20px 15px;
        border-radius: 16px;
        margin: 0 5px;
        min-height: auto;
    }
    
    .quote-icon {
        top: 10px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .author-avatar {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .recommendation-content p {
        font-size: 0.95rem;
        padding-left: 20px;
        padding-right: 50px;
        line-height: 1.6;
    }
    
    .author-info {
        gap: 15px;
    }
    
    .author-info h4 {
        font-size: 1.1rem;
    }
    
    .author-info p {
        font-size: 0.9rem;
    }
    
    .rating-stars {
        gap: 2px;
    }
    
    .star {
        font-size: 1.1rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        grid-template-areas: "project1" "project2" "project3" "project4" "project5" "project6";
        gap: 20px;
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .portfolio-metrics {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .insight-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .preview-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
    
    .preview-item {
        padding: 15px 15px 0 15px;
    }
    
    .preview-item h4 {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .preview-item embed {
        height: 280px !important;
        transform: scale(1.02);
        overflow: hidden !important;
        pointer-events: none !important;
        -webkit-overflow-scrolling: touch !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .cert-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
        gap: 20px;
    }
    
    .recommendations-container {
        margin: 20px 10px 0;
    }
    
    .recommendation-card {
        padding: 15px 10px;
        margin: 0;
    }
    
    .recommendation-content p {
        font-size: 0.9rem;
        padding-left: 15px;
        padding-right: 40px;
    }
    
    .author-avatar {
        width: 45px;
        height: 45px;
        font-size: 0.9rem;
    }
    
    .quote-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
        top: 8px;
        right: 10px;
    }
    
    .preview-grid {
        gap: 15px;
        padding: 0 5px;
    }
    
    .preview-item {
        padding: 12px 12px 0 12px;
    }
    
    .preview-item h4 {
        font-size: 0.9rem;
    }
    
    .preview-item embed {
        height: 250px !important;
        transform: scale(1.02);
        overflow: hidden !important;
        pointer-events: none !important;
        -webkit-overflow-scrolling: touch !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}



.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-secondary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow-medium);
}

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

.scroll-to-top:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-heavy);
}

[data-theme="dark"] .scroll-to-top {
    background: var(--accent) !important;
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}



/* Interactive Micro-Animations */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

.social-links a {
    position: relative;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.social-links a:hover::before {
    transform: scale(1.2);
    animation: ripple 0.6s ease;
}

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

.nav-link {
    position: relative;
}



.portfolio-tech span {
    transition: var(--transition);
}

.portfolio-tech span:hover {
    transform: translateY(-2px) scale(1.1);
    background: rgba(255, 255, 255, 0.4);
}

.insight-tags span {
    transition: var(--transition);
}

.insight-tags span:hover {
    transform: translateY(-2px) scale(1.05);
    background: var(--primary);
    color: white;
}

.form-group input:focus,
.form-group textarea:focus {
    animation: inputFocus 0.3s ease;
}

@keyframes inputFocus {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1.02); }
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: var(--gradient-secondary);
    border-radius: var(--border-radius-md);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.timeline-content:hover::before {
    opacity: 0.1;
}

.stat-item h3 {
    transition: var(--transition);
}

.stat-item:hover h3 {
    transform: scale(1.1);
    color: var(--primary);
}

.mobile-view-btn {
    position: relative;
    overflow: hidden;
}

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

.mobile-view-btn:hover::before {
    left: 100%;
}

@keyframes rippleEffect {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

/* Enhanced hover states */
.recommendation-card:hover {
    animation: cardPulse 0.6s ease;
}

@keyframes cardPulse {
    0%, 100% { transform: translateY(-8px) scale(1); }
    50% { transform: translateY(-8px) scale(1.02); }
}

.insight-link:hover {
    animation: buttonBounce 0.4s ease;
}

@keyframes buttonBounce {
    0%, 100% { transform: translateY(-2px); }
    50% { transform: translateY(-4px); }
}

/* Staggered animations for grids */
.portfolio-grid .portfolio-item:nth-child(1) { animation-delay: 0.1s; }
.portfolio-grid .portfolio-item:nth-child(2) { animation-delay: 0.2s; }
.portfolio-grid .portfolio-item:nth-child(3) { animation-delay: 0.3s; }
.portfolio-grid .portfolio-item:nth-child(4) { animation-delay: 0.4s; }
.portfolio-grid .portfolio-item:nth-child(5) { animation-delay: 0.5s; }
.portfolio-grid .portfolio-item:nth-child(6) { animation-delay: 0.6s; }

.preview-grid .preview-item:nth-child(odd) {
    animation-delay: 0.1s;
}

.preview-grid .preview-item:nth-child(even) {
    animation-delay: 0.2s;
}

/* Testimonial Carousel Auto-play */
.recommendation-card {
    transition: opacity 0.5s ease-in-out;
}

.recommendation-card:not(:first-child) {
    display: none;
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.progress-bar-fill {
    height: 100%;
    background: var(--gradient-secondary);
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}





/* Section Progress Indicators */
.section-progress {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.section-progress-fill {
    width: 100%;
    height: 0%;
    background: var(--gradient-secondary);
    transition: height 0.3s ease;
    border-radius: 2px;
}

.experience, .skills, .portfolio {
    position: relative;
}

/* Interactive Timeline Enhancements */
.timeline-item {
    cursor: pointer;
    transition: var(--transition);
}

.timeline-item:hover {
    transform: scale(1.02);
}

.timeline-dot {
    position: relative;
}

.timeline-tooltip {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 10;
}

.timeline-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--primary);
}

.timeline-dot:hover .timeline-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

.timeline-details {
    margin-top: 20px;
    padding: 15px;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.timeline-content:hover .timeline-details {
    opacity: 1;
    max-height: 200px;
    margin-top: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.detail-label {
    font-weight: 600;
    color: var(--primary);
}

.detail-value {
    color: #6b7280;
    text-align: right;
    flex: 1;
    margin-left: 10px;
}

.timeline-item::before {
    content: attr(data-duration);
    position: absolute;
    right: -80px;
    top: 20px;
    background: var(--gradient-secondary);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0;
    transition: var(--transition);
}

.timeline-item:hover::before {
    opacity: 1;
    transform: translateX(-10px);
}

@media (max-width: 768px) {
    .timeline-item::before {
        display: none;
    }
    
    .timeline-tooltip {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
}

.skill-category {
    animation: fadeInUp 0.6s ease both;
}

.skill-category:nth-child(1) { animation-delay: 0.1s; }
.skill-category:nth-child(2) { animation-delay: 0.2s; }
.skill-category:nth-child(3) { animation-delay: 0.3s; }
.skill-category:nth-child(4) { animation-delay: 0.4s; }

.skill-category h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-item span {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.skill-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-secondary);
    border-radius: 4px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
}

.skill-progress::after {
    content: attr(data-width);
    position: absolute;
    right: -45px;
    top: -30px;
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease 1.5s;
}

.skill-item:hover .skill-progress::after {
    opacity: 1;
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .skill-circle {
        transform: scale(0.9);
    }
    
    .skill-name {
        font-size: 0.8rem;
    }
}