/* === VARIABLES === */
:root {
    /* Light Mode Colors — refined/classy */
    --bg-primary: #fafafa;
    --bg-secondary: #f2f2f4;
    --text-primary: #0b1220;
    --text-secondary: #5b6577;
    --accent: #1e3a8a; /* indigo-800 */
    --accent-hover: #1d4ed8; /* indigo-600 */
    --border: #e4e5ea;
    --card-shadow: 0 8px 24px rgba(11, 18, 32, 0.06);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-bg: rgba(250, 250, 250, 0.98);
    --nav-shadow: 0 2px 20px rgba(0, 0, 0, 0.08), 0 8px 32px rgba(0, 0, 0, 0.04), 0 1px 0 rgba(255, 255, 255, 0.5);
    --nav-border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Dark Mode Colors */
[data-theme="dark"] {
    --bg-primary: #000000;
    --bg-secondary: #1c1c1e;
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --accent: #2997ff;
    --accent-hover: #147ce5;
    --border: #424245;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    --nav-bg: rgba(0, 0, 0, 0.94);
    --nav-shadow: 0 2px 20px rgba(0, 0, 0, 0.6), 0 8px 32px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255, 255, 255, 0.06);
    --nav-border: 1px solid rgba(255, 255, 255, 0.08);
}

/* === BASE STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: var(--transition);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2.25rem;
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 3rem;
    height: 3px;
    background-color: var(--accent);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

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

section {
    padding: 6rem 0;
}

/* === MODERN BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    letter-spacing: -0.3px;
    box-shadow: 
        0 4px 15px rgba(102, 126, 234, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-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.3), 
        transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        transparent 100%);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    box-shadow: 
        0 8px 25px rgba(102, 126, 234, 0.4),
        0 4px 10px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

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

.btn:hover::after {
    opacity: 1;
}

.btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 
        0 2px 8px rgba(102, 126, 234, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.1) 0%, 
        rgba(118, 75, 162, 0.1) 100%);
    border-color: rgba(102, 126, 234, 0.3);
    color: var(--accent);
    box-shadow: 
        0 8px 25px rgba(102, 126, 234, 0.2),
        0 4px 10px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-secondary:active {
    box-shadow: 
        0 2px 8px rgba(102, 126, 234, 0.15),
        0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Contact form button specific styling */
