:root {
    --primary-color: #ff4d4d;
    --text-color: #ffffff;
    --background-color: #2c2c2c;
    scroll-padding-top: 80px;
    scroll-behavior: smooth;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    height: 100%;
    width: 100%;
    scroll-behavior: smooth !important;
}

body {
    overflow-x: hidden;
}

main {
    width: 100%;
    position: relative;
}

section {
    min-height: 100vh;
    scroll-margin-top: 80px;
    transition: all 1s cubic-bezier(0.645, 0.045, 0.355, 1.000);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

.left-section {
    display: flex;
    align-items: center;
    margin-right: 2rem;
}

.nav-logo {
    width: 50px;
    height: auto;
    margin-left: 1rem;
}

nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

nav ul {
    list-style-type: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    font-size: 1rem;
    padding: 0.5rem 0;
    display: inline-block;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
}

/* This is the key part for section-based highlighting */
section:target ~ header nav ul li a[href='#home'],
section:not(:target) ~ header nav ul li a[href='#home'] {
    color: var(--text-color);
}

section:target ~ header nav ul li a[href='#home']::after,
section:not(:target) ~ header nav ul li a[href='#home']::after {
    transform: scaleX(0);
}

section:target ~ header nav ul li a[href='#${id}'],
#home:target ~ header nav ul li a[href='#home'],
#about:target ~ header nav ul li a[href='#about'],
#skills:target ~ header nav ul li a[href='#skills'],
#portfolio:target ~ header nav ul li a[href='#portfolio'],
#experience:target ~ header nav ul li a[href='#experience'] {
    color: var(--primary-color);
}

section:target ~ header nav ul li a[href='#${id}']::after,
#home:target ~ header nav ul li a[href='#home']::after,
#about:target ~ header nav ul li a[href='#about']::after,
#skills:target ~ header nav ul li a[href='#skills']::after,
#portfolio:target ~ header nav ul li a[href='#portfolio']::after,
#experience:target ~ header nav ul li a[href='#experience']::after {
    transform: scaleX(1);
}

.right-section {
    display: flex;
    align-items: center;
}

.social-icons {
    display: flex;
    gap: 0.8rem;
    margin-right: 1rem;
}

