/* Base Styles */
:root {
    --orb-color-1: rgba(59, 130, 246, 0.6);
    --orb-color-2: rgba(96, 165, 250, 0.5);
    --orb-color-3: rgba(147, 197, 253, 0.4);
    --line-color: rgba(96, 165, 250, 0.2);
    --primary-color: #2563eb;
    --primary-light: #3b82f6;
    --secondary-color: #1e293b;
    --dark-bg: #0f172a;
    --darker-bg: #020617;
    --text-color: #e2e8f0;
    --text-muted: #94a3b8;
    --card-bg: #1e293b;
    --gradient: linear-gradient(90deg, #2563eb 0%, #4f46e5 100%);
    --border-radius: 10px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--darker-bg);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

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

/* Only apply animations when js-animations class is present */
.js-animations section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.js-animations section.visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

/* Default styles for sections without animations */
section {
    padding: 100px 0;
    opacity: 1;
    transform: none;
}

/* Navigation Link Animation */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

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

ul {
    list-style: none;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(37, 99, 235, 0.4);
}

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

.btn-secondary:hover {
    background: rgba(37, 99, 235, 0.1);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--text-muted);
    color: var(--text-color);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header .container {
    max-width: 1400px;
    margin: 0 auto;
}

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

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 40px;
    height: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    z-index: 1002; /* Above the mobile menu */
}

.nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px;
    align-items: center;
    height: 100%;
}

.nav li {
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
}

.nav a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 4px;
    position: relative;
}

/* Active navigation link */
.nav a.active {
    color: #4f46e5;
    font-weight: 600;
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 12px;
    right: 12px;
    height: 2px;
    background: var(--gradient);
    border-radius: 2px;
}

/* Hover effect for nav links */
.nav a:hover {
    color: #4f46e5;
}

/* Contact Me button styles */
.nav li:last-child a {
    background: #4f46e5;
    color: white !important;
    padding: 10px 24px;
    border-radius: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.nav li:last-child a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #4338ca;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 30px;
}

.nav li:last-child a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.nav li:last-child a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Regular nav links hover */
.nav li:not(:last-child) a:hover {
    color: #4f46e5;
}

/* Remove underline from Contact Me button */
.nav li:last-child a::after {
    display: none;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

.nav a:hover::after {
    width: 100%;
}

.nav .btn {
    margin-left: 10px;
    padding: 8px 20px;
}

.nav .btn-primary {
    padding: 10px 25px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: white !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    margin: 0;
    line-height: 1.2;
    transform: translateY(1px); /* Fine-tune vertical alignment */
}

.nav .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #4f46e5, #7c3aed, #9333ea);
    z-index: -1;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: right;
    transform: scaleX(0);
}

.nav .btn-primary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.nav .btn-primary:hover {
    color: white !important; /* Ensure text stays white on hover */
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
    transform: translateY(-2px);
}

.nav .btn-primary:active {
    color: white !important; /* Ensure text stays white when active */
    transform: translateY(0);
    box-shadow: 0 5px 10px rgba(79, 70, 229, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    padding-top: 60px;
    position: relative;
    overflow: visible;
    background: transparent;
    margin: 0;
    box-sizing: border-box;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: flex-start;
    gap: 40px;
    position: relative;
    z-index: 2;
    padding-top: 40px;
}

.hero-content h1 {
font-size: 3.5rem;
line-height: 1.2;
margin-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.hero-content h1 .highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content h2 {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    text-align: left;
}

.hero-content h2::after {
    display: none;
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 2rem;
}

.hero-image {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    min-height: 500px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: transparent;
    pointer-events: none;
    margin-top: -40px; /* Move the model up */
}

/* Adjust model position on larger screens */
@media (min-width: 1200px) {
    .hero-image {
        margin: -80px 0 0 60px; /* Move up and to the right on larger screens */
    }
}

#model-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

#model-container canvas {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    display: block;
}

.digital-hand {
    position: relative;
    width: 100%;
    height: 100%;
}

.hand-outline {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 400px;
    background: radial-gradient(circle at 30% 40%, rgba(37, 99, 235, 0.2) 0%, transparent 50%);
    border: 2px solid var(--primary-color);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    filter: drop-shadow(0 0 10px rgba(37, 99, 235, 0.5));
}

/* Tech orbs */
.tech-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-color), rgba(37, 99, 235, 0.2));
    filter: blur(1px);
    animation: float 6s ease-in-out infinite;
}

