:root {
    /* Dark Theme Colors */
    --bg-primary: #0f0f0f;
    --bg-secondary: rgba(255, 255, 255, 0.03);
    --bg-header: rgba(15, 15, 15, 0.9);
    --bg-header-scroll: rgba(15, 15, 15, 0.95);
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --text-tertiary: #666666;
    --text-on-accent: #000000;
    --border-primary: rgba(255, 255, 255, 0.1);
    --border-secondary: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.2);
    --bg-button: rgba(255, 255, 255, 0.1);
    --bg-button-hover: rgba(40, 40, 40, 0.8);
    --bg-card: rgba(30, 30, 30, 1);
    --bg-card-hover: rgba(35, 35, 35, 1);
    --avatar-bg: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    --avatar-shape: #444444;
    --gradient-primary: linear-gradient(135deg, #c084fc, #f472b6);
    --gradient-text: linear-gradient(135deg, #c084fc, #f472b6);
    --shadow-primary: rgba(192, 132, 252, 0.3);
    --accent-color: #c084fc;
    --available-color: #10b981; /* Tailwind green-500 */
}

[data-theme="light"] {
    /* Light Theme Colors */
    --bg-primary: #ffffff;
    --bg-secondary: rgba(0, 0, 0, 0.03);
    --bg-header: rgba(255, 255, 255, 0.9);
    --bg-header-scroll: rgba(255, 255, 255, 0.95);
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --text-on-accent: #ffffff;
    --border-primary: rgba(0, 0, 0, 0.1);
    --border-secondary: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.2);
    --bg-button: rgba(0, 0, 0, 0.05);
    --bg-button-hover: rgba(230, 230, 230, 0.8);
    --bg-card: #ffffff;
    --bg-card-hover: #f7f7f7;
    --avatar-bg: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    --avatar-shape: #cccccc;
}

/* PRELOADER STYLES */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
    z-index: 9999;
    animation: preloaderFadeOut 0.8s ease-in-out 2.2s forwards;
}

@keyframes preloaderFadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Animated background particles */
.bg-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float-particle 8s infinite;
}

@keyframes float-particle {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

/* Glowing circle effect behind logo */
.glow-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(192, 132, 252, 0.3) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s ease-in-out infinite;
    filter: blur(40px);
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

.logo-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 3rem;
}

.preloader .logo {
    width: 100%;
    height: 100%;
    animation: rotate3d 3s ease-in-out infinite;
}

@keyframes rotate3d {
    0%, 100% {
        transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
    }
    50% {
        transform: perspective(1000px) rotateY(10deg) rotateX(5deg);
    }
}

.preloader .logo svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 40px rgba(192, 132, 252, 0.8));
}