.contact-form button {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 15px rgba(16, 185, 129, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 100%;
    margin-top: auto;
}

.contact-form button::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.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-form button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        transparent 100%);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-form button:hover {
    transform: translateY(-2px) scale(1.02);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 
        0 8px 25px rgba(16, 185, 129, 0.4),
        0 4px 10px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.contact-form button:hover::before {
    left: 100%;
}

.contact-form button:hover::after {
    opacity: 1;
}

.contact-form button:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 
        0 2px 8px rgba(16, 185, 129, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Project and blog card buttons */
.project-content .btn,
.blog-content .btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 
        0 4px 15px rgba(59, 130, 246, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

.project-content .btn:hover,
.blog-content .btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    box-shadow: 
        0 8px 25px rgba(59, 130, 246, 0.4),
        0 4px 10px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* WIP Card Styles */
.wip-card {
    position: relative;
    opacity: 0.85;
    border: 2px dashed var(--accent);
}

.wip-card::before {
    content: 'Work in Progress';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wip-card .blog-date,
.wip-card .project-content h3::after {
    color: var(--accent);
    font-weight: 600;
}

.btn-wip {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 
        0 4px 15px rgba(245, 158, 11, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    cursor: not-allowed;
    opacity: 0.8;
}

.btn-wip:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    box-shadow: 
        0 8px 25px rgba(245, 158, 11, 0.4),
        0 4px 10px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-2px) scale(1.02);
}

/* === NAVIGATION === */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--nav-bg, rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--nav-shadow, 0 2px 10px rgba(0, 0, 0, 0.1));
    border-bottom: var(--nav-border, 1px solid rgba(0, 0, 0, 0.08));
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: all 0.3s ease;
    letter-spacing: -0.3px;
    position: relative;
    z-index: 1;
}

.logo:hover {
    color: var(--accent);
}

.logo-text {
    position: relative;
    z-index: 1;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    margin-left: 6px;
    animation: pulse 2s infinite;
}

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

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

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

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

.nav-link.active {
    color: var(--accent);
    font-weight: 600;
}

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


.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    z-index: 1001;
    position: relative;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
        height: 60px;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
        padding: 8px;
        border-radius: 6px;
        background: var(--bg-secondary);
        border: 1px solid var(--border);
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .nav-toggle:hover {
        background: var(--bg-secondary);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .nav-toggle span {
        background-color: var(--text-primary);
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: var(--bg-primary);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 1.5rem;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        border-radius: 16px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
        min-width: 250px;
        z-index: 1000;
        border: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-link {
        display: block !important;
        padding: 1rem 1.5rem !important;
        font-size: 1rem !important;
        font-weight: 500 !important;
        color: var(--text-primary) !important;
        transition: all 0.3s ease !important;
        position: relative !important;
        text-decoration: none !important;
        background: var(--bg-secondary) !important;
        border-radius: 12px !important;
        border: 1px solid var(--border) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
        width: 100% !important;
        text-align: center !important;
    }

    .nav-link:hover {
        background: rgba(59, 130, 246, 0.1) !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2) !important;
        border-color: rgba(59, 130, 246, 0.3) !important;
        color: var(--accent) !important;
    }

    .nav-link.active {
        background: rgba(59, 130, 246, 0.15) !important;
        border-color: rgba(59, 130, 246, 0.4) !important;
        color: var(--accent) !important;
        font-weight: 600 !important;
    }

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

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

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

    /* Prevent body scroll when menu is open */
    body.nav-open {
        overflow: hidden;
    }

    /* Dark mode adjustments for nav and glass nav */
    [data-theme="dark"] nav {
        background: rgba(0, 0, 0, 0.94);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 
            0 2px 20px rgba(0, 0, 0, 0.6),
            0 8px 32px rgba(0, 0, 0, 0.4),
            0 1px 0 rgba(255, 255, 255, 0.06);
    }

    [data-theme="dark"] .nav-links {
        background: var(--bg-primary);
        border: 1px solid var(--border);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    }

    [data-theme="dark"] .nav-link {
        background: var(--bg-secondary) !important;
        border: 1px solid var(--border) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    }

    [data-theme="dark"] .nav-link:hover {
        background: linear-gradient(135deg, 
            var(--accent) 0%, 
            var(--accent-hover) 100%) !important;
        border-color: var(--accent) !important;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5) !important;
    }

    [data-theme="dark"] .nav-container {
        background: var(--bg-primary);
    }

    [data-theme="dark"] .nav-toggle {
        background: var(--bg-secondary);
        border: 1px solid var(--border);
    }

    [data-theme="dark"] .nav-toggle:hover {
        background: var(--bg-secondary);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
}

/* General Responsive Styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .about-content {
        flex-direction: column;
        gap: 2rem;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .skill-cloud {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .contact-content {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Theme Toggle */
.theme-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    background-color: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border);
    cursor: pointer;
    padding: 0;
    margin-left: 1.5rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--text-primary);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .theme-toggle {
    background-color: var(--accent);
    border-color: var(--accent);
}

[data-theme="dark"] .theme-toggle::before {
    transform: translateX(20px);
    background-color: white;
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    width: 14px;
    height: 14px;
    position: absolute;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.theme-toggle .sun-icon {
    left: 6px;
    color: var(--text-primary);
}

.theme-toggle .moon-icon {
    right: 6px;
    color: #000000;
}

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

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--text-primary);
    transition: var(--transition);
}

/* === HERO SECTION === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bg-primary);
    overflow: hidden;
}

/* Interactive Background Elements */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

.particle:nth-child(odd) {
    animation-delay: -2s;
    animation-duration: 8s;
}

