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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #0a0a0a;
    overflow-x: hidden;
}

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

/* Enhanced Responsive Container */
@media (max-width: 1400px) {
    .container {
        max-width: 1140px;
        padding: 0 20px;
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: 960px;
        padding: 0 20px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
        padding: 0 15px;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 100%;
        padding: 0 10px;
    }
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

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

.particle {
    position: absolute;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    animation: floatParticles 20s infinite ease-in-out;
}

.particle:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    opacity: 0.1;
}

.particle:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 60%;
    left: 80%;
    animation-delay: -5s;
    opacity: 0.15;
}

.particle:nth-child(3) {
    width: 40px;
    height: 40px;
    top: 40%;
    left: 60%;
    animation-delay: -10s;
    opacity: 0.1;
}

.particle:nth-child(4) {
    width: 100px;
    height: 100px;
    top: 80%;
    left: 20%;
    animation-delay: -15s;
    opacity: 0.08;
}

.particle:nth-child(5) {
    width: 50px;
    height: 50px;
    top: 10%;
    left: 70%;
    animation-delay: -7s;
    opacity: 0.12;
}

.particle:nth-child(6) {
    width: 70px;
    height: 70px;
    top: 70%;
    left: 40%;
    animation-delay: -12s;
    opacity: 0.1;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.animated-logo {
    animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% {
        text-shadow: 0 0 5px rgba(102, 126, 234, 0.5);
    }
    100% {
        text-shadow: 0 0 20px rgba(102, 126, 234, 0.8), 0 0 30px rgba(118, 75, 162, 0.6);
    }
}

.nav-logo .logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #667eea;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="grad" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:%23667eea;stop-opacity:0.1" /><stop offset="100%" style="stop-color:%23764ba2;stop-opacity:0" /></radialGradient></defs><circle cx="200" cy="200" r="150" fill="url(%23grad)" /><circle cx="800" cy="300" r="100" fill="url(%23grad)" /><circle cx="300" cy="800" r="120" fill="url(%23grad)" /></svg>');
    animation: floatBg 20s ease-in-out infinite;
}

@keyframes floatBg {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-20px, -20px) rotate(180deg); }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.greeting-animation {
    margin-bottom: 1rem;
}

.wave {
    font-size: 2.5rem;
    animation: wave 2s ease-in-out infinite;
    transform-origin: 70% 70%;
    display: inline-block;
}