.logo-letter {
    fill: none;
    stroke: url(#gradient);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw 1.5s ease-in-out forwards;
}

.logo-letter:nth-child(2) {
    animation-delay: 0.3s;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

/* Glitch effect on name */
.preloader h1 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 12px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInGlitch 0.8s ease-in-out 0.5s forwards;
    position: relative;
    background: linear-gradient(90deg, #fff, #c084fc, #fff);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInGlitch 0.8s ease-in-out 0.5s forwards, shimmer 3s linear infinite;
}

@keyframes fadeInGlitch {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Hexagonal loading spinner */
.loading-container {
    margin-top: 3rem;
    opacity: 0;
    animation: fadeIn 0.8s ease-in-out 1s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.hexagon-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    position: relative;
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

.hex {
    position: absolute;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #c084fc, #a855f7);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    opacity: 0;
    animation: hexFade 2s ease-in-out infinite;
}

.hex:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.hex:nth-child(2) { top: 20px; right: 0; animation-delay: 0.2s; }
.hex:nth-child(3) { bottom: 20px; right: 0; animation-delay: 0.4s; }
.hex:nth-child(4) { bottom: 0; left: 50%; transform: translateX(-50%); animation-delay: 0.6s; }
.hex:nth-child(5) { bottom: 20px; left: 0; animation-delay: 0.8s; }
.hex:nth-child(6) { top: 20px; left: 0; animation-delay: 1s; }

@keyframes hexFade {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Progress dots */
.progress-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 2rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    animation: dotPulse 1.5s ease-in-out infinite;
}

.dot:nth-child(1) { animation-delay: 0s; }
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }
.dot:nth-child(4) { animation-delay: 0.6s; }
.dot:nth-child(5) { animation-delay: 0.8s; }

@keyframes dotPulse {
    0%, 100% {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1);
    }
    50% {
        background: rgba(192, 132, 252, 1);
        transform: scale(1.5);
    }
}

.preloader-content {
    text-align: center;
    position: relative;
    z-index: 10;
}

/* Hide main content initially */
.main-wrapper {
    opacity: 0;
    visibility: hidden;
    animation: showContent 0.8s ease-in-out 3s forwards;
}

@keyframes showContent {
    to {
        opacity: 1;
        visibility: visible;
    }
}

/* Rest of your existing CSS remains the same */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
}

/* ... (rest of your existing CSS code remains exactly the same) ... */

/* Background Animations */
body::before,
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Typing Animation with Geometric Shapes */
body::before {
    background-image: 
        /* H - Two vertical lines and one horizontal */
        linear-gradient(90deg, rgba(192, 132, 252, 0.4) 0%, rgba(192, 132, 252, 0.4) 4px, transparent 4px, transparent 8px),
        linear-gradient(90deg, rgba(192, 132, 252, 0.4) 0%, rgba(192, 132, 252, 0.4) 4px, transparent 4px, transparent 8px),
        linear-gradient(0deg, rgba(192, 132, 252, 0.4) 0%, rgba(192, 132, 252, 0.4) 4px, transparent 4px, transparent 8px),
        /* I - One vertical line with two horizontal caps */
        linear-gradient(90deg, rgba(244, 114, 182, 0.4) 0%, rgba(244, 114, 182, 0.4) 4px, transparent 4px, transparent 8px),
        linear-gradient(0deg, rgba(244, 114, 182, 0.4) 0%, rgba(244, 114, 182, 0.4) 4px, transparent 4px, transparent 8px),
        linear-gradient(0deg, rgba(244, 114, 182, 0.4) 0%, rgba(244, 114, 182, 0.4) 4px, transparent 4px, transparent 8px),
        /* N - Two vertical lines and one diagonal */
        linear-gradient(90deg, rgba(192, 132, 252, 0.4) 0%, rgba(192, 132, 252, 0.4) 4px, transparent 4px, transparent 8px),
        linear-gradient(90deg, rgba(192, 132, 252, 0.4) 0%, rgba(192, 132, 252, 0.4) 4px, transparent 4px, transparent 8px),
        linear-gradient(45deg, rgba(192, 132, 252, 0.4) 0%, rgba(192, 132, 252, 0.4) 4px, transparent 4px, transparent 8px),
        /* E - Three horizontal lines and one vertical */
        linear-gradient(0deg, rgba(244, 114, 182, 0.4) 0%, rgba(244, 114, 182, 0.4) 4px, transparent 4px, transparent 8px),
        linear-gradient(0deg, rgba(244, 114, 182, 0.4) 0%, rgba(244, 114, 182, 0.4) 4px, transparent 4px, transparent 8px),
        linear-gradient(0deg, rgba(244, 114, 182, 0.4) 0%, rgba(244, 114, 182, 0.4) 4px, transparent 4px, transparent 8px),
        linear-gradient(90deg, rgba(244, 114, 182, 0.4) 0%, rgba(244, 114, 182, 0.4) 4px, transparent 4px, transparent 8px),
        /* H - Two vertical lines and one horizontal */
        linear-gradient(90deg, rgba(192, 132, 252, 0.4) 0%, rgba(192, 132, 252, 0.4) 4px, transparent 4px, transparent 8px),
        linear-gradient(90deg, rgba(192, 132, 252, 0.4) 0%, rgba(192, 132, 252, 0.4) 4px, transparent 4px, transparent 8px),
        linear-gradient(0deg, rgba(192, 132, 252, 0.4) 0%, rgba(192, 132, 252, 0.4) 4px, transparent 4px, transparent 8px),
        /* A - Triangle shape with horizontal line */
        linear-gradient(45deg, rgba(244, 114, 182, 0.4) 0%, rgba(244, 114, 182, 0.4) 4px, transparent 4px, transparent 8px),
        linear-gradient(-45deg, rgba(244, 114, 182, 0.4) 0%, rgba(244, 114, 182, 0.4) 4px, transparent 4px, transparent 8px),
        linear-gradient(0deg, rgba(244, 114, 182, 0.4) 0%, rgba(244, 114, 182, 0.4) 4px, transparent 4px, transparent 8px),
        /* L - Two vertical lines */
        linear-gradient(90deg, rgba(192, 132, 252, 0.4) 0%, rgba(192, 132, 252, 0.4) 4px, transparent 4px, transparent 8px),
        linear-gradient(0deg, rgba(192, 132, 252, 0.4) 0%, rgba(192, 132, 252, 0.4) 4px, transparent 4px, transparent 8px);
    background-position: 
        /* H positions (HI) */
        10% 20%, 10% 80%, 10% 50%,
        /* I positions (HI) */
        20% 20%, 20% 50%, 20% 80%,
        /* N positions (NEHAL) */
        35% 25%, 35% 75%, 35% 50%,
        /* E positions (NEHAL) */
        50% 20%, 50% 50%, 50% 80%, 50% 50%,
        /* H positions (NEHAL) */
        65% 25%, 65% 75%, 65% 50%,
        /* A positions (NEHAL) */
        80% 25%, 80% 75%, 80% 50%,
        /* L positions (NEHAL) */
        95% 25%, 95% 75%;
    background-size: 8px 80px, 8px 80px, 80px 8px, 8px 80px, 80px 8px, 80px 8px, 8px 80px, 8px 80px, 80px 8px, 80px 8px, 80px 8px, 80px 8px, 8px 80px, 8px 80px, 80px 8px, 80px 8px, 80px 8px, 8px 80px, 80px 8px;
    background-repeat: no-repeat;
    animation: typeHiNehal 12s ease-in-out infinite;
}

/* Geometric Pattern Background */
body::after {
    background-image: 
        radial-gradient(3px 3px at 10% 20%, rgba(192, 132, 252, 0.05), transparent),
        radial-gradient(3px 3px at 90% 80%, rgba(244, 114, 182, 0.05), transparent),
        radial-gradient(2px 2px at 80% 10%, rgba(192, 132, 252, 0.03), transparent),
        radial-gradient(2px 2px at 20% 90%, rgba(244, 114, 182, 0.03), transparent);
    background-size: 200px 200px, 300px 300px, 400px 400px, 500px 500px;
    animation: float 15s ease-in-out infinite;
}

@keyframes typeHiNehal {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    25% {
        opacity: 0.7;
        transform: scale(1.05);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.1);
    }
    75% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Remove the old floating elements */
.floating-element {
    display: none;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 0;
    background: var(--bg-header);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-primary);
    transition: background-color 0.3s ease, height 0.3s ease;
    height: 90px;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text h1 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.desktop-nav .nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cta-button {
    background: var(--gradient-primary);
    color: #000;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-primary);
}

.cta-button:hover i {
    transform: translateX(5px);
}

/* Theme Toggle */
.theme-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-button);
    border: 1px solid var(--border-hover);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: var(--bg-button-hover);
}

