/* --- Modern Portfolio Styles --- */

/* CSS Variables for consistent theming */
:root {
    --primary-color: #3B82F6;
    --primary-dark: #1D4ED8;
    --secondary-color: #64748b;
    --accent-color: #06B6D4;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-dark: #0f172a;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --gradient-primary: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    --gradient-secondary: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%);
    --purple-accent: #8B5CF6;
    --purple-light: #A855F7;
    --purple-dark: #7C3AED;
}

/* Dark theme variables */
[data-theme="dark"] {
    --primary-color: #3B82F6;
    --primary-dark: #1D4ED8;
    --secondary-color: #94a3b8;
    --accent-color: #06B6D4;
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-light: #64748b;
    --bg-primary: #0B0C10;
    --bg-secondary: #1F2833;
    --bg-dark: #0F1115;
    --border-color: #334155;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.4);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.4);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
    --gradient-primary: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    --gradient-secondary: linear-gradient(135deg, #1E1E1E 0%, #2C2C2C 100%);
    --purple-accent: #8B5CF6;
    --purple-light: #A855F7;
    --purple-dark: #7C3AED;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    position: relative;
}

a:focus {
        outline: none;
        -webkit-tap-highlight-color: transparent; /* Removes tap highlight on mobile */
        text-decoration: none; 
        color: inherit;
    }

/* Aesthetic Background Shapes */
.background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    top: 10%;
    left: 10%;
    width: 200px;
    height: 200px;
    animation-delay: 0s;
}

.shape-2 {
    top: 60%;
    right: 15%;
    width: 300px;
    height: 300px;
    animation-delay: -5s;
}

.shape-3 {
    bottom: 20%;
    left: 20%;
    width: 250px;
    height: 250px;
    animation-delay: -10s;
}

.floating-dots {
    position: absolute;
    width: 100%;
    height: 100%;
}

.dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.4;
    animation: float-dot 15s ease-in-out infinite;
}

.dot-1 { top: 20%; left: 80%; animation-delay: 0s; }
.dot-2 { top: 40%; left: 90%; animation-delay: -3s; }
.dot-3 { top: 70%; left: 85%; animation-delay: -6s; }
.dot-4 { top: 85%; left: 70%; animation-delay: -9s; }
.dot-5 { top: 60%; left: 10%; animation-delay: -12s; }
.dot-6 { top: 30%; left: 5%; animation-delay: -15s; }

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
    }
    66% {
        transform: translateY(10px) rotate(240deg);
    }
}

@keyframes float-dot {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-30px) scale(1.2);
        opacity: 0.8;
    }
}

/* Dark theme adjustments for shapes */
[data-theme="dark"] .shape {
    opacity: 0.3;
}

[data-theme="dark"] .dot {
    opacity: 0.6;
    background: var(--accent-color);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

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

/* --- Links --- */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* --- Layout & Sections --- */
section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

/* --- Header & Navigation --- */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

[data-theme="dark"] header {
    background: rgba(11, 12, 16, 0.95);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.5rem;
}

.logo-animation {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top: 3px solid var(--purple-accent);
    border-radius: 50%;
    animation: rotate-logo 2s linear infinite;
}

.logo-circle::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 3px solid transparent;
    border-right: 3px solid var(--purple-light);
    border-radius: 50%;
    animation: rotate-logo-reverse 1.5s linear infinite;
}

.logo-text {
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--purple-accent);
    z-index: 2;
    position: relative;
}

.logo-name {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes rotate-logo {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes rotate-logo-reverse {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-360deg);
    }
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav ul li a {
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    background: var(--primary-color);
    color: white;
    transform: none;
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: white;
    transform: none;
}

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

.sun-icon {
    display: block;
}

.moon-icon {
    display: none;
}

[data-theme="dark"] .sun-icon {
    display: none;
}

[data-theme="dark"] .moon-icon {
    display: block;
}

/* --- Hero Section --- */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 2rem;
    background: linear-gradient(135deg, #0B0C10 0%, #1F2833 100%);
    position: relative;
    overflow: hidden;
}

[data-theme="light"] #hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
    max-width: 600px;
    animation: slideInLeft 1s ease-out;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
    animation: fadeInUp 0.8s ease-out 0.2s both;
    position: relative;
    overflow: hidden;
}

.badge-icon {
    font-size: 1.1rem;
}

/* Animated Notification Dot */
.notification-dot {
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    position: relative;
    animation: pulse-dot 2s ease-in-out infinite;
}

.notification-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: #10B981;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-ring 2s ease-in-out infinite;
}

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

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

