/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #10b981;
    --secondary-color: #059669;
    --accent-color: #34d399;
    --text-primary: #f0fdf4;
    --text-secondary: #bbf7d0;
    --text-light: #86efac;
    --bg-primary: rgba(0, 0, 0, 0.85);
    --bg-secondary: rgba(6, 78, 59, 0.3);
    --bg-dark: rgba(3, 7, 18, 0.95);
    --border-color: rgba(16, 185, 129, 0.3);
    --success-color: #10b981;
    --shadow-light: 0 4px 8px 0 rgba(16, 185, 129, 0.2), 0 2px 4px -1px rgba(16, 185, 129, 0.15);
    --shadow-medium: 0 8px 16px -2px rgba(16, 185, 129, 0.3), 0 4px 8px -4px rgba(16, 185, 129, 0.2);
    --shadow-large: 0 20px 30px -6px rgba(16, 185, 129, 0.4), 0 8px 16px -8px rgba(16, 185, 129, 0.3);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    --neon-glow: 0 0 20px rgba(16, 185, 129, 0.5), 0 0 40px rgba(16, 185, 129, 0.3), 0 0 60px rgba(16, 185, 129, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: radial-gradient(ellipse at center, rgba(6, 78, 59, 0.4) 0%, rgba(0, 0, 0, 0.9) 70%);
    background-attachment: fixed;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Animated Background */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at top left, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at top right, rgba(52, 211, 153, 0.1) 0%, transparent 50%),
                radial-gradient(ellipse at bottom left, rgba(5, 150, 105, 0.1) 0%, transparent 50%),
                linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(6, 78, 59, 0.3) 100%);
    overflow: hidden;
    animation: backgroundPulse 8s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.element {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.4) 0%, rgba(52, 211, 153, 0.2) 50%, transparent 100%);
    box-shadow: var(--neon-glow);
    animation: floatFlashy 8s infinite ease-in-out;
    backdrop-filter: blur(15px);
}

.element::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color), var(--secondary-color));
    border-radius: 50%;
    z-index: -1;
    animation: rotate 4s linear infinite;
    opacity: 0.6;
}

.element::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.element-1 {
    width: 120px;
    height: 120px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.element-2 {
    width: 180px;
    height: 180px;
    top: 60%;
    left: 85%;
    animation-delay: 2s;
    animation-duration: 10s;
}

.element-3 {
    width: 90px;
    height: 90px;
    top: 30%;
    left: 70%;
    animation-delay: 4s;
    animation-duration: 14s;
}

.element-4 {
    width: 150px;
    height: 150px;
    top: 80%;
    left: 20%;
    animation-delay: 6s;
    animation-duration: 9s;
}

.element-5 {
    width: 70px;
    height: 70px;
    top: 20%;
    left: 50%;
    animation-delay: 8s;
    animation-duration: 11s;
}

.element-6 {
    width: 220px;
    height: 220px;
    top: 50%;
    left: 30%;
    animation-delay: 10s;
    animation-duration: 13s;
}

.element-7 {
    width: 50px;
    height: 50px;
    top: 15%;
    left: 80%;
    animation-delay: 1s;
    animation-duration: 16s;
}

.element-8 {
    width: 110px;
    height: 110px;
    top: 70%;
    left: 60%;
    animation-delay: 3s;
    animation-duration: 8s;
}

.element-9 {
    width: 80px;
    height: 80px;
    top: 40%;
    left: 5%;
    animation-delay: 7s;
    animation-duration: 15s;
}

.element-10 {
    width: 160px;
    height: 160px;
    top: 90%;
    left: 75%;
    animation-delay: 5s;
    animation-duration: 12s;
}

@keyframes floatFlashy {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.8;
        filter: brightness(1) saturate(1);
    }
    25% {
        transform: translateY(-40px) rotate(90deg) scale(1.1);
        opacity: 1;
        filter: brightness(1.3) saturate(1.2);
    }
    50% {
        transform: translateY(-20px) rotate(180deg) scale(0.9);
        opacity: 0.6;
        filter: brightness(0.8) saturate(1.5);
    }
    75% {
        transform: translateY(30px) rotate(270deg) scale(1.05);
        opacity: 0.9;
        filter: brightness(1.1) saturate(1.1);
    }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.6;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.3);
    border-bottom-color: var(--primary-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { 
        text-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
        filter: brightness(1);
    }
    50% { 
        text-shadow: 0 0 30px rgba(52, 211, 153, 0.8), 0 0 40px rgba(16, 185, 129, 0.4);
        filter: brightness(1.2);
    }
}