.tech-orb-1 {
    width: 20px;
    height: 20px;
    top: 30%;
    left: 40%;
    background: radial-gradient(circle, #3b82f6, rgba(59, 130, 246, 0.2));
    animation-delay: 0s;
}

.tech-orb-2 {
    width: 15px;
    height: 15px;
    top: 45%;
    right: 35%;
    background: radial-gradient(circle, #60a5fa, rgba(96, 165, 250, 0.2));
    animation-delay: 1s;
}

.tech-orb-3 {
    width: 12px;
    height: 12px;
    bottom: 30%;
    left: 45%;
    background: radial-gradient(circle, #93c5fd, rgba(147, 197, 253, 0.2));
    animation-delay: 2s;
}

.tech-orb-4 {
    width: 10px;
    height: 10px;
    bottom: 40%;
    right: 40%;
    background: radial-gradient(circle, #bfdbfe, rgba(191, 219, 254, 0.2));
    animation-delay: 1.5s;
}

/* Tech lines */
.tech-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    height: 1px;
    animation: pulse 4s ease-in-out infinite;
}

.tech-line-1 {
    width: 100px;
    top: 35%;
    left: 50%;
    transform: translateX(-50%) rotate(20deg);
    animation-delay: 0.5s;
}

.tech-line-2 {
    width: 80px;
    bottom: 35%;
    left: 40%;
    transform: rotate(-15deg);
    animation-delay: 1s;
}

.tech-line-3 {
    width: 120px;
    bottom: 45%;
    right: 30%;
    transform: rotate(10deg);
    animation-delay: 1.5s;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    /* Create side-focused gradient overlay */
    background: 
        radial-gradient(
            circle at 20% 50%,
            rgba(37, 99, 235, 0.15) 0%,
            transparent 40%
        ),
        radial-gradient(
            circle at 80% 50%,
            rgba(124, 58, 237, 0.15) 0%,
            transparent 40%
        ),
        radial-gradient(
            circle at 50% 50%,
            transparent 0%,
            rgba(2, 6, 23, 0.9) 60%
        );
}

.bg-orbs,
.bg-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Create orbs */
.bg-orbs::before,
.bg-orbs::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.2;
    z-index: 1;
    animation: floatOrb 25s ease-in-out infinite;
    box-shadow: 0 0 100px 50px rgba(37, 99, 235, 0.2);
}

.bg-orbs::before {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-color), transparent 70%);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.bg-orbs::after {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--primary-light), transparent 70%);
    bottom: 10%;
    right: 10%;
    animation-delay: 10s;
    animation-direction: reverse;
}

/* Create connecting lines */
.bg-lines {
    background-image: 
        linear-gradient(90deg, transparent 49%, var(--line-color) 49%, var(--line-color) 51%, transparent 51%),
        linear-gradient(0deg, transparent 49%, var(--line-color) 49%, var(--line-color) 51%, transparent 51%);
    background-size: 80px 80px;
    opacity: 0.15;
    transform: rotate(15deg);
    width: 200%;
    height: 200%;
    left: -50%;
    top: -50%;
    position: absolute;
    animation: moveGrid 30s linear infinite;
}

/* Add floating orbs */
.bg-orbs span {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--orb-color-1), transparent 70%);
    filter: blur(15px);
    animation: floatOrb 15s ease-in-out infinite;
    z-index: 2;
}

/* Generate multiple orbs with different sizes and positions */
.bg-orbs span:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 5%;
    background: radial-gradient(circle, var(--orb-color-1), transparent 70%);
    animation-delay: 0s;
}

.bg-orbs span:nth-child(2) {
    width: 200px;
    height: 200px;
    top: 60%;
    left: 15%;
    background: radial-gradient(circle, var(--orb-color-2), transparent 70%);
    animation-delay: 5s;
}

.bg-orbs span:nth-child(3) {
    width: 400px;
    height: 400px;
    top: 30%;
    right: 10%;
    background: radial-gradient(circle, var(--orb-color-3), transparent 70%);
    animation-delay: 10s;
}

.bg-orbs span:nth-child(4) {
    width: 250px;
    height: 250px;
    bottom: 10%;
    right: 20%;
    background: radial-gradient(circle, var(--orb-color-2), transparent 70%);
    animation-delay: 15s;
}

@keyframes floatOrb {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.2;
    }
    25% {
        transform: translate(30px, 15px) scale(1.1);
        opacity: 0.25;
    }
    50% {
        transform: translate(0, 30px) scale(0.9);
        opacity: 0.2;
    }
    75% {
        transform: translate(-30px, 15px) scale(1.1);
        opacity: 0.25;
    }
}

@keyframes moveGrid {
    0% {
        transform: rotate(15deg) translateX(0) translateY(0);
    }
    100% {
        transform: rotate(15deg) translateX(-80px) translateY(-80px);
    }
}