/* Hero Title */
.hero-title {
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.title-line {
    display: block;
    font-size: 1.5rem;
    color: #cbd5e1;
    font-weight: 400;
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

[data-theme="light"] .title-line {
    color: #64748b;
}

.title-name {
    display: block;
    font-size: clamp(3rem, 6vw, 4.5rem);
    background: linear-gradient(135deg, #3B82F6 0%, #06B6D4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

[data-theme="light"] .title-name {
    background: linear-gradient(135deg, #1D4ED8 0%, #0891B2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-role {
    display: block;
    font-size: 1.8rem;
    background: linear-gradient(135deg, #3B82F6 0%, #06B6D4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

[data-theme="light"] .title-role {
    background: linear-gradient(135deg, #1D4ED8 0%, #0891B2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .title-role {
    color: #1e293b;
}

/* Hero Description */
.hero-description {
    font-size: 1.2rem;
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease-out 1s both;
}

[data-theme="light"] .hero-description {
    color: #64748b;
}

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 1.2s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: var(--purple-accent);
    color: white;
    border-color: var(--purple-accent);
    transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 2rem;
    animation: fadeInUp 0.8s ease-out 1.4s both;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #3B82F6;
    margin-bottom: 0.25rem;
}

[data-theme="light"] .stat-number {
    color: #1D4ED8;
}

.stat-label {
    font-size: 0.9rem;
    color: #cbd5e1;
    font-weight: 500;
}

[data-theme="light"] .stat-label {
    color: #64748b;
}

/* Hero Highlights */
.hero-highlights {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
    animation: fadeInUp 0.8s ease-out 1.6s both;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.highlight-item:hover {
    background: rgba(59, 130, 246, 0.15);
    transform: translateX(5px);
}

.highlight-icon {
    font-size: 1.2rem;
}

.highlight-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: #cbd5e1;
}

[data-theme="light"] .highlight-text {
    color: #64748b;
}

/* Hero Image Container */
.hero-image-container {
    flex-shrink: 0;
    position: relative;
    animation: slideInRight 1s ease-out 0.4s both;
}

.hero-image-placeholder {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid white;
    position: relative;
    background: linear-gradient(135deg, #3B82F6 0%, #06B6D4 100%);
}

.hero-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-image-placeholder:hover img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.2), rgba(6, 182, 212, 0.1));
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-image-placeholder:hover .image-overlay {
    opacity: 1;
}

/* Floating Tech Badges */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.tech-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(59, 130, 246, 0.2);
    animation: float-badge 3s ease-in-out infinite;
}

.tech-badge-1 {
    top: 10%;
    right: -20px;
    animation-delay: 0s;
}

.tech-badge-2 {
    bottom: 20%;
    left: -30px;
    animation-delay: 1s;
}

.tech-badge-3 {
    top: 60%;
    right: -10px;
    animation-delay: 2s;
}

.tech-badge-4 {
    top: 80%;
    left: -15px;
    animation-delay: 3s;
}

.tech-badge-5 {
    top: 30%;
    left: -20px;
    animation-delay: 4s;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* --- About Section --- */
#about {
    background: var(--bg-secondary);
    padding: 6rem 2rem;
}

.about-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.about-image-placeholder {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    flex-shrink: 0;
    border: 4px solid white;
    overflow: hidden;
    position: relative;
}

.about-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.about-image-placeholder:hover img {
    transform: scale(1.05);
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-intro {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 0;
}

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

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.skill-tag {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.skill-tag:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* --- Projects Section --- */
#projects {
    padding: 6rem 2rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.project-image-placeholder {
    height: 200px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.project-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.project-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --- Contact Section --- */
#contact {
    background: var(--bg-secondary);
    text-align: center;
    padding: 6rem 2rem;
}

#contact p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.social-links a {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.social-links a:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* --- Footer --- */
footer {
    background: var(--bg-dark);
    color: var(--text-light);
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
}

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

.animated-element, .animated-section {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.element-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.section-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Staggered animations for project cards */
.project-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* About section animations */
.about-content {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-content.element-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Hero elements animations */
.hero-stats, .hero-actions, .hero-highlights {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-stats.element-visible, .hero-actions.element-visible, .hero-highlights.element-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Skills grid animation */
.skills-grid {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.skills-grid.element-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Individual skill tags animation */
.skill-tag {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.skills-grid.element-visible .skill-tag {
    opacity: 1;
    transform: scale(1);
}

/* Stagger skill tags */
.skills-grid.element-visible .skill-tag:nth-child(1) { transition-delay: 0.1s; }
.skills-grid.element-visible .skill-tag:nth-child(2) { transition-delay: 0.2s; }
.skills-grid.element-visible .skill-tag:nth-child(3) { transition-delay: 0.3s; }
.skills-grid.element-visible .skill-tag:nth-child(4) { transition-delay: 0.4s; }
.skills-grid.element-visible .skill-tag:nth-child(5) { transition-delay: 0.5s; }
.skills-grid.element-visible .skill-tag:nth-child(6) { transition-delay: 0.6s; }

/* --- Responsive Design --- */
@media (max-width: 768px) {
    section {
        padding: 3rem 1rem;
    }
    
    nav {
        padding: 1rem;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-image-container {
        order: -1;
    }
    
    .hero-image-placeholder {
        width: 280px;
        height: 280px;
    }
    
    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .hero-highlights {
        align-items: center;
    }
    
    .tech-badge {
        display: none;
    }
    
    .title-name {
        font-size: 3rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        max-width: 600px;
    }
    
    .about-image-placeholder {
        margin: 0 auto;
        width: 250px;
        height: 250px;
    }
    
    .skills-grid {
        justify-content: center;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    nav ul {
        display: none;
    }
    
    .hero-image-placeholder {
        width: 200px;
        height: 200px;
    }
    
    .about-image-placeholder {
        width: 200px;
        height: 200px;
    }
}

/* --- Smooth Scrolling --- */
html {
    scroll-behavior: smooth;
}

/* --- Loading States --- */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* --- Focus States for Accessibility --- */
a:focus,
button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}