:root {
    --primary: #2D3436;
    --secondary: #636E72;
    --accent: #0984E3;
    --background: #FFFFFF;
    --text: #2D3436;
    --light-gray: #F1F2F6;
    --orange-primary: #F27F0C;
    --orange-secondary: #F7AD19;
    --blue-light: #9FE7F5;
    --blue-medium: #429EBD;
    --blue-dark: #053F5C;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    background: #fafafa;
    color: var(--blue-dark);
    line-height: 1.8;
    letter-spacing: 0.3px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

nav {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 2rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    border-radius: 0;
    backdrop-filter: blur(8px);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    position: relative;
}

.logo {
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    position: relative;
    padding: 0.5rem;
}

.nav-links::before {
    content: '';
    position: absolute;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 25px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    width: var(--width, 0);
    left: var(--left, 0);
    opacity: var(--opacity, 0);
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--primary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.nav-links a.active {
    color: #000000;
    font-weight: 500;
}

section {
    min-height: 100vh;
    height: auto;
    padding: 6rem 2rem;
    opacity: 1;
    margin: 0;
    position: relative;
    background: var(--background);
}

.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 0;
    min-height: calc(100vh - 12rem);
}

section#home {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background-image: linear-gradient(
        rgba(0, 0, 0, 0.5),
        rgba(0, 0, 0, 0.5)
    ), url('assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    cursor: pointer;
    transition: opacity 0.3s ease;
    margin: 0;
    height: 100vh;
    background-blend-mode: multiply;
    background-color: rgba(0, 0, 0, 0.6);
}

/* Add a hint for users */
#home::after {
    content: 'Click to change background';
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.9rem;
    opacity: 0.7;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white; /* Make text white for contrast */
}

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

.hero-content p {
    font-size: 1.3rem;
    opacity: 0.9;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-content .cta-button {
    margin-top: 2rem;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--orange-primary), var(--orange-secondary));
    color: white;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(242, 127, 12, 0.2);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.hero-content .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 127, 12, 0.3);
    background: linear-gradient(135deg, var(--orange-secondary), var(--orange-primary));
}

.hero-content .cta-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(242, 127, 12, 0.2);
}

@media (max-width: 768px) {
    #home {
        background-attachment: scroll; /* Better mobile performance */
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
}

section#about {
    background: #F27F0C !important;
    color: white;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

section#home .section-title,
section#experience .section-title {
    color: var(--blue-dark);
}

section#about .section-title,
section#projects .section-title,
section#blog .section-title,
section#contact .section-title {
    color: white;
}

section#projects {
    background: #F7AD19 !important;
    color: white;
    opacity: 1;
    min-height: 100vh;
    padding: 8rem 2rem 2rem;
}

section#experience {
    background: #9FE7F5 !important;
    color: var(--blue-dark);
}

section#blog {
    background: #429EBD !important;
    color: white;
}

section#contact {
    background: #053F5C !important;
    color: white;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    opacity: 1;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.project-card {
    background: var(--light-gray);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 1;
    height: 100%; /* Ensure consistent height */
    display: flex;
    flex-direction: column;
    border: none;
}

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

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 1.5rem;
    background: white;
    color: var(--blue-dark);
    flex-grow: 1; /* Allow content to fill space */
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    margin-bottom: 1rem;
    color: var(--blue-dark);
}

.project-info p {
    margin-bottom: 1rem;
    color: var(--blue-dark);
}

.experience-item {
    margin-bottom: 2.5rem;
    padding: 2rem;
    max-width: 81%;
    border-radius: 12px;
    background: white;
    box-shadow: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.experience-header h3 {
    color: var(--blue-dark);
    font-size: 1.2rem;
    margin: 0;
}

.experience-location {
    color: var(--orange-primary);
    font-weight: 500;
}

.experience-subheader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.experience-title {
    font-weight: 500;
    color: var(--blue-dark);
}

.experience-date {
    color: #666;
}

.experience-description {
    margin: 0;
    padding-left: 1.2rem;
}

.experience-description li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #444;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

input, textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    font-size: 1rem;
    background: var(--light-gray);
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
    border-color: var(--accent);
    outline: none;
}

textarea {
    min-height: 150px;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-weight: 500;
}

