:root {
    --color-primary: #220007;    /* Changed from #250902 - Dark brown */
    --color-accent: #f7f7f2;     /* Off-white */
    --color-mid: #efc69b;        /* Light brown/beige */
    --color-darker: #38040e;     /* Deep red-brown */
    --color-background: #630D1D; /* Changed from #640D14 */
    --background: #38040e;
}

/* Add these CSS variables for light mode */
:root[data-theme="light"] {
    --color-primary: #f7f7f2;    /* Light background/text */ 
    --color-accent: #220007;     /* Dark text/accents */
    --color-mid: #38040e;        /* Mid-tone elements */
    --color-darker: #efc69b;     /* Light accents */
    --color-background: #f7f7f2;
    --background: #efc69b; /* Main background */
}

/* Add this CSS for the theme toggle button */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(56, 4, 14, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(239, 198, 155, 0.15);
    color: var(--color-accent);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

.theme-toggle:hover {
    background: rgba(239, 198, 155, 0.1);
    transform: scale(1.1);
}

/* Mobile styles for theme toggle */
@media screen and (max-width: 768px) {
    .theme-toggle {
        top: 1rem;
        right: 1rem;
        bottom: auto;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        background: rgba(239, 198, 155, 0.15);
        z-index: 1001;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: var(--background);
    color: var(--color-mid);
    overflow-x: hidden;
    width: 100%;
}

.navbar {
    position: fixed;
    left: 1rem; /* Add margin from left edge */
    top: 50%;
    transform: translateY(-50%);
    width: 70px; /* Reduce width since we only have icons */
    height: 90vh; /* Set to 90% of viewport height */
    background: #38040e;
    backdrop-filter: blur(10px);
    box-shadow: 2px 0 25px rgba(239, 198, 155, 0.1);
    border: 1px solid rgba(239, 198, 155, 0.15);
    border-radius: 35px; /* Add rounded corners */
    z-index: 1000;
    padding: 1.5rem 0.5rem;
    display: flex;
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
}

.nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    margin: 0; /* Remove margin */
    justify-content: center; /* Center items vertically */
    height: 100%; /* Take full height */
}

.nav-links a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    opacity: 0.8;
    color: #efc69b;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

/* Remove text from nav links */
.nav-links a span {
    display: none;
}

/* Update hover effects */
.nav-links a:hover, 
.nav-links a.active {
    background: rgba(239, 198, 155, 0.1);
    opacity: 1;
    color: #f7f7f2;
    transform: scale(1.1);
}

.hero {
    position: relative;
    background: linear-gradient(135deg, var(--color-primary), var(--color-darker));
    overflow: hidden;
    margin-left: 100px; 
    width: calc(100% - 100px);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.section {
    margin-left: 100px; 
    padding: 60px 40px; 
    min-height: 100vh;
    width: calc(100% - 100px); 
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    transition: transform 0.3s ease;
    background-color: var(--color-darker);
}


.section-title{
    text-align: center;
    font-size: 40px;
    margin-bottom: 20px;
}
.cta-button {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    background: linear-gradient(135deg, var(--color-accent), var(--color-mid));
    border: none;
    border-radius: 30px;
    color: var(--color-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(239, 198, 155, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.cta-button:active {
    transform: translateY(-1px);
}

/* Updated Skills section styles */
.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-item {
    background: linear-gradient(145deg, rgba(56, 4, 14, 1.0), rgba(34, 0, 7, 1.0));
    border-radius: 25px;
    padding: 2.5rem;
    border: 1px solid rgba(239, 198, 155, 0.15);
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.skill-item:hover {
    transform: translateY(-5px);
    border-color: #f7f7f2;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.skill-icon {
    min-width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 198, 155, 0.1);
    border-radius: 20px;
    font-size: 2.5rem;
    color: #f7f7f2;
    transition: all 0.3s ease;
}

.skill-content {
    flex: 1;
}

.skill-header {
    margin-bottom: 1rem;
}

.skill-header h3 {
    color: #f7f7f2;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    background: rgba(239, 198, 155, 0.08);
    color: #efc69b;
    padding: 0.6rem 1.2rem;
    border-radius: 15px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(239, 198, 155, 0.15);
    color: var(--color-accent);
    transform: translateY(-2px);
}

@media screen and (max-width: 768px) {
    .skill-item {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .skill-icon {
        margin: 0 auto;
    }

    .skill-tags {
        justify-content: center;
    }
}

/* Project cards styling */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: linear-gradient(145deg, rgba(56, 4, 14, 1.0), rgba(34, 0, 7, 1.0));
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(239, 198, 155, 0.15);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: #f7f7f2;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.project-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

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

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

.project-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    color: #f7f7f2;
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.project-content p {
    color: #efc69b;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    line-height: 1.6;
    flex: 1;
}

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

.tech-tag {
    background: rgba(239, 198, 155, 0.08);
    color: #efc69b;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(239, 198, 155, 0.15);
    color: #f7f7f2;
    transform: translateY(-2px);
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.project-links a {
    color: #efc69b;
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.project-links a:hover {
    color: #f7f7f2;
    transform: translateX(5px);
}

.project-links i {
    font-size: 1.1rem;
}

@media screen and (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        padding: 1rem;
        gap: 1.5rem;
    }

    .project-image {
        height: 160px;
    }

    .project-content {
        padding: 1.2rem;
    }

    .project-content h3 {
        font-size: 1.3rem;
    }
}

/* Contact section styling */
.contact-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.contact-card {
    background: linear-gradient(145deg, rgba(56, 4, 14, 1.0), rgba(34, 0, 7, 1.0));
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(239, 198, 155, 0.15);
}

.contact-card:hover {
    transform: translateY(-10px);
    border-color: #f7f7f2;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.contact-card i {
    font-size: 2.5rem;
    color: #f7f7f2;
    margin-bottom: 1.5rem;
}

.contact-card h3 {
    color: #f7f7f2;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

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

@media screen and (max-width: 768px) {
    .contact-cards {
        grid-template-columns: 2;
        gap: 1rem;
    }

    .contact-card {
        background: linear-gradient(145deg, rgba(56, 4, 14, 1.0), rgba(34, 0, 7, 1.0));
        padding: 1.5rem;
        border-radius: 20px;
        text-align: center;
        transition: all 0.4s ease;
        border: 1px solid rgba(239, 198, 155, 0.15);
    }
    
    
    .contact-card i {
        font-size: 1.5rem;
        color: #f7f7f2;
        margin-bottom: 1.5rem;
    }
    
    .contact-card h3 {
        color: #f7f7f2;
        font-size: 1.0rem;
        margin-bottom: 1rem;
    }
    
    .contact-card a {
        color: #efc69b;
        text-decoration: none;
        font-size: 0;
        transition: all 0.3s ease;
    }
    
    
    .projects-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 768px) {
    .navbar {
        left: 50%;
        bottom: 1rem;
        top: auto;
        transform: translateX(-50%);
        width: 90%;
        max-width: 400px;
        height: 70px;
        flex-direction: row;
        border-radius: 35px;
        padding: 0 1.5rem;
    }

    .nav-links {
        flex-direction: row;
        margin-top: 0;
        gap: 2rem;
        justify-content: center;
        width: 100%;
    }

    .nav-links a {
        width: 40px;
        height: 40px;
    }

    /* Update hero section mobile styles */
    .hero {
        padding-top: 4rem; /* Adjusted to account for theme toggle */
        margin-left: 0;
        width: 100%;
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-content {
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }

    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    /* Adjust section margins for mobile */
    .hero, .footer {
        margin-left: 0;
        width: 100%;
        margin-bottom: 80px; /* Reduced from 100px */
        padding: 40px 20px;
    }

    .section{
        margin-left: 0;
        width: 100%;
        padding: 40px 20px;
    }

    /* Remove margin from footer specifically */
    .footer {
        margin-bottom: 0; /* Remove bottom margin from footer */
        padding-bottom: 80px; /* Add padding to account for fixed navbar */
    }

    /* Ensure the last section doesn't have excess margin */
    .section:last-of-type {
        margin-bottom: 0;
    }

    /* Adjust theme toggle position for mobile */
    .theme-toggle {
        top: 1rem; /* Position at top instead of bottom */
        right: 1rem;
        bottom: auto; /* Remove bottom positioning */
        width: 45px; /* Slightly smaller on mobile */
        height: 45px;
        font-size: 1.2rem;
        background: rgba(239, 198, 155, 0.15); /* Slightly more visible background */
        z-index: 1001; /* Ensure it's above other elements */
    }
}

@media screen and (max-width: 480px) {
    .navbar {
        padding: 0 1rem;
        height: 60px;
        bottom: 0.5rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .nav-links a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    /* Adjust last section padding */
    .contact-section {
        padding-bottom: 80px; /* Reduced from 120px */
    }

    .footer {
        padding-bottom: 70px; /* Slightly reduced padding */
    }
}

.hero-content,
.about-content,
.skills-grid,
.projects-grid,
contact-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.about-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.about-text-container {
    background: linear-gradient(145deg, rgba(56, 4, 14, 1.0), rgba(34, 0, 7, 1.0));
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(239, 198, 155, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.about-intro {
    font-size: 1.8rem;
    color: #f7f7f2;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.about-subtitle {
    font-size: 1.4rem;
    color: #efc69b;
    margin-bottom: 2rem;
    font-weight: 500;
}

.about-description {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #efc69b;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(239, 198, 155, 0.2);
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(239, 198, 155, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-5px);
    background: rgba(239, 198, 155, 0.1);
}

.highlight-item i {
    font-size: 1.5rem;
    color: #f7f7f2;
}

.highlight-item span {
    font-size: 1rem;
    color: #efc69b;
    font-weight: 500;
}

@media screen and (max-width: 768px) {
    .about-content {
        padding: 1rem;
    }
    
    .about-text-container {
        padding: 2rem;
    }
    
    .about-intro {
        font-size: 1.5rem;
    }
    
    .about-subtitle {
        font-size: 1.2rem;
    }
    
    .about-highlights {
        grid-template-columns: 1fr;
    }
}

.hero-content {
    max-width: 800px;
    width: 90%; 
    padding: 2rem;
    margin: 0 auto; 
    position: relative;
    z-index: 2;
    text-align: left; 
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--color-mid);
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.5rem;
    color: var(--color-mid);
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Add smooth scrolling to the whole page */
html {
    scroll-behavior: smooth;
}

/* Footer styles */
.footer {
    margin-left: 100px; 
    background: linear-gradient(145deg, rgba(56, 4, 14, 1.0), rgba(34, 0, 7, 1.0));
    padding: 4rem 2rem;
    border-top: 1px solid rgba(239, 198, 155, 0.15);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        #efc69b,
        transparent
    );
}

.footer p {
    color: #efc69b;
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.social-links {
    display: flex;
    gap: 2.5rem;
    margin: 1.5rem 0;
}

.social-links a {
    color: #efc69b;
    font-size: 1.8rem;
    transition: all 0.4s ease;
    padding: 1rem;
    border-radius: 50%;
    background: rgba(239, 198, 155, 0.05);
    border: 1px solid rgba(239, 198, 155, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    color: #f7f7f2;
    transform: translateY(-5px);
    background: rgba(239, 198, 155, 0.1);
    border-color: #f7f7f2;
    box-shadow: 0 5px 15px rgba(239, 198, 155, 0.2);
}

/* Update footer mobile styles */
@media screen and (max-width: 768px) {
    .footer {
        margin-left: 0;
        padding: 3rem 1.5rem;
        gap: 2rem;
    }

    .social-links {
        gap: 1.5rem;
    }

    .social-links a {
        font-size: 1.5rem;
        padding: 0.8rem;
        width: 50px;
        height: 50px;
    }
}

@media screen and (max-width: 480px) {
    .footer {
        padding: 2.5rem 1rem 5rem;
    }

    .social-links a {
        font-size: 1.3rem;
        width: 45px;
        height: 45px;
    }
}

.progress-container {
    margin-top: 1.5rem;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    color: var(--color-mid);
    font-size: 1rem;
}

.progress-bar {
    height: 8px;
    background: rgba(239, 198, 155, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent), var(--color-darker));
    border-radius: 4px;
    transition: width 1.5s ease-in-out;
}