@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #FFA500;
    --secondary-color: #FF6347;
    --text-color: #FFFFFF;
    --bg-color: #0a0a23;
    --dark-bg-color: #121212;
    --dark-text-color: #FFFFFF;
    --light-bg-color: #ffffff;
    --light-text-color: #333333;
    --footer-bg-color: #1a1a1a;
    --theme-color: var(--primary-color);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: linear-gradient(135deg, #0a0a23 0%, #1a1a3a 50%, #2a2a4a 100%);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(65, 105, 225, 0.6) 2px, transparent 2px),
        radial-gradient(circle at 80% 20%, rgba(30, 144, 255, 0.4) 2px, transparent 2px),
        radial-gradient(circle at 40% 40%, rgba(70, 130, 180, 0.5) 1px, transparent 1px),
        radial-gradient(circle at 90% 60%, rgba(100, 149, 237, 0.3) 1px, transparent 1px),
        radial-gradient(circle at 10% 10%, rgba(65, 105, 225, 0.4) 1.5px, transparent 1.5px);
    background-size: 200px 200px, 250px 250px, 150px 150px, 300px 300px, 180px 180px;
    background-position: 0 0, 50px 50px, 100px 100px, 150px 150px, 200px 200px;
    animation: moveDots 20s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes moveDots {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(-50px, -30px);
    }
    50% {
        transform: translate(30px, -60px);
    }
    75% {
        transform: translate(-20px, 40px);
    }
    100% {
        transform: translate(0, 0);
    }
}

.light-theme {
    --text-color: var(--light-text-color);
    --bg-color: var(--light-bg-color);
    --theme-color: var(--secondary-color);
}

.highlight {
    color: var(--theme-color);
}

.half-white {
    color: #ffffff;
}

.light-theme .half-white {
    color: #333333;
}

#changeable-role {
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

/* Header */
header {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
    backdrop-filter: blur(10px);
    padding: 8px 25px;
    border-radius: 50px;
    border: 2px solid var(--theme-color);
    box-shadow: none;
    transition: background-color 0.3s, box-shadow 0.3s, border-color 0.3s;
}

header.scrolled nav {
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.light-theme header.scrolled nav {
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--secondary-color);
}

.logo {
    font-size: 1.6em;
    font-weight: 700;
}

nav .nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
}

nav .nav-links li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 20px;
    transition: background-color 0.3s, color 0.3s;
}

nav .nav-links li a.active,
nav .nav-links li a:hover {
    background-color: var(--theme-color);
    color: #fff;
}

/* Theme switcher disabled */
/*
.theme-switcher {
    position: relative;
}

.theme-switcher span {
    cursor: pointer;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--theme-color);
    font-weight: bold;
    user-select: none;
}

.theme-switcher span:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(255, 117, 56, 0.3);
}
*/

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.hamburger:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 3px 0;
    background-color: var(--text-color);
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

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

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60vh;
    padding: 120px 15% 0;
    max-width: 1500px;
    margin: auto;
    gap: 80px;
}

.hero-text {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    max-width: 1000px;
}

.developer-text {
    display: flex;
    flex-direction: column;
    font-size: 1.2em;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: 10px;
}

.intro h1 {
    font-size: 2.5em;
    margin: 5px 0;
    line-height: 1.1;
}

.intro p {
    font-size: 1em;
    margin: 8px 0;
}