.theme-toggle.is-switching {
    animation: spin-icon 0.5s ease-in-out;
}

.theme-icon {
    position: absolute;
    width: 24px;
    height: 24px;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.sun-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.8);
}

.sun-center {
    width: 12px;
    height: 12px;
    background: var(--text-secondary);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: background-color 0.3s ease;
}

.sun-ray {
    position: absolute;
    width: 2px;
    height: 6px;
    background: var(--text-secondary);
    border-radius: 1px;
    top: 2px;
    left: 50%;
    transform-origin: 1px 10px;
    transform: translateX(-50%) rotate(calc(var(--i) * 45deg));
    transition: background-color 0.3s ease;
}

.moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.moon-body {
    width: 16px;
    height: 16px;
    background: var(--text-secondary);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: background-color 0.3s ease;
}

.moon-body::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--bg-primary);
    border-radius: 50%;
    top: -2px;
    right: -2px;
    transition: background-color 0.3s ease;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 50%;
    left: var(--x);
    top: var(--y);
    animation: starTwinkle 2s ease-in-out infinite;
    animation-delay: var(--delay);
}

[data-theme="light"] .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .moon-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.8);
}

[data-theme="light"] .sun-center,
[data-theme="light"] .sun-ray {
    background: #fbbf24;
}

