/* Base Styles & Variables */
:root {
    --primary-color: #6c5ce7;
    --secondary-color: #a29bfe;
    --accent-color: #fd79a8;
    --dark-color: #2d3436;
    --light-color: #dfe6e9;
    --background-color: #0f0f13;
    --card-color: #191921;
    --text-color: #f1f1f1;
    --muted-text: #b2becd;
    --border-radius: 8px;
    --transition-speed: 0.3s;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
}

/* Dark Mode Theme */
.dark-theme {
    --background-color: #0f0f13;
    --card-color: #191921;
    --text-color: #f1f1f1;
    --muted-text: #b2becd;
}

/* Light Mode Theme */
.light-theme {
    --background-color: #f5f6fa;
    --card-color: #ffffff;
    --text-color: #2d3436;
    --muted-text: #636e72;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-x: hidden;

/* Enhanced 3D and Animation Effects */
.logo-3d-container {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    z-index: 2;
}

/* Page-wide Particle System */
.particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    opacity: 0.6;
    --pScale: 1;
    --offsetX: 0px;
    animation: floatParticle 15s infinite linear;
}

.floating-particle:nth-child(2n) {
    width: 6px;
    height: 6px;
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    animation-duration: 20s;
    animation-delay: -5s;
}

.floating-particle:nth-child(3n) {
    width: 3px;
    height: 3px;
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    animation-duration: 25s;
    animation-delay: -10s;
}

.floating-particle:nth-child(4n) {
    width: 5px;
    height: 5px;
    background: radial-gradient(circle, var(--primary-color), transparent);
    animation-duration: 18s;
    animation-delay: -15s;
}

@keyframes floatParticle {
    0% {
    transform: translateX(var(--offsetX, 0px)) translateY(100vh) rotate(0deg) scale(var(--pScale, 1));
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
    transform: translateX(var(--offsetX, 0px)) translateY(-100px) rotate(360deg) scale(var(--pScale, 1));
        opacity: 0;
    }
}

/* Glowing Orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.3), transparent);
    animation: glowPulse 4s ease-in-out infinite;
    pointer-events: none;
}

.glow-orb:nth-child(odd) {
    background: radial-gradient(circle, rgba(162, 155, 254, 0.2), transparent);
    animation-delay: -2s;
}

@keyframes glowPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.5) rotate(180deg);
        opacity: 0.6;
    }
}

/* Enhanced Section Backgrounds */
.section-bg-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.section-bg-particles::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(108, 92, 231, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(162, 155, 254, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(253, 121, 168, 0.05) 0%, transparent 50%);
    animation: backgroundParticles 30s linear infinite;
}

@keyframes backgroundParticles {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

/* Parallax Stars */
.star-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* Contact star field specific positioning */
#contactStarField {
    top: 0;
    z-index: 1;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
    animation: twinkle 3s ease-in-out infinite;
}

.star:nth-child(2n) {
    animation-delay: -1s;
    animation-duration: 4s;
}

.star:nth-child(3n) {
    animation-delay: -2s;
    animation-duration: 5s;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Animated Gradient Background */
.gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(108, 92, 231, 0.03) 0%, 
        rgba(162, 155, 254, 0.02) 25%, 
        rgba(253, 121, 168, 0.03) 50%, 
        rgba(108, 92, 231, 0.02) 75%, 
        rgba(162, 155, 254, 0.03) 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -1;
}

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

#logo-canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.project-3d-container {
    position: relative;
    width: 400px;
    height: 200px;
    margin: 0 auto 20px auto;
    perspective: 1000px;
}

#project-canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* 3D Card Effects */
.skill-item,
.contact-item,
.project-card {
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-item:hover,
.contact-item:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(108, 92, 231, 0.3);
}