.intro .description {
    max-width: 450px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.buttons .btn {
    text-decoration: none;
    color: #fff;
    background-color: var(--theme-color);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 800px;
    margin-right: 10px;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.buttons .btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.buttons .btn-download {
    background: linear-gradient(45deg, #FF8C00, #FF4500);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.buttons .btn-download::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;
}

.buttons .btn-download:hover::before {
    left: 100%;
}

.buttons .btn-download:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 30px rgba(255, 140, 0, 0.5);
    background-position: 100% 0;
}

.download-icon {
    width: 20px;
    height: 20px;
    fill: white;
    transition: transform 0.3s ease;
}

.buttons .btn-download:hover .download-icon {
    transform: translateY(2px) scale(1.1);
    animation: bounce 0.6s ease;
}

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

.buttons .btn-download:hover .btn-text {
    transform: translateX(2px);
}

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

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

.buttons .btn-secondary {
    background-color: #B85450;
    color: #fff;
    border: 2px solid #B85450;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.buttons .btn-secondary:hover {
    background-color: #A04944;
    border-color: #A04944;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 84, 80, 0.3);
}

.buttons .btn-linkedin {
    background-color: #0077B5;
    color: #fff;
    border: 2px solid #0077B5;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.buttons .btn-linkedin:hover {
    background-color: #005582;
    border-color: #005582;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

.linkedin-icon {
    width: 18px;
    height: 18px;
    fill: white;
    opacity: 1;
    display: inline-block;
    vertical-align: middle;
}

.buttons .btn-linkedin:hover .linkedin-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Light theme styling for LinkedIn button */
.light-theme .buttons .btn-linkedin {
    background-color: #0077B5;
    color: #fff;
    border-color: #0077B5;
}

.light-theme .buttons .btn-linkedin:hover {
    background-color: #005582;
    border-color: #005582;
}
/* Hero Image */
.hero-image {
    position: relative;
    flex-shrink: 0;
}

.hero-image img {
    width: 390px;
    height: 390px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* General Section Styling */
section {
    padding: 40px 5%;
    max-width: 1200px;
    margin: auto;
}

/* About Section */
.about {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 80vh;
    width: 100%;
}

.about-image {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 40px;
    bottom: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    z-index: 0;
}

.about-image::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    left: 40px;
    top: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    z-index: 0;
}

.about-image img {
    width: 320px;
    height: 400px;
    border-radius: 20px;
    object-fit: cover;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-content {
    flex: 1;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.about-content h2 {
    font-size: 3.2em;
    margin-bottom: 25px;
    color: #ffffff;
    font-weight: 700;
}

.about-content p {
    font-size: 1.1em;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
    text-align: center;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.about-content .quote {
    font-size: 1.2em;
    font-weight: 500;
    color: #ffa366;
    margin: 30px 0;
    font-style: italic;
    position: relative;
    padding-left: 0;
    text-align: center;
}

.about-content .quote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -5px;
    font-size: 2em;
    color: #ffa366;
    margin-right: 5px;
}

.stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 30px;
    width: 100%;
    max-width: 500px;
}

.stat-item {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-number {
    font-size: 3.5em;
    font-weight: 700;
    color: var(--theme-color);
    margin: 0;
    line-height: 1;
    text-shadow: 0 0 20px rgba(255, 117, 56, 0.4);
}

.stat-label {
    font-size: 1.4em;
    color: rgba(255, 255, 255, 0.9);
    margin: 10px 0 0 0;
    font-weight: 500;
    white-space: nowrap;
}

.stat-divider {
    width: 2px;
    height: 80px;
    background: linear-gradient(180deg, transparent 0%, var(--theme-color) 50%, transparent 100%);
    margin: 0 30px;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(255, 117, 56, 0.3);
}

.light-theme .stat-divider {
    background: linear-gradient(180deg, transparent 0%, #ccc 50%, transparent 100%);
}

/* Skills Section */
.skills {
    text-align: center;
    padding: 80px 0;
}

.skills h2 {
    font-size: 2.8em;
    margin-bottom: 10px;
}

.skills h3 {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 30px;
}

/* Skills Carousel Container */
.skills-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 20px 0;
    padding: 20px 0;
}

/* Skills Carousel */
.skills-carousel {
    display: flex;
    animation: scrollCarousel 20s linear infinite;
    width: max-content;
    will-change: transform;
}

/* Pause animation on hover */
.skills-carousel:hover {
    animation-play-state: paused;
}

/* Skill Item */
.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 30px;
    transition: transform 0.3s ease, opacity 0.5s ease;
    opacity: 0;
    transform: translateY(20px);
}

/* When skills section is in view */
.skills.in-view .skill-item {
    opacity: 1;
    transform: translateY(0);
}

.skill-item:hover {
    transform: translateY(-10px);
}

/* Enhanced circular icons with better gradients */
.skill-item img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    object-fit: contain;
    position: relative;
}

.skill-item img::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-item:hover img {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Improved skill name styling */
.skill-name {
    margin-top: 12px;
    font-size: 0.9em;
    font-weight: 600;
    color: var(--text-color);
    opacity: 0.7;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.75em;
}

.skill-item:hover .skill-name {
    opacity: 1;
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Enhanced carousel animation for smooth infinite scroll */
@keyframes scrollCarousel {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% / 2));
    }
}

/* Different animation speeds for variety */
#languages-carousel {
    animation-duration: 25s;
}

#tools-carousel {
    animation-duration: 30s;
    animation-direction: reverse;
}

