/* First, add the font import at the very top of your CSS file */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Navigation */
nav {
    position: fixed;
    width: 100%;
    padding: 1rem 2rem;
    background: rgb(0, 0, 0);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--logo-color);
    transition: color 0.3s ease;
    margin-left: -2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    margin-left: -8rem;
    gap: 2rem;
}

.nav-links li a {
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.nav-links li a:hover {
    color: #fca59e;
    text-shadow: 0 0 10px #fca59e;
}

.nav-links li {
    opacity: 0;
    -webkit-animation: slideBottom 0.5s ease forwards;
    -moz-animation: slideBottom 0.5s ease forwards;
    animation: slideBottom 0.5s ease forwards;
    -webkit-animation-delay: calc(0.2s * var(--i));
    -moz-animation-delay: calc(0.2s * var(--i));
    animation-delay: calc(0.2s * var(--i));
}

@-webkit-keyframes slideBottom {
    0% {
        -webkit-transform: translateY(100px);
        opacity: 0;
    }
    100% {
        -webkit-transform: translateY(0);
        opacity: 1;
    }
}

@-moz-keyframes slideBottom {
    0% {
        -moz-transform: translateY(100px);
        opacity: 0;
    }
    100% {
        -moz-transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideRight {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.hero-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
    gap: 0;
}

.hero-text {
    text-align: left;
    color: #333;
    flex: 1;
    max-width: 600px;
    margin-right: -100px;
}

.hero-image {
    width: 400px;
    height: 400px;
    margin-left: 200px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    animation: pixelBuild 1.5s ease-out;
    image-rendering: pixelated;
}

@keyframes pixelBuild {
    0% {
        transform: scale(0.1);
        filter: blur(20px);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
        filter: blur(10px);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        filter: blur(0);
        opacity: 1;
    }
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.highlight {
    color: #fca59e;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--button-bg);
    color: var(--button-text);
    text-decoration: none;
    border-radius: 30px;
    margin-top: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button:hover {
    background: var(--button-hover-bg);
    color: var(--button-hover-text);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(252, 165, 158, 0.4);
    border-color: var(--button-hover-bg);
}

.cta-button:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(252, 165, 158, 0.4);
}

/* Optional: Add a subtle animation on hover */
.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
    z-index: -1;
}

.cta-button:hover::after {
    transform: translateX(100%);
}

/* Sections */
section {
    background: #f5f5f5;
    padding: 5rem 2rem;
}

h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
}

/* About Section */
.about-content {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.profile-img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    animation: pixelBuild 1.0s ease-out;
    image-rendering: pixelated;
}

.skills ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
    margin-top: 1rem;
}

.skills li {
    background: #f0f0f0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

/* Updated Projects Section */
.project-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

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

.project-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease;
}

.project-card:hover {
    -webkit-transform: translateY(-5px);
    -moz-transform: translateY(-5px);
    -ms-transform: translateY(-5px);
    -o-transform: translateY(-5px);
    transform: translateY(-5px);
    -webkit-box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project-number {
    font-size: 3rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

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

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
    padding: 0;
}

.project-card p {
    color: #666;
    margin-bottom: 1.5rem;
    padding: 0;
}

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

.project-tech span {
    background: #f0f0f0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #333;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
}

/* Media Queries */
@media (max-width: 1200px) {
    .row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .row {
        grid-template-columns: 1fr;
    }
}

/* Contact Section */
.contact-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-left: 0px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-item i {
    font-size: 1.2rem;
}

.contact-item a {
    transition: all 0.3s ease;
    color: inherit;
    text-decoration: none;
}

.contact-item a:hover {
    color: #fca59e;
    text-shadow: 0 0 10px rgba(252, 165, 158, 0.5);
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    background: #f5f5f5;
    color: #333;
}

/* Project Slider Styles */
.project-slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.project-slider {
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-transition: -webkit-transform 0.5s ease;
    transition: -webkit-transform 0.5s ease;
    -o-transition: transform 0.5s ease;
    transition: transform 0.5s ease;
    transition: transform 0.5s ease, -webkit-transform 0.5s ease;
    width: 100%;
}

.project-slide {
    min-width: 100%;
    flex-shrink: 0;
}

.project-content {
    display: flex;
    gap: 2rem;
    align-items: center;
    padding: 2rem;
}

.project-text {
    flex: 1;
}

.project-image {
    flex: 1;
    max-width: 600px;
    aspect-ratio: 16/9;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

#projects .slider-arrow {
    position: static;
    transform: none;
    background: var(--button-bg);
    color: var(--button-text);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

#projects .slider-arrow:hover {
    background: var(--button-hover-bg);
    color: var(--button-hover-text);
    transform: translateY(-2px);
}

#projects .slider-arrow:active {
    transform: translateY(-1px);
}

/* Right side social links */
.nav-social {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-left: auto;
}

.nav-social a {
    color: #ffffff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.nav-social a:hover {
    color: #fca59e;
    text-shadow: 0 0 10px #fca59e;
}

/* Update the nav-container styles */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Add these CSS variables for theming */
:root {
    /* Light theme (default) */
    --background-color: #f5f5f5;
    --text-color: #333;
    --nav-bg: #000000;
    --card-bg: white;
    --card-text: #333;
    --hover-color: #fca59e;
    --section-bg: #f5f5f5;
    --footer-bg: #f5f5f5;
    --skill-bg: #f0f0f0;
    --skill-text: #333;
    --project-number-color: rgba(0, 0, 0, 0.1);
    --slider-arrow-bg: rgba(0, 0, 0, 0.5);
    --slider-arrow-hover: rgba(0, 0, 0, 0.8);
    --button-bg: #000000;
    --button-text: #ffffff;
    --button-hover-bg: #fca59e;
    --button-hover-text: #000000;
    --text-secondary: #666666;
    --logo-color: #ffffff;
}

[data-theme="dark"] {
    /* Dark theme */
    --background-color: #1a1a1a;
    --text-color: #ffffff;
    --nav-bg: #ffffff;
    --nav-text: #000000;
    --card-bg: #2d2d2d;
    --card-text: #ffffff;
    --hover-color: #fca59e;
    --section-bg: #1a1a1a;
    --footer-bg: #2d2d2d;
    --skill-bg: #2d2d2d;
    --skill-text: #ffffff;
    --project-number-color: rgba(255, 255, 255, 0.1);
    --slider-arrow-bg: rgba(255, 255, 255, 0.2);
    --slider-arrow-hover: rgba(255, 255, 255, 0.4);
    --button-bg: #ffffff;
    --button-text: #000000;
    --button-hover-bg: #fca59e;
    --button-hover-text: #ffffff;
    --text-secondary: #a0a0a0;
    --logo-color: #000000;
}

/* Update these existing styles to use the variables */
body {
    background-color: var(--background-color);
    color: var(--text-color);
    transition: all 0.3s ease;
}

nav {
    background: var(--nav-bg);
}

.project-card {
    background: var(--card-bg);
    color: var(--card-text);
}

/* Add theme toggle button styles */
.theme-toggle {
    background: none;
    border: none;
    color: var(--button-text);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    margin-left: 1.5rem;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    color: var(--hover-color);
    text-shadow: 0 0 10px var(--hover-color);
}

/* Add smooth transitions for all color changes */
* {
    -webkit-transition: background-color 0.3s ease, color 0.3s ease;
    -moz-transition: background-color 0.3s ease, color 0.3s ease;
    -o-transition: background-color 0.3s ease, color 0.3s ease;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Update these styles to use CSS variables */
section {
    background: var(--background-color);
    color: var(--text-color);
}

.hero {
    background: var(--background-color);
}

.hero-text {
    color: var(--text-color);
}

.hero-text h1 {
    color: var(--text-color);
}

.hero-text p {
    color: var(--text-color);
}

.about-text {
    color: var(--text-color);
}

.about-text p {
    color: var(--text-color);
}

.project-text h2 {
    color: var(--text-color);
}

.project-text p {
    color: var(--text-color);
}

.project-number {
    color: var(--project-number-color);
}

.skills h3, 
.personal-info h3 {
    color: var(--text-color);
}

.skills li,
.personal-info li {
    color: var(--text-color);
    background: var(--skill-bg);
}

.project-tech span {
    background: var(--skill-bg);
    color: var(--text-color);
}

h2 {
    color: var(--text-color);
}

footer {
    background: var(--footer-bg);
    color: var(--text-color);
}

/* Update dark theme colors for better contrast */
[data-theme="dark"] {
    --background-color: #1a1a1a;
    --text-color: #ffffff;
    --nav-bg: #ffffff;
    --nav-text: #000000;
    --card-bg: #2d2d2d;
    --card-text: #ffffff;
    --hover-color: #fca59e;
    --section-bg: #1a1a1a;
    --footer-bg: #2d2d2d;
    --skill-bg: #2d2d2d;
    --skill-text: #ffffff;
    --project-number-color: rgba(255, 255, 255, 0.1);
    --slider-arrow-bg: rgba(255, 255, 255, 0.2);
    --slider-arrow-hover: rgba(255, 255, 255, 0.4);
    --button-bg: #ffffff;
    --button-text: #000000;
    --button-hover-bg: #fca59e;
    --button-hover-text: #ffffff;
}

/* Update nav styles to use the new variables */
nav {
    background: var(--nav-bg);
}

/* Update nav text colors for dark mode */
[data-theme="dark"] .nav-links li a,
[data-theme="dark"] .nav-social a,
[data-theme="dark"] .theme-toggle {
    color: #000000;
}

[data-theme="dark"] .nav-links li a:hover,
[data-theme="dark"] .nav-social a:hover,
[data-theme="dark"] .theme-toggle:hover {
    color: var(--hover-color);
}

.hidden {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(100px);
    transition: all 1s;
}

.show {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

.hide {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(100px);
}

.project-image-deck {
    flex: 1;
    max-width: 600px;
    position: relative;
    height: 400px;
    perspective: 1000px;
    padding: 20px;
    margin: 40px auto;
}

.deck-image {
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    position: absolute;
    left: 20px;
    top: 20px;
    transition: all 0.5s ease;
    cursor: pointer;
    opacity: 1;
    border: 3px solid var(--card-bg);
}

/* Position each image in the deck */
.deck-image:nth-child(1) {
    transform: translateY(0) rotate(0deg);
    z-index: 3;
}

.deck-image:nth-child(2) {
    transform: translateY(20px) rotate(3deg);
    z-index: 2;
}

.deck-image:nth-child(3) {
    transform: translateY(40px) rotate(-3deg);
    z-index: 1;
}

/* Adjust hover transforms to stay within bounds */
.project-image-deck:hover .deck-image:nth-child(1) {
    transform: translateY(-20px) rotate(-3deg);
}

.project-image-deck:hover .deck-image:nth-child(2) {
    transform: translateY(0) rotate(0deg);
}

.project-image-deck:hover .deck-image:nth-child(3) {
    transform: translateY(20px) rotate(3deg);
}

/* Update container for better mobile responsiveness */
@media (max-width: 768px) {
    .project-image-deck {
        height: 300px;
        padding: 15px;
    }
    
    .deck-image {
        width: calc(100% - 30px);
        height: calc(100% - 30px);
        left: 15px;
        top: 15px;
    }
}

/* Logo styles */
.logo a {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--logo-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo a:hover {
    color: var(--hover-color);
}

/* Enhanced hero section */
.greeting {
    font-size: 1.2rem;
    color: var(--hover-color);
    margin-bottom: 0.5rem;
    display: block;
    font-weight: 500;
}

.hero-description {
    font-size: 1.2rem;
    margin: 1.5rem 0;
    max-width: 600px;
    line-height: 1.8;
    color: var(--text-secondary);
}

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

.cta-button.primary {
    background: var(--button-bg);
    color: var(--button-text);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--button-bg);
    color: var(--text-color);
}

.cta-button.secondary:hover {
    background: var(--button-bg);
    color: var(--button-text);
}

/* Enhanced transitions */
.nav-links li a,
.cta-button,
.project-card,
.social-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Improved hover effects */
.nav-links li a:hover,
.social-link:hover {
    transform: translateY(-2px);
}

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

html {
    scroll-behavior: smooth;
}

@supports not (scroll-behavior: smooth) {
    html {
        scroll-behavior: auto;
    }
}

/* Update nav text colors for both light and dark modes */
.nav-links li a,
.nav-social a,
.theme-toggle,
.logo a {
    color: #ffffff;  /* White text in light mode */
}

[data-theme="dark"] .nav-links li a,
[data-theme="dark"] .nav-social a,
[data-theme="dark"] .theme-toggle,
[data-theme="dark"] .logo a {
    color: #000000;  /* Black text in dark mode */
}

/* Update hover states */
.nav-links li a:hover,
.nav-social a:hover,
.theme-toggle:hover,
.logo a:hover {
    color: var(--hover-color);
    text-shadow: 0 0 10px var(--hover-color);
}

/* Remove or update these conflicting styles */
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    transition: color 0.3s ease;
    /* Remove the color property here since it's handled above */
}

.logo a {
    /* Remove any color property here as well */
    text-decoration: none;
    transition: all 0.3s ease;
}

/* About grid layout */
.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;  /* Increased gap between grid items */
    margin-top: 3rem;  /* Increased top margin */
    padding: 2rem;  /* Added padding around the grid */
}

/* Individual section styles */
.skills,
.organizations,
.certificates,
.education {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

/* Section headers */
.about-grid h3 {
    color: var(--text-color);
    margin-bottom: 2rem;  /* Increased bottom margin for headers */
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;  /* Increased font size */
}

/* List items spacing */
.about-grid ul {
    list-style: none;
    padding: 0;
}

.about-grid li {
    margin-bottom: 1.5rem;  /* Space between list items */
}

.about-grid li:last-child {
    margin-bottom: 0;  /* Remove margin from last item */
}

/* Responsive design */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;  /* Single column on mobile */
        gap: 2rem;  /* Slightly reduced gap on mobile */
        padding: 1rem;  /* Reduced padding on mobile */
    }
}