.logo-accent {
    color: var(--accent-color);
    text-shadow: 0 0 15px rgba(52, 211, 153, 0.7);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.nav-link:hover {
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
    background: rgba(16, 185, 129, 0.1);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -2px;
    left: 50%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    box-shadow: 0 0 10px var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

.nav-link.active {
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
    background: rgba(16, 185, 129, 0.15);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: transparent;
    color: var(--text-primary);
    padding-top: 80px;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.typing-text {
    display: inline-block;
    border-right: 3px solid var(--accent-color);
    padding-right: 5px;
    animation: blink 1s infinite;
    text-shadow: 0 0 20px rgba(52, 211, 153, 0.6);
}

@keyframes blink {
    0%, 50% { border-color: var(--accent-color); }
    51%, 100% { border-color: transparent; }
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(52, 211, 153, 0.6);
    animation: subtitleGlow 4s ease-in-out infinite;
}

@keyframes subtitleGlow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(52, 211, 153, 0.6);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 30px rgba(52, 211, 153, 0.8), 0 0 40px rgba(16, 185, 129, 0.4);
        transform: scale(1.02);
    }
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    line-height: 1.7;
    text-shadow: 0 0 10px rgba(187, 247, 208, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-medium);
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-large), var(--neon-glow);
    border-color: var(--accent-color);
}

.btn-outline {
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    background: rgba(16, 185, 129, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.2), transparent);
    transition: left 0.6s;
}

.btn-outline:hover::before {
    left: 100%;
}

.btn-outline:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--primary-color);
    color: var(--accent-color);
    text-shadow: 0 0 15px rgba(52, 211, 153, 0.6);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-medium);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.15);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, var(--primary-color), var(--accent-color), var(--secondary-color), var(--primary-color));
    animation: rotate 3s linear infinite;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.social-link:hover::before {
    opacity: 0.7;
}

.social-link:hover {
    background: rgba(16, 185, 129, 0.3);
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--neon-glow);
    color: var(--accent-color);
    border-color: var(--primary-color);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-placeholder {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, rgba(52, 211, 153, 0.1) 50%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(15px);
    border: 4px solid var(--primary-color);
    animation: profilePulse 4s infinite, profileSpin 20s linear infinite;
    position: relative;
    overflow: hidden;
}

.profile-placeholder::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: conic-gradient(from 0deg, var(--primary-color), var(--accent-color), var(--secondary-color), var(--primary-color));
    border-radius: 50%;
    z-index: -1;
    animation: rotate 6s linear infinite;
    opacity: 0.6;
}

.profile-placeholder::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

.profile-placeholder i {
    font-size: 8rem;
    color: var(--accent-color);
    text-shadow: 0 0 30px rgba(52, 211, 153, 0.7);
    animation: iconFloat 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes profilePulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6), 
                    0 0 30px rgba(52, 211, 153, 0.4),
                    inset 0 0 30px rgba(16, 185, 129, 0.1);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 0 20px rgba(16, 185, 129, 0), 
                    0 0 50px rgba(52, 211, 153, 0.6),
                    inset 0 0 50px rgba(16, 185, 129, 0.2);
        transform: scale(1.05);
    }
}

@keyframes profileSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

/* Particle System */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-color), 0 0 20px var(--primary-color);
    animation: particleFloat 6s infinite linear;
}

.particle-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.particle-2 {
    top: 60%;
    left: 90%;
    animation-delay: 1s;
    animation-duration: 6s;
}