/* Mobile & Fixed Elements */
.mobile-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    display: none;
}

.mobile-nav-container {
    background: rgba(172, 162, 162, 0.7);
    backdrop-filter: blur(50px);
    border: 1px solid rgba(10, 1, 1, 0.1);
    border-radius: 60px;
    padding: 8px;
    display: flex;
    gap: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-nav-item i {
    font-size: 20px;
}

.mobile-nav-item:hover {
    color: var(--text-primary);
}

.mobile-nav-item.active {
    background: var(--gradient-primary);
    color: #020000;
}

/* Main Layout */
.main-wrapper {
    padding-top: 90px;
    min-height: 100vh;
    display: flex;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    gap: 80px;
    width: 100%;
}

.main-content {
    flex: 1;
    padding: 60px 0;
}

.section {
    padding-top: 60px;
    margin-top: -60px;
    margin-bottom: 120px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
    color: var(--text-secondary);
    font-size: 15px;
}

.section-header i {
    color: var(--accent-color);
}

.section-title {
    text-align: left;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-primary);
}

/* Profile Sidebar */
.profile-sidebar {
    flex: 0 0 450px;
    position: sticky;
    top: 120px;
    height: fit-content;
}

.profile-card {
    background: var(--bg-secondary);
    border-radius: 24px;
    padding: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-secondary);
}

.profile-image {
    width: 240px;
    height: 240px;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 36px;
    background: var(--gradient-primary);
    padding: 2px;
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
    background: var(--bg-primary);
}

.profile-info {
    margin-bottom: 36px;
    text-align: center;
}

.profile-info .specialization {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 10px;
    font-weight: 500;
}

.profile-info .title {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
}

.profile-info .subtitle {
    color: var(--text-secondary);
    font-size: 17px;
    margin-bottom: 24px;
}

.location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 36px;
    justify-content: center;
}

.location strong {
    color: var(--text-primary);
}

.social-links {
    display: flex;
    gap: 16px;
    margin-bottom: 36px;
    justify-content: center;
}

.social-links a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 18px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s ease-in-out;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--gradient-primary);
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.social-links a:hover::before {
    transform: scale(1);
}

.social-links a:hover {
    color: var(--text-on-accent);
}

.social-links a i {
    transition: transform 0.3s ease;
}

.social-links a:hover i {
    transform: scale(1.1);
}

.work-together-btn {
    width: 100%;
    background: var(--gradient-primary);
    color: #000;
    padding: 18px 28px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    display: block;
}

.work-together-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-primary);
}

/* Home Section */
.hero-section {
    margin-bottom: 60px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 60px;
}

.action-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 100px;
}