.social-icons a {
    color: var(--text-color);
    font-size: 1.1rem;
    transition: color 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.social-icons a:hover {
    color: var(--primary-color);
}


#home {
    height: 100vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/home-img.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.overlay {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 3rem;
    text-align: center;
    width: 90%;
    max-width: 700px;
}

.profile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.profile-img {
    width: 60px;
    height: auto;
}

.name {
    color: var(--text-color);
    font-family: 'Roboto', sans-serif;
    font-size: 2.2rem;
    margin: 0 0 2rem 0;
    text-align: center;
}

.hero-content {
    max-width: 100%;
}

.hero-content h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.hero-content p:first-of-type {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 300;
}

.hero-content p:last-of-type {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
    line-height: 1.5;
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    font-weight: 700;
}

.cta-button:hover {
    background-color: darken(var(--primary-color), 10%);
}

#about {
    min-height: 100vh;
    padding: 80px 0 5rem 0; /* Increase top padding to account for fixed header */
    background-color: var(--background-color);
    position: relative;
    width: 100%;
    background-image: url('assets/about-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-content {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 3rem;
    border-radius: 10px;
    width: 90%;
    max-width: 1200px;
    display: flex;
    gap: 2rem;
    align-items: stretch;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 30%; /* Adjust this value to control the width of the image column */
    overflow: hidden; /* This ensures the image doesn't spill out of its container */
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top; /* This will keep the top of the image visible */
    border-radius: 10px;
    max-height: 550px; /* Adjust this value as needed */
}

.about-text {
    flex: 2;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-text h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
}

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

.about-image {
    flex: 1;
    text-align: right;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.about-text {
    flex: 2;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 1;
    transition: none;
}

.animate-on-scroll.is-visible {
    animation: none;
}

/* Add this new style */
.debug-info {
    position: fixed;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    font-size: 12px;
    z-index: 9999;
}


/* Add these styles at the end of your existing CSS */

@media screen and (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        padding: 0.8rem;
    }

    .left-section {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    nav {
        width: 100%;
        justify-content: center;
        margin-bottom: 0.5rem;
    }

    nav ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .social-icons {
        margin-right: 0;
        gap: 0.5rem;
    }

    .about-content {
        flex-direction: column;
        padding: 2rem;
    }

    .about-image, .about-text {
        flex: none;
        width: 100%;
        max-width: 100%;
    }

    .about-image {
        margin-bottom: 1rem;
    }

    .about-image img {
        max-height: 300px;
    }
}

@media screen and (max-width: 480px) {
    .nav-logo {
        width: 30px;
    }

    nav ul li a {
        font-size: 0.7rem;
    }

    .social-icons a {
        font-size: 0.8rem;
    }

    .name {
        font-size: 1.3rem;
    }

    .hero-content h2 {
        font-size: 1.3rem;
    }

    .hero-content p:first-of-type {
        font-size: 0.8rem;
    }

    .hero-content p:last-of-type {
        font-size: 0.6rem;
    }

    .cta-button {
        font-size: 0.6rem;
        padding: 0.3rem 0.6rem;
    }
}

#skills {
    min-height: 100vh;
    padding: 80px 0 5rem 0;
    background-color: var(--background-color);
    position: relative;
    width: 100%;
    background-image: url('assets/skills-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
}

.skills-content {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 3rem;
    border-radius: 10px;
    width: 90%;
    max-width: 1200px;
}

.section-title {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.skills-category, .skill-level {
    margin-bottom: 2rem;
}

.skills-category h3, .skill-level h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

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

.skill-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.skill-card:hover {
    transform: translateY(-5px);
}

.skill-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.skill-card h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin: 0;
}

.skill-subtitle {
    color: var(--text-color);
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 0.3rem;
}

/* Add to existing media queries */
@media screen and (max-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media screen and (max-width: 480px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .skill-card i {
        font-size: 2rem;
    }
    
    .skill-card h4 {
        font-size: 1rem;
    }
}

/* Optional: Add a simple hover animation to replace the scroll animation */
.skill-card, .about-content > div {
    transition: transform 0.3s ease;
}

.skill-card:hover, 
.about-content > div:hover {
    transform: translateY(-5px);
}

html {
    scroll-behavior: smooth !important;
    scroll-padding-top: 80px;
}

/* Add this new style for scroll behavior */
@media (min-height: 100px) {
    header {
        background-color: transparent;
    }
    
    /* When user scrolls past 100px, header gets background */
    @supports (backdrop-filter: none) {
        /* Modern browsers with backdrop-filter support */
        body:has(main:nth-of-type(1):not(:hover)) header:has(~ main > *:nth-of-type(1):not(:hover)) {
            background-color: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(10px);
        }
    }
    
    /* Fallback for browsers without backdrop-filter support */
    @supports not (backdrop-filter: none) {
        body:has(main:nth-of-type(1):not(:hover)) header:has(~ main > *:nth-of-type(1):not(:hover)) {
            background-color: rgba(0, 0, 0, 0.5);
        }
    }
}

/* Change background when scrolling starts */
main:not(:hover) ~ header {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

/* Add or update these styles */
html {
    scroll-behavior: smooth !important;
    scroll-padding-top: 80px;
}

/* Update the section styles to add smooth transitions */
#home, #about, #skills {
    scroll-margin-top: 80px;
    transition: all 0.5s ease-in-out;
}

/* Update the nav link styles */
nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    font-size: 1rem;
    padding: 0.5rem 0;
    display: inline-block;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
}

/* Optional: Add a smoother active state transition */
nav ul li a.active {
    transition: all 0.5s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.5s ease;
    transform-origin: right;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Alternative CSS-only approach */
html {
    scroll-behavior: smooth !important;
}

body {
    overflow-x: hidden;
    scroll-behavior: smooth !important;
}

section {
    min-height: 100vh;
    scroll-margin-top: 80px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

main {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y proximity;
}

@media screen and (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth !important;
    }
    
    body {
        scroll-behavior: smooth !important;
    }
    
    section {
        transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1.000);
    }
}

/* Add these styles for the portfolio section */
#portfolio {
    min-height: 100vh;
    padding: 80px 0 5rem 0;
    background-color: var(--background-color);
    position: relative;
    width: 100%;
    background-image: url('assets/portfolio-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
}

.portfolio-content {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 3rem;
    border-radius: 10px;
    width: 90%;
    max-width: 1200px;
}

.portfolio-category {
    margin-bottom: 3rem;
}

.portfolio-category h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.portfolio-cards {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding: 1rem 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(255, 255, 255, 0.1);
}

/* Customize scrollbar */
.portfolio-cards::-webkit-scrollbar {
    height: 8px;
}

.portfolio-cards::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.portfolio-cards::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 4px;
}

.portfolio-card {
    min-width: 300px;
    max-width: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    scroll-snap-align: start;
    transition: transform 0.3s ease;
    position: relative;
}

.portfolio-card:hover {
    transform: translateY(-5px);
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

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

.card-content {
    padding: 1.5rem;
}

.card-content h4 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.project-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tools span {
    background: var(--primary-color);
    color: var(--text-color);
    padding: 0.2rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.project-description {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.portfolio-card:hover .project-description {
    opacity: 1;
    transform: translateY(0);
}

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

.project-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

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

/* Media Queries */
@media screen and (max-width: 768px) {
    .portfolio-card {
        min-width: 250px;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .card-content h4 {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 480px) {
    .portfolio-card {
        min-width: 220px;
    }
    
    .project-tools span {
        font-size: 0.7rem;
    }
    
    .project-description {
        font-size: 0.8rem;
    }
}

/* Experience Section Styles */
#experience {
    min-height: 100vh;
    padding: 80px 0;
    background-color: var(--background-color);
    position: relative;
    background-image: url('assets/experience-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

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

/* Timeline Styles */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 4rem auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    padding: 2rem 0;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.timeline-content {
    width: 45%;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    position: relative;
    margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: auto;
}

.timeline-date {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.timeline-content h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.experience-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.experience-skills span {
    background: var(--primary-color);
    color: var(--text-color);
    padding: 0.2rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.certificate-link a {
    color: var(--text-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.certificate-link a:hover {
    color: var(--primary-color);
}

/* Certificates Section Styles */
.certificates-section {
    margin-top: 4rem;
    position: relative;
}

.certificates-wrapper {
    position: relative;
    padding: 0 40px; /* Make space for buttons */
}

.certificates-container {
    display: flex;
    overflow-x: hidden; /* Changed from auto to hidden */
    gap: 2rem;
    padding: 1rem 0;
    scroll-behavior: smooth; /* Smooth scrolling */
    -ms-overflow-style: none;  /* Hide scrollbar for IE and Edge */
    scrollbar-width: none;  /* Hide scrollbar for Firefox */
}

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

/* Scroll Buttons Styles */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: none;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.scroll-btn:hover {
    background-color: var(--text-color);
    color: var(--primary-color);
}

.scroll-btn.left {
    left: 0;
}

.scroll-btn.right {
    right: 0;
}

/* Optional: Add button visibility states */
.scroll-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Update existing certificate card styles for better visibility */
.certificate-card {
    min-width: 300px;
    flex-shrink: 0; /* Prevent cards from shrinking */
}

.certificates-section h3 {
    color: var(--text-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.certificates-container {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding: 1rem 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(255, 255, 255, 0.1);
}

.certificate-card {
    min-width: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    scroll-snap-align: start;
    transition: transform 0.3s ease;
}

.certificate-card:hover {
    transform: translateY(-5px);
}

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

.certificate-content {
    padding: 1.5rem;
}

.certificate-content h4 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.certificate-content p {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.certificate-content a {
    color: var(--text-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.certificate-content a:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }

    .timeline-dot {
        left: 30px;
    }

    .certificate-card {
        min-width: 250px;
    }
}

@media screen and (max-width: 480px) {
    .timeline-content {
        padding: 1rem;
    }

    .certificate-card {
        min-width: 220px;
    }
}
/* Footer Styles */
footer {
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--text-color);
    padding: 4rem 0 0 0;
    position: relative;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-description {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.footer-contact p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-contact i {
    color: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a::before {
    content: '→';
    color: var(--primary-color);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

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

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 3rem;
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0.5rem 0;
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-bottom i {
    color: var(--primary-color);
    animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-contact p {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }
}

/* Add scroll-snap for better section detection */
html {
    scroll-snap-type: y mandatory;
}

section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* Add these debugging styles */
nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    font-size: 1rem;
    padding: 0.5rem 0;
    display: inline-block;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
}

/* Add an underline to show active state clearly */
nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

/* Active state */
nav ul li a.active {
    color: var(--primary-color);
}

nav ul li a.active::after {
    transform: scaleX(1);
}

/* Add this debug element to show current section */
.debug-info {
    position: fixed;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    font-size: 12px;
    z-index: 9999;
}

/* Certificate container styles */
.certificates-container {
    display: flex;
    overflow-x: hidden;
    gap: 2rem;
    padding: 1rem 0;
    scroll-behavior: smooth;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    position: relative;
}

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

/* Hide scrollbar for Firefox */
.certificates-container {
    scrollbar-width: none;
}

/* Hide scrollbar for IE, Edge, and Firefox */
.certificates-container {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Ensure the wrapper contains everything properly */
.certificates-wrapper {
    position: relative;
    padding: 0 40px;
    overflow: hidden;
}

/* Update scroll buttons to always be visible */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: none;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.scroll-btn:hover {
    background-color: var(--text-color);
    color: var(--primary-color);
}

.scroll-btn.left {
    left: 0;
}

.scroll-btn.right {
    right: 0;
}

/* Certificate card styles */
.certificate-card {
    min-width: 300px;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

.text-center {
    text-align: center;
    margin-bottom: 2rem;
}

.skill-category-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem;
}

.skill-category-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

.skill-items span {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.skill-items span:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.programming-skills .skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 1rem;
}

/* Add responsive breakpoints */
@media screen and (max-width: 1200px) {
    .programming-skills .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 900px) {
    .programming-skills .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .programming-skills .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* Adjust card sizing for better fit */
.skill-category-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.2rem;
    margin: 0.5rem;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.skill-items span {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}



