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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1d1d1d;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Spotify Color Variables */
:root {
    --spotify-green: #1db954;
    --spotify-dark: #191414;
    --spotify-darker: #121212;
    --spotify-gray: #535353;
    --spotify-light-gray: #b3b3b3;
    --spotify-white: #ffffff;
    --spotify-hover: #1ed760;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(25, 20, 20, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 10px 20px;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--spotify-light-gray);
    padding: 10px 15px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.nav-btn:hover {
    background: rgba(29, 185, 84, 0.2);
    color: var(--spotify-green);
    transform: scale(1.05);
}

.nav-btn:first-child {
    padding: 10px;
}

.nav-btn:first-child:hover {
    color: var(--spotify-green);
}

.logo {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.logo:hover {
    filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(90deg);
    transform: scale(1.1);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Section */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
    width: 100%;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.profile-section {
    text-align: center;
}

.profile-image-container {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid var(--spotify-green);
    object-position: top;
    object-fit: cover;
    box-shadow: 0 0 30px rgba(29, 185, 84, 0.3);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding-bottom: 30px;
}

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

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.social-link.instagram:hover {
    color: #e4405f;
    border-color: #e4405f;
    box-shadow: 0 10px 25px rgba(228, 64, 95, 0.3);
}

.social-link.github:hover {
    color: var(--spotify-white);
    border-color: var(--spotify-white);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

.social-link.youtube:hover {
    color: #ff0000;
    border-color: #ff0000;
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.3);
}

.social-link.tiktok:hover {
    color: #ff00ff;
    border-color: #850063;
    box-shadow: 0 10px 25px rgba(255, 0, 234, 0.3);
}

.name {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(45deg, var(--spotify-green), #1ed760, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.description {
    font-size: 1.2rem;
    color: var(--spotify-light-gray);
    margin-bottom: 30px;
    line-height: 1.8;
}

.skills-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    backdrop-filter: blur(10px);
}

.skills-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    color: var(--spotify-green);
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.skills-toggle i {
    transition: transform 0.3s ease;
}

.skills-toggle.active i {
    transform: rotate(180deg);
}

.skills-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.skills-content.active {
    max-height: 400px;
    /*<----does the trick */
    margin-top: 20px;
}

.skill-tag {
    /* Added flexbox properties to center the text horizontally and vertically within the tag */
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(45deg, rgba(29, 185, 84, 0.2), rgba(30, 215, 96, 0.2));
    border: 1px solid rgba(29, 185, 84, 0.3);
    padding: 10px 15px;
    border-radius: 25px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.skill-tag {
    /* Added flexbox properties to center the text horizontally and vertically within the tag */
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(45deg, rgba(29, 185, 84, 0.2), rgba(30, 215, 96, 0.2));
    border: 1px solid rgba(29, 185, 84, 0.3);
    padding: 10px 15px;
    border-radius: 25px;
    /* text-align: center;  Removed as flexbox handles centering more robustly */
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    transform: translateY(-2px);
    background: linear-gradient(45deg, rgba(29, 185, 84, 0.3), rgba(30, 215, 96, 0.3));
    box-shadow: 0 5px 15px rgba(29, 185, 84, 0.2);
}

/* Projects Section */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    width: 100%;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--spotify-green), #1ed760);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.see-all-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(29, 185, 84, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: var(--spotify-white);
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.see-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(61, 255, 103, 0.3);
}

.projects-carousel-container {
    position: relative;
    width: 100%;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(25, 20, 20, 0.8);
    border: none;
    color: var(--spotify-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: rgba(29, 185, 84, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: -25px;
}

.carousel-btn.next {
    right: -25px;
}

.projects-carousel {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
}

.projects-carousel::-webkit-scrollbar {
    display: none;
}

.project-card {
    flex: 0 0 350px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--spotify-green);
    box-shadow: 0 20px 40px rgba(29, 185, 84, 0.2);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-content {
    padding: 25px;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--spotify-white);
    transition: color 0.3s ease;
}

.project-card:hover .project-title {
    color: var(--spotify-green);
}

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

.tech-tag {
    background: rgba(29, 185, 84, 0.2);
    color: var(--spotify-green);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(29, 185, 84, 0.3);
    margin-top: 10px;
}


/* Resources Section */
#resources {
    background: linear-gradient(135deg, rgba(25, 20, 20, 0.8), rgba(29, 185, 84, 0.1));
}

#resources h2 {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--spotify-green), #1ed760);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
}

.search-container {
    position: relative;
    max-width: 400px;
    margin: 0 auto 50px;
}

.search-container i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--spotify-gray);
}