/* Light theme enhancements */
.light-theme .skill-item img {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.3);
}

.light-theme .skill-item:hover img {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    box-shadow: 0 15px 40px rgba(79, 172, 254, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .skills {
        padding: 60px 0;
    }
    
    .skills h2 {
        font-size: 2.2em;
    }
    
    .skills h3 {
        font-size: 1.5em;
        margin-top: 30px;
        margin-bottom: 20px;
    }
    
    .skill-item {
        margin: 0 20px;
    }
    
    .skill-item img {
        width: 60px;
        height: 60px;
        padding: 12px;
    }
    
    .skill-name {
        font-size: 0.8em;
        margin-top: 8px;
    }
    
    .skills-carousel {
        animation-duration: 15s;
    }
}

@media (max-width: 480px) {
    .skills {
        padding: 40px 0;
    }
    
    .skills h2 {
        font-size: 1.8em;
    }
    
    .skills h3 {
        font-size: 1.3em;
    }
    
    .skill-item {
        margin: 0 15px;
    }
    
    .skill-item img {
        width: 50px;
        height: 50px;
        padding: 10px;
    }
    
    .skill-name {
        font-size: 0.75em;
    }
    
    .skills-carousel {
        animation-duration: 12s;
    }
}

/* Projects Section */
.projects {
    text-align: center;
}

.projects h2 {
    font-size: 2.8em;
    margin-bottom: 30px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background-color: #f9f9f9;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding-bottom: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.project-image-container {
    position: relative;
    overflow: hidden;
}

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: block;
}

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

.hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.project-image-container:hover .hover-overlay {
    opacity: 1;
}