.particle:nth-child(3n) {
    animation-delay: -4s;
    animation-duration: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-20px) translateX(10px);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-10px) translateX(-5px);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-30px) translateX(15px);
        opacity: 0.7;
    }
}

/* Gradient Orbs */
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.3;
    animation: gradientShift 8s ease-in-out infinite;
}

.gradient-orb-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, var(--accent), #667eea);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.gradient-orb-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #764ba2, var(--accent-hover));
    top: 60%;
    right: 15%;
    animation-delay: -2s;
}

.gradient-orb-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(225deg, #667eea, #764ba2);
    bottom: 20%;
    left: 60%;
    animation-delay: -4s;
}

@keyframes gradientShift {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    33% {
        transform: translate(20px, -30px) scale(1.1);
        opacity: 0.5;
    }
    66% {
        transform: translate(-15px, 20px) scale(0.9);
        opacity: 0.4;
    }
}

/* Magnetic Button Effect */
.magnetic-btn {
    position: relative;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.magnetic-btn:hover {
    transform: translateY(-2px) scale(1.05);
}

/* Enhanced Button Hover Effects */
.btn {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.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.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Interactive Cursor Effects */
.hero {
    cursor: none;
}

.hero-content {
    cursor: auto;
}

.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
}

.custom-cursor.hover {
    transform: scale(2);
    background: var(--accent-hover);
}

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
    .hero {
        cursor: auto;
    }
    
    .custom-cursor {
        display: none;
    }
    
    .magnetic-btn:active {
        transform: scale(0.95);
    }
    
    .particle {
        animation-duration: 4s;
    }
    
    .gradient-orb {
        animation-duration: 6s;
    }
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
    .particle,
    .gradient-orb,
    .magnetic-btn {
        animation: none;
        transition: none;
    }
    
    .floating-particles {
        display: none;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .particle {
        width: 3px;
        height: 3px;
    }
}

/* Low-end devices */
@media (max-width: 768px) and (max-height: 1024px) {
    .gradient-orb {
        filter: blur(20px);
    }
    
    .particle {
        animation-duration: 8s;
    }
}

/* Ultra-wide screens */
@media (min-width: 1920px) {
    .gradient-orb-1 {
        width: 400px;
        height: 400px;
    }
    
    .gradient-orb-2 {
        width: 300px;
        height: 300px;
    }
    
    .gradient-orb-3 {
        width: 200px;
        height: 200px;
    }
}

.hero .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    opacity: 0.8;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    min-width: 140px;
}

/* Typewriter Effect */
.typewriter-container {
    margin-bottom: 1rem;
}

.typewriter-container h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.typewriter-text {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid transparent;
}

.typewriter-cursor {
    font-size: 4rem;
    color: var(--accent);
    animation: blink 1s infinite;
    margin-left: 2px;
    font-weight: 700;
}

.hero h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: -0.5px;
    text-align: center;
    margin: 1.5rem 0;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

/* Responsive adjustments for hero section */
@media (max-width: 768px) {
    .hero {
        padding: 1.5rem;
        min-height: 90vh;
    }
    
    .typewriter-text {
        font-size: 2.5rem;
    }
    
    .typewriter-cursor {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
        margin: 1rem 0;
    }
    
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 1.75rem;
    }
    
    .hero-buttons {
        gap: 0.75rem;
    }
    
    .hero-buttons .btn {
        min-width: 120px;
        padding: 0.875rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 1rem;
        min-height: 85vh;
    }
    
    .typewriter-text {
        font-size: 2rem;
    }
    
    .typewriter-cursor {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.4rem;
        margin: 0.75rem 0;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 200px;
        min-width: auto;
    }
}