.btn-primary,
.btn-secondary {
    padding: 16px 32px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #000;
    border: none;
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-hover);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px var(--shadow-primary);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* About Section */
.about-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.7;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-item {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border-secondary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Toggle Menu Redesign */
.toggle-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.section-toggle {
    display: flex;
    gap: 15px;
    border-bottom: 1px solid var(--border-secondary);
    padding-bottom: 10px;
}

.toggle-btn {
    position: relative;
    background: transparent;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.4s ease;
    z-index: 2;
    white-space: nowrap;
}

.toggle-btn:hover {
    color: var(--text-primary);
}

.toggle-btn::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.toggle-btn.active {
    color: var(--text-primary);
}

.toggle-btn.active::after {
    width: 80%;
}

.skills-content-panel,
.project-panel {
    display: none;
    animation: fadeIn 0.5s ease;
}

.skills-content-panel.active,
.project-panel.active {
    display: block;
}

/* Skills Section */
.skills-grid-circular {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    justify-items: center;
    padding-top: 20px;
}

.skill-item-circular {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.skill-progress-container {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-track,
.progress-ring-bar {
    fill: transparent;
    stroke-width: 8px;
}

.progress-ring-track {
    stroke: var(--bg-card);
}

.progress-ring-bar {
    stroke: url(#progress-gradient);
    stroke-linecap: round;
    transition: stroke-dashoffset 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.skill-icon-container {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 40px;
}

.skill-icon-container i,
.skill-icon-container .skill-percentage-text {
    position: absolute;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.skill-icon-container .skill-percentage-text {
    opacity: 0;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    transform: scale(0.8);
}

.skill-item-circular:hover .skill-icon-container i {
    opacity: 0;
    transform: scale(0.8);
}

.skill-item-circular:hover .skill-icon-container .skill-percentage-text {
    opacity: 1;
    transform: scale(1);
}

.skill-title-circular {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Certifications */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding-top: 20px;
}

.certificate-item {
    background: var(--bg-card);
    border-radius: 15px;
    border: 1px solid var(--border-secondary);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.certificate-item:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cert-image-wrapper {
    position: relative;
}

.cert-image-wrapper img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.certificate-item:hover .cert-image-wrapper img {
    transform: scale(1.05);
}

.cert-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 15, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cert-hover-overlay span {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.certificate-item:hover .cert-hover-overlay {
    opacity: 1;
}

.certificate-item:hover .cert-hover-overlay span {
    transform: translateY(0);
}

.cert-details {
    padding: 20px;
}

.cert-details h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.cert-details p {
    color: var(--text-secondary);
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Resume Section */
.resume-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 50px;
}

.resume-section {
    margin-bottom: 50px;
}

.resume-section h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-secondary);
}

.resume-item {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding: 25px;
    background: var(--bg-card);
    border-radius: 15px;
    border: 1px solid var(--border-secondary);
    transition: all 0.3s ease;
}

.resume-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateX(5px);
}

.resume-year {
    flex: 0 0 120px;
    font-weight: 600;
    color: var(--accent-color);
    font-size: 14px;
}

.resume-details h5 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.resume-details p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 8px;
}

.resume-details span {
    color: var(--text-tertiary);
    font-size: 14px;
}

.download-cv .fa-download {
    transition: transform 0.3s ease;
}

.download-cv:hover .fa-download {
    animation: download-icon-animation 1.5s ease-out infinite;
}

/* Projects Section */
.project-panels-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    text-align: left;
    position: relative;
    transition: all 0.3s ease;
    padding: 30px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-secondary);
    cursor: pointer;
    overflow: hidden;
}

.project-card:hover .project-icon,
.project-card:hover .project-title {
    transform: translateY(-10px);
}

.project-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    position: relative;
    transition: transform 0.4s ease;
}

.project-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--accent-color);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
    transition: transform 0.4s ease;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
    min-height: 50px;
}

.project-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-hover-overlay span {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(10px);
    transition: transform 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.project-card:hover .project-hover-overlay {
    opacity: 1;
}

.project-card:hover .project-hover-overlay span {
    transform: translateY(0);
}

/* Contact Section */
.contact-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.contact-content>p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 50px;
    line-height: 1.7;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: var(--bg-card);
    border-radius: 15px;
    border: 1px solid var(--border-secondary);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.contact-item i {
    font-size: 24px;
    color: var(--accent-color);
    width: 40px;
    text-align: center;
}

.contact-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.contact-item a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent-color);
}