.description-btn {
    background: var(--theme-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: translateY(10px);
    box-shadow: 0 4px 15px rgba(255, 117, 56, 0.3);
}

.project-image-container:hover .description-btn {
    transform: translateY(0);
}

.description-btn:hover {
    background: rgba(255, 117, 56, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 117, 56, 0.4);
}

.light-theme .description-btn {
    background: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.light-theme .description-btn:hover {
    background: rgba(33, 150, 243, 0.9);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

.project-info {
    padding: 15px 20px 10px;
    text-align: center;
}

.project-info h3 {
    font-size: 1.2em;
    margin: 0 0 8px 0;
    color: #333;
    font-weight: 600;
}

.project-info p {
    margin: 0;
    color: #666;
    opacity: 0.9;
    font-size: 0.9em;
    line-height: 1.4;
}

.light-theme .project-info h3 {
    color: #222;
}

.light-theme .project-info p {
    color: #555;
}

.project-card .btn {
    padding: 10px 24px;
    margin-top: 15px;
    background-color: var(--theme-color);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid var(--theme-color);
    letter-spacing: 0.5px;
}

.project-card .btn:hover {
    background-color: transparent;
    color: var(--theme-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 117, 56, 0.4);
    border-color: var(--theme-color);
}

.light-theme .project-card .btn {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.light-theme .project-card .btn:hover {
    background-color: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

/* Project Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-color);
    margin: 2% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.close {
    color: var(--text-color);
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    z-index: 1001;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close:hover {
    background: var(--theme-color);
    color: #fff;
    transform: rotate(90deg);
}

.modal-body {
    display: flex;
    flex-direction: row;
    gap: 30px;
    padding: 30px;
}

.modal-body img {
    width: 50%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-info h2 {
    color: var(--text-color);
    margin: 0;
    font-size: 2em;
    background: linear-gradient(45deg, var(--theme-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-info p {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
}

.modal-tech h4 {
    color: var(--text-color);
    margin: 0 0 10px 0;
    font-size: 1.1em;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background: linear-gradient(45deg, var(--theme-color), var(--secondary-color));
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.modal-buttons .btn {
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Mobile Modal Styles */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .modal-body {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }
    
    .modal-body img {
        width: 100%;
        height: 200px;
    }
    
    .modal-info h2 {
        font-size: 1.5em;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-image img {
        width: 320px;
        height: 320px;
    }
    .intro h1 {
        font-size: 2.8em;
    }
}

@media (max-width: 1024px) {
    .about {
        gap: 40px;
        padding: 60px 30px;
        max-width: 100%;
    }
    
    .about-image img {
        width: 280px;
        height: 360px;
    }
    
    .about-content {
        max-width: 500px;
    }
    
    .stats {
        max-width: 400px;
    }
}

@media (max-width: 992px) {
    .hamburger {
        display: flex;
        flex-direction: column;
        z-index: 1001;
    }

    nav {
        padding: 8px 20px;
    }

    .logo {
        font-size: 1.4em;
    }

    /* Theme switcher mobile styles disabled */
    /*
    .theme-switcher span {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    */

    /* Project Grid - Tablet View */
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 20px;
        max-width: 800px;
    }

    nav .nav-links {
        position: fixed;
        top: 70px;
        left: 50%;
        transform: translateX(-50%) translateY(-150%);
        width: 90%;
        max-width: 400px;
        background-color: rgba(26, 26, 26, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        transition: transform 0.3s ease-in-out;
        padding: 25px 20px;
        border-radius: 20px;
        border: 2px solid var(--theme-color);
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }

    .light-theme nav .nav-links {
        background-color: rgba(255, 255, 255, 0.95);
        color: #333;
    }

    nav .nav-links.active {
        transform: translateX(-50%) translateY(0);
    }
    
    nav .nav-links li {
        margin: 12px 0;
        width: 100%;
        text-align: center;
    }

    nav .nav-links li a {
        display: block;
        padding: 12px 20px;
        border-radius: 12px;
        transition: all 0.3s ease;
        color: var(--text-color);
        font-weight: 500;
    }

    nav .nav-links li a:hover,
    nav .nav-links li a.active {
        background-color: var(--theme-color);
        color: #fff;
        transform: translateY(-2px);
    }

    .light-theme nav .nav-links li a {
        color: #333;
    }

    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 100px;
        gap: 25px;
        min-height: 70vh;
    }
    .hero-text {
        flex-direction: column;
        max-width: 100%;
    }
    .developer-text {
        flex-direction: row;
        gap: 6px;
    }
    .hero-image img {
        width: 250px;
        height: 250px;
        border: 4px solid #fff;
    }
    .about {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding: 60px 20px;
        min-height: auto;
        justify-content: center;
        align-items: center;
    }
    .about-image::before,
    .about-image::after {
        display: none;
    }
    .about-image img {
        width: 280px;
        height: 350px;
    }
    .about-content h2 {
        font-size: 2.5em;
    }
    .stats {
        justify-content: center;
        max-width: 400px;
        margin: 20px auto 0;
        align-items: center;
    }
    .stat-divider {
        height: 60px;
        margin: 0 20px;
    }
}

/* Tablet responsive adjustments */
@media (max-width: 1024px) {
    .about {
        gap: 40px;
        padding: 60px 30px;
        max-width: 100%;
    }
    
    .about-image img {
        width: 280px;
        height: 360px;
    }
    
    .about-content {
        max-width: 500px;
    }
    
    .stats {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 40px 5%;
    }
    .intro h1 {
        font-size: 2.2em;
    }
    .about-content h2, .skills h2, .projects h2, .contact h2 {
        font-size: 2.2em;
    }
    
    /* Project Grid - Mobile View */
    .project-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 1fr);
        gap: 20px;
        max-width: 400px;
    }
    
    .about {
        padding: 50px 20px;
        gap: 30px;
        min-height: auto;
    }
    .about-image img {
        width: 240px;
        height: 300px;
    }
    .about-content h2 {
        font-size: 2em;
    }
    .about-content p {
        font-size: 1em;
        text-align: center;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    .stat-number {
        font-size: 2.8em;
    }
    .stat-label {
        font-size: 1.2em;
    }
    .stats {
        gap: 0;
        max-width: 300px;
        align-items: center;
        justify-content: center;
    }
    .stat-divider {
        height: 50px;
        margin: 0 15px;
    }
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    #contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }
    #contact-form .form-row input {
        margin-bottom: 20px;
    }
    .contact-form-container {
        padding: 30px 25px;
        margin: 0 15px;
    }
    .contact-form-container h3 {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.4em;
    }
    .hero-image img {
        width: 220px;
        height: 220px;
    }
    .about-image img {
        width: 220px;
        height: 220px;
    }
    .buttons .btn {
        padding: 10px 20px;
        font-size: 0.9em;
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 10px;
    }
    .buttons .btn:last-child {
        margin-bottom: 0;
    }
    .intro h1 {
        font-size: 1.8em;
    }
    .intro p {
        font-size: 1em;
    }
    .footer-bottom {
        font-size: 0.8em;
    }
}

/* Contact Section */
.contact {
    text-align: center;
    padding: 60px 5% 80px;
}

.contact h2 {
    font-size: 2.8em;
    margin-bottom: 50px;
    color: var(--text-color);
}

.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 35px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid var(--theme-color);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.light-theme .contact-form-container {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-form-container h3 {
    font-size: 2em;
    margin-bottom: 30px;
    color: var(--text-color);
    font-weight: 600;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row input {
    flex: 1;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    font-size: 1em;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.light-theme #contact-form input,
.light-theme #contact-form textarea {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0, 0, 0, 0.1);
    color: var(--light-text-color);
}

#contact-form input:focus,
#contact-form textarea:focus {
    border-color: var(--theme-color);
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 117, 56, 0.2);
}

.light-theme #contact-form input:focus,
.light-theme #contact-form textarea:focus {
    border-color: var(--secondary-color);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.2);
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.light-theme #contact-form input::placeholder,
.light-theme #contact-form textarea::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

#contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

#contact-form button {
    background-color: var(--theme-color);
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: center;
    min-width: 150px;
}