/* === ABOUT SECTION === */
.about-content {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.about-image {
    flex: 1;
    position: relative;
    max-width: 400px;
}

.about-image img {
    border-radius: 0.5rem;
    width: 100%;
    height: auto;
    display: block;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 100%;
    height: 100%;
    border: 3px solid var(--accent);
    border-radius: 0.5rem;
    z-index: -1;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* Responsive adjustments for about section */
@media (max-width: 992px) {
    .about-content {
        gap: 3rem;
    }
    
    .about-image {
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .about-image {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .about-image::before {
        top: 0.75rem;
        left: 0.75rem;
    }
    
    .about-text p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 480px) {
    .about-content {
        gap: 1.5rem;
    }
    
    .about-image {
        max-width: 250px;
    }
    
    .about-image::before {
        top: 0.5rem;
        left: 0.5rem;
        border-width: 2px;
    }
    
    .about-text p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
}

/* === EXPERIENCE SECTION === */

.experience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 0 auto;
    max-width: 1400px;
}

.experience-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.experience-card-link:hover .experience-card {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--accent);
}

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

.experience-card {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 320px;
}

.experience-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--accent);
}

.experience-image {
    height: 120px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-primary);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.experience-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
    max-width: 80px;
    max-height: 80px;
}

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

.experience-content {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.experience-date {
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.experience-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -0.3px;
    color: var(--text-primary);
}

.experience-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.experience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    background-color: var(--accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: var(--transition);
}

.tag:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

/* Responsive adjustments for experience section */
@media (max-width: 768px) {
    .experience-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .experience-card {
        min-height: auto;
    }
    
    .experience-image {
        height: 100px;
        padding: 1rem;
    }
    
    .experience-image img {
        max-width: 60px;
        max-height: 60px;
    }
    
    .experience-content {
        padding: 1.5rem;
    }
    
    .experience-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .experience-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .experience-tags {
        gap: 0.4rem;
        margin-top: 0.75rem;
    }
    
    .tag {
        padding: 0.2rem 0.6rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 600px) {
    .experience-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .company-logo-wrapper {
        width: 54px;
        height: 54px;
        min-width: 54px;
        min-height: 54px;
    }
    
    .company-logo {
        width: 46px;
        height: 46px;
    }
    
    .company {
        font-size: 1rem;
    }
    
    .date {
        text-align: left;
        min-width: auto;
        font-size: 0.85rem;
    }
    
    .experience-item p {
        padding-left: 0;
        margin-top: 0.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .experience-item {
        padding: 1.25rem;
    }
    
    .experience-title {
        gap: 0.5rem;
    }
    
    .company-logo-wrapper {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
    }
    
    .company-logo {
        width: 34px;
        height: 34px;
    }
    
    .company {
        font-size: 0.95rem;
    }
    
    .date {
        font-size: 0.8rem;
    }
    
    .experience-item p {
        font-size: 0.85rem;
    }
}

/* === SKILL BUBBLE CLOUD (NEW) === */
.skill-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem 2rem;
    margin-top: 2.5rem;
    position: relative;
    min-height: 220px;
}

.skill-bubble {
    position: relative;
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border-radius: 50%;
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.10), 0 1.5px 8px 0 rgba(0,102,204,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 0.5rem 1.5rem 0.5rem;
    transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), box-shadow 0.25s, background 0.25s;
    cursor: pointer;
    z-index: 1;
    animation: float-bubble 4s ease-in-out infinite alternate;
}

.skill-bubble:nth-child(2n) { animation-delay: 0.7s; }
.skill-bubble:nth-child(3n) { animation-delay: 1.2s; }
.skill-bubble:nth-child(4n) { animation-delay: 1.7s; }
.skill-bubble:nth-child(5n) { animation-delay: 2.1s; }

@keyframes float-bubble {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-18px) scale(1.06); }
}

.skill-bubble img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    margin-bottom: 0.3rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.25s;
}

.skill-bubble span {
    font-size: 0.92rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-align: center;
    margin-top: 0.1rem;
}