/* Enhanced Skill Icons */
.skill-icon {
    transform-style: preserve-3d;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.skill-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    transform: translate(-50%, -50%) translateZ(-10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-item:hover .skill-icon::before {
    opacity: 0.2;
}

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

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

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

/* Enhanced Contact Form 3D */
.form-group {
    transform-style: preserve-3d;
    position: relative;
}

.form-group input,
.form-group textarea {
    transform-style: preserve-3d;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input:focus,
.form-group textarea:focus {
    transform: translateZ(5px);
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.2);
}

/* Parallax Elements */
.parallax-element {
    transform-style: preserve-3d;
    will-change: transform;
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotateX(0deg);
    }
    50% {
        transform: translateY(-10px) rotateX(2deg);
    }
}

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

/* Glass Morphism Effects */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Enhanced Glowing Effects */
.glow-3d {
    position: relative;
    overflow: hidden;
}

.glow-3d::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent,
        var(--primary-color),
        transparent,
        var(--secondary-color),
        transparent
    );
    animation: rotate-glow 4s linear infinite;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glow-3d:hover::after {
    opacity: 0.5;
}

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

/* Mobile 3D Optimizations */
@media (max-width: 768px) {
    .logo-3d-container {
        top: -80px;
        width: 120px;
        height: 120px;
    }
    
    .project-3d-container {
        width: 300px;
        height: 150px;
    }
    
    .star-field {
        padding: 10px;
        gap: 2px;
    }
    
    .star {
        width: 1.5px;
        height: 1.5px;
    }
    
    .skills-container {
        padding: 0 10px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Reduce 3D complexity on mobile for performance */
    .skill-item:hover,
    .contact-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(108, 92, 231, 0.2);
    }
}

@media (max-width: 576px) {
    .logo-3d-container {
        top: -60px;
        width: 100px;
        height: 100px;
    }
    
    .project-3d-container {
        width: 250px;
        height: 125px;
    }
    
    .star-field {
        padding: 5px;
        gap: 1px;
    }
    
    .star {
        width: 1px;
        height: 1px;
    }
    
    .skills-container {
        padding: 0 5px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .skill-item,
    .contact-item,
    .btn {
        transition: none;
        animation: none;
    }
    
    .float-animation {
        animation: none;
    }
}
    overflow-x: hidden;
    transition: background-color var(--transition-speed) ease;
}

/* Removed global 3D background layer */

/* Sections WebGL background canvas */
.webgl-sections-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0; /* behind section content but above page background */
    opacity: 0; /* fades in when a non-hero section is active */
    transition: opacity 0.5s ease;
}

/* Ambient particles canvas (lightweight) */
.ambient-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed) ease;
}

ul {
    list-style: none;
}

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

section {
    padding: 30px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.underline {
    height: 4px;
    width: 70px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 0 auto;
    border-radius: 5px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
    border: none;
}

.primary-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.4);
}

.secondary-btn {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}