.contact-item span {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Contact Form Styling */
.contact-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid var(--border-primary);
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Form Progress Border - Removed progressive states, kept base styling */
.contact-form::before, .contact-form::after {
    display: none;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--bg-primary);
    box-shadow: 0 0 15px rgba(192, 132, 252, 0.2);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-tertiary);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
    margin-bottom: 30px; /* Kept margin for spacing before button */
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(5px);
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--bg-primary);
    margin: 5% auto;
    padding: 40px;
    border: 1px solid var(--border-hover);
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.close {
    color: var(--text-secondary);
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.close:hover {
    color: var(--text-primary);
    transform: rotate(90deg);
}

.project-modal-content .modal-title {
    font-size: 2.2rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.project-modal-content .modal-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.modal-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-secondary);
}

.modal-meta h4 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 5px;
}

.modal-meta p {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.modal-section {
    margin-bottom: 30px;
}

.modal-section h4 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.modal-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

.live-preview-btn {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--text-on-accent);
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.live-preview-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px var(--shadow-primary);
}

.project-screenshot {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--border-secondary);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    background: rgba(192, 132, 252, 0.1);
    color: var(--accent-color);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    border: 1px solid rgba(192, 132, 252, 0.2);
}

.certificate-modal-content {
    max-width: 900px;
    text-align: center;
}

.certificate-modal-image {
    width: 100%;
    max-width: 800px;
    margin-top: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-secondary);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes spin-icon {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes starTwinkle {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(0.8);
    }
}

@keyframes download-icon-animation {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(8px);
        opacity: 1;
    }
    90% {
        transform: translateY(-8px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 0;
    }
}

/* Logo Styles - NEW Implementation */
.logo-icon {
    display: flex;
    align-items: center;
}

.logo-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    transition: filter 0.3s ease;
}

/* Make logo white in dark mode */
[data-theme="dark"] .logo-image {
    /* Filters to change color to white: brightness(0) inverts black to white, then sepia(100) and hue-rotate for color */
    filter: brightness(0) invert(1) drop-shadow(0 0 1px rgba(255, 255, 255, 0.5));
}

/* Make logo black in light mode */
[data-theme="light"] .logo-image {
    filter: none; /* Assumes original image is black or dark */
}

/* Footer Styles - UPDATED */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-primary);
    padding: 60px 40px 20px;
    color: var(--text-secondary);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    /* Changed to 3 columns for brand (centered), links (vertical), and contact */
    grid-template-columns: 1fr 1fr 1fr; 
    display: grid;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-secondary);
}

.footer-column h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}
/* Ensure quick links are in a vertical series */
.quick-links-list li { 
    margin-bottom: 10px;
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--accent-color);
}

.footer-text {
    font-size: 0.9rem;
    margin-top: 15px;
    line-height: 1.8;
}

.footer-column p {
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-column p i {
    color: var(--accent-color);
    width: 20px;
    text-align: center;
}

/* Footer Centered Brand Column */
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center items in this column */
    text-align: center;
}

.footer-logo-center {
    margin-bottom: 10px;
}

/* Available Indicator Styling */
.availability-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 8px 15px;
    border-radius: 20px;
    background: rgba(16, 185, 129, 0.1); /* light green background */
    border: 1px solid var(--available-color);
}