.skills ul {
    list-style: none;
    margin-top: 1rem;
    font-size: 1.05rem;
    color: var(--blue-dark);
    opacity: 0.9;
}

.skills li {
    margin-bottom: 0.8rem;
}

.skills h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #0f2442;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.project-tags span {
    background: rgba(9, 132, 227, 0.1);
    color: var(--accent);
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
}

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

.blog-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
}

.blog-card .date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.read-more {
    color: white;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
}

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

.social-links a {
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-links img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.social-links a:hover {
    transform: translateY(-3px);
}

.contact-info {
    text-align: center;
    margin-top: 3rem;
    color: white;
}

.contact-info p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.resume-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    background: var(--accent);
    color: white !important;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: none;
}

.resume-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, var(--orange-secondary), var(--orange-primary));
    color: white !important;
}

.resume-download:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(242, 127, 12, 0.2);
}

.about-images {
    margin-top: 2rem;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.about-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.about-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Make images responsive on mobile */
@media (max-width: 768px) {
    .image-grid {
        grid-template-columns: 1fr;
    }
    
    .about-img {
        height: 250px;
    }
}

.image-carousel-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 50px;
    box-sizing: border-box;
}

.image-carousel {
    display: flex;
    overflow-x: hidden;
    gap: 2rem;
    padding: 1rem 0;
    scroll-behavior: smooth;
    margin-left: 0; /* Ensure no left margin */
}

.carousel-slide {
    flex: 0 0 calc((100% - 4rem) / 3);
    transition: transform 0.3s ease;
    padding: 0; /* Remove any padding */
    margin: 0; /* Remove any margin */
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.image-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease-out;
}

.image-wrapper:hover .about-img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 2rem 1.5rem 1.5rem;
    opacity: 0;
    transition: all 0.4s ease-out;
}

.image-wrapper:hover .image-overlay {
    opacity: 1;
}

.image-description {
    color: white;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: var(--accent);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.carousel-button:hover {
    background: var(--orange-primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.carousel-button:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-button.prev {
    left: 0;
}

.carousel-button.next {
    right: 0;
}

@media (max-width: 768px) {
    .carousel-button {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .image-wrapper {
        height: 240px;
    }
}

/* Update the about section text color */
.about-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--blue-dark);
    opacity: 0.9;
}

/* If you want to ensure the text is readable, you might want to adjust the font weight */
.about-content {
    font-weight: 500;
}

/* Update all text colors in the about section */
.about-content p,
.about-content h2,
.about-content h3,
.about-content li,
.about-content .skills,
.about-content .subtitle,
.about-content .section-title {
    color: #1a365d; /* Dark blue color */
}

/* Ensure section title is also dark blue */
section#about .section-title {
    color: #0f2442; /* Darker blue for the title */
}

/* Make all other text match the contact page background color */
.about-content p,
.about-content h3,
.about-content li,
.about-content .skills,
.about-content .subtitle {
    color: var(--blue-dark); /* Using your contact page color variable */
}

/* Keep the image overlay text white for readability */
.image-description {
    color: white;
}

/* Optional: Add smooth transitions for hover states */
a, button {
    transition: all 0.2s ease;
}

/* Adjust navbar if it exists */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
}

/* Specific adjustments for about and projects sections */
#about, #projects {
    background: #fafafa; /* Or your desired background color */
    margin: 0;
    padding: 0 2rem;
}

#about .content, #projects .content {
    padding: 4rem 0; /* Adjust this value to control spacing */
}

/* Ensure smooth transitions between sections */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Specific section adjustments */
#about .content, 
#projects .content,
#experience .content,
#blog .content,
#contact .content {
    padding: 6rem 0 8rem 0; /* More padding at bottom */
}

/* When content is larger than viewport */
section:not(#home) {
    height: auto;
    padding-bottom: 4rem; /* Extra space at bottom when needed */
}

/* Maintain home section full height */
#home {
    height: 100vh;
    padding: 0;
}

#home .content {
    padding: 0;
    min-height: 100vh;
}

.github-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
    margin-top: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.github-link img {
    width: 20px;
    height: 20px;
}

.github-link:hover {
    color: #0366d6;
}

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

@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
}

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

.hero-content {
    z-index: 2;
} 

.cta-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}