/* Loading Animation */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader {
    width: 80px;
    height: 80px;
    border: 5px solid transparent;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader:before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 5px solid transparent;
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

.loader:after {
    content: "";
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 5px solid transparent;
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

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

.loader-text {
    margin-top: 20px;
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(15, 15, 19, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

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

.theme-toggle, .menu-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: var(--card-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover, .menu-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.menu-toggle {
    display: none;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    overflow: hidden;
}

.canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

#hero-canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 20px;
    max-width: 800px;
    transition: all 0.5s ease;
}

.hero h1 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.5s ease forwards 0.5s;
}

.hero .name {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.5s ease forwards 0.7s;
}

.hero .title {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.5s ease forwards 0.9s;
}

.cta-buttons {
    margin-bottom: 40px;
}

.cta-buttons .btn {
    margin: 0 10px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    opacity: 1;
    transform: translateY(0);
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--card-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}

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

/* Glitch Text Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent-color);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--primary-color);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(31px, 9999px, 94px, 0);
    }
    5% {
        clip: rect(70px, 9999px, 71px, 0);
    }
    10% {
        clip: rect(29px, 9999px, 94px, 0);
    }
    15% {
        clip: rect(73px, 9999px, 8px, 0);
    }
    20% {
        clip: rect(32px, 9999px, 18px, 0);
    }
    25% {
        clip: rect(13px, 9999px, 63px, 0);
    }
    30% {
        clip: rect(62px, 9999px, 52px, 0);
    }
    35% {
        clip: rect(93px, 9999px, 25px, 0);
    }
    40% {
        clip: rect(26px, 9999px, 48px, 0);
    }
    45% {
        clip: rect(25px, 9999px, 3px, 0);
    }
    50% {
        clip: rect(76px, 9999px, 92px, 0);
    }
    55% {
        clip: rect(79px, 9999px, 73px, 0);
    }
    60% {
        clip: rect(84px, 9999px, 22px, 0);
    }
    65% {
        clip: rect(10px, 9999px, 63px, 0);
    }
    70% {
        clip: rect(67px, 9999px, 60px, 0);
    }
    75% {
        clip: rect(47px, 9999px, 33px, 0);
    }
    80% {
        clip: rect(7px, 9999px, 59px, 0);
    }
    85% {
        clip: rect(47px, 9999px, 28px, 0);
    }
    90% {
        clip: rect(63px, 9999px, 69px, 0);
    }
    95% {
        clip: rect(79px, 9999px, 98px, 0);
    }
    100% {
        clip: rect(34px, 9999px, 18px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(65px, 9999px, 100px, 0);
    }
    5% {
        clip: rect(52px, 9999px, 74px, 0);
    }
    10% {
        clip: rect(79px, 9999px, 85px, 0);
    }
    15% {
        clip: rect(75px, 9999px, 5px, 0);
    }
    20% {
        clip: rect(67px, 9999px, 61px, 0);
    }
    25% {
        clip: rect(14px, 9999px, 79px, 0);
    }
    30% {
        clip: rect(1px, 9999px, 66px, 0);
    }
    35% {
        clip: rect(86px, 9999px, 30px, 0);
    }
    40% {
        clip: rect(23px, 9999px, 98px, 0);
    }
    45% {
        clip: rect(85px, 9999px, 72px, 0);
    }
    50% {
        clip: rect(71px, 9999px, 95px, 0);
    }
    55% {
        clip: rect(2px, 9999px, 71px, 0);
    }
    60% {
        clip: rect(25px, 9999px, 23px, 0);
    }
    65% {
        clip: rect(76px, 9999px, 32px, 0);
    }
    70% {
        clip: rect(46px, 9999px, 21px, 0);
    }
    75% {
        clip: rect(35px, 9999px, 69px, 0);
    }
    80% {
        clip: rect(68px, 9999px, 22px, 0);
    }
    85% {
        clip: rect(1px, 9999px, 23px, 0);
    }
    90% {
        clip: rect(85px, 9999px, 62px, 0);
    }
    95% {
        clip: rect(62px, 9999px, 70px, 0);
    }
    100% {
        clip: rect(53px, 9999px, 50px, 0);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.5s;
}

.scroll-indicator p {
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-color);
    border-radius: 25px;
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

.wheel {
    width: 4px;
    height: 10px;
    background-color: var(--text-color);
    border-radius: 2px;
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(15px);
        opacity: 0;
    }
}

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

/* About Section */
.about {
    background-color: rgba(25,25,33,0.7);
}

.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-image {
    flex: 0 0 40%;
}

.image-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
    min-height: 300px; /* Ensure container has height */
    width: 100%;
    background-color: var(--card-color); /* Add background to see container */
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.image-wrapper::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    z-index: -1;
    transition: all 0.5s ease;
}

.image-wrapper:hover {
    transform: translateY(-10px);
}

.image-wrapper:hover::before {
    top: -20px;
    left: -20px;
}

.about-content {
    flex: 0 0 60%;
}

.about-content h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-content p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: var(--muted-text);
}

.personal-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: center;
}

.info-title {
    font-weight: 600;
    margin-right: 10px;
}

.info-value {
    color: var(--muted-text);
}

/* Coming Soon Project Cards */
.coming-soon-card {
    position: relative;
    overflow: hidden;
}

.coming-soon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(108, 92, 231, 0.1), 
        rgba(162, 155, 254, 0.1), 
        rgba(253, 121, 168, 0.1));
    background-size: 300% 300%;
    animation: gradientShift 6s ease infinite;
    z-index: 1;
    pointer-events: none;
}

.coming-soon-card .project-content {
    position: relative;
    z-index: 2;
}

.coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(108, 92, 231, 0.9), 
        rgba(162, 155, 254, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.coming-soon-overlay i {
    font-size: 3rem;
    margin-bottom: 10px;
    animation: float 3s ease-in-out infinite;
}

.coming-soon-overlay span {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: pulse 2s ease-in-out infinite;
}

.project-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 8px 15px;
    background: linear-gradient(45deg, 
        rgba(108, 92, 231, 0.1), 
        rgba(162, 155, 254, 0.1));
    border-radius: 20px;
    border: 1px solid rgba(108, 92, 231, 0.3);
    font-size: 0.9rem;
    color: var(--primary-color);
}

.project-status i {
    animation: spin 2s linear infinite;
}

.coming-soon-card:hover .coming-soon-overlay {
    background: linear-gradient(135deg, 
        rgba(108, 92, 231, 0.95), 
        rgba(162, 155, 254, 0.9));
}

.coming-soon-card:hover .project-status {
    background: linear-gradient(45deg, 
        rgba(108, 92, 231, 0.2), 
        rgba(162, 155, 254, 0.2));
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

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

/* Enhanced Coming Soon Animation */
.coming-soon-container {
    position: relative;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), rgba(162, 155, 254, 0.1));
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(108, 92, 231, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
}

.coming-soon-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent,
        rgba(108, 92, 231, 0.1),
        transparent,
        rgba(162, 155, 254, 0.1),
        transparent
    );
    animation: rotate-bg 10s linear infinite;
    z-index: -1;
}

.coming-soon-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(108, 92, 231, 0.2);
}

.coming-soon-content {
    position: relative;
    z-index: 1;
}

.coming-soon-icon {
    position: relative;
    margin-bottom: 20px;
}

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

@keyframes glow {
    0%, 100% { 
        text-shadow: 0 0 10px rgba(108, 92, 231, 0.5);
    }
    50% { 
        text-shadow: 0 0 20px rgba(162, 155, 254, 0.8), 0 0 30px rgba(108, 92, 231, 0.5);
    }
}

.preview-card:hover {
    transform: translateY(-5px) scale(1.05) !important;
    box-shadow: 0 15px 30px rgba(108, 92, 231, 0.3) !important;
}

/* Projects Section */
.projects {
    background-color: rgba(25,25,33,0.7);
    position: relative;
}

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