/* Add or update these styles for video in deck */
.project-image-deck video.deck-image {
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    object-fit: contain;
    background: var(--card-bg);
    position: absolute;
    left: 20px;
    top: 20px;
}

/* Update media query for mobile responsiveness */
@media (max-width: 768px) {
    .project-image-deck video.deck-image {
        width: calc(100% - 30px);
        height: calc(100% - 30px);
        left: 15px;
        top: 15px;
    }
}

/* --- Responsive Navigation --- */
@media (max-width: 768px) {
    nav {
        padding: 0.5rem 1rem;
    }
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 1rem;
    }
    .nav-links {
        flex-direction: column;
        gap: 1rem;
        margin: 0;
        width: 100%;
        display: none;
        background: var(--nav-bg);
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 999;
        padding: 1rem 0;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-social {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    .theme-toggle {
        margin-left: 0.5rem;
    }
    .hamburger {
        display: block;
        background: none;
        border: none;
        font-size: 2rem;
        color: var(--button-text);
        cursor: pointer;
        margin-left: auto;
    }
}
@media (max-width: 480px) {
    nav {
        padding: 0.3rem 0.5rem;
    }
    .logo a {
        font-size: 1.2rem;
    }
}

/* --- Responsive Hero Section --- */
@media (max-width: 900px) {
    .hero-content {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding: 0 1rem;
    }
    .hero-text {
        margin-right: 0;
        max-width: 100%;
        text-align: center;
    }
    .hero-image {
        margin-left: 0;
        width: 250px;
        height: 250px;
    }
}
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-description {
        font-size: 1rem;
    }
    .cta-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* --- Responsive About Section --- */
@media (max-width: 900px) {
    .about-content {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    .profile-img {
        width: 180px;
        height: 180px;
    }
}
@media (max-width: 480px) {
    .about-content {
        padding: 0.5rem;
    }
    .about-grid {
        padding: 0.5rem;
    }
    .about-grid h3 {
        font-size: 1.1rem;
    }
}

/* --- Responsive Projects Section --- */
@media (max-width: 900px) {
    .project-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    .project-image-deck {
        max-width: 100%;
        height: 200px;
        margin: 20px auto;
    }
    .deck-image {
        border-radius: 8px;
    }
}
@media (max-width: 480px) {
    .project-card {
        padding: 1rem;
    }
    .project-number {
        font-size: 2rem;
    }
    .project-image-deck {
        height: 120px;
        padding: 5px;
    }
    .deck-image {
        width: calc(100% - 10px);
        height: calc(100% - 10px);
        left: 5px;
        top: 5px;
    }
}

/* --- Responsive Contact Section --- */
@media (max-width: 900px) {
    .contact-content {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }
}
@media (max-width: 480px) {
    .contact-content {
        padding: 0.5rem;
    }
    .contact-info {
        gap: 1rem;
    }
}

/* Content Portfolio Section Styles */
.content-portfolio {
    background: var(--background-color);
    padding: 5rem 2rem;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

.portfolio-categories {
    max-width: 1400px;
    margin: 0 auto;
}

.category-section {
    margin-bottom: 4rem;
}

.category-section h3 {
    color: var(--text-color);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.category-section h3 i {
    color: var(--hover-color);
    font-size: 1.5rem;
}

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

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    aspect-ratio: 16/12;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.7) 50%,
        transparent 100%
    );
    color: white;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.portfolio-overlay p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.4;
}

/* Responsive design for content portfolio */
@media (max-width: 1200px) {
    .image-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.2rem;
    }
}

@media (max-width: 768px) {
    .content-portfolio {
        padding: 3rem 1rem;
    }
    
    .section-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .category-section h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .image-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .portfolio-overlay {
        padding: 1rem;
    }
    
    .portfolio-overlay h4 {
        font-size: 1.1rem;
    }
    
    .portfolio-overlay p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .content-portfolio {
        padding: 2rem 0.5rem;
    }
    
    .image-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .portfolio-item {
        aspect-ratio: 16/10;
    }
    
    .category-section h3 {
        font-size: 1.3rem;
        flex-direction: column;
        gap: 0.3rem;
    }
}

/* --- General Mobile Improvements --- */
@media (max-width: 480px) {
    section {
        padding: 2rem 0.5rem;
    }
    h2 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    .cta-button {
        padding: 0.7rem 1.2rem;
        font-size: 1rem;
    }
    .skills li {
        font-size: 2rem !important;
        width: 2.7rem !important;
        height: 2.7rem !important;
    }
}

/* --- Hide hamburger by default --- */
.hamburger {
    display: none;
}