#contact-form button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 117, 56, 0.4);
}

.light-theme #contact-form button:hover {
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

/* Footer Section */
footer {
    background: var(--footer-bg-color);
    color: var(--text-color);
    padding: 40px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-nav,
.footer-contact,
.footer-email {
    flex: 1;
    min-width: 250px;
}

.footer-nav h4,
.footer-contact h4,
.footer-email h4 {
    color: var(--theme-color);
    font-size: 1.3em;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav ul li {
    margin-bottom: 12px;
}

.footer-nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-nav ul li a:hover {
    color: var(--theme-color);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.95em;
    line-height: 1.5;
}

.footer-contact img {
    width: 18px;
    height: 18px;
    border-radius: 40%;
}

.footer-email form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-email input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    font-size: 0.9em;
    outline: none;
    transition: all 0.3s ease;
}

.footer-email input:focus {
    border-color: var(--theme-color);
    background: rgba(255, 255, 255, 0.15);
}

.footer-email input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.footer-email button {
    background-color: var(--theme-color);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.footer-email button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.footer-email p {
    margin-bottom: 15px;
    font-weight: 500;
    color: var(--text-color);
}

.social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--theme-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(255, 117, 56, 0.3);
}

.social-icons img {
    width: 25px;
    height: 25px;
    border-radius: 250%;

    
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 20px 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
}

/* Light Theme */
.light-theme {
    --text-color: #333;
    --bg-color: #f4f4f9;
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --accent-color: #28a745;
    --dark-bg-color: #121212;
    --dark-text-color: #ffffff;
    --light-bg-color: #ffffff;
    --light-text-color: #333333;
    --footer-bg-color: #f8f9fa;
}

/* Light theme header */
.light-theme header {
    background-color: #ffffff;
    color: #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.light-theme nav {
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--secondary-color);
}