.skill-bubble:hover {
    transform: scale(1.13) translateY(-8px) rotate(-3deg);
    box-shadow: 0 8px 32px 0 rgba(0,102,204,0.18), 0 2px 12px 0 rgba(0,0,0,0.10);
    background: linear-gradient(135deg, #c7d2fe 0%, #6366f1 100%);
    z-index: 2;
}

.skill-bubble:hover img {
    transform: scale(1.15) rotate(-6deg);
}

/* Tooltip */
.skill-bubble::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: 110%;
    transform: translateX(-50%) scale(0.95);
    background: rgba(30,41,59,0.97);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s, transform 0.18s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    z-index: 10;
}

.skill-bubble:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

@media (max-width: 900px) {
    .skill-cloud {
        gap: 1.5rem 1rem;
    }
    .skill-bubble {
        width: 70px;
        height: 70px;
    }
    .skill-bubble img {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 600px) {
    .skill-cloud {
        gap: 1rem 0.5rem;
        min-height: 120px;
    }
    .skill-bubble {
        width: 54px;
        height: 54px;
        margin-bottom: 0.7rem;
    }
    .skill-bubble img {
        width: 22px;
        height: 22px;
    }
    .skill-bubble span {
        font-size: 0.75rem;
    }
}

/* === PROJECTS SECTION === */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--accent);
}

.project-image {
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

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

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

.project-content {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -0.3px;
    color: var(--text-primary);
}

.project-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.project-content .btn {
    align-self: flex-start;
    margin-top: auto;
}

/* === BLOG SECTION === */
.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-post {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--accent);
}

.blog-image {
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-post:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-date {
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.blog-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -0.3px;
    color: var(--text-primary);
}

.blog-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.blog-content .btn {
    align-self: flex-start;
    margin-top: auto;
}

/* === CONTACT SECTION === */
.contact-content {
    display: flex;
    gap: 4rem;
    align-items: stretch;
    position: relative;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(5, 150, 105, 0.08));
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-info,
.contact-form {
    flex: 1;
    position: relative;
    z-index: 1;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
}

.contact-info:hover,
.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.contact-info {
    justify-content: flex-start;
}

.contact-info p {
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.6;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

.contact-info p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 0.5rem;
    height: 0.5rem;
    background-color: var(--accent);
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 10px var(--accent);
}

.contact-info strong {
    color: var(--text-primary);
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.contact-info strong::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.contact-info strong:hover::after {
    transform: scaleX(1);
}

.contact-form {
    justify-content: space-between;
}

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

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
    transform: translateY(0);
    transition: transform 0.3s ease, color 0.3s ease;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(16, 185, 129, 0.3);
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.05);
    background-color: rgba(255, 255, 255, 0.95);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(75, 85, 99, 0.6);
    transition: opacity 0.3s ease;
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
    opacity: 0.7;
}

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

.form-group .input-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-group input:focus+.input-icon,
.form-group textarea:focus+.input-icon {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.contact-form button {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    width: 100%;
    margin-top: auto;
}

.contact-form button::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.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-form button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        transparent 100%);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-form button:hover {
    transform: translateY(-2px) scale(1.02);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 
        0 8px 25px rgba(16, 185, 129, 0.4),
        0 4px 10px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.contact-form button:hover::before {
    left: 100%;
}

.contact-form button:hover::after {
    opacity: 1;
}

.contact-form button:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 
        0 2px 8px rgba(16, 185, 129, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Home page contact section: match contact page green accent */
#contact {
    --accent: #10b981; /* emerald-500 */
    --accent-hover: #059669; /* emerald-600 */
}

/* Contact section animations */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 5px rgba(16, 185, 129, 0.5);
    }

    50% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.8);
    }

    100% {
        box-shadow: 0 0 5px rgba(16, 185, 129, 0.5);
    }
}

.contact-content {
    animation: pulse-glow 4s infinite ease-in-out;
}

/* Dark mode adjustments for contact section */
[data-theme="dark"] .contact-content {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
}

[data-theme="dark"] .contact-info,
[data-theme="dark"] .contact-form {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    background-color: rgba(0, 0, 0, 0.2);
    border-color: rgba(16, 185, 129, 0.5);
    color: var(--text-primary);
}

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