/* Animated particles inside orbs */
.orb-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background-color: var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.7;
    animation: floatParticle 10s ease-in-out infinite;
}

/* Create different particle sizes */
.particle.small {
    width: 3px;
    height: 3px;
}

.particle.medium {
    width: 4px;
    height: 4px;
}

.particle.large {
    width: 6px;
    height: 6px;
}

/* Particle lines */
.particle.line {
    background: none;
    border-top: 1px solid var(--primary-color);
    transform-origin: left center;
    animation: floatLine 8s ease-in-out infinite;
}

/* Particle animations */
@keyframes floatParticle {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.3;
    }
    25% {
        transform: translate(10px, 15px);
        opacity: 0.5;
    }
    50% {
        transform: translate(-5px, 20px);
        opacity: 0.7;
    }
    75% {
        transform: translate(15px, 10px);
        opacity: 0.5;
    }
}

@keyframes floatLine {
    0%, 100% {
        transform: rotate(0deg) scaleX(1);
        opacity: 0.2;
        width: 0;
    }
    25% {
        transform: rotate(10deg) scaleX(1.2);
        opacity: 0.4;
        width: 40px;
    }
    50% {
        transform: rotate(-5deg) scaleX(0.8);
        opacity: 0.3;
        width: 30px;
    }
    75% {
        transform: rotate(5deg) scaleX(1.1);
        opacity: 0.5;
        width: 50px;
    }
}

/* Position particles within orbs - focusing more on sides */
.particle-1 { top: 10%; left: 10%; animation-delay: 0s; }
.particle-2 { top: 20%; left: 15%; animation-delay: 1s; }
.particle-3 { top: 15%; left: 8%; animation-delay: 2s; }
.particle-4 { top: 60%; left: 12%; animation-delay: 2.5s; }
.particle-9 { top: 65%; right: 10%; animation-delay: 3.5s; }
.particle-10 { top: 70%; right: 15%; animation-delay: 0.8s; }

/* Background dots with varied sizes and positions */
.particle-11 { top: 15%; left: 10%; animation-delay: 0.5s; width: 4px; height: 4px; opacity: 0.4; animation-duration: 12s; }
.particle-12 { bottom: 15%; left: 12%; animation-delay: 1s; width: 6px; height: 6px; opacity: 0.5; animation-duration: 14s; }
.particle-13 { top: 25%; right: 10%; animation-delay: 0.8s; width: 5px; height: 5px; opacity: 0.4; animation-duration: 13s; }
.particle-14 { bottom: 20%; right: 12%; animation-delay: 1.2s; width: 7px; height: 7px; opacity: 0.5; animation-duration: 15s; }
.particle-15 { top: 40%; left: 15%; animation-delay: 1.5s; width: 3px; height: 3px; opacity: 0.3; animation-duration: 11s; }
.particle-16 { bottom: 30%; left: 10%; animation-delay: 1.8s; width: 5px; height: 5px; opacity: 0.4; animation-duration: 16s; }
.particle-17 { top: 35%; right: 12%; animation-delay: 0.7s; width: 4px; height: 4px; opacity: 0.3; animation-duration: 12s; }
.particle-18 { bottom: 40%; right: 10%; animation-delay: 2s; width: 6px; height: 6px; opacity: 0.4; animation-duration: 14s; }
.particle-19 { top: 10%; left: 15%; animation-delay: 1.3s; width: 7px; height: 7px; opacity: 0.5; animation-duration: 13s; }
.particle-20 { bottom: 10%; right: 15%; animation-delay: 1.7s; width: 8px; height: 8px; opacity: 0.6; animation-duration: 15s; }
.particle-21 { top: 70%; left: 12%; animation-delay: 0.9s; width: 5px; height: 5px; opacity: 0.4; animation-duration: 14s; }
.particle-22 { top: 80%; right: 12%; animation-delay: 1.1s; width: 6px; height: 6px; opacity: 0.5; animation-duration: 12s; }

/* Tiny dots for subtle background texture */
.tiny-dot {
    position: absolute;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0.15;
    animation: floatTiny 20s ease-in-out infinite;
}

@keyframes floatTiny {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.1; }
    25% { transform: translate(5px, 10px) scale(1.1); opacity: 0.15; }
    50% { transform: translate(-5px, 5px) scale(0.9); opacity: 0.2; }
    75% { transform: translate(5px, -5px) scale(1.05); opacity: 0.15; }
}

/* Ensure content is above the background but allows background to show through */
.header {
    position: relative;
    z-index: 10;
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(5px);
}