.search-container input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: var(--spotify-white);
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-container input:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(253, 253, 253, 0.3);
}

.search-container input::placeholder {
    color: var(--spotify-gray);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    width: 100%;
}

.resource-category h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.resource-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.resource-item {
    display: block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    text-decoration: none;
    color: var(--spotify-white);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
}

.resource-item:hover {
    transform: translateY(-5px);
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.resource-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.resource-item p {
    color: var(--spotify-light-gray);
    font-size: 0.9rem;
}

.resource-item i.fa-external-link-alt {
    color: var(--spotify-gray);
    font-size: 0.8rem;
}

.resource-item.highlight {
    animation: glow 3s ease-in-out;
    border-color: var(--spotify-green) !important;
    box-shadow: 0 0 30px rgba(29, 185, 84, 0.5) !important;
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(29, 185, 84, 0.3);
    }

    50% {
        box-shadow: 0 0 30px rgba(29, 185, 84, 0.8);
    }
}

/* Contact Section */
#contact h2 {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    background: #ffffff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.contact-description {
    text-align: center;
    font-size: 1.2rem;
    color: var(--spotify-light-gray);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    width: 100%;
}

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.contact-card i {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 20px;
}

.contact-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
}

.contact-card a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: #000000;
}

.contact-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.cv-download {
    background: linear-gradient(45deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    backdrop-filter: blur(10px);
    margin-bottom: 40px;
}

.cv-download i {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 15px;
}

.cv-download h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
}

.cv-download p {
    color: #ffffff;
    margin-bottom: 25px;
}

.cv-download button {
    background: linear-gradient(45deg, #8b5cf6, #ec4899);
    color: var(--spotify-white);
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cv-download button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
}

.cv-download button:disabled {
    background: var(--spotify-gray);
    cursor: not-allowed;
}

.download-status {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--spotify-light-gray);
}

.footer {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Projects Page */
.projects-page {
    min-height: 100vh;
    padding: 100px 0 50px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--spotify-green);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-btn:hover {
    color: var(--spotify-hover);
    transform: translateX(-5px);
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--spotify-green), #1ed760);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--spotify-light-gray);
    font-size: 1.2rem;
}

/* Project Detail Page */
.project-detail-page {
    min-height: 100vh;
    padding: 100px 0 50px;
}

.project-detail-page h1 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--spotify-green), #1ed760);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 40px;
}