/* Responsive adjustments for contact section */
@media (max-width: 992px) {
    .contact-content {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
    }
    
    .contact-info,
    .contact-form {
        padding: 1.5rem;
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .contact-content {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .contact-info,
    .contact-form {
        padding: 1.25rem;
    }
    
    .contact-info p {
        padding-left: 1.25rem;
        margin-bottom: 1.25rem;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.875rem;
    }
    
    .form-group textarea {
        min-height: 100px;
    }
}

@media (max-width: 480px) {
    .contact-content {
        padding: 1rem;
        margin: 0 0.5rem;
    }
    
    .contact-info,
    .contact-form {
        padding: 1rem;
    }
    
    .contact-info p {
        padding-left: 1rem;
        margin-bottom: 1rem;
        font-size: 0.9rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .form-group textarea {
        min-height: 80px;
    }
    
    .contact-form button {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* === FOOTER === */
footer {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem 0 2rem;
    margin-top: 6rem;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
}

footer .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-section h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.8;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 1.2rem;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-links a:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
}

.social-links a:hover::before {
    transform: translateX(100%);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    opacity: 0.8;
    position: relative;
    padding-left: 1rem;
    display: inline-block;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    transform: translateY(-50%) scale(0);
    transition: transform 0.3s ease;
}

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

.footer-links a:hover::before {
    transform: translateY(-50%) scale(1);
}

.footer-contact-row {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.footer-contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
    opacity: 0.85;
    transition: color 0.2s, opacity 0.2s;
    padding: 0.2rem 0;
    border-radius: 6px;
}

.footer-contact-link i {
    font-size: 1em;
    color: var(--accent);
    width: 16px;
    text-align: center;
}

.footer-contact-link:hover {
    color: var(--accent);
    opacity: 1;
    background: rgba(0,102,204,0.06);
}

.copyright {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    opacity: 0.6;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Dark mode adjustments */
[data-theme="dark"] footer {
    background: rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .social-links a {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .social-links a:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    footer .container {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    
    .footer-section:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    footer {
        padding: 3rem 0 1.5rem;
    }

    footer .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

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

    .footer-links {
        align-items: center;
    }

    .footer-links a {
        padding-left: 0;
        text-align: center;
    }

    .footer-links a::before {
        display: none;
    }
    
    .footer-contact-row {
        align-items: center;
    }
    
    .footer-contact-link {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    footer .container {
        padding: 0 1rem;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
    }
    
    .footer-section p {
        font-size: 0.9rem;
    }
    
    .footer-contact-link {
        font-size: 0.85rem;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
    }
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* === UTILITY CLASSES === */
.text-center {
    text-align: center;
}

.hidden {
    opacity: 0;
    transform: translateY(20px);
}

/* === SCROLL INDICATOR === */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background-color: var(--accent);
    z-index: 1001;
    width: 0%;
    transition: width 0.1s ease;
}

/* Progress Bar */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1002;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    transition: width 0.1s ease-out;
}

/* Progress markers for each section */
.progress-markers {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 1001;
    pointer-events: none;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.progress-marker {
    position: relative;
    width: 2px;
    height: 100%;
    background-color: var(--bg-secondary);
    opacity: 0.5;
    transition: var(--transition);
    pointer-events: none;
}

.progress-marker.active {
    opacity: 1;
    background-color: var(--accent);
}

.progress-label {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.7;
    transition: var(--transition);
    white-space: nowrap;
    pointer-events: none;
    cursor: default;
}

.progress-marker:hover .progress-label {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .progress-container {
        height: 2px;
    }
}

@media (max-width: 480px) {
    .progress-container {
        height: 1px;
    }
}

/* Removed particle system for better performance */

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* === SKILLS CAROUSEL === */
.skills-carousel-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
}

.skills-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
}

.skills-carousel::before,
.skills-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.skills-carousel::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-secondary) 0%, transparent 100%);
}

.skills-carousel::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-secondary) 0%, transparent 100%);
}

.skills-track {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transition: transform 0.5s ease-out;
}