section {
    position: relative;
    z-index: 1;
    background: transparent;
}

/* Section styling */
.about,
.projects,
.skills {
    padding: 5rem 0;
    position: relative;
    z-index: 2;
    margin: 0;
}

/* Add spacing between sections */
.hero + .about {
    padding-top: 0;
    margin-top: -40px;  /* Reduced the pull-up amount for better spacing */
}

.about + .skills,
.skills + .projects {
    padding-top: 2rem;
}

/* Ensure consistent container styling */
.about .container,
.skills .container,
.projects .container {
    position: relative;
    z-index: 2;
}

/* Add container styling for consistent spacing */
.about .container,
.projects .container {
    position: relative;
    z-index: 2;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0) scale(1); 
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-15px) scale(1.1);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(1);
    }
    50% { 
        opacity: 0.7;
        transform: scale(1.05);
    }
}

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

/* About Section */
.about {
    position: relative;
    overflow: hidden;
    background: transparent;
}

.about::before {
    display: none;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.skills-summary {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.skill {
    margin-bottom: 25px;
}

.skill:last-child {
    margin-bottom: 0;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

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

.progress {
    height: 100%;
    background: var(--gradient);
    border-radius: 4px;
    position: relative;
    transition: width 1.5s ease-in-out;
}

/* Skills Section */
.skills {
    position: relative;
    overflow: hidden;
    background: transparent;
}

.skills::before {
    display: none;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
    background: transparent;
}

.skill-card {
    background: var(--card-bg);
    padding: 40px 25px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.skill-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
}

.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

.skill-card h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

.skill-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: left;
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Remove list styles since we're using paragraphs now */
.skill-card ul,
.skill-card li {
    display: none;
}

/* Experience Section */
.experience {
    position: relative;
    background: transparent;
    padding: 60px 0;
}

.experience .section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    color: var(--text-color);
}

.experience .section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
}

.experience-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.experience-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    border-left: 3px solid var(--primary-color);
    margin-bottom: 20px;
}

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

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.experience-company h3 {
    font-size: 1.4rem;
    color: var(--text-color);
    margin: 0 0 5px 0;
}

.experience-position {
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.experience-position .company-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.experience-position .company-link:hover {
    color: #2563eb;
    border-bottom-color: var(--primary-color);
}

.experience-period {
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.experience-details p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 15px;
}

.experience-details p:last-child {
    margin-bottom: 0;
}

/* Responsive styles */
@media (max-width: 1024px) {
    /* Hero section */
    .hero {
        padding-top: 5px;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: 2px;
        padding-top: 5px;
    }
    
    .hero-content {
        text-align: left !important;
        order: 2;
        margin-top: -30px;
    }
    
    .hero-content h1,
    .hero-content h2,
    .hero-content p {
        text-align: left !important;
    }
    
    .cta-buttons {
        justify-content: flex-start !important;
    }
    
    /* About section */
    .about-content {
        text-align: left !important;
    }
    
    .about-text {
        text-align: left !important;
    }
    
    /* Contact section */
    .contact-card {
        text-align: left !important;
    }
    
    .contact-info {
        text-align: left !important;
    }
    
    /* Experience section */
    .experience-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .experience-period {
        align-self: flex-start;
    }
    
    .experience-card {
        padding: 25px 20px;
    }
    
    /* Ensure all section titles are centered */
    .section-title {
        text-align: center !important;
    }
    
    /* Center the View All Projects button */
    .text-center {
        text-align: center !important;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    /* Keep other section content left-aligned */
    .container > *:not(.section-title):not(.text-center) {
        text-align: left !important;
    }
}

/* Skills Logos Section */
.skills-logos-section {
    margin: 3rem 0;
    text-align: center;
}

.skills-logos-container {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin: 2rem -50vw;
    padding: 1.5rem 0;
    background: rgba(255, 255, 255, 0.07);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.skills-logos-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

.skills-logos-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient);
    border-radius: 2px;
}

.logos-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-around;
    align-items: center;
    padding: 0.5rem 0;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    overflow-x: auto;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.logos-row::-webkit-scrollbar {
    display: none;
}

/* Custom scrollbar for WebKit browsers */
.skills-logos-container::-webkit-scrollbar {
    height: 8px;
}

.skills-logos-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.skills-logos-container::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
}

/* Logo styling */
.logos-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 1.2%;
    text-decoration: none;
}

.logos-row img {
    position: relative;
    cursor: pointer;
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: grayscale(30%) brightness(0.9);
    transition: all 0.3s ease;
    opacity: 0.9;
    flex-shrink: 0;
    min-width: 38px;
}