.availability-indicator p {
    color: var(--available-color);
    font-weight: 500;
    margin: 0;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: var(--available-color);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--available-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Social Links Group */
.social-links-footer {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links-footer a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 16px;
    transition: all 0.3s ease;
}

.social-links-footer a:hover {
    background: var(--gradient-primary);
    color: var(--text-on-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.footer-bottom {
    max-width: 1400px;
    margin: 20px auto 0;
    padding: 0 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.footer-bottom p {
    margin: 5px 0;
}

/* Submit Button - Centered */
.contact-form .btn-primary {
    position: relative;
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
    min-width: 200px;
}

/* Skills Logo Colors - Enhanced for visibility */
.skill-icon-container i.fab.fa-html5 {
    color: #e34f26;
}

.skill-icon-container i.fab.fa-css3-alt {
    color: #1572b6;
}

.skill-icon-container i.fab.fa-js-square {
    color: #f7df1e;
}

.skill-icon-container i.fa-brands.fa-python {
    color: #3776ab;
}

.skill-icon-container i.fa-brands.fa-php {
    color: #777bb4;
}

.skill-icon-container i.fa-brands.fa-java {
    color: #ed8b00;
}

/* Form Row Layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-field {
    position: relative;
    margin-bottom: 20px;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 15px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.1);
}

@media (max-width: 1200px) {
    html {
        scroll-padding-top: 90px;
    }
    .container {
        gap: 60px;
    }
    .profile-sidebar {
        flex: 0 0 400px;
    }
    .hero-title,
    .hero-subtitle {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    /* Adjust brand column for smaller two-column layout */
    .footer-brand {
        grid-column: span 2;
        order: -1; /* Place at the top */
    }
    .modal-content {
        max-width: 90%;
    }

}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 80px;
    }
    .header {
        height: 80px;
    }
    .header-content {
        padding: 0 20px;
    }
    .desktop-nav {
        display: none;
    }
    .mobile-nav {
        display: block;
    }
    .main-wrapper {
        padding-bottom: 100px;
    }
    .container {
        flex-direction: column;
        gap: 40px;
        padding: 0 20px;
    }
    .profile-sidebar {
        flex: none;
        position: relative;
        top: 0;
        width: 100%;
    }
    .profile-card {
        padding: 30px;
    }
    .profile-image {
        width: 200px;
        height: 200px;
    }
    .hero-title,
    .hero-subtitle {
        font-size: 2.5rem;
    }
    .action-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .projects-grid,
    .contact-info,
    .certifications-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .skills-grid-circular {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 30px;
    }
    .resume-item {
        flex-direction: column;
        gap: 15px;
    }
    .resume-year {
        flex: none;
    }
    .modal-content {
        margin: 10% auto;
        padding: 30px 20px;
    }
    .footer-container {
        grid-template-columns: 1fr;
    }
    .footer-column {
        text-align: center;
    }
    .footer-column .logo {
        justify-content: center;
    }
    .footer-column p {
        justify-content: center;
    }
    .social-links-footer {
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
    /* Preloader mobile adjustments */
    .preloader h1 {
        font-size: 2rem;
        letter-spacing: 8px;
    }
    .logo-container {
        width: 120px;
        height: 120px;
        margin: 0 auto 2rem;
    }
    .glow-circle {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    html {
        scroll-padding-top: 70px;
    }
    .header {
        height: 70px;
    }
    .hero-title,
    .hero-subtitle {
        font-size: 2rem;
    }
    .section-title,
    .skills-content h3,
    .resume-content h3,
    .contact-content h3 {
        font-size: 2rem;
    }
    .mobile-nav-container {
        padding: 5px;
        gap: 3px;
    }
    .mobile-nav-item {
        width: 44px;
        height: 44px;
    }
    .mobile-nav-item i {
        font-size: 18px;
    }
    .toggle-btn {
        padding: 10px 15px;
        font-size: 14px;
    }
    /* Preloader mobile adjustments */
    .preloader h1 {
        font-size: 1.5rem;
        letter-spacing: 4px;
    }
    .logo-container {
        width: 100px;
        height: 100px;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    body::before,
    body::after {
        animation: none;
    }
    .status-dot {
        animation: none;
    }
    .preloader {
        animation: none;
        display: none;
    }
    .main-wrapper {
        animation: none;
        opacity: 1;
        visibility: visible;
    }
    .particle, .hex, .dot, .glow-circle, .logo, .preloader h1, .loading-container {
        animation: none !important;
    }
    .preloader .logo svg {
        filter: none;
    }
}