.filter-btn {
    padding: 8px 20px;
    border-radius: 30px;
    border: 2px solid var(--primary-color);
    background-color: transparent;
    color: var(--text-color);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.project-card {
    background-color: var(--background-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

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

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.project-img {
    position: relative;
    overflow: hidden;
    height: 230px;
}

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

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

.project-content {
    padding: 25px;
}

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

.project-content p {
    color: var(--muted-text);
    margin-bottom: 20px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tag {
    padding: 5px 12px;
    background-color: var(--card-color);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-link {
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--secondary-color);
}

.more-projects {
    text-align: center;
    margin-top: 50px;
}

/* Skills Section */
.skills {
    background-color: rgba(25,25,33,0.7);
    position: relative;
    z-index: 1;
}

.skills .section-header {
    position: relative;
    z-index: 10;
    margin-bottom: 80px;
    padding: 20px 0;
    background-color: var(--card-color);
}

.skills-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    position: relative;
    z-index: 5;
}

.skills-category {
    margin-bottom: 70px;
    text-align: center;
    position: relative;
    z-index: 8;
}

.skills-category h3 {
    font-size: 1.8rem;
    margin-bottom: 80px;
    text-align: center;
    position: relative;
    display: inline-block;
    padding-bottom: 25px;
    color: var(--primary-color);
    z-index: 10;
}

.skills-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    justify-items: center;
    margin-top: 20px;
}

.skill-item {
    background-color: var(--card-color);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    transform: translateY(0);
    opacity: 1;
    width: 100%;
    max-width: 280px;
    position: relative;
    z-index: 2;
}

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

/* Force visibility for all skill items regardless of GSAP animations */
.skill-item {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Ensure contact elements are always visible */
.contact-item,
.contact-form {
    opacity: 1 !important;
    transform: translateY(0) translateX(0) !important;
    position: relative;
    z-index: 2;
}

.skill-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Subtle moving sheen on interactive 3D cards */
.skill-item::after,
.contact-item::after,
.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

.skill-item:hover::after,
.contact-item:hover::after,
.project-card:hover::after {
    left: 150%;
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.skill-item:hover .skill-icon {
    color: var(--secondary-color);
    transform: scale(1.1);
    text-shadow: 0 0 20px rgba(108, 92, 231, 0.5);
}

.skill-info h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background-color: var(--background-color);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skill-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(108, 92, 231, 0.1) 0%, 
        rgba(162, 155, 254, 0.1) 50%, 
        rgba(253, 121, 168, 0.1) 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skill-level {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: 4px;
    width: 0;
    transition: width 2s ease-in-out;
    position: relative;
    overflow: hidden;
}

.skill-level::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
    animation: glow 3s infinite;
}

@keyframes glow {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

/* Contact Section */
.contact {
    background-color: rgba(25,25,33,0.7);
    position: relative;
    z-index: 1;
}

.contact .section-header {
    margin-bottom: 90px;
    position: relative;
    z-index: 10;
    padding: 0 0 20px 0;
    background-color: var(--card-color);
    margin-top: 0;
}

.contact-container {
    display: flex;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    z-index: 5;
}

.contact-info {
    flex: 0 0 40%;
    text-align: center;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    transform: translateX(0);
    opacity: 1;
    transition: all 0.5s ease;
    padding: 15px;
}

.contact-item.visible {
    transform: translateX(0) !important;
    opacity: 1 !important;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin-right: 20px;
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}

.contact-text h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-text p {
    color: var(--muted-text);
}

.contact-social {
    margin-top: 5px;
    text-align: center;
}

.contact-social h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: center;
}

.social-link {
    position: relative;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    transition: all 0.4s ease;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}

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

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(108, 92, 231, 0.5);
}

.github-link:hover {
    background: linear-gradient(45deg, #333, #666);
}

.linkedin-link:hover {
    background: linear-gradient(45deg, #0077b5, #00a0dc);
}

.link-text {
    font-size: 0.7rem;
    margin-top: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover .link-text {
    opacity: 1;
}

.email-highlight {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--card-color), rgba(108, 92, 231, 0.1));
    border-radius: 10px;
    border: 1px solid rgba(108, 92, 231, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.email-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(108, 92, 231, 0.1) 50%, 
        transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.email-highlight:hover::before {
    transform: translateX(100%);
}

.email-highlight:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.3);
    border-color: var(--primary-color);
}

.email-highlight i {
    color: var(--primary-color);
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

.email-highlight span {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.contact-form {
    flex: 0 0 60%;
    background-color: var(--background-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    opacity: 1;
    transition: all 0.5s ease;
}

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

.form-group {
    margin-bottom: 25px;
    position: relative;
}

/* Hide placeholder when input is focused to avoid conflict with label */
.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
    opacity: 0;
}

/* Show placeholder with reduced opacity when not focused */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--muted-text);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--card-color);
    border-radius: 5px;
    background-color: var(--card-color);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

.form-group label {
    position: absolute;
    top: -12px;
    left: 15px;
    font-size: 0.8rem;
    color: var(--primary-color);
    background-color: var(--background-color);
    padding: 0 5px;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -12px;
    left: 15px;
    font-size: 0.8rem;
    background-color: var(--background-color);
    padding: 0 5px;
    color: var(--primary-color);
}

.contact-form .btn {
    width: 100%;
}

/* Form Messages */
.form-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

.form-message.success {
    background-color: rgba(46, 213, 115, 0.1);
    border: 1px solid rgba(46, 213, 115, 0.3);
    color: #2ed573;
}

.form-message.error {
    background-color: rgba(255, 82, 82, 0.1);
    border: 1px solid rgba(255, 82, 82, 0.3);
    color: #ff5252;
}

.form-message.info {
    background-color: rgba(116, 185, 255, 0.1);
    border: 1px solid rgba(116, 185, 255, 0.3);
    color: #74b9ff;
}

.form-message i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
.footer {
    background-color: var(--background-color);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.footer-logo p {
    color: var(--muted-text);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--muted-text);
    font-size: 0.9rem;
}

/* Media Queries */
@media screen and (max-width: 1024px) {
    .navbar {
        padding: 20px 30px;
    }
    
    .navbar.scrolled {
        padding: 15px 30px;
    }
    
    .about-container,
    .contact-container {
        flex-direction: column;
        align-items: center;
    }
    
    .about-image,
    .about-content,
    .contact-info,
    .contact-form {
        flex: 0 0 100%;
        max-width: 600px;
    }
    
    .about-image {
        margin-bottom: 40px;
    }
    
    .personal-info {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        margin-bottom: 30px;
    }
}

@media screen and (max-width: 768px) {
    section {
        padding: 20px 0;
    }
    
    .section-header {
        margin-bottom: 30px;
        padding: 15px 0;
    }
    
    .skills .section-header {
        margin-bottom: 40px;
        padding: 20px 0;
    }
    
    .contact .section-header {
        margin-bottom: 80px;
        padding: 0 0 30px 0;
        margin-top: 0;
    }
    
    .skills-category {
        margin-bottom: 40px;
    }
    
    .skills-category h3 {
        margin-bottom: 50px;
        font-size: 1.5rem;
        padding-bottom: 30px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-top: 25px;
    }
    
    .skill-item {
        padding: 15px;
        max-width: none;
        width: 100%;
    }
    
    .skill-icon {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .skill-info h4 {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .skill-bar {
        height: 6px;
    }
    
    .star-field {
        gap: 3px;
    }
    
    .contact-container {
        gap: 30px;
        flex-direction: column;
        align-items: center;
    }
    
    .contact-info,
    .contact-form {
        flex: 0 0 100%;
        max-width: 600px;
    }
    
    .contact-item {
        margin-bottom: 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .social-links {
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .project-preview-cards {
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .preview-card {
        max-width: 250px !important;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: var(--card-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 1001;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .menu-toggle {
        display: flex;
        z-index: 1002;
    }
    
    .hero .name {
        font-size: 3.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 576px) {
    section {
        padding: 15px 0;
    }
    
    .section-header {
        margin-bottom: 25px;
        padding: 10px 0;
    }
    
    .skills .section-header {
        margin-bottom: 35px;
        padding: 15px 0;
    }
    
    .contact .section-header {
        margin-bottom: 70px;
        padding: 0 0 25px 0;
        margin-top: 0;
    }
    
    .skills-container {
        padding: 0 10px;
    }
    
    .skills-category {
        margin-bottom: 35px;
    }
    
    .skills-category h3 {
        font-size: 1.3rem;
        margin-bottom: 40px;
        padding-bottom: 25px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 20px;
    }
    
    .skill-item {
        padding: 12px 15px;
        border-radius: 8px;
    }
    
    .skill-icon {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }
    
    .skill-info h4 {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    
    .skill-bar {
        height: 5px;
    }
    
    .star-field {
        gap: 2px;
    }
    
    .contact-container {
        gap: 25px;
    }
    
    .contact-item {
        margin-bottom: 15px;
    }
    
    .hero .name {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

/* Extra small devices (phones, 400px and down) */
@media screen and (max-width: 400px) {
    .section-header {
        margin-bottom: 20px;
        padding: 8px 0;
    }
    
    .skills .section-header {
        margin-bottom: 30px;
        padding: 12px 0;
    }
    
    .contact .section-header {
        margin-bottom: 60px;
        padding: 0 0 20px 0;
        margin-top: 0;
    }
    
    .skills-container {
        padding: 0 5px;
    }
    
    .skills-category h3 {
        font-size: 1.2rem;
        margin-bottom: 35px;
        padding-bottom: 20px;
    }
    
    .skills-grid {
        gap: 10px;
        margin-top: 15px;
    }
    
    .skill-item {
        padding: 10px 12px;
    }
    
    .skill-icon {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .skill-info h4 {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .skill-bar {
        height: 4px;
    }
    
    .contact-container {
        gap: 20px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
}