.logos-row img:hover {
    transform: scale(1.2);
    filter: grayscale(0%) brightness(1.1);
    opacity: 1;
}

/* Tooltip for skill logos */
.logos-row img {
    position: relative;
    cursor: pointer;
}

.logos-row img::after {
    content: attr(title);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 10;
}

.logos-row img:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: -35px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .skills-logos-container {
        gap: 1rem;
        padding: 1rem;
    }
    
    .skill-logo {
        width: 50px;
        height: 50px;
    }
    
    .skill-logo img {
        width: 26px;
        height: 26px;
    }
}

/* Adjust skill card for better spacing */
.skill-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.skill-card ul {
    flex-grow: 1;
    margin-bottom: 0;
}

/* Projects Section */
.projects {
    position: relative;
    overflow: hidden;
}

.projects::before {
    display: none;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    position: relative;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.project-card.expanded {
    grid-column: 1 / -1;
    background: rgba(30, 41, 59, 0.95);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    z-index: 10;
    transform: none !important;
}

.project-card-inner {
    transition: opacity 0.3s ease;
}

.project-card.expanded .project-card-inner {
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.project-expanded {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, max-height 0.3s ease;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    height: 0;
    overflow: hidden;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.project-expanded::-webkit-scrollbar {
    display: none;
}

.project-card.expanded .project-expanded {
    opacity: 1;
    visibility: visible;
    position: relative;
    height: auto;
    max-height: 2000px;
    padding: 2rem;
    overflow-y: auto;
}

.project-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.gallery-main {
    border-radius: 8px;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 550px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 0;
    position: relative;
}

/* Base image styles */
.gallery-main img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 500px;
    max-width: 90%;
    width: auto;
    object-fit: contain;
    object-position: center;
    display: none;
    margin: 0;
    background: transparent;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease;
}

/* Wide aspect ratio images (2:1 or similar) */
.gallery-main img[data-ratio='wide'] {
    max-width: 80%;
    max-height: 400px;
}

/* Active image */
.gallery-main img.active {
    display: block;
}

/* Portrait images (9:16 or similar) */
.gallery-main img[src*='sign_up'],
.gallery-main img[src*='home_screen'],
.gallery-main img[src*='explore_screen'],
.gallery-main img[src*='selection'],
.gallery-main img[src*='dashboard'],
.gallery-main img[src*='lang'],
.gallery-main img[src*='add_workouts'],
/* Amara project images */
.gallery-main img[src*='amara/'] {
    max-height: 500px;
    max-width: 90%;
    object-position: top;
    width: auto !important;
    height: auto !important;
}

/* Specific landscape image adjustments */
.gallery-main img[src*='analysis_dashboard'] {
    max-height: 500px;
    max-width: 100%;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .project-expanded {
        grid-template-columns: 1fr;
        padding: 1rem;
        width: 100%;
    }
    
    .gallery-main {
        height: auto;
        min-height: 180px;
        max-height: 50vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 5px 0;
        margin: 0 -10px;
    }
    
    .gallery-main img {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        max-height: 45vh;
        max-width: 100%;
        width: auto;
        height: auto;
        margin: 0 auto;
        object-fit: contain;
    }
    
    /* Gallery styles for all projects */
    .project-gallery {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    /* Project gallery specific adjustments */
    /* IRDC project */
    #all-projects .project-card:nth-child(4) .gallery-main {
        min-height: 400px;
        justify-content: center;
        align-items: center;
    }
    
    /* Adalato project */
    #all-projects .project-card:nth-child(3) .gallery-main {
        min-height: 400px;
        justify-content: center;
        align-items: center;
    }
    
    #all-projects .project-card:nth-child(3) .gallery-main img {
        max-height: 100%;
        height: auto;
        width: auto;
        max-width: 100%;
        object-fit: contain;
    }
    
    #all-projects .project-card:nth-child(4) .gallery-main img {
        max-height: 100%;
        height: 100%;
        width: auto;
        object-fit: contain;
    }
    
    .gallery-main {
        width: 100%;
        margin: 0 auto;
        padding: 0 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 350px; /* Increased minimum height for better visibility */
    }
    
    .gallery-main img {
        max-height: 28vh;
        max-width: 100%;
        width: auto !important;
        height: auto !important;
        margin: 0 auto;
        display: block;
        object-fit: contain;
    }
    
    .gallery-thumbnails {
        width: 100%;
        max-width: 100%;
        margin: 15px auto 0;
        padding: 0 10px;
    }
    
    .gallery-thumbnails-container {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        padding: 5px 0;
    }
    
    .gallery-thumbnails img {
        width: 50px;
        height: 40px;
        object-fit: cover;
        border-radius: 4px;
        cursor: pointer;
        transition: transform 0.2s, opacity 0.2s;
        opacity: 0.7;
    }
    
    .gallery-thumbnails img:hover,
    .gallery-thumbnails img.active {
        transform: scale(1.1);
        opacity: 1;
    }
    
    /* Adjust wide aspect ratio images for mobile */
    .gallery-main img[data-ratio='wide'] {
        max-height: 24vh;
        max-width: 70%;
        margin: 0 0 0 10px;
    }
    
    /* Adjust portrait images for mobile */
    .gallery-main img[src*='sign_up'],
    .gallery-main img[src*='home_screen'],
    .gallery-main img[src*='explore_screen'],
    .gallery-main img[src*='selection'],
    .gallery-main img[src*='dashboard'],
    .gallery-main img[src*='lang'],
    .gallery-main img[src*='add_workouts'],
    .gallery-main img[src*='amara/'] {
        max-height: 60vh;
        max-width: 100%;
        width: auto !important;
        height: auto !important;
        object-fit: contain;
    }
}