.light-theme .logo {
    color: var(--primary-color);
}

.light-theme .nav-links li a {
    color: #333;
}

.light-theme .nav-links li a:hover,
.light-theme .nav-links li a.active {
    background-color: var(--primary-color);
    color: #fff;
}

/* Light theme hero section */
.light-theme .hero {
    background: linear-gradient(135deg, #f4f4f9 0%, #e2e3ea 50%, #d1d3e0 100%);
}

.light-theme .hero-text {
    color: #333;
}

.light-theme .highlight {
    color: var(--primary-color);
}

/* Light theme about section */
.light-theme .about {
    background-color: #ffffff;
    color: #333;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.light-theme .about-content h2 {
    color: var(--primary-color);
}

.light-theme .about-content p {
    color: rgba(0, 0, 0, 0.7);
}

/* Light theme stats */
.light-theme .stat-number {
    color: var(--primary-color);
}

/* Light theme skills section */
.light-theme .skills {
    background-color: #f8f9fa;
}

.light-theme .skill-item img {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.3);
}

.light-theme .skill-item:hover img {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    box-shadow: 0 15px 40px rgba(79, 172, 254, 0.4);
}

/* Light theme projects section */
.light-theme .project-card {
    background-color: #ffffff;
    color: #333;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.light-theme .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.light-theme .project-image-container:hover .hover-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.light-theme .description-btn {
    background: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.light-theme .description-btn:hover {
    background: rgba(33, 150, 243, 0.9);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

/* Light theme modal */
.light-theme .modal-content {
    background-color: #ffffff;
    color: #333;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.light-theme .close {
    color: #333;
    background: rgba(0, 0, 0, 0.1);
}

.light-theme .close:hover {
    background: var(--primary-color);
    color: #fff;
}

.light-theme .modal-info h2 {
    color: var(--primary-color);
}

.light-theme .modal-info p {
    color: rgba(0, 0, 0, 0.7);
}

.light-theme .tech-tag {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

/* Light theme footer */
.light-theme footer {
    background: #f8f9fa;
    color: var(--light-text-color);
}

.light-theme .footer-nav ul li a,
.light-theme .footer-contact p,
.light-theme .footer-email p {
    color: var(--light-text-color);
}

.light-theme .footer-nav h4,
.light-theme .footer-contact h4,
.light-theme .footer-email h4 {
    color: var(--secondary-color);
}

.light-theme .footer-email input {
    background: rgba(0, 0, 0, 0.05);
    border: 2px solid rgba(0, 0, 0, 0.1);
    color: var(--light-text-color);
}

.light-theme .footer-email input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.light-theme .footer-email input:focus {
    border-color: var(--secondary-color);
    background: rgba(0, 0, 0, 0.08);
}

.light-theme .footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.light-theme .footer-bottom p {
    color: rgba(0, 0, 0, 0.6);
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-card img {
        height: 200px;
    }
    
    /* Always show description button on mobile for better UX */
    .hover-overlay {
        opacity: 1;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(2px);
    }
    
    .description-btn {
        transform: translateY(0);
        font-size: 0.9em;
        padding: 10px 20px;
    }
}