.skills-row {
    display: flex;
    gap: 2rem;
    animation: slideRow 30s linear infinite;
}

.skills-row:nth-child(even) {
    animation-direction: reverse;
}

@keyframes slideRow {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.skill-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 12px;
    min-width: 120px;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow);
    border-color: var(--accent);
    background: var(--accent);
}

.skill-item:hover span {
    color: white;
}

.skill-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.skill-item:hover img {
    transform: scale(1.1);
}

.skill-item span {
    font-size: 0.9rem;
    color: var(--text-primary);
    text-align: center;
    transition: color 0.3s ease;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s ease;
}

.carousel-arrow:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.prev-arrow {
    left: -20px;
}

.next-arrow {
    right: -20px;
}

[data-theme="dark"] .skills-carousel-container {
    background: var(--bg-secondary);
    border-color: var(--border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .skill-item {
    background: var(--bg-primary);
    border-color: var(--border);
}

[data-theme="dark"] .carousel-arrow {
    background: var(--bg-primary);
    border-color: var(--border);
}

@media (max-width: 768px) {
    .skills-carousel-container {
        padding: 1rem;
    }

    .skill-item {
        min-width: 100px;
        padding: 0.75rem;
    }

    .carousel-arrow {
        width: 36px;
        height: 36px;
    }

    .prev-arrow {
        left: -10px;
    }

    .next-arrow {
        right: -10px;
    }
}

/* Pause animation on hover */
.skills-row:hover {
    animation-play-state: paused;
}

/* === SKILL GROUPS === */
.skill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 1.2rem;
    background: rgba(99,102,241,0.04);
    border-radius: 22px;
    padding: 2.2rem 1.2rem 1.2rem 1.2rem;
    margin: 0 1.5rem 2.5rem 1.5rem;
    position: relative;
    min-width: 220px;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(99,102,241,0.04);
}
.skill-group-label {
    position: absolute;
    top: 0.7rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #6366f1 0%, #818cf8 100%);
    color: #fff;
    font-size: 1.08rem;
    font-weight: 700;
    padding: 0.3rem 1.2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(99,102,241,0.10);
    letter-spacing: 0.5px;
    z-index: 3;
    pointer-events: none;
}
@media (max-width: 900px) {
    .skill-group {
        gap: 1rem 0.7rem;
        padding: 1.5rem 0.5rem 0.7rem 0.5rem;
        margin: 0 0.5rem 1.5rem 0.5rem;
    }
    .skill-group-label {
        font-size: 0.98rem;
        padding: 0.2rem 0.7rem;
    }
}
@media (max-width: 600px) {
    .skill-group {
        gap: 0.5rem 0.3rem;
        padding: 1.1rem 0.2rem 0.5rem 0.2rem;
        margin: 0 0 1rem 0;
    }
    .skill-group-label {
        font-size: 0.82rem;
        padding: 0.15rem 0.5rem;
    }
}

.animated-gradient-bg {
    position: relative;
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(120deg, var(--accent), #38bdf8, #8b5cf6, #10b981, var(--bg-primary));
    background-size: 400% 400%;
    animation: gradientMove 18s ease-in-out infinite;
    z-index: 0;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

nav, .nav-link, .logo, footer, .footer-section, .footer-links, .copyright, .social-links {
    font-family: 'JetBrains Mono', 'Fira Mono', 'Menlo', 'Consolas', monospace !important;
}

/* Responsive adjustments for projects and blog */
@media (max-width: 992px) {
    .projects-grid,
    .blog-posts {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .projects-grid,
    .blog-posts {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-content,
    .blog-content {
        padding: 1.5rem;
    }
    
    .project-content h3,
    .blog-content h3 {
        font-size: 1.2rem;
    }
    
    .project-content p,
    .blog-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .projects-grid,
    .blog-posts {
        gap: 1rem;
    }
    
    .project-content,
    .blog-content {
        padding: 1.25rem;
    }
    
    .project-content h3,
    .blog-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .project-content p,
    .blog-content p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .project-image,
    .blog-image {
        height: 180px;
    }
}

/* === TECH STACK (Enhanced with Icons & Skill Levels) === */
.tech-intro {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  text-align: center;
}

.tech-stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.tech-category {
  background: var(--bg-secondary);
  border-radius: 18px;
  box-shadow: var(--card-shadow);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 350px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

.tech-category:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--accent);
}

.tech-category-header {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  width: 100%;
}

.tech-category-icon {
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  border-radius: 50%;
  color: white;
  font-weight: bold;
  flex-shrink: 0;
}

.tech-category-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
}

.tech-category-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.01em;
  text-align: left;
}

.tech-category-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
}

.tech-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  width: 100%;
}