/* Thumbnails styling */
.gallery-thumbnails {
    background: transparent !important;
}

.gallery-thumbnails-container {
    background: transparent !important;
}

.gallery-thumbnails img {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.gallery-main img.active {
    display: block;
}

.gallery-thumbnails {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    margin: 0.5rem 0;
}

.gallery-thumbnails-container {
    display: flex;
    gap: 0.4rem;
    overflow: hidden;
    scroll-behavior: smooth;
    width: calc(100% - 60px);
    margin: 0 auto;
    padding: 3px 0;
}

.gallery-thumbnails img {
    width: 50px;
    height: 38px;
    border-radius: 3px;
    object-fit: cover;
    background: rgba(0, 0, 0, 0.1);
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.gallery-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 40px;
    background: rgba(0, 0, 0, 0.35);
    border: none;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    z-index: 2;
    transition: all 0.2s ease;
    padding: 0;
    margin: 0;
}

.gallery-nav-arrow:hover {
    background: rgba(0, 0, 0, 0.6);
}

.gallery-nav-arrow.prev {
    left: 5px;
}

.gallery-nav-arrow.next {
    right: 5px;
}

.gallery-nav-arrow:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

.gallery-thumbnails img:hover,
.gallery-thumbnails img.active {
    opacity: 1;
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.project-details {
    overflow-y: auto;
    padding-right: 1rem;
    height: 100%;
}

.project-details h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.project-details p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: #e2e8f0;
}

.project-details h4 {
    font-size: 1.25rem;
    margin: 1.5rem 0 1rem;
    color: #ffffff;
}

.project-details ul {
    margin-bottom: 1.5rem;
    padding-left: 1.25rem;
}

.project-details li {
    margin-bottom: 0.5rem;
    color: #e2e8f0;
    line-height: 1.6;
    position: relative;
    list-style-type: none;
}

.project-details li:before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.project-details .project-tech {
    margin: 1.5rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.project-details .project-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: flex-start;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.project-details::-webkit-scrollbar {
    width: 6px;
}

.project-details::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.project-details::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

/* Hide scrollbar for IE, Edge and Firefox */
.project-details {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: thin;  /* Firefox */
    scrollbar-color: var(--primary-color) rgba(255, 255, 255, 0.05);
}

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

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.project-info p {
    color: var(--text-muted);
    margin-bottom: 20px;
    min-height: 60px;
}

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

.project-tech span {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

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

.project-links .btn {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 0.9rem;
}

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

/* Contact Section */
.contact {
    position: relative;
    overflow: hidden;
    padding: 60px 0;
    text-align: center;
    background: transparent;
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-text {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin: 0 0 30px;
    line-height: 1.6;
    max-width: 600px;
}

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

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.social-icon i {
    position: relative;
    z-index: 1;
}

.social-icon:hover {
    transform: translateY(-5px);
    color: white;
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.social-icon:hover::before {
    opacity: 1;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

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

.contact-form button {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    font-weight: 600;
}

/* Footer */
.footer {
    background-color: var(--dark-bg);
    padding: 30px 0 20px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.5), transparent);
}

.footer-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.footer-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Make only the first and third paragraphs inline */
.footer-content p:first-child,
.footer-content p:last-child {
    display: inline;
}

/* Add space between inline paragraphs */
.footer-content p:first-child::after {
    content: ' ';
    white-space: pre;
}

/* Ensure copyright is on its own line */
.footer-content p:nth-child(2) {
    display: block;
    margin: 0.25rem 0;
}

/* Center footer text on mobile and tablet */
@media (max-width: 991px) {
    .footer-content {
        text-align: center;
        padding: 0 20px;
    }
    
    .footer-content p {
        text-align: center !important;
        display: block !important;
        margin: 0.5rem 0 !important;
    }
    
    .footer-content p:first-child::after {
        content: '';
        white-space: normal;
    }
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.footer p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 2.5rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition);
}

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

.footer-link {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    opacity: 0.9;
}

.footer-link-white {
    color: white !important;
    text-decoration: none;
    transition: var(--transition);
}

.footer-link-white:hover {
    opacity: 0.8;
    text-decoration: underline;
}



/* Responsive Styles for Expanded Project Cards */
@media (max-width: 1200px) {
    .project-card.expanded .project-expanded {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-main {
        max-height: 500px;
    }
    
    .project-gallery {
        max-width: 100%;
    }
    
    .project-details {
        padding-right: 0;
    }
    
    .project-details .project-links {
        flex-direction: column;
    }
    
    .project-details .btn {
        width: 100%;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero .container,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-content,
    .about-text,
    .contact-info {
        text-align: center;
    }
    
    .hero-content h2,
    .about-text p,
    .contact-info p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .cta-buttons,
    .skills-grid,
    .project-links {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .tech-circle {
        width: 300px;
        height: 300px;
    }
}

/* Navigation styles */
.nav {
    display: flex;
    align-items: center;
}

.nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px;
    align-items: center;
}

/* Menu toggle - hidden by default */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1003;
    padding: 8px;
    margin-left: 10px;
}

/* Mobile menu styles - Only for screens smaller than 992px */
@media (max-width: 991px) {
    .header {
        padding: 0.8rem 0;
        position: relative;
        z-index: 1000;
    }
    
    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        height: 60px;
    }
    
    .header-right {
        display: flex;
        align-items: center;
        margin-left: auto;
    }
    
    /* Hide regular nav items in the main nav */
    .nav > ul > li:not(:last-child) {
        display: none;
    }
    
    /* Show only the mobile nav items when active */
    .nav.active > ul > li {
        display: block;
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }
    
    /* Mobile navigation container */
    .mobile-nav-container {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-left: auto;
        padding-right: 10px;
    }
    
    /* Mobile controls */
    .mobile-controls {
        display: flex !important;
        align-items: center;
        gap: 15px;
        position: relative;
        z-index: 1002;
    }
    
    /* Contact button for mobile */
    .mobile-contact-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        padding: 8px 16px;
        background: var(--gradient);
        color: white;
        border-radius: 20px;
        font-size: 0.9rem;
        font-weight: 500;
        text-decoration: none;
        transition: all 0.3s ease;
        white-space: nowrap;
        position: relative;
        z-index: 1;
    }
    
    .mobile-contact-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    }
    
    /* Menu toggle button */
    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: rgba(79, 70, 229, 0.8);
        border: none;
        border-radius: 50%;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
        color: white;
        font-size: 1.2rem;
        transition: all 0.3s ease;
        position: relative;
        margin-left: 10px;
    }
    
    .menu-toggle:hover {
        background: rgba(255, 255, 255, 0.2);
        color: var(--primary-color);
    }
    
    .nav {
        position: fixed;
        top: 65px;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
        background: #0f172a;
        padding: 0;
        transform: translateY(-150%);
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 0;
        visibility: hidden;
        z-index: 999;
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        border-bottom: 1px solid rgba(0, 0, 0, 0.2);
        max-height: 65vh;
        overflow-y: auto;
        border-radius: 0 0 10px 10px;
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 4px 8px 12px;
    }
    
    .nav ul li {
        text-align: center;
        margin: 0;
    }
    
    /* Regular menu items */
    .nav ul li:not(:last-child) a {
        color: #e2e8f0;
        text-decoration: none;
        font-size: 1.1rem;
        font-weight: 500;
        padding: 8px 12px;
        display: block;
        transition: all 0.2s ease;
        margin: 2px 6px;
        position: relative;
        line-height: 1.3;
    }
    
    /* Underline animation for regular links */
    .nav ul li:not(:last-child) {
        display: flex;
        justify-content: center;
    }
    
    .nav ul li:not(:last-child) a {
        display: inline-block;
        position: relative;
        padding-bottom: 2px;
    }
    
    .nav ul li:not(:last-child) a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0 auto;
        width: 0;
        height: 1px;
        background: #4f46e5;
        transition: width 0.3s ease;
    }
    
    .nav ul li:not(:last-child) a:hover {
        color: #4f46e5;
        background: transparent;
        transform: none;
    }
    
    .nav ul li:not(:last-child) a:hover::after {
        width: 100%;
    }
    
    /* Contact button in mobile menu */
    .nav ul li:last-child {
        display: flex;
        justify-content: center;
        margin-top: 4px;
    }
    
    .nav ul li:last-child a {
        background: #4f46e5;
        color: white !important;
        padding: 8px 24px;
        border-radius: 20px;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        margin: 4px 6px;
        display: inline-block;
        font-weight: 500;
        text-align: center;
        min-width: 140px;
    }
    
    .nav ul li:last-child a::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #4338ca;
        z-index: -1;
        transform: scaleX(0);
        transform-origin: right;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 20px;
    }
    
    .nav ul li:last-child a:hover::before {
        transform: scaleX(1);
        transform-origin: left;
    }
    
    .nav ul li:last-child a:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    }
    
    .nav a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 18px 30px;
        text-decoration: none;
        font-size: 1.1rem;
        font-weight: 500;
        color: #e2e8f0;
        transition: color 0.3s ease;
        position: relative;
        width: auto;
        margin: 0 auto;
    }
    
    .nav a::after {
        content: '';
        position: absolute;
        bottom: 10px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--gradient);
        transition: width 0.3s ease;
    }
    
    .nav a:hover {
        background: transparent;
        color: #4f46e5;
        padding-left: 30px;
    }
    
    .nav a:hover::after {
        width: 100%;
    }
    
    /* Show menu toggle on mobile */
    .menu-toggle {
        display: block;
        position: relative;
        z-index: 1001;
        cursor: pointer;
        color: #fff;
        padding: 0;
        background: transparent;
        border: none;
        transition: all 0.3s ease;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .menu-toggle i {
        font-size: 24px;
    }
    
    .menu-toggle:hover {
        background: transparent;
        color: #4f46e5;
    }
    
    /* Mobile menu items */
    .nav ul {
        flex-direction: column;
        width: 100%;
    }
    
    .nav li {
        width: 100%;
        position: relative;
        transition: background-color 0.2s ease;
    }
    
    .nav li:not(:last-child)::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 25px;
        right: 25px;
        height: 1px;
        background: rgba(255, 255, 255, 0.05);
    }
    
    .nav a {
        display: block;
        padding: 15px 20px;
        text-decoration: none;
        font-size: 1.1rem;
        font-weight: 500;
        color: #e2e8f0;
        transition: all 0.3s ease;
        width: 100%;
    }
    
    .nav a::after {
        content: '';
        position: absolute;
        bottom: 10px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--gradient);
        transition: width 0.3s ease;
    }
    
    .nav a:hover {
        background: transparent;
        color: #4f46e5;
        padding-left: 30px;
    }
    
    .nav a:hover::after {
        width: 100%;
    }
    
    /* Hide Contact Me in mobile drawer */
    @media (max-width: 991px) {
        .nav ul li:last-child {
            display: none;
        }
    }
    
    /* Show Contact Me in desktop navigation */
    @media (min-width: 992px) {
        .nav ul li:last-child {
            display: block;
            margin-left: 15px;
        }
        
        .nav ul li:last-child a {
            background: #4f46e5;
            color: white !important;
            padding: 10px 20px;
            border-radius: 30px;
            transition: all 0.3s ease;
            text-align: center;
            min-width: 140px;
            display: inline-block;
            font-weight: 500;
            letter-spacing: 0.5px;
            position: relative;
            overflow: hidden;
            z-index: 1;
        }
        
        .nav ul li:last-child a::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #4338ca;
            z-index: -1;
            border-radius: 30px;
            transform: scaleX(0);
            transform-origin: right;
            transition: transform 0.3s ease;
        }
        
        .nav ul li:last-child a:hover {
            transform: none;
            box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
        }
        
        .nav ul li:last-child a:hover::before {
            transform: scaleX(1);
            transform-origin: left;
        }
        
        .nav ul li:last-child a::after {
            display: none;
        }
    }
    
    /* Ensure the last menu item in mobile doesn't have a border */
    .nav li:last-child {
        border-bottom: none !important;
    }
    
    /* Show menu toggle on mobile */
    .menu-toggle {
        display: block;
        position: relative;
        z-index: 1001;
        cursor: pointer;
        color: #fff;
        padding: 0;
        background: transparent;
        border: none;
        transition: all 0.3s ease;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .menu-toggle i {
        font-size: 24px;
    }
    
    .menu-toggle:hover {
        background: transparent;
        color: #4f46e5;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    section {
        padding: 80px 0;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .container {
        width: 95%;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}