.project-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.project-media {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.video-container {
    aspect-ratio: 16/9;
    border-radius: 15px;
    overflow: hidden;
    background: var(--spotify-darker);
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.github-preview {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.github-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.github-header i:first-child {
    margin-right: 10px;
}

.github-content {
    padding: 20px;
}

.github-header a {
    margin-left: auto;
    /* push it to the right */
    color: var(--spotify-light-gray);
    transition: color 0.3s ease;
}

.github-header a:hover {
    color: var(--spotify-green);
}



.file-item:hover {
    border-left-color: var(--spotify-green);
    color: var(--spotify-white);
}



.project-overview h2 {
    font-size: 1.8rem;
    color: var(--spotify-green);
    margin-bottom: 20px;
}

.project-overview p {
    color: var(--spotify-light-gray);
    line-height: 1.8;
    margin-bottom: 30px;
}

.project-technologies,
.project-features {
    margin-bottom: 30px;
}

.project-technologies h3,
.project-features h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.project-technologies h3 {
    color: #00ffff;
}


.project-features ul {
    list-style: none;
    padding: 0;
}




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

.btn-primary {
    background: linear-gradient(45deg, var(--spotify-green), var(--spotify-hover));
    color: var(--spotify-white);
    border: none;
    padding: 15px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(29, 185, 84, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--spotify-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ===================================================================
   ========== Your Original styles.css (unchanged above) ============
   =================================================================== */

/* … (everything you already had, up through the media queries) … */

/* ===================================================================
   ====== REMOVED: Old light-mode Project Detail rules (for ref) =====
   =================================================================== */

/*
.project-description {
    color: var(--spotify-light-gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.tech-tag {
    background: rgba(29, 185, 84, 0.2);
    color: var(--spotify-green);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(29, 185, 84, 0.3);
}

.file-structure {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--spotify-light-gray);
}

.file-item {
    padding: 5px 0;
    border-left: 2px solid transparent;
    padding-left: 10px;
    transition: all 0.3s ease;
    color: var(--spotify-white);
}

.project-overview {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

.project-features h3 {
    color: #ec4899;
}

.project-features li {
    color: var(--spotify-light-gray);
    margin-bottom: 8px;
    padding-left: 20px;
}
*/

/* ===================================================================
   =========== ADDED: Dark Theme Override for Project Detail =========
   =================================================================== */

.project-detail-page {
    background-color: #000;
    /* full black background */
    color: #fff;
    /* default white text */
}

/* Back button & all links on this page */
.project-detail-page a {
    color: #1db954;
    /* green accent */
    text-decoration: none;
}

.project-detail-page a:hover {
    color: #fff;
}

/* Headings in detail page */
.project-detail-page h1,
.project-detail-page h2,
.project-detail-page h3 {
    color: #fff;
}

/* Containers */
.project-detail-page .project-detail-grid,
.project-detail-page .project-media,
.project-detail-page .project-info {
    background-color: #111;
    /* very dark gray panels */
    padding: 1rem;
    border-radius: 4px;
}

/* GitHub Preview Header */
.project-detail-page .github-header {
    background-color: #222;
    /* dark gray */
    color: #fff;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #444;
}

/* File structure list */
.project-detail-page .file-structure {
    background-color: #222;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    padding: 1rem;
    border-radius: 0 0 4px 4px;
}

.project-detail-page .file-item {
    padding: 0.25rem 0;
    border-bottom: 1px solid #333;
}

/* Tech tags (under Technologies Used) */
.project-detail-page .tech-tag {
    display: inline-block;
    background-color: #333;
    /* mid-gray pills */
    color: #1db954;
    /* green text */
    margin: 0 0.25rem 0.25rem 0;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.9rem;
}

/* Buttons at bottom of overview */
.project-detail-page .btn-primary {
    background-color: #1db954;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 3px;
    cursor: pointer;
}

.project-detail-page .btn-secondary {
    background: none;
    border: 1px solid #1db954;
    color: #1db954;
    padding: 0.5rem 1rem;
    border-radius: 3px;
    cursor: pointer;
}

.project-detail-page .btn-primary:hover,
.project-detail-page .btn-secondary:hover {
    opacity: 0.8;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {

    /* Navigation */
    .navbar {
        top: 10px;
        left: 10px;
        right: 10px;
        transform: none;
        width: calc(100% - 20px);
        padding: 8px 15px;
    }

    .nav-container {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .nav-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .nav-btn span {
        display: none;
    }

    /* Container - CRITICAL FIX */
    .container {
        padding: 0 15px;
        max-width: 100%;
        width: 100%;
    }

    /* Section - CRITICAL FIX */
    .section {
        padding: 80px 0 60px;
        min-height: auto;
        width: 100%;
    }

    /* About Section - CRITICAL FIX */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
        width: 100%;
    }

    .profile-section {
        width: 100%;
    }

    .info-section {
        width: 100%;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }

    .name {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .skills-container {
        width: 100%;
    }

    .skills-toggle {
        font-size: 1.2rem;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 8px;
    }

    .skill-tag {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    /* Projects Section - CRITICAL FIX */
    .section-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        margin-bottom: 30px;
        width: 100%;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .see-all-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .carousel-btn {
        display: none;
    }

    .projects-carousel-container {
        width: 100%;
    }

    .projects-carousel {
        padding: 15px 0;
        gap: 20px;
        width: 100%;
    }

    .project-card {
        flex: 0 0 280px;
    }

    .project-content {
        padding: 20px;
    }

    .project-title {
        font-size: 1.1rem;
    }

    .project-description {
        font-size: 0.85rem;
    }

    /* Resources Section - CRITICAL FIX */
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        width: 100%;
    }

    #resources h2 {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .search-container {
        margin-bottom: 30px;
        width: 100%;
    }

    .search-container input {
        padding: 12px 12px 12px 40px;
        font-size: 0.9rem;
    }

    .resource-category {
        width: 100%;
    }

    .resource-category h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .resource-items {
        width: 100%;
    }

    .resource-item {
        padding: 15px;
        width: 100%;
    }

    .resource-item h4 {
        font-size: 1rem;
    }

    .resource-item p {
        font-size: 0.85rem;
    }

    /* Contact Section - CRITICAL FIX */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
        width: 100%;
    }

    #contact h2 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .contact-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .contact-card {
        padding: 30px 20px;
        width: 100%;
    }

    .contact-card i {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .contact-card h3 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }

    .contact-card a {
        font-size: 1rem;
    }

    .cv-download {
        padding: 30px 20px;
        margin-bottom: 30px;
        width: 100%;
    }

    .cv-download i {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }

    .cv-download h3 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }

    .cv-download p {
        margin-bottom: 20px;
        font-size: 0.9rem;
    }

    .cv-download button {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    /* Projects Page - CRITICAL FIX */
    .projects-page {
        padding: 80px 0 40px;
    }

    .page-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        margin-bottom: 30px;
        width: 100%;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
        width: 100%;
    }

    /* Project Detail Page - CRITICAL FIX */
    .project-detail-page {
        padding: 80px 0 40px;
    }

    .project-detail-page h1 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .project-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        width: 100%;
    }

    .project-media {
        gap: 20px;
        width: 100%;
    }

    .project-overview {
        padding: 25px 20px;
        width: 100%;
    }

    .project-overview h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .project-overview p {
        margin-bottom: 20px;
        font-size: 0.9rem;
    }

    .project-technologies,
    .project-features {
        margin-bottom: 20px;
    }

    .project-technologies h3,
    .project-features h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .project-actions {
        flex-direction: column;
        gap: 12px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 20px;
        font-size: 0.9rem;
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 480px) {

    /* Navigation */
    .navbar {
        top: 5px;
        left: 5px;
        right: 5px;
        width: calc(100% - 10px);
        padding: 6px 10px;
    }

    .nav-container {
        gap: 5px;
    }

    .nav-btn {
        padding: 6px 8px;
        font-size: 11px;
    }

    /* Container - CRITICAL FIX */
    .container {
        padding: 0 10px;
        max-width: 100%;
        width: 100%;
    }

    /* Section - CRITICAL FIX */
    .section {
        padding: 70px 0 50px;
        width: 100%;
    }

    /* About Section - CRITICAL FIX */
    .about-grid {
        width: 100%;
    }

    .profile-image {
        width: 120px;
        height: 120px;
    }

    .name {
        font-size: 2rem;
    }

    .description {
        font-size: 0.9rem;
    }

    .skills-container {
        padding: 20px;
        width: 100%;
    }

    .skills-toggle {
        font-size: 1.1rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    /* Projects Section - CRITICAL FIX */
    .section-header {
        width: 100%;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .projects-carousel-container {
        width: 100%;
    }

    .projects-carousel {
        gap: 15px;
        padding: 10px 0;
        width: 100%;
    }

    .project-card {
        flex: 0 0 250px;
    }

    .project-content {
        padding: 15px;
    }

    .project-title {
        font-size: 1rem;
    }

    .project-description {
        font-size: 0.8rem;
    }

    /* Resources Section - CRITICAL FIX */
    .resources-grid {
        width: 100%;
    }

    #resources h2 {
        font-size: 1.8rem;
    }

    .resource-category {
        width: 100%;
    }

    .resource-category h3 {
        font-size: 1.1rem;
    }

    .resource-items {
        width: 100%;
    }

    .resource-item {
        padding: 12px;
        width: 100%;
    }

    .resource-item h4 {
        font-size: 0.95rem;
    }

    .resource-item p {
        font-size: 0.8rem;
    }

    /* Contact Section - CRITICAL FIX */
    .contact-grid {
        width: 100%;
    }

    #contact h2 {
        font-size: 1.8rem;
    }

    .contact-description {
        font-size: 0.9rem;
    }

    .contact-card {
        padding: 25px 15px;
        width: 100%;
    }

    .contact-card i {
        font-size: 2rem;
    }

    .contact-card h3 {
        font-size: 1.2rem;
    }

    .contact-card a {
        font-size: 0.9rem;
    }

    .cv-download {
        padding: 25px 15px;
        width: 100%;
    }

    .cv-download i {
        font-size: 1.6rem;
    }

    .cv-download h3 {
        font-size: 1.2rem;
    }

    .cv-download p {
        font-size: 0.85rem;
    }

    .cv-download button {
        padding: 10px 20px;
        font-size: 0.85rem;
        width: 100%;
    }

    /* Projects Page - CRITICAL FIX */
    .projects-page {
        width: 100%;
    }

    .page-header {
        width: 100%;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .projects-grid {
        width: 100%;
    }

    /* Project Detail Page - CRITICAL FIX */
    .project-detail-page {
        width: 100%;
    }

    .project-detail-page h1 {
        font-size: 1.8rem;
    }

    .project-detail-grid {
        width: 100%;
    }

    .project-media {
        width: 100%;
    }

    .project-overview {
        padding: 20px 15px;
        width: 100%;
    }

    .project-overview h2 {
        font-size: 1.3rem;
    }

    .project-overview p {
        font-size: 0.85rem;
    }

    .project-technologies h3,
    .project-features h3 {
        font-size: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}