.tech-pill {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.tech-pill::before {
  content: attr(data-skill);
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--accent);
  color: white;
  font-size: 0.85rem;
  border-radius: 8px;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10;
  pointer-events: none;
}

.tech-pill:hover::before {
  top: -120%;
  opacity: 1;
}

.tech-pill img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: grayscale(0.2) contrast(1.1);
  transition: all 0.3s ease;
  flex-shrink: 0;
  border-radius: 50%;
}

.tech-pill span {
  flex: 1;
  font-weight: 600;
}

.tech-pill:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(0,102,204,0.15);
  transform: translateX(4px);
}

.tech-pill:hover img {
  filter: grayscale(0) brightness(1.2);
  transform: scale(1.1);
}

.skill-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.skill-level-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 70px;
  text-align: right;
}

.skill-dots {
  display: flex;
  gap: 2px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.dot.filled {
  background: var(--accent);
  box-shadow: 0 0 4px rgba(0, 102, 204, 0.3);
}

.tech-pill:hover .skill-level-text {
  color: #fff;
}

.tech-pill:hover .dot {
  background: rgba(255, 255, 255, 0.3);
}

.tech-pill:hover .dot.filled {
  background: #fff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
}

/* Dark mode support */
[data-theme="dark"] .tech-category {
  background: #18181b;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

[data-theme="dark"] .tech-pill {
  background: #232326;
  color: #f5f5f7;
  border-color: #33343a;
}

[data-theme="dark"] .tech-pill:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

[data-theme="dark"] .skill-level-text {
  color: var(--text-secondary);
}

[data-theme="dark"] .dot {
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .dot.filled {
  background: var(--accent);
  box-shadow: 0 0 4px rgba(41, 151, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .tech-stack-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .tech-stack-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .tech-category {
    min-height: auto;
    padding: 1.5rem 1rem 1rem 1rem;
  }
  
  .tech-category-header {
    flex-direction: row;
    text-align: left;
    gap: 0.8rem;
    align-items: flex-start;
  }
  
  .tech-category-icon {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  
  .tech-pill {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }
  
  .tech-pill img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
  }
  
  .skill-rating {
    gap: 0.3rem;
  }
  
  .skill-level-text {
    font-size: 0.7rem;
    min-width: 60px;
  }
  
  .dot {
    width: 6px;
    height: 6px;
  }
}

@media (max-width: 480px) {
  .tech-stack-grid {
    gap: 1.5rem;
  }
  
  .tech-category {
    padding: 1rem 0.8rem 0.8rem 0.8rem;
  }
  
  .tech-category-header {
    gap: 0.6rem;
    margin-bottom: 1rem;
  }
  
  .tech-category-icon {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }
  
  .tech-category-title {
    font-size: 1.1rem;
  }
  
  .tech-category-subtitle {
    font-size: 0.8rem;
    line-height: 1.3;
  }
  
  .tech-pill {
    padding: 0.5rem 0.7rem;
    font-size: 0.85rem;
  }
  
  .tech-pill img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
  }
  
  .skill-rating {
    gap: 0.2rem;
  }
  
  .skill-level-text {
    font-size: 0.65rem;
    min-width: 50px;
  }
  
  .dot {
    width: 5px;
    height: 5px;
  }
}