.particle-3 {
    top: 80%;
    left: 30%;
    animation-delay: 2s;
    animation-duration: 10s;
}

.particle-4 {
    top: 30%;
    left: 70%;
    animation-delay: 3s;
    animation-duration: 7s;
}

.particle-5 {
    top: 50%;
    left: 20%;
    animation-delay: 4s;
    animation-duration: 9s;
}

.particle-6 {
    top: 10%;
    left: 80%;
    animation-delay: 5s;
    animation-duration: 11s;
}

.particle-7 {
    top: 70%;
    left: 50%;
    animation-delay: 6s;
    animation-duration: 8s;
}

.particle-8 {
    top: 40%;
    left: 60%;
    animation-delay: 7s;
    animation-duration: 12s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0px) translateX(0px) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: scale(1);
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(50px) scale(0.5);
        opacity: 0;
    }
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
    animation: titleGlow 5s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        filter: brightness(1) saturate(1);
        transform: scale(1);
    }
    50% {
        filter: brightness(1.2) saturate(1.3);
        transform: scale(1.02);
    }
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-shadow: 0 0 15px rgba(187, 247, 208, 0.4);
}

/* About Section */
.about {
    background: rgba(6, 78, 59, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
    z-index: -1;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: rgba(16, 185, 129, 0.1);
    backdrop-filter: blur(15px);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color), var(--secondary-color));
    border-radius: 1rem;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.stat:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: var(--shadow-large), var(--neon-glow);
    border-color: var(--primary-color);
}

.stat:hover::before {
    opacity: 0.3;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(52, 211, 153, 0.6);
    animation: numberGlow 3s ease-in-out infinite;
}

@keyframes numberGlow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(52, 211, 153, 0.6);
    }
    50% {
        text-shadow: 0 0 30px rgba(52, 211, 153, 0.8), 0 0 40px rgba(16, 185, 129, 0.4);
    }
}

.stat-label {
    color: var(--text-primary);
    font-weight: 500;
    text-shadow: 0 0 10px rgba(240, 253, 244, 0.3);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.skill-category {
    background: rgba(16, 185, 129, 0.1);
    backdrop-filter: blur(15px);
    border: 2px solid var(--border-color);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 1rem;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.skill-category:hover {
    transform: translateY(-10px) rotateY(5deg);
    box-shadow: var(--shadow-large), var(--neon-glow);
    border-color: var(--primary-color);
}

.skill-category:hover::before {
    opacity: 0.2;
}

.skill-category h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    text-shadow: 0 0 15px rgba(52, 211, 153, 0.5);
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-name {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(240, 253, 244, 0.3);
}

.skill-bar {
    width: 100%;
    height: 10px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.skill-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(52, 211, 153, 0.3) 50%, 
        transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 5px;
    width: 0;
    transition: width 1.5s ease-in-out;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-color);
    box-shadow: 0 0 8px var(--accent-color);
    border-radius: 0 5px 5px 0;
}

/* Projects Section */
.projects {
    background: rgba(6, 78, 59, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(5, 150, 105, 0.05) 0%, transparent 70%);
    z-index: -1;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    background: rgba(16, 185, 129, 0.1);
    backdrop-filter: blur(15px);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.4s ease;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color), var(--secondary-color));
    border-radius: 1rem;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s;
}

.project-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: var(--shadow-large), var(--neon-glow);
    border-color: var(--primary-color);
}

.project-card:hover::before {
    opacity: 0.3;
}

.project-image {
    height: 200px;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.3) 0%, 
        rgba(52, 211, 153, 0.2) 50%, 
        rgba(5, 150, 105, 0.3) 100%);
    animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background: linear-gradient(135deg, 
            rgba(16, 185, 129, 0.3) 0%, 
            rgba(52, 211, 153, 0.2) 50%, 
            rgba(5, 150, 105, 0.3) 100%);
    }
    50% {
        background: linear-gradient(135deg, 
            rgba(52, 211, 153, 0.4) 0%, 
            rgba(5, 150, 105, 0.2) 50%, 
            rgba(16, 185, 129, 0.4) 100%);
    }
}

