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

html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Optimize for scroll performance */
* {
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
}

/* Improve scroll performance */
.skill-category,
.project-card,
.education-content,
.experience-content {
    will-change: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Disable animations during scroll for better performance */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    /* Ensure navbar is always visible */
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Floating Navigation Menu */
.floating-nav {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 15px 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.floating-nav.show {
    opacity: 1;
    visibility: visible;
}

.floating-nav-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.floating-nav-link {
    display: block;
    padding: 8px 12px;
    color: #64748b;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 15px;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
}

.floating-nav-link:hover {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    transform: translateX(-2px);
}

.floating-nav-link.active {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

/* Mobile floating nav */
@media (max-width: 768px) {
    .floating-nav {
        right: 10px;
        padding: 10px 8px;
    }
    
    .floating-nav-link {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

/* Section Navigation */
.section-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.section-nav-link {
    display: inline-block;
    padding: 8px 16px;
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-nav-link:hover {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.section-nav-link.active {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    border-color: transparent;
}

/* Section nav responsive */
@media (max-width: 768px) {
    .section-nav {
        gap: 6px;
        padding: 15px 10px;
        margin-bottom: 30px;
    }
    
    .section-nav-link {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .section-nav {
        gap: 4px;
        padding: 10px 5px;
    }
    
    .section-nav-link {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
}

/* Strava Video Styles */
.strava-video-container {
    margin-top: 20px;
    max-width: 400px;
}

.video-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: #000;
}

.strava-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-overlay:hover {
    background: rgba(0, 0, 0, 0.7);
}

.play-button {
    background: linear-gradient(135deg, #fc4c02, #ff6b35);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(252, 76, 2, 0.4);
    margin-bottom: 10px;
}

.play-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(252, 76, 2, 0.6);
}

.play-button i {
    margin-left: 3px; /* Slight offset for play icon */
}

.video-text {
    color: white;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Video playing state */
.video-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .strava-video-container {
        max-width: 100%;
        margin-top: 15px;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .video-text {
        font-size: 12px;
    }
    
    /* Mobile Skills Performance Optimizations - ULTRA FAST */
    .skills {
        background: #1e3a8a !important; /* Single color for speed */
        position: relative;
    }
    
    .skills::before {
        display: none !important; /* Remove all background effects */
    }
    
    .skill-category {
        background: rgba(255, 255, 255, 0.98) !important; /* Solid background */
        backdrop-filter: none !important; /* Remove blur */
        padding: 1rem !important; /* Minimal padding */
        animation: none !important; /* No animations */
        transform: none !important; /* No transforms */
        transition: none !important; /* No transitions */
        opacity: 1 !important; /* Show immediately */
    }
    
    .skill-category::before {
        display: none !important; /* Remove all pseudo-elements */
    }
    
    .skill-category::after {
        display: none !important; /* Remove all pseudo-elements */
    }
    
    .skill-item {
        animation: none !important; /* Disable all animations */
        opacity: 1 !important; /* Show immediately */
        transform: none !important; /* No transforms */
        transition: none !important; /* No transitions */
        margin-bottom: 0.8rem !important; /* Reduced spacing */
    }
    
    .skill-bar {
        animation: none !important; /* Disable all animations */
        transition: none !important; /* No transitions */
        height: 8px !important; /* Thinner bars */
    }
    
    .skill-bar::before {
        display: none !important; /* Remove shine effect */
    }
    
    .skill-bar::after {
        display: none !important; /* Remove all effects */
    }
    
    .skill-progress {
        animation: none !important; /* Disable all animations */
        transition: none !important; /* No transitions */
        background: #2563eb !important; /* Simple solid color */
    }
    
    .skill-progress::after {
        display: none !important; /* Remove all effects */
    }
    
    .skill-category:hover {
        transform: none !important;
        box-shadow: none !important;
        animation: none !important;
        transition: none !important;
    }
    
    .skill-item:hover {
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }
    
    .skill-item:hover .skill-bar {
        box-shadow: none !important;
        animation: none !important;
        transition: none !important;
    }
    
    /* Force immediate visibility */
    .skills * {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

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

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo a:hover {
    color: #1d4ed8;
}

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

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

.nav-link:hover {
    color: #2563eb;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2563eb;
    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: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
    /* Add padding to account for fixed navbar */
    padding-top: 70px;
}

.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"><polygon fill="rgba(255,255,255,0.1)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}


.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.hero-profile {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 2rem;
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-title br {
    display: block;
    margin: 0.2em 0;
}

.highlight {
    color: #fbbf24;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    line-height: 1.6;
}

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

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

.btn-primary {
    background: #fbbf24;
    color: #1f2937;
}

.btn-primary:hover {
    background: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}


.profile-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.profile-avatar {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fbbf24;
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.3);
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
}

.profile-icon-fallback {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.2);
    border: 4px solid #fbbf24;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    color: #fbbf24;
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.3);
}

.profile-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.profile-card p {
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

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

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

.social-link:hover {
    background: #fbbf24;
    color: #1f2937;
    transform: translateY(-2px);
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #1f2937;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #2563eb;
    border-radius: 2px;
}

/* About Section */
.about {
    background: #f8fafc;
    /* Add scroll margin to account for fixed navbar */
    scroll-margin-top: 90px;
}

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

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #4b5563;
    line-height: 1.7;
}

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

.stat {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.stat h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.stat p {
    color: #6b7280;
    font-weight: 500;
}

.tech-stack {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.tech-stack h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-item {
    background: #2563eb;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Skills Section - Enhanced Design */
.skills {
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 25%, #581c87 50%, #7c3aed 75%, #a855f7 100%);
    position: relative;
    overflow: hidden;
    /* Add scroll margin to account for fixed navbar */
    scroll-margin-top: 90px;
}

.skills::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"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"><animate attributeName="opacity" values="0.1;0.8;0.1" dur="3s" repeatCount="indefinite"/></circle><circle cx="80" cy="30" r="1.5" fill="rgba(255,255,255,0.1)"><animate attributeName="opacity" values="0.1;0.6;0.1" dur="4s" repeatCount="indefinite"/></circle><circle cx="40" cy="70" r="1" fill="rgba(255,255,255,0.1)"><animate attributeName="opacity" values="0.1;0.9;0.1" dur="2.5s" repeatCount="indefinite"/></circle></svg>');
    pointer-events: none;
    z-index: 0;
}

.skills .container {
    position: relative;
    z-index: 1;
}

.skills .section-title {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    perspective: 1000px;
}

.skill-category {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    transform-style: preserve-3d;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(37, 99, 235, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.skill-category:hover::before {
    transform: translateX(100%);
}

.skill-category:hover {
    transform: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.skill-category h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
}

.skill-category h3 i {
    color: #2563eb;
    font-size: 1.5rem;
    animation: none;
}

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

.skill-item {
    margin-bottom: 1.5rem;
    position: relative;
    opacity: 0;
    transform: translateX(-20px);
    animation: skillItemSlideIn 0.6s ease forwards;
}

.skill-item:nth-child(2) { animation-delay: 0.1s; }
.skill-item:nth-child(3) { animation-delay: 0.2s; }
.skill-item:nth-child(4) { animation-delay: 0.3s; }
.skill-item:nth-child(5) { animation-delay: 0.4s; }

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

.skill-item span {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: #374151;
    font-size: 1.1rem;
    position: relative;
}

.skill-item span::after {
    display: none;
}

.skill-item:hover span::after {
    display: none;
}

.skill-bar {
    height: 12px;
    background: linear-gradient(90deg, #f1f5f9, #e2e8f0);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.skill-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: skillBarShine 2s infinite;
}

@keyframes skillBarShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #06b6d4, #3b82f6, #8b5cf6, #a855f7);
    border-radius: 10px;
    transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    width: 0%;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progressGlow 2s ease-in-out infinite;
}

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

/* Programming Languages - COMPLETELY STEADY */
.skill-category:nth-child(1) {
    animation: none !important;
    transform: none !important;
    transition: none !important;
}

.skill-category:nth-child(2) {
    animation: none;
    transform: none !important;
    transition: none !important;
}

.skill-category:nth-child(3) {
    animation: none !important;
    transform: none !important;
    transition: none !important;
}

.skill-category:nth-child(4) {
    animation: none !important;
    transform: none !important;
    transition: none !important;
}

/* Completely disable all hover effects for skill categories */
.skill-category:hover {
    transform: none !important;
    animation: none !important;
    transition: none !important;
}

.skill-category:nth-child(1):hover {
    transform: none !important;
    animation: none !important;
    transition: none !important;
}

@keyframes categoryGlow {
    0%, 100% { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); }
    50% { box-shadow: 0 25px 50px rgba(37, 99, 235, 0.15); }
}

@keyframes categoryShimmer {
    0%, 100% { background: rgba(255, 255, 255, 0.95); }
    50% { background: rgba(255, 255, 255, 0.98); }
}

@keyframes categoryFade {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.95; }
}

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

/* Special effects for different skill types */
/* Disable continuous animations for better scroll performance */
.skill-category h3 i.fa-code {
    animation: none;
}

.skill-category:nth-child(1) h3 i {
    animation: none !important;
}

.skill-category h3 i.fa-cloud {
    animation: none;
}

.skill-category h3 i.fa-network-wired {
    animation: none;
}

.skill-category h3 i.fa-tools {
    animation: none;
}

/* Enhanced hover effects for skill items */
.skill-item:hover {
    transform: translateX(5px);
    transition: transform 0.3s ease;
}

.skill-item:hover .skill-bar {
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

/* Disable staggered animations for better scroll performance */
.skill-category:nth-child(1) { animation: none; }
.skill-category:nth-child(2) { animation: none; }
.skill-category:nth-child(3) { animation: none; }
.skill-category:nth-child(4) { animation: none; }

/* Projects Section */
.projects {
    background: #f8fafc;
}

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

.project-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

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

.project-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

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

.project-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f3f4f6;
    border-radius: 8px;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-links a:hover {
    background: #2563eb;
    color: white;
}

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

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

.tech-tag {
    background: #e0e7ff;
    color: #3730a3;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.contact-info p {
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-method i {
    font-size: 1.5rem;
    color: #2563eb;
    width: 24px;
}

.contact-method h4 {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.contact-method p {
    color: #6b7280;
    margin: 0;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text p {
    color: #9ca3af;
}

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

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #374151;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-profile {
        margin-bottom: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem; /* Reduced gap for mobile */
    }
    
    .skill-category h3 {
        font-size: 1.2rem; /* Smaller font for mobile */
        margin-bottom: 1.5rem;
    }
    
    .skill-item {
        margin-bottom: 1rem; /* Reduced margin */
    }
    
    .skill-bar {
        height: 10px; /* Thinner bars for mobile */
    }
    
    /* Disable all skill animations on mobile */
    .skill-category * {
        animation: none !important;
        transition: none !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero-container {
        padding: 0 15px;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Professional DevOps Animations */
@keyframes cloudFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

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

@keyframes codeTyping {
    0% { width: 0; }
    100% { width: 100%; }
}

@keyframes infrastructureBuild {
    0% { transform: scale(0.8) rotateY(0deg); opacity: 0; }
    50% { transform: scale(1.05) rotateY(180deg); opacity: 0.8; }
    100% { transform: scale(1) rotateY(360deg); opacity: 1; }
}

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

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

@keyframes terraformDeploy {
    0% { transform: translateY(20px) scale(0.9); opacity: 0; }
    50% { transform: translateY(-5px) scale(1.05); opacity: 0.8; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* Animated Background Elements */
.hero::after {
    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"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"><animate attributeName="opacity" values="0.1;0.8;0.1" dur="3s" repeatCount="indefinite"/></circle><circle cx="80" cy="30" r="1.5" fill="rgba(255,255,255,0.1)"><animate attributeName="opacity" values="0.1;0.6;0.1" dur="4s" repeatCount="indefinite"/></circle><circle cx="40" cy="70" r="1" fill="rgba(255,255,255,0.1)"><animate attributeName="opacity" values="0.1;0.9;0.1" dur="2.5s" repeatCount="indefinite"/></circle></svg>');
    pointer-events: none;
    z-index: 0;
}

/* Skill Bar Animations - Removed duplicate */

/* Project Card Hover Animations */
.project-card {
    position: relative;
    overflow: hidden;
}

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

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

/* Tech Stack Floating Animation */
.tech-item {
    position: relative;
    transition: all 0.3s ease;
}

.tech-item:hover {
    animation: cloudFloat 2s ease-in-out infinite;
    transform: translateY(-5px);
}

/* Profile Image Professional Animation */
.profile-image {
    position: relative;
}

.profile-image::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid rgba(251, 191, 36, 0.3);
    border-radius: 50%;
    animation: networkPulse 3s ease-in-out infinite;
}

/* Infrastructure Build Animation for Projects */
.project-card {
    animation: terraformDeploy 0.8s ease-out;
}

/* Code Typing Effect for Skills - Removed blue line */
.skill-category h3::after {
    content: '';
    display: none;
}

/* Enhanced skill bar animation */
.skill-bar {
    position: relative;
    overflow: hidden;
    background: #e5e7eb;
    border-radius: 4px;
    height: 8px;
}

.skill-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: dataFlow 2s infinite;
    z-index: 2;
}

/* Removed duplicate skill-progress rule */

/* Disable continuous animations for better scroll performance */
.skill-category h3 i.fa-tools {
    animation: none;
}

/* Network Animation for Network Skills */
.skill-category h3 i.fa-network-wired {
    animation: none;
}

/* Cloud Float Animation for Cloud Skills */
.skill-category h3 i.fa-cloud {
    animation: none;
}

/* Professional Tooltips */
.tech-item {
    position: relative;
    cursor: pointer;
}

.tech-item::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.tech-item::after {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.tech-item:hover::before,
.tech-item:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Professional Section Title Animations */
.section-title i {
    margin: 0 15px;
    color: #2563eb;
    font-size: 1.2em;
}

/* Enhanced Hero Subtitle */
.hero-subtitle i {
    margin: 0 10px;
    color: #fbbf24;
    font-size: 1.1em;
}

/* Data Flow Animation for Skill Bars */
/* Removed conflicting skill progress animation */

/* Professional Hover Effects */
.btn {
    position: relative;
    overflow: hidden;
}

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

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

/* Infrastructure Build Effect */
@keyframes infrastructureGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(37, 99, 235, 0.3); }
    50% { box-shadow: 0 0 20px rgba(37, 99, 235, 0.6); }
}

.project-card:hover {
    animation: infrastructureGlow 2s ease-in-out infinite;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s infinite;
}

/* Education Section */
.education {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.education-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #2563eb, #3b82f6);
    border-radius: 2px;
}

.education-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 100px;
}

.education-year {
    position: absolute;
    left: 0;
    top: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.education-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #2563eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.education-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.education-content h3 {
    color: #1e293b;
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.education-content h4 {
    color: #2563eb;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

/* University Logo Styling */
.university-logo {
    height: 24px;
    width: auto;
    margin-right: 8px;
    vertical-align: middle;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.university-logo:hover {
    transform: scale(1.05);
}

/* Company Logo Styling */
.company-logo {
    height: 28px;
    width: auto;
    margin-right: 10px;
    vertical-align: middle;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.company-logo:hover {
    transform: scale(1.05);
}

.education-duration {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.education-grade {
    color: #059669;
    font-weight: 600;
    font-size: 1rem;
}

/* Experience Section */
.experience {
    padding: 100px 0;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

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

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #2563eb, #3b82f6);
    border-radius: 2px;
}

.experience-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 100px;
}

.experience-period {
    position: absolute;
    left: 0;
    top: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.experience-content {
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #2563eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.experience-content h3 {
    color: #1e293b;
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.experience-content h4 {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 500;
}

.experience-role {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.experience-role:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.experience-role h5 {
    color: #2563eb;
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.experience-description {
    color: #475569;
    line-height: 1.7;
    font-size: 1rem;
}

/* Personal Information Section */
.personal {
    padding: 100px 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
}

.personal .section-title {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

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

.personal-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.personal-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.personal-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.personal-item i {
    font-size: 2rem;
    color: #3b82f6;
    margin-right: 20px;
    min-width: 40px;
}

.personal-item h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: 600;
}

.personal-item p {
    font-size: 1.1rem;
    color: #f1f5f9;
    font-weight: 500;
}

/* Languages Section */
.languages {
    padding: 100px 0;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.languages-content {
    max-width: 1000px;
    margin: 0 auto;
}

.languages-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.language-category, .hobbies-category {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.language-category:hover, .hobbies-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.language-category h3, .hobbies-category h3 {
    color: #1e293b;
    font-size: 1.5rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-category h3 i, .hobbies-category h3 i {
    color: #2563eb;
}

.language-items, .hobby-items {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.language-item {
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 15px;
    border-left: 4px solid #2563eb;
    transition: transform 0.3s ease;
}

.language-item:hover {
    transform: translateX(10px);
}

.language-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    display: block;
    margin-bottom: 5px;
}

.language-level {
    font-size: 0.9rem;
    color: #2563eb;
    font-weight: 500;
    background: rgba(37, 99, 235, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 10px;
}

.language-description {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.hobby-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 15px;
    border-left: 4px solid #059669;
    transition: transform 0.3s ease;
}

.hobby-item:hover {
    transform: translateX(10px);
}

.hobby-item i {
    font-size: 1.5rem;
    color: #059669;
    margin-right: 15px;
    min-width: 30px;
}

.hobby-item h4 {
    color: #1e293b;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.hobby-item p {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}

.hobby-item a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.hobby-item a:hover {
    text-decoration: underline;
}

/* Network Equipment Showcase */
.equipment-showcase {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 15px;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.equipment-showcase h4 {
    color: #1e293b;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.equipment-showcase h4::before {
    content: "🔧";
    font-size: 1.2em;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.equipment-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.equipment-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.equipment-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.equipment-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    background-color: #f8fafc;
}

.equipment-item:hover .equipment-img {
    transform: scale(1.02);
}

.equipment-info {
    padding: 20px;
}

.equipment-info h5 {
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.equipment-info p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Responsive Design for New Sections */
@media (max-width: 768px) {
    .education-timeline::before {
        left: 30px;
    }
    
    .education-item {
        padding-left: 70px;
    }
    
    .education-year {
        width: 60px;
        height: 60px;
        font-size: 0.9rem;
    }
    
    .education-content {
        padding: 20px;
    }
    
    .university-logo {
        height: 20px;
        margin-right: 6px;
    }
    
    .company-logo {
        height: 22px;
        margin-right: 8px;
    }
    
    .experience-timeline::before {
        left: 30px;
    }
    
    .experience-item {
        padding-left: 70px;
    }
    
    .experience-period {
        width: 60px;
        height: 60px;
        font-size: 0.8rem;
    }
    
    .experience-content {
        padding: 20px;
    }
    
    .experience-content h3 {
        font-size: 1.3rem;
    }
    
    .experience-role h5 {
        font-size: 1.1rem;
    }
    
    .personal-info {
        grid-template-columns: 1fr;
    }
    
    .languages-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .language-category, .hobbies-category {
        padding: 30px 20px;
    }
    
    .equipment-grid {
        grid-template-columns: 1fr;
    }
    
    .equipment-showcase {
        padding: 20px 15px;
    }
}