@keyframes wave {
    0%, 50%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    40% { transform: rotate(-4deg); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.typing-animation {
    position: relative;
}

.typing-animation::after {
    content: '|';
    animation: blink 1s infinite;
    color: #667eea;
}

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

.hero-subtitle {
    font-size: 1.5rem;
    color: #a0a0a0;
    margin-bottom: 1.5rem;
    font-weight: 400;
    min-height: 2rem;
}

.typewriter::after {
    content: '|';
    animation: blink 1s infinite;
    color: #667eea;
}

.fade-in-text {
    animation: fadeInText 2s ease-in-out 1s both;
}

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

.hero-description {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.pulse-btn {
    position: relative;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(102, 126, 234, 0.7);
    }
    100% {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    }
}

.btn-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.pulse-btn:hover .btn-ripple {
    width: 100%;
    height: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #667eea;
}

.hover-lift:hover {
    transform: translateY(-3px);
}

.btn-secondary:hover {
    background: #667eea;
    transform: translateY(-2px);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.bounce-animation {
    animation: bounce 2s ease-in-out infinite;
}

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

.social-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.tooltip {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.tooltip::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #333;
}

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

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 380px;
    height: 380px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.3;
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    0% {
        filter: blur(30px);
        opacity: 0.3;
    }
    100% {
        filter: blur(40px);
        opacity: 0.5;
    }
}

.profile-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(102, 126, 234, 0.3);
    animation: float 6s ease-in-out infinite;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.image-border {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    border: 2px solid transparent;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-clip: border-box;
    animation: rotateBorder 10s linear infinite;
}

@keyframes rotateBorder {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

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

.tech-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(102, 126, 234, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 1.2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.3);
    animation: floatIcon 4s ease-in-out infinite;
}

.tech-icon:nth-child(1) {
    top: 10%;
    left: 80%;
    animation-delay: 0s;
}

.tech-icon:nth-child(2) {
    top: 80%;
    left: 10%;
    animation-delay: -1s;
}

.tech-icon:nth-child(3) {
    top: 20%;
    left: 10%;
    animation-delay: -2s;
}

.tech-icon:nth-child(4) {
    top: 80%;
    left: 80%;
    animation-delay: -3s;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
}

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

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.scroll-line {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, #667eea, transparent);
    animation: scrollPulse 2s ease-in-out infinite;
    margin: 0 auto;
}

.scroll-text {
    color: #a0a0a0;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0; transform: translateY(-20px); }
    50% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle-small {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #667eea;
    border-radius: 50%;
    animation: floatSmall 15s infinite ease-in-out;
}

.particle-small:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.particle-small:nth-child(2) {
    top: 40%;
    left: 80%;
    animation-delay: -5s;
}

.particle-small:nth-child(3) {
    top: 80%;
    left: 60%;
    animation-delay: -10s;
}

@keyframes floatSmall {
    0%, 100% { transform: translateY(0px) translateX(0px) opacity(0.5); }
    50% { transform: translateY(-100px) translateX(50px) opacity(1); }
}

/* Section Styles */
section {
    padding: 100px 0;
    position: relative;
}

.animated-title {
    position: relative;
    text-align: center;
    margin-bottom: 4rem;
}

.title-line {
    font-size: 2.5rem;
    color: #fff;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.title-underline {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    animation: underlineGrow 1s ease-out 0.5s both;
}

@keyframes underlineGrow {
    0% { width: 0; }
    100% { width: 80px; }
}

/* About Section */
.about {
    background: #0f0f0f;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.reveal-text {
    opacity: 1; /* Fallback to ensure text is always visible */
    transform: translateY(0);
    animation: revealText 10s ease-out 0.5s forwards;
}

.reveal-text:nth-child(2) {
    animation-delay: 0.7s;
}

@keyframes revealText {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    10% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure text stays visible permanently after animation */
.reveal-text.animation-complete,
.reveal-text:not(.animating) {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Additional safety net to keep text visible */
.about-text p {
    color: #ccc;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 1 !important;
    visibility: visible !important;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.animated-stat {
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.animated-stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.stat-icon {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 1rem;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.counter {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.animated-stat p {
    color: #a0a0a0;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.stat-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 0;
    border-radius: 2px;
    animation: fillProgress 2s ease-out 1s both;
}

@keyframes fillProgress {
    0% { width: 0; }
    100% { width: var(--width, 100%); }
}

.progress-bar[data-width="94"] {
    --width: 94%;
}

.progress-bar[data-width="80"] {
    --width: 80%;
}

.progress-bar[data-width="95"] {
    --width: 95%;
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.glass-card:hover::before {
    left: 100%;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.card-header i {
    color: #667eea;
    font-size: 1.5rem;
}

.card-header h3 {
    color: #667eea;
    font-size: 1.5rem;
}

.edu-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    position: relative;
}

.edu-timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 1rem;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    background: #667eea;
    border-radius: 50%;
    margin-bottom: 0.5rem;
    animation: dotPulse 2s ease-in-out infinite;
}

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

.timeline-line {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, #667eea, transparent);
}

.edu-content h4 {
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.course {
    color: #667eea;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.institution {
    color: #a0a0a0;
    margin-bottom: 0.5rem;
    text-decoration: none;
    border: none;
    border-bottom: none !important;
}

.duration {
    color: #888;
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-header {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-icon-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: white;
    animation: iconFloat 3s ease-in-out infinite;
}

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

.contact-info h3 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInStay 2s ease-out 0.5s both;
}

.contact-info p {
    color: #ccc;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1.1rem;
    opacity: 0;
    animation: fadeInStay 2.5s ease-out 0.8s both;
}

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

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.02);
    border-color: rgba(102, 126, 234, 0.3);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-text {
    display: flex;
    flex-direction: column;
}

.contact-label {
    color: #a0a0a0;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.contact-text a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: #667eea;
}

.social-links-contact {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 25px;
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.2);
    font-weight: 500;
}

.social-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.2);
}

.contact-form {
    position: relative;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.form-header h3 {
    color: #fff;
    font-size: 1.5rem;
}

.floating-label {
    position: relative;
    margin-bottom: 2rem;
    scroll-margin-top: 0;
}

.floating-label input,
.floating-label textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
    scroll-margin-top: 0;
    scroll-behavior: auto;
}

.floating-label label {
    position: absolute;
    top: 1rem;
    left: 0;
    color: #a0a0a0;
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
    transform-origin: left center;
}

.floating-label input:focus ~ label,
.floating-label textarea:focus ~ label,
.floating-label.focused label {
    top: -0.5rem;
    font-size: 0.8rem;
    color: #667eea;
    transform: translateY(0);
}

.floating-label input:not(:placeholder-shown) ~ label,
.floating-label textarea:not(:placeholder-shown) ~ label {
    top: -0.5rem;
    font-size: 0.8rem;
    color: #667eea;
}

.floating-label input[value]:not([value=""]) ~ label,
.floating-label textarea[value]:not([value=""]) ~ label {
    top: -0.5rem;
    font-size: 0.8rem;
    color: #667eea;
}

.floating-label input:focus,
.floating-label textarea:focus {
    border-bottom-color: #667eea;
    scroll-margin-top: 0 !important;
    scroll-behavior: auto !important;
    scroll-snap-align: none !important;
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.floating-label input:focus ~ .input-border,
.floating-label textarea:focus ~ .input-border {
    width: 100%;
}

.submit-btn {
    position: relative;
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-text {
    transition: opacity 0.3s ease;
}

.btn-icon {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: translateX(5px);
}

.btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-animation {
    margin-bottom: 1rem;
}

.footer-heart {
    color: #ff6b6b;
    animation: heartBeat 2s ease-in-out infinite;
}

.heart-beat {
    display: inline-block;
}

@keyframes heartBeat {
    0%, 50%, 100% {
        transform: scale(1);
    }
    25%, 75% {
        transform: scale(1.1);
    }
}

.footer-content p {
    color: #ccc;
    font-size: 0.9rem;
    margin: 0;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        backdrop-filter: blur(10px);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .image-container {
        width: 250px;
        height: 250px;
    }
    
    .profile-image {
        width: 200px;
        height: 200px;
    }
    
    .image-glow {
        width: 280px;
        height: 280px;
    }
    
    .image-border {
        width: 220px;
        height: 220px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .social-links-contact {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .animated-title .title-line {
        font-size: 1.8rem;
    }
    
    .image-container {
        width: 200px;
        height: 200px;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
    }
    
    .floating-particles {
        display: none; /* Hide particles on very small screens for performance */
    }
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-logo {
    margin-bottom: 2rem;
}

.loading-logo .logo-text {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoGlow 2s ease-in-out infinite alternate;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(102, 126, 234, 0.3);
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

.loading-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.loading-progress {
    width: 200px;
    height: 4px;
    background: rgba(102, 126, 234, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Enhanced Notifications */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    min-width: 350px;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.notification-error {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
}

.notification-info {
    background: linear-gradient(135deg, #2196F3 0%, #1976d2 100%);
    color: white;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notification-icon {
    font-size: 1.5rem;
}

.notification-message {
    flex: 1;
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.notification-close:hover {
    opacity: 1;
}

/* Mouse Trail Effect */
.mouse-trail {
    position: fixed;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Floating Emojis */
.floating-emoji {
    position: fixed;
    font-size: 2rem;
    pointer-events: none;
    z-index: 9999;
}

/* Ripple Effect */
.ripple-effect {
    position: absolute;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.4);
    transform: translate(-50%, -50%);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple {
    to {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

/* Shake Animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Rainbow Animation */
@keyframes rainbow {
    0% { filter: hue-rotate(0deg); }
    25% { filter: hue-rotate(90deg); }
    50% { filter: hue-rotate(180deg); }
    75% { filter: hue-rotate(270deg); }
    100% { filter: hue-rotate(360deg); }
}

/* Party Mode */
.party-mode {
    animation: party 0.1s infinite;
}

@keyframes party {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-1px); }
    75% { transform: translateX(1px); }
}

/* Navigation Active State */
.nav-link.active {
    color: #667eea !important;
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

/* Enhanced Animations */
.animate-in {
    animation: animateIn 0.8s ease-out;
}

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

/* Hamburger Animation */
.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Enhanced Button Animations */
.btn:active {
    transform: scale(0.98);
}

.submit-btn.loading .btn-text {
    opacity: 0;
}

.submit-btn.loading .btn-loading {
    opacity: 1;
}

/* Focus States for Accessibility */
.btn:focus,
.social-link:focus,
.nav-link:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Smooth Transitions */
* {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Performance Optimizations */
.floating-particles,
.particle,
.particle-small {
    will-change: transform;
}

.profile-image,
.image-glow,
.image-border {
    will-change: transform;
}

/* High DPI Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .profile-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-particles,
    .particle,
    .particle-small,
    .mouse-trail {
        display: none;
    }
}

/* Print Styles */
@media print {
    .floating-particles,
    .particle,
    .particle-small,
    .mouse-trail,
    .loading-screen,
    .notification {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .hero,
    .about,
    .contact {
        background: white !important;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 10, 10, 0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a5a9e 100%);
}

/* Selection Color */
::selection {
    background: rgba(102, 126, 234, 0.3);
    color: white;
}

::-moz-selection {
    background: rgba(102, 126, 234, 0.3);
    color: white;
}

/* Experience Section - Enhanced */
.experience {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    position: relative;
    overflow: hidden;
}

.experience::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(102,126,234,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)" /></svg>');
    opacity: 0.3;
}

.experience-container {
    position: relative;
    z-index: 2;
}

.timeline-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 60px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    margin-left: 120px;
}

.timeline-marker {
    position: absolute;
    left: -84px;
    top: 2rem;
}

.marker-outer {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2), 0 8px 25px rgba(102, 126, 234, 0.3);
    animation: pulseMarker 3s ease-in-out infinite;
}

@keyframes pulseMarker {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.marker-inner {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.experience-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.8s ease;
}

.experience-card:hover::before {
    left: 100%;
}

.experience-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.experience-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.company-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.experience-info {
    flex: 1;
}

.position {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.company {
    color: #667eea;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #a0a0a0;
    font-size: 1rem;
}

.duration i {
    color: #667eea;
}

.experience-status {
    flex-shrink: 0;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.status-badge.current {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    animation: glowCurrent 2s ease-in-out infinite alternate;
}

@keyframes glowCurrent {
    0% { box-shadow: 0 0 10px rgba(76, 175, 80, 0.4); }
    100% { box-shadow: 0 0 20px rgba(76, 175, 80, 0.8); }
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.achievement-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.achievement-item:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-3px);
}

.achievement-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.achievement-text h5 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.achievement-text p {
    color: #a0a0a0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.tech-showcase {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.tech-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.tech-bubble {
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tech-bubble.primary {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.tech-bubble.secondary {
    background: rgba(118, 75, 162, 0.2);
    color: #764ba2;
    border: 1px solid rgba(118, 75, 162, 0.3);
}

.tech-bubble.accent {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tech-bubble:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Projects Section - Enhanced */
.projects {
    background: #0f0f0f;
    position: relative;
}

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

.featured-project {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    position: relative;
}

.featured-project:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.8) 0%, rgba(26, 26, 46, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.featured-project:hover .project-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
}

.overlay-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.overlay-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.overlay-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.overlay-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.overlay-btn:hover {
    background: rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

.demo-btn {
    background: rgba(118, 75, 162, 0.2);
    border-color: rgba(118, 75, 162, 0.3);
}

.demo-btn:hover {
    background: rgba(118, 75, 162, 0.4);
}

.project-content {
    padding: 2rem;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.project-category {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 0.5rem;
}

.project-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.github-link:hover {
    background: #333;
    color: white;
}

.demo-link:hover {
    background: #667eea;
    color: white;
}

.project-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-description {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    color: #a0a0a0;
    font-size: 0.9rem;
}

.highlight-item i {
    color: #667eea;
}

.tech-stack-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.tech-item.mongodb {
    background: rgba(71, 162, 72, 0.2);
    color: #47A248;
    border-color: rgba(71, 162, 72, 0.3);
}

.tech-item.express {
    background: rgba(104, 33, 122, 0.2);
    color: #68217A;
    border-color: rgba(104, 33, 122, 0.3);
}

.tech-item.react {
    background: rgba(97, 218, 251, 0.2);
    color: #61DAFB;
    border-color: rgba(97, 218, 251, 0.3);
}

.tech-item.node {
    background: rgba(51, 153, 51, 0.2);
    color: #339933;
    border-color: rgba(51, 153, 51, 0.3);
}

.tech-item.bootstrap {
    background: rgba(121, 82, 179, 0.2);
    color: #7952B3;
    border-color: rgba(121, 82, 179, 0.3);
}

.tech-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

/* Skills Section - Enhanced */
.skills {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.skills-showcase {
    display: grid;
    gap: 3rem;
}

.skill-category-modern {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.skill-category-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.category-header {
    text-align: center;
    margin-bottom: 2rem;
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: white;
    animation: iconFloat 3s ease-in-out infinite;
}

.category-header h3 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.category-header p {
    color: #a0a0a0;
    font-size: 1rem;
}

.skills-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.skill-card:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-5px);
}

.skill-logo {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: skillFloat 2s ease-in-out infinite;
}

@keyframes skillFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.skill-info h4 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.skill-level {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.skill-progress {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    border-radius: 4px;
    transition: width 2s ease-out;
}

.skill-percentage {
    color: #667eea;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 35px;
}

/* Achievements Section - Enhanced */
.achievements {
    background: #0f0f0f;
}

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

.achievement-card-modern {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    text-align: center;
}

.achievement-card-modern:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.4);
}

.achievement-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0.5;
}

.achievement-bg.leetcode {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.1) 0%, rgba(255, 140, 0, 0.1) 100%);
}

.achievement-bg.codeforces {
    background: linear-gradient(135deg, rgba(70, 130, 180, 0.1) 0%, rgba(100, 149, 237, 0.1) 100%);
}

.achievement-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><circle cx="25" cy="25" r="20" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
    animation: rotatePattern 20s linear infinite;
}

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

.achievement-content {
    position: relative;
    z-index: 2;
}

.achievement-medal {
    position: relative;
    margin: 0 auto 1.5rem;
    width: 80px;
    height: 80px;
}

.medal-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
    animation: medalFloat 3s ease-in-out infinite;
}

.achievement-medal.bronze .medal-circle {
    background: linear-gradient(135deg, #CD7F32 0%, #A0522D 100%);
    box-shadow: 0 10px 30px rgba(205, 127, 50, 0.4);
}

.achievement-medal.knight .medal-circle {
    background: linear-gradient(135deg, #4B0082 0%, #8A2BE2 100%);
    box-shadow: 0 10px 30px rgba(75, 0, 130, 0.4);
}

.achievement-medal.pupil .medal-circle {
    background: linear-gradient(135deg, #32CD32 0%, #228B22 100%);
    box-shadow: 0 10px 30px rgba(50, 205, 50, 0.4);
}

@keyframes medalFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
}

.medal-ribbon {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 100%, 0 80%);
}

.achievement-details h3 {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.achievement-event {
    color: #667eea;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.achievement-desc {
    color: #a0a0a0;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.achievement-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    color: #667eea;
    font-size: 1.2rem;
    font-weight: 700;
}

.stat-label {
    color: #a0a0a0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Enhanced Responsive Design for New Sections */
@media (max-width: 768px) {
    .timeline-item {
        margin-left: 80px;
    }
    
    .timeline-marker {
        left: -64px;
    }
    
    .marker-outer {
        width: 40px;
        height: 40px;
    }
    
    .marker-inner {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }
    
    .experience-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-showcase {
        grid-template-columns: 1fr;
    }
    
    .skills-grid-modern {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .achievements-showcase {
        grid-template-columns: 1fr;
    }
    
    .project-highlights {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tech-stack-modern {
        justify-content: center;
    }
    
    .overlay-links {
        flex-direction: column;
        align-items: center;
    }
}

/* Additional Animation Effects */
.tech-ripple {
    position: absolute;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.4);
    animation: techRipple 0.6s ease-out;
    pointer-events: none;
}

@keyframes techRipple {
    to {
        width: 100px;
        height: 100px;
        opacity: 0;
    }
}

@keyframes techFloat {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-5px); }
}

/* Timeline Marker Animation */
.marker-animate .marker-outer {
    animation: markerPulse 1s ease-out;
}

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

/* Section Visibility Effects */
.section-visible {
    animation: sectionSlideIn 0.8s ease-out;
}

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

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

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

/* Enhanced Card 3D Effects */
.experience-card {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px) rotateY(5deg);
}

/* Achievement Medal Enhanced Animations */
.medal-circle {
    transition: all 0.4s ease;
}

/* Interactive Background Enhancements */
.experience::before,
.skills::before {
    transition: transform 0.1s ease;
}

/* Enhanced Focus States */
.tech-bubble:focus,
.tech-item:focus,
.skill-card:focus {
    outline: 2px solid #667eea;
    outline-offset: 3px;
}

/* Loading Animations for Sections */
@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

/* Enhanced Skill Progress Animation */
.skill-fill[data-width="90"] { --target-width: 90%; }
.skill-fill[data-width="85"] { --target-width: 85%; }
.skill-fill[data-width="88"] { --target-width: 88%; }
.skill-fill[data-width="80"] { --target-width: 80%; }
.skill-fill[data-width="82"] { --target-width: 82%; }
.skill-fill[data-width="87"] { --target-width: 87%; }
.skill-fill[data-width="83"] { --target-width: 83%; }

/* Category Icon Enhanced Effects */
.category-icon {
    transition: all 0.4s ease;
}

/* Achievement Card Enhanced Hover */
.achievement-card-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(102, 126, 234, 0.1) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.achievement-card-modern:hover::after {
    opacity: 1;
    animation: shimmer 1.5s ease-in-out infinite;
}

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

/* Project Overlay Enhanced Effects */
.project-overlay {
    transition: all 0.4s ease;
}

/* Experience Card Enhanced Shadows */
.experience-card:hover {
    box-shadow: 
        0 25px 50px rgba(102, 126, 234, 0.2),
        0 0 0 1px rgba(102, 126, 234, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Skill Logo Enhanced Effects */
.skill-logo {
    transition: all 0.3s ease;
}

/* Tech Stack Item Enhanced Hover */
.tech-item:hover {
    transform: translateY(-2px) scale(1.05);
    filter: brightness(1.2);
}

/* Medal Ribbon Enhanced Animation */
.medal-ribbon {
    animation: ribbonWave 3s ease-in-out infinite;
}

@keyframes ribbonWave {
    0%, 100% { transform: translateX(-50%) scaleY(1); }
    50% { transform: translateX(-50%) scaleY(1.1); }
}

/* Prevent unwanted scrolling during form interactions */
.contact-form form {
    scroll-behavior: auto !important;
}

.form-group input:focus,
.form-group textarea:focus {
    scroll-margin-top: 100px;
}

/* Prevent page jump during form submission */
.submit-btn:focus {
    outline: none;
    scroll-behavior: auto;
}

/* Smooth scrolling for the entire page except forms */
html {
    scroll-behavior: smooth;
}

html.form-submitting {
    scroll-behavior: auto !important;
}

/* Improved form validation animations */
.form-group.error input,
.form-group.error textarea {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
    animation: inputShake 0.5s ease-in-out;
}

@keyframes inputShake {
    0%, 20%, 40%, 60%, 80% {
        transform: translateX(-2px);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(2px);
    }
    100% {
        transform: translateX(0);
    }
}

/* Auto-scroll to home enhancement */
.page-loading {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Enhanced notification positioning to avoid scroll conflicts */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
}

.notification.show {
    transform: translateX(0);
    pointer-events: all;
}

/* Prevent layout shift during form interactions */
.contact-form {
    min-height: 600px;
    position: relative;
}

.contact-form form {
    position: relative;
    z-index: 1;
}

/* Loading state improvements */
.submit-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.submit-btn:disabled {
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Enhanced form interaction scroll prevention */
.contact-form {
    min-height: 600px;
    position: relative;
    scroll-margin-top: 0;
}

.contact-form form {
    position: relative;
    z-index: 1;
    scroll-behavior: auto !important;
}

.floating-label {
    position: relative;
    margin-bottom: 2rem;
    scroll-margin-top: 0;
}

.floating-label input,
.floating-label textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
    scroll-margin-top: 0;
    scroll-behavior: auto;
}

/* Prevent any scrolling when focusing on form elements */
.floating-label input:focus,
.floating-label textarea:focus {
    border-bottom-color: #667eea;
    scroll-margin-top: 0;
    scroll-behavior: auto;
}

/* Specific textarea scroll prevention */
.floating-label textarea {
    resize: vertical;
    min-height: 120px;
    max-height: 200px;
    scroll-behavior: auto !important;
    scroll-margin: 0 !important;
}

.floating-label textarea:focus {
    scroll-behavior: auto !important;
    scroll-margin: 0 !important;
}

/* Prevent viewport adjustments during form interactions */
.form-group input:focus,
.form-group textarea:focus {
    scroll-margin-top: 0 !important;
    scroll-behavior: auto !important;
}

/* Override any browser default scroll behavior for form elements */
input, textarea, select {
    scroll-behavior: auto !important;
    scroll-margin: 0 !important;
}

/* Prevent layout shifts and scrolling during typing */
.contact-section {
    scroll-behavior: auto;
}

.contact-content {
    scroll-behavior: auto;
}

/* Ensure contact form stays in place */
.contact-form form * {
    scroll-behavior: auto !important;
}

/* Contact Section - Disable smooth scrolling completely */
#contact {
    scroll-behavior: auto !important;
}

#contact * {
    scroll-behavior: auto !important;
    scroll-margin: 0 !important;
    scroll-padding: 0 !important;
}

/* Override global smooth scrolling for form interactions */
html.form-interaction {
    scroll-behavior: auto !important;
}

body.form-interaction {
    scroll-behavior: auto !important;
}

/* Prevent any viewport scrolling adjustments */
.floating-label input:focus,
.floating-label textarea:focus {
    border-bottom-color: #667eea;
    scroll-margin-top: 0 !important;
    scroll-behavior: auto !important;
    scroll-snap-align: none !important;
}

/* Lock body during form submission */
body.form-submitting {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Enhanced Navigation Responsive Design */
@media (max-width: 992px) {
    .nav-container {
        padding: 0.8rem 20px;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.98);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        padding: 80px 0 2rem;
        backdrop-filter: blur(20px);
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        justify-content: flex-start;
        align-items: center;
        gap: 2rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 0;
        opacity: 0;
        transform: translateX(-20px);
        animation: slideInNav 0.3s ease forwards;
    }
    
    .nav-menu.active li:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { animation-delay: 0.2s; }
    .nav-menu.active li:nth-child(3) { animation-delay: 0.3s; }
    .nav-menu.active li:nth-child(4) { animation-delay: 0.4s; }
    .nav-menu.active li:nth-child(5) { animation-delay: 0.5s; }
    .nav-menu.active li:nth-child(6) { animation-delay: 0.6s; }
    .nav-menu.active li:nth-child(7) { animation-delay: 0.7s; }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 1rem 0;
        display: block;
        width: 100%;
    }
    
    .nav-container {
        padding: 1rem 15px;
    }
    
    .nav-logo .logo-text {
        font-size: 1.6rem;
    }
}

@keyframes slideInNav {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 576px) {
    .nav-container {
        padding: 0.8rem 10px;
    }
    
    .nav-logo .logo-text {
        font-size: 1.4rem;
    }
}

/* Enhanced Hero Section Responsive Design */
@media (max-width: 1200px) {
    .hero-container {
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .image-container {
        width: 320px;
        height: 320px;
    }
    
    .profile-image {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 992px) {
    .hero-container {
        gap: 2.5rem;
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .image-container {
        width: 280px;
        height: 280px;
    }
    
    .profile-image {
        width: 240px;
        height: 240px;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 90vh;
        padding: 80px 0 40px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        max-width: 90%;
        margin: 0 auto 2rem;
    }
    
    .image-container {
        width: 250px;
        height: 250px;
        order: -1;
    }
    
    .profile-image {
        width: 200px;
        height: 200px;
    }
    
    .image-glow {
        width: 280px;
        height: 280px;
    }
    
    .image-border {
        width: 220px;
        height: 220px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        max-width: 300px;
        margin: 0 auto 2rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .social-links {
        gap: 1.5rem;
        justify-content: center;
    }
    
    .floating-icons {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero {
        min-height: 100vh;
        padding: 70px 0 30px;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .image-container {
        width: 200px;
        height: 200px;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
    }
    
    .image-glow {
        width: 230px;
        height: 230px;
    }
    
    .image-border {
        width: 170px;
        height: 170px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
    }
    
    .wave {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.85rem;
    }
    
    .floating-particles {
        display: none; /* Hide particles on very small screens for performance */
    }
}

/* Enhanced About Section Responsive Design */
@media (max-width: 1200px) {
    .about-content {
        gap: 3rem;
    }
    
    .about-stats {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .about-stats {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1.2rem;
    }
    
    .stat {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .about-text {
        order: 2;
    }
    
    .about-image {
        order: 1;
    }
    
    .reveal-text {
        text-align: left;
    }
}

@media (max-width: 576px) {
    .about {
        padding: 60px 0;
    }
    
    .about-stats {
        max-width: 100%;
    }
    
    .stat {
        padding: 1.2rem;
    }
    
    .counter {
        font-size: 2rem;
    }
}

/* Enhanced Experience Section Responsive Design */
@media (max-width: 1200px) {
    .experience-card {
        padding: 1.8rem;
    }
    
    .achievements-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 992px) {
    .timeline-item {
        margin-left: 60px;
    }
    
    .timeline-marker {
        left: -44px;
    }
    
    .experience-card {
        padding: 1.5rem;
    }
    
    .achievements-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .timeline-item {
        margin-left: 0;
        position: relative;
    }
    
    .timeline-marker {
        left: 20px;
        top: 20px;
    }
    
    .timeline-line {
        left: 32px;
    }
    
    .marker-outer {
        width: 40px;
        height: 40px;
    }
    
    .marker-inner {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }
    
    .experience-card {
        margin-left: 80px;
        padding: 1.2rem;
    }
    
    .experience-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .company-logo {
        margin: 0 auto;
    }
    
    .tech-cloud {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .experience {
        padding: 60px 0;
    }
    
    .timeline-marker {
        left: 15px;
    }
    
    .timeline-line {
        left: 27px;
    }
    
    .experience-card {
        margin-left: 60px;
        padding: 1rem;
    }
    
    .marker-outer {
        width: 35px;
        height: 35px;
    }
    
    .marker-inner {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
    
    .position {
        font-size: 1.1rem;
    }
    
    .company {
        font-size: 0.9rem;
    }
    
    .tech-bubble {
        padding: 0.3rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Enhanced Projects Section Responsive Design */
@media (max-width: 1200px) {
    .projects-showcase {
        gap: 2rem;
    }
    
    .featured-project {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 992px) {
    .projects-showcase {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .projects {
        padding: 60px 0;
    }
    
    .projects-showcase {
        gap: 2rem;
        max-width: 100%;
    }
    
    .featured-project {
        max-width: 100%;
    }
    
    .project-highlights {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .highlight-item {
        justify-content: center;
    }
    
    .tech-stack-modern {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .overlay-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .overlay-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .project-content {
        padding: 1.2rem;
    }
    
    .project-title {
        font-size: 1.3rem;
    }
    
    .project-description {
        font-size: 0.9rem;
    }
    
    .tech-item {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .highlight-item {
        font-size: 0.85rem;
    }
}

/* Enhanced Skills Section Responsive Design */
@media (max-width: 1200px) {
    .skills-grid-modern {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1.2rem;
    }
}

@media (max-width: 992px) {
    .skills-showcase {
        gap: 2rem;
    }
    
    .skills-grid-modern {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
    
    .skill-category-modern {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .skills {
        padding: 60px 0;
    }
    
    .skills-grid-modern {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .skill-card {
        padding: 1rem;
    }
    
    .category-header {
        text-align: center;
    }
    
    .category-header h3 {
        font-size: 1.3rem;
    }
    
    .category-header p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .skills-grid-modern {
        max-width: 100%;
    }
    
    .skill-card {
        padding: 0.8rem;
    }
    
    .skill-info h4 {
        font-size: 1rem;
    }
    
    .skill-percentage {
        font-size: 0.8rem;
    }
    
    .skill-logo i {
        font-size: 1.5rem;
    }
}

/* Enhanced Achievements Section Responsive Design */
@media (max-width: 1200px) {
    .achievements-showcase {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .achievements-showcase {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .achievements {
        padding: 60px 0;
    }
    
    .achievements-showcase {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .achievement-card-modern {
        padding: 1.2rem;
    }
}

@media (max-width: 576px) {
    .achievements-showcase {
        max-width: 100%;
    }
    
    .achievement-card-modern {
        padding: 1rem;
    }
    
    .achievement-details h3 {
        font-size: 1.1rem;
    }
    
    .achievement-desc {
        font-size: 0.85rem;
    }
}

/* Enhanced Contact Section Responsive Design */
@media (max-width: 1200px) {
    .contact-content {
        gap: 3rem;
    }
}

@media (max-width: 992px) {
    .contact-content {
        gap: 2.5rem;
    }
    
    .contact-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .contact {
        padding: 60px 0;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .contact-header {
        text-align: center;
    }
    
    .contact-details {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .contact-form {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .social-links-contact {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .contact-details {
        max-width: 100%;
    }
    
    .contact-form {
        max-width: 100%;
    }
    
    .contact-item {
        padding: 1rem;
    }
    
    .contact-info h3 {
        font-size: 1.1rem;
    }
    
    .contact-info p {
        font-size: 0.9rem;
    }
    
    .form-header h3 {
        font-size: 1.2rem;
    }
    
    .floating-label input,
    .floating-label textarea {
        font-size: 0.9rem;
    }
    
    .submit-btn {
        width: 100%;
        padding: 1rem;
    }
}

/* Enhanced Section Titles Responsive Design */
@media (max-width: 768px) {
    .section-title {
        margin-bottom: 2rem;
    }
    
    .animated-title .title-line {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .section-title {
        margin-bottom: 1.5rem;
    }
    
    .animated-title .title-line {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .animated-title .title-line {
        font-size: 1.6rem;
    }
}

/* Enhanced Notification Responsive Design */
@media (max-width: 768px) {
    .notification {
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: calc(100vw - 20px);
    }
}

@media (max-width: 576px) {
    .notification {
        top: 80px;
        right: 5px;
        left: 5px;
        padding: 0.8rem 1rem;
        max-width: calc(100vw - 10px);
    }
    
    .notification-content {
        gap: 0.8rem;
    }
    
    .notification-message {
        font-size: 0.9rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .social-link:hover,
    .nav-link:hover {
        transform: none;
    }
    
    .btn:active,
    .social-link:active,
    .nav-link:active {
        transform: scale(0.95);
    }
    
    .floating-particles {
        display: none;
    }
    
    .mouse-trail {
        display: none;
    }
}

/* Landscape Mobile Optimization */
@media (max-width: 896px) and (orientation: landscape) and (max-height: 500px) {
    .hero {
        min-height: 100vh;
        padding: 60px 0 30px;
    }
    
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        text-align: left;
    }
    
    .image-container {
        width: 200px;
        height: 200px;
        order: 2;
    }
    
    .profile-image {
        width: 160px;
        height: 160px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: flex-start;
        margin-bottom: 1rem;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .social-links {
        justify-content: flex-start;
    }
}

/* High Resolution Displays */
@media (min-width: 1400px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.6rem;
    }
    
    .hero-description {
        font-size: 1.2rem;
    }
    
    .image-container {
        width: 400px;
        height: 400px;
    }
    
    .profile-image {
        width: 350px;
        height: 350px;
    }
}

/* Print Optimizations */
@media print {
    .hamburger,
    .floating-particles,
    .particle,
    .particle-small,
    .mouse-trail,
    .loading-screen,
    .notification,
    .btn,
    .social-links,
    .nav-menu {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
    }
    
    .hero,
    .about,
    .experience,
    .projects,
    .skills,
    .achievements,
    .contact {
        background: white !important;
        page-break-inside: avoid;
        margin-bottom: 20pt;
    }
    
    .hero-title,
    .section-title .title-line {
        color: black !important;
        font-size: 18pt;
    }
    
    .hero-description,
    .project-description,
    .reveal-text {
        color: #333 !important;
        font-size: 11pt;
    }
}

/* Enhanced Responsive Design - Updated Integration */
@media (max-width: 768px) {
    /* Remove the old hamburger and nav-menu styles as they're now replaced above */
    
    /* Keep specific grid layouts not covered in new responsive sections */
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    /* Additional small screen optimizations */
    .particle {
        display: none; /* Improve performance on very small devices */
    }
    
    .tech-icon {
        display: none; /* Simplify UI on very small screens */
    }
    
    /* Ensure all text is readable on small screens */
    .tooltip {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    /* Optimize button spacing */
    .btn {
        min-height: 44px; /* Touch target minimum */
    }
    
    .social-link {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Additional Mobile Optimizations */
@media (max-width: 576px) {
    /* Ensure proper spacing for touch devices */
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Optimize form elements for mobile */
    .floating-label input,
    .floating-label textarea {
        padding: 1.2rem 0.5rem 0.5rem 0;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Ensure proper scroll behavior */
    .hero,
    .about,
    .experience,
    .projects,
    .skills,
    .achievements,
    .contact {
        scroll-margin-top: 70px; /* Account for fixed nav */
    }
}

/* Tablet-specific optimizations */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-container {
        gap: 2rem;
    }
    
    .about-content,
    .contact-content {
        gap: 2.5rem;
    }
    
    /* Optimize for tablet portrait/landscape */
    .projects-showcase {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
}

/* Large tablet and small desktop optimizations */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
    
    .section-title .title-line {
        font-size: 2.5rem;
    }
}