.project-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(15px);
    animation: projectIconFloat 3s ease-in-out infinite;
    z-index: 2;
}

@keyframes projectIconFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    }
    50% {
        transform: translateY(-10px) rotate(10deg);
        box-shadow: 0 10px 30px rgba(255, 255, 255, 0.4);
    }
}

.project-placeholder i {
    font-size: 2rem;
    color: white;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    animation: iconSpin 4s linear infinite;
}

@keyframes iconSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.project-content {
    padding: 2rem;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent-color);
    text-shadow: 0 0 15px rgba(52, 211, 153, 0.5);
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(187, 247, 208, 0.3);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(52, 211, 153, 0.8);
    border: 1px solid var(--accent-color);
    color: white;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.3);
    transition: all 0.3s ease;
    animation: tagGlow 3s ease-in-out infinite;
}

@keyframes tagGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(52, 211, 153, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(52, 211, 153, 0.5), 0 0 25px rgba(16, 185, 129, 0.2);
    }
}

.tech-tag:hover {
    background: rgba(52, 211, 153, 1);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.6);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid transparent;
}

.project-link:hover {
    color: var(--accent-color);
    text-shadow: 0 0 15px rgba(52, 211, 153, 0.6);
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--border-color);
    transform: translateX(5px);
}

.projects-footer {
    text-align: center;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(16, 185, 129, 0.1);
    backdrop-filter: blur(15px);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 1rem;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.contact-item:hover {
    transform: translateX(15px) scale(1.02);
    box-shadow: var(--shadow-large), var(--neon-glow);
    border-color: var(--primary-color);
}

.contact-item:hover::before {
    opacity: 0.2;
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details h3 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
    text-shadow: 0 0 15px rgba(52, 211, 153, 0.5);
}

.contact-details p {
    color: var(--text-secondary);
    text-shadow: 0 0 10px rgba(187, 247, 208, 0.3);
}

.contact-form {
    background: rgba(16, 185, 129, 0.1);
    backdrop-filter: blur(15px);
    border: 2px solid var(--border-color);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-light);
    position: relative;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 1rem;
    z-index: -1;
    opacity: 0.1;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(16, 185, 129, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary);
    transition: all 0.3s ease;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.1);
}

/* Footer */
.footer {
    background: rgba(3, 7, 18, 0.95);
    border-top: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 2rem 0;
    text-align: center;
    position: relative;
    backdrop-filter: blur(15px);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social .social-link {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    animation: socialPulse 2s ease-in-out infinite;
}

@keyframes socialPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 20px rgba(52, 211, 153, 0.5);
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 0.6s ease forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 0.6s ease forwards;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-medium);
        backdrop-filter: blur(10px);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu .nav-link {
        padding: 1rem 0;
        font-size: 1.1rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 200px;
        text-align: center;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        justify-content: center;
        text-align: center;
    }

    .container {
        padding: 0 1rem;
    }

    section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .profile-placeholder {
        width: 200px;
        height: 200px;
    }

    .profile-placeholder i {
        font-size: 5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skill-category {
        padding: 1.5rem;
    }

    .project-content {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .background-animation,
    .navbar,
    .hero-buttons,
    .social-links,
    .contact-form,
    .footer {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .hero {
        color: black;
        min-height: auto;
        padding: 2rem 0;
    }

    section {
        padding: 2rem 0;
        break-inside: avoid;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .typing-text {
        border-right: none;
        animation: none;
    }

    .floating-elements {
        display: none;
    }
}

/* Focus styles for accessibility */
.nav-link:focus,
.btn:focus,
.social-link:focus,
.project-link:focus,
input:focus,
textarea:focus,
button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000ff;
        --secondary-color: #000080;
        --text-primary: #000000;
        --text-secondary: #333333;
        --bg-primary: #ffffff;
        --border-color: #000000;
    }

    .background-animation {
        display: none;
    }

    body {
        background: white;
    }

    .hero {
        background: #f0f0f0;
        color: black;
    }
}