:root {
    --bg-primary: #1c1f2b;
    --bg-secondary: #161821;
    --text-primary: #f5f5f7;
    --text-secondary: #a0a0a5;
    --accent: #2E7D32;
    --accent-hover: #388E3C;
    --card-bg: #161821;
    --border: #333333;
    --card-border-glow: conic-gradient(from var(--angle), #00ff99, #006aff, #00ff99);
    --rainbow-border-glow: conic-gradient(from var(--angle), #ff4545, #00ff99, #006aff, #ff0095, #ff4545);
    /* Default values for light effect variables */
    --light-x-offset: 0px;
    --light-y-offset: 0px;
    --light-opacity: 0.5;
    --parallax-y: 0px;

    --vh: 1vh;
}

/* Add a subtle noise texture overlay to the entire page */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAACXBIWXMAAAsTAAALEwEAmpwYAAAHYmlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgOS4wLWMwMDAgNzkuMTcxYzI3ZmFiLCAyMDIzLzA3LzE4LTE3OjAzOjM5ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjUuMSAoTWFjaW50b3NoKSIgeG1wOkNyZWF0ZURhdGU9IjIwMjQtMDUtMDNUMTI6MjM6MTItMDc6MDAiIHhtcDpNb2RpZnlEYXRlPSIyMDI0LTA1LTAzVDEyOjI0OjI4LTA3OjAwIiB4bXA6TWV0YWRhdGFEYXRlPSIyMDI0LTA1LTAzVDEyOjI0OjI4LTA3OjAwIiBkYzpmb3JtYXQ9ImltYWdlL3BuZyIgcGhvdG9zaG9wOkNvbG9yTW9kZT0iMyIgcGhvdG9zaG9wOklDQ1Byb2ZpbGU9InNSR0IgSUVDNjE5NjYtMi4xIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjI0OWUwZTM3LTBkZWMtNGQ2Zi1iMDQ2LWUxNmFmYmIwNWE1NyIgeG1wTU06RG9jdW1lbnRJRD0iYWRvYmU6ZG9jaWQ6cGhvdG9zaG9wOmMwZmJhOWE5LTgzYjItNmE0MC05MTEwLWNmNWVhMzBiODIyZSIgeG1wTU06T3JpZ2luYWxEb2N1bWVudElEPSJ4bXAuZGlkOjViMTc4OWQzLTlmNWItNDVhOC1hZmM1LTJmYWU0YTAyMjI2YiI+IDx4bXBNTTpIaXN0b3J5PiA8cmRmOlNlcT4gPHJkZjpsaSBzdEV2dDphY3Rpb249ImNyZWF0ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6NWIxNzg5ZDMtOWY1Yi00NWE4LWFmYzUtMmZhZTRhMDIyMjZiIiBzdEV2dDp3aGVuPSIyMDI0LTA1LTAzVDEyOjIzOjEyLTA3OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjUuMSAoTWFjaW50b3NoKSIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6MjQ5ZTBlMzctMGRlYy00ZDZmLWIwNDYtZTE2YWZiYjA1YTU3IiBzdEV2dDp3aGVuPSIyMDI0LTA1LTAzVDEyOjI0OjI4LTA3OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjUuMSAoTWFjaW50b3NoKSIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4XhakXAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAAXSURBVHjaFMGBAQAACCCQ/fRsY1aGAgDa8geEIZ4HPgAAAABJRU5ErkJggg==');
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
}




@property --angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

p {
    margin: 0;
}

/* Remove default blue outlines from links and interactive elements */
a, button, input, textarea, select, [tabindex]:focus-visible {
    outline: none !important; /* Remove default outline */
}

    /* Ensure a:focus matches your hover styles instead of default browser blue */
    a:focus, a:focus-visible {
        outline: none !important;
        color: var(--accent); /* Use your theme's accent color */
        text-decoration: none;
    }

    /* Override any lingering browser default styles */
    a, a:link, a:visited, a:hover, a:active {
        text-decoration: none;
    }

/* Ensure nav links maintain your custom styling on focus */
.nav-link:focus::after,
.nav-link:focus-visible::after {
    width: 100%; /* Match your hover effect */
}

/* For social links */
.social-link:focus,
.social-link:focus-visible {
    color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* For buttons */
.btn:focus, .btn-outline:focus, .submit-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.3); /* Subtle focus ring in your theme color */
}

/* For inputs - maintain accessibility with visible focus */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.2);
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    /* Make sure the main background doesn't have sharp edges */
    background-image: radial-gradient(circle at 15% 20%, rgba(46, 125, 50, 0.12) 0%, transparent 45%), radial-gradient(circle at 85% 40%, rgba(0, 106, 255, 0.12) 0%, transparent 45%), radial-gradient(circle at 75% 80%, rgba(46, 125, 50, 0.08) 0%, transparent 40%), radial-gradient(circle at 25% 65%, rgba(0, 106, 255, 0.08) 0%, transparent 40%);
    background-attachment: fixed;
    background-size: 200% 200%;
    position: relative;
}


header {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-container {
    padding: 3rem 0;
}

input[type="radio"]:checked {
    accent-color: var(--accent);
}

#sign-in {
    margin-left: 15px;
    white-space: nowrap;
    flex-shrink: 0; /* Prevent sign-in button from shrinking */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; /* Prevent wrapping */
    min-width: 0; /* Allow children to shrink below content size */
}

.flex-column-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    background: linear-gradient(90deg, #2E7D32 0%, #81C784 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    min-width: max-content;
}

.nav-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex: 1; /* Allow to take available space */
    overflow-x: auto; /* Enable horizontal scrolling if needed */
    -ms-overflow-style: none; /* Hide scrollbar in IE/Edge */
    scrollbar-width: none; /* Hide scrollbar in Firefox */
}
    .nav-links::-webkit-scrollbar {
        display: none; /* Hide scrollbar in Chrome/Safari */
    }

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
}

    .nav-link:hover {
        color: var(--text-primary);
    }

    .nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -4px;
        left: 0;
        background: linear-gradient(90deg, #2E7D32, #81C784);
        transition: width 0.3s ease;
    }

    .nav-link:hover::after {
        width: 100%;
    }

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 2rem;
    overflow: hidden;
}

    .hero::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0.4;
        z-index: -1;
        transform: scale(1.05);
        filter: brightness(0.5) saturate(1.2);
        transition: transform 0.5s ease-out, filter 0.5s ease-out, opacity 0.5s ease-out;
    }

    .hero.scrolled::before {
        filter: brightness(0.4) saturate(1.1) blur(8px);
        opacity: 0.3;
        transform: scale(1.1);
    }

.hero-fullscreen-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* Behind everything */
    opacity: 1;
    transition: opacity 0.5s ease; /* Smooth fade out */
}

    .hero-fullscreen-canvas.fade-out {
        opacity: 0;
    }

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(18, 18, 18, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
}

h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    background: linear-gradient(90deg, #2E7D32 0%, #81C784 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    border: none;
    transition: all 0.3s ease;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
    background: linear-gradient(90deg, #2E7D32 0%, #81C784 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
}

    .section-title::after {
        content: '';
        position: absolute;
        width: 60px;
        height: 3px;
        background: linear-gradient(90deg, #2E7D32, #81C784);
        bottom: -12px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 3px;
    }

.hero.scrolled {
    transform: translateY(-10px);
}

p {
    font-size: 1.3rem;
    max-width: 100%;
    color: var(--text-primary);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--text-primary);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--accent);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

    .btn-outline::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 0;
        height: 100%;
        background-color: rgba(46, 125, 50, 0.2);
        z-index: -1;
        transition: width 0.3s ease;
    }

    .btn-outline:hover::before {
        width: 100%;
    }

    .btn-outline:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(46, 125, 50, 0.1);
    }


.mycard {
    max-width: 800px;
    margin: 0 auto;
    padding: 2em;
    background: rgba(9,9,9,0.98);
    text-align: center;
    border-radius: 10px;
    position: relative;
}

    .mycard::after, .mycard::before {
        content: '';
        position: absolute;
        height: 100%;
        width: 100%;
        background-image: conic-gradient(from var(--angle), #00ff99, #006aff, #00ff99);
        top: 50%;
        left: 50%;
        translate: -50% -50%;
        z-index: -1;
        padding: 6px;
        border-radius: 10px;
        animation: 3s spin linear infinite;
    }

    .mycard.error {
        border-radius: 10px;
        border: crimson solid 6px;
    }
        .mycard.error::before,
        .mycard.error::after,
        .mycard.no-color::before,
        .mycard.no-color::after {
            display: none;
        }


.rainbow.mycard::after, .rainbow.mycard::before {
    background-image: conic-gradient(from var(--angle), #ff4545, #00ff99, #006aff, #ff0095, #ff4545);
}

.mycard::before {
    filter: blur(1.5rem);
    opacity: 0.5;
}

@keyframes spin {
    from {
        --angle: 0deg;
    }

    to {
        --angle: 360deg;
    }
}

.btn {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.7s ease;
    }

    .btn:hover::before {
        left: 100%;
    }

    .btn:hover {
        background-color: var(--accent-hover);
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(46, 125, 50, 0.2);
    }

.section {
    padding: 1rem 0;
    position: relative;
    overflow: hidden;
    transition: background-position 0.5s ease-out;
}

    .section::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        background-position: calc(50% + var(--light-x-offset)) calc(50% + var(--light-y-offset));
        background-repeat: no-repeat;
        opacity: var(--light-opacity);
        z-index: -1;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

.no-animate {
    animation: 0 !important;
}

    .mycard.no-animate::before, .mycard.no-animate::after {
        animation: 0 !important;
    }

#about::before,
#skills::before,
#projects::before,
#experience::before,
#testimonials::before,
#contact::before {
    transition: opacity 0.5s ease, background-position 0.5s ease;
}

/* About section light effect */
#about::before {
    background-image: radial-gradient(circle at 80% 30%, rgba(46, 125, 50, 0.15) 0%, transparent 60%);
    filter: blur(40px);
}

/* Skills section light effect */
#skills::before {
    background-image: radial-gradient(circle at 20% 50%, rgba(0, 106, 255, 0.15) 0%, transparent 60%);
    filter: blur(50px);
}

/* Projects section light effect */
#projects::before {
    background-image: radial-gradient(circle at 70% 70%, rgba(46, 125, 50, 0.12) 0%, transparent 60%);
    filter: blur(45px);
}

/* Experience section light effect */
#experience::before {
    background-image: radial-gradient(circle at 30% 40%, rgba(0, 106, 255, 0.12) 0%, transparent 60%);
    filter: blur(55px);
}

/* Testimonials section light effect */
#testimonials::before {
    background-image: radial-gradient(circle at 85% 30%, rgba(46, 125, 50, 0.12) 0%, transparent 60%), radial-gradient(circle at 15% 70%, rgba(0, 106, 255, 0.10) 0%, transparent 60%);
    filter: blur(60px);
}

/* Contact section light effect */
#contact::before {
    background-image: radial-gradient(circle at 50% 120%, rgba(46, 125, 50, 0.15) 0%, transparent 70%);
    filter: blur(50px);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

    .card::before {
        content: '';
        position: absolute;
        top: -100%;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(46, 125, 50, 0.1) 0%, transparent 100%);
        transition: all 0.5s ease;
        z-index: -1;
    }

    .card:hover::before {
        top: 0;
        left: 0;
    }

    .card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        border-color: rgba(46, 125, 50, 0.3);
    }

    .card::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, #2E7D32, #81C784);
        transition: width 0.3s ease;
    }

    .card:hover::after {
        width: 100%;
    }

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #2E7D32 0%, #81C784 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.card p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0;
}

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 250px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
    background-color: var(--bg-secondary); /* Match the image background color */
    transform: translateZ(0); /* Force hardware acceleration */
    will-change: transform; /* Hint at animation for better performance */
}

    .project::before {
        content: '';
        position: absolute;
        inset: -1px; /* Extend slightly beyond container */
        border-radius: 16px;
        background-color: var(--bg-secondary);
        z-index: 3;
    }

    .project:hover::before {
        opacity: 1;
    }

    .project img {
        width: calc(100% + 10px); /* Slightly larger than container */
        height: calc(100% + 10px);
        object-fit: cover;
        transition: transform 0.5s ease;
        margin: -5px; /* Negative margin to compensate for extra size */
        display: block;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        transform: translateZ(0);
    }

    .project:hover img {
        transform: scale(1.1);
    }


    .project:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    }

    .project::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 16px;
        background-color: transparent;
        box-shadow: 0 0 0 1px var(--bg-secondary);
        z-index: 2;
        pointer-events: none;
    }

.project-info {
    z-index: 5;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(22, 24, 33, 0.95), rgba(22, 24, 33, 0.7) 70%, transparent);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.project:hover .project-info {
    transform: translateY(-5px);
}

.project-info h3 {
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #2E7D32 0%, #81C784 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.skill {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .skill::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(46, 125, 50, 0.1), transparent);
        transition: all 0.5s ease;
    }

    .skill:hover::before {
        left: 100%;
    }

    .skill:hover {
        background-color: var(--accent);
        color: white;
        border-color: var(--accent);
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3);
    }

/* Timeline centering fixes */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

    .timeline::after {
        content: '';
        position: absolute;
        width: 2px;
        background: linear-gradient(to bottom, #2E7D32, #006aff);
        top: 0;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%); /* Ensure perfect centering */
        margin-left: 0; /* Remove margin offset to fix centering */
    }

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 50%;
    padding: 0 3rem;
}

    .timeline-item:nth-child(odd) {
        left: 0;
    }

    .timeline-item:nth-child(even) {
        left: 50%;
    }

    .timeline-item::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 20px;
        background: linear-gradient(135deg, #2E7D32, #006aff);
        border-radius: 50%;
        top: 0;
        z-index: 1;
        border: 4px solid var(--bg-primary);
        box-shadow: 0 0 10px rgba(46, 125, 50, 0.5);
        transform: translateX(-50%); /* Center horizontally */
    }

    .timeline-item:nth-child(odd)::after {
        right: -10px; /* Adjust to perfectly center */
        transform: translateX(50%); /* Adjust for right alignment */
    }

    .timeline-item:nth-child(even)::after {
        left: -10px; /* Adjust to perfectly center */
        transform: translateX(-50%); /* Adjust for left alignment */
    }


.timeline-content {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .timeline-content::before {
        content: '';
        position: absolute;
        top: -100%;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(46, 125, 50, 0.05) 0%, transparent 100%);
        transition: all 0.5s ease;
        z-index: -1;
    }

    .timeline-content:hover::before {
        top: 0;
        left: 0;
    }

    .timeline-content:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    .timeline-content h3 {
        margin-bottom: 0.5rem;
        background: linear-gradient(90deg, #2E7D32 0%, #81C784 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        display: inline-block;
    }

    .timeline-content .date {
        color: var(--accent);
        font-weight: 500;
        margin-bottom: 1rem;
        display: block;
    }

    .timeline-content p {
        color: var(--text-secondary);
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

.testimonials {
    text-align: center;
}

.testimonial {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--border);
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

    .testimonial::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 16px;
        padding: 2px;
        background: linear-gradient(135deg, rgba(46, 125, 50, 0.5), rgba(0, 106, 255, 0.5));
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .testimonial:hover::before {
        opacity: 1;
    }

    .testimonial:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    }

    .testimonial p {
        font-style: italic;
        margin-bottom: 1.5rem;
        font-size: 1.1rem;
        position: relative;
        z-index: 1;
    }

        .testimonial p::before {
            content: '"';
            font-family: Georgia, serif;
            font-size: 5rem;
            position: absolute;
            top: -2.5rem;
            left: -1rem;
            color: rgba(46, 125, 50, 0.1);
            z-index: -1;
        }

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

    .testimonial-author img {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid var(--accent);
        transition: all 0.3s ease;
    }

.testimonial:hover .testimonial-author img {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(46, 125, 50, 0.3);
}

.author-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .author-info h4 {
        margin-bottom: 0.2rem;
        transition: all 0.3s ease;
    }

.testimonial:hover .author-info h4 {
    color: var(--accent);
}

.author-info p {
    font-size: 0.8rem;
    margin: 0;
    color: var(--text-secondary);
}

.contact {
    text-align: center;
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

    .contact-item:hover {
        transform: translateY(-3px);
    }

    .contact-item .contact-icon,
    .contact-item p {
        display: flex;
        align-items: center;
        font-size: 1.2rem;
    }

.contact-icon {
    font-size: 1.2rem;
    color: var(--accent);
}

.contact-icon-container {
    width: 40px;
    height: 40px;
    background: rgba(46, 125, 50, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

form {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group input,textarea {
    width: 85%;
}

input, textarea {
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background-color: var(--card-bg);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

    input:focus, textarea:focus {
        outline: none;
        border-color: var(--accent);
        box-shadow: 0 0 10px rgba(46, 125, 50, 0.2);
        transform: translateY(-2px);
    }

.submit-btn {
    background-color: var(--accent);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .submit-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.7s ease;
    }

    .submit-btn:hover::before {
        left: 100%;
    }

    .submit-btn:hover {
        background-color: var(--accent-hover);
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(46, 125, 50, 0.2);
    }

footer {
    background-color: var(--bg-secondary);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

    footer::before {
        content: '';
        position: absolute;
        width: 200px;
        height: 200px;
        background: radial-gradient(circle, rgba(46, 125, 50, 0.1) 0%, transparent 70%);
        border-radius: 50%;
        top: -100px;
        left: 10%;
        z-index: 0;
    }

    footer::after {
        content: '';
        position: absolute;
        width: 150px;
        height: 150px;
        background: radial-gradient(circle, rgba(0, 106, 255, 0.08) 0%, transparent 70%);
        border-radius: 50%;
        bottom: -75px;
        right: 10%;
        z-index: 0;
    }

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.social-link {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(51, 51, 51, 0.3);
}

    .social-link::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 50%;
        padding: 2px;
        background: linear-gradient(135deg, #2E7D32, #006aff);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .social-link:hover::before {
        opacity: 1;
    }

    .social-link:hover {
        color: var(--accent);
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.user-section {
    position: relative;
    display: inline-block;
}

.user-button {
    background-color: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
}

    .dropdown-content a,
    .dropdown-content button {
        color: black;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
        text-align: left;
        width: 100%;
        background: none;
        border: none;
        cursor: pointer;
    }

        .dropdown-content a:hover,
        .dropdown-content button:hover {
            background-color: #f1f1f1;
        }

.dropdown:hover .dropdown-content {
    display: block;
}

.logout-button {
    color: #d9534f;
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 0;
    }

        .timeline-item:nth-child(odd), .timeline-item:nth-child(even) {
            left: 0;
        }

            .timeline-item:nth-child(odd)::after, .timeline-item:nth-child(even)::after {
                left: 18px;
            }
}


/* Hamburger Menu Styles */
.hamburger-menu {
    display: none; /* Hidden by default */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 200;
    position: relative;
}

    .hamburger-menu span {
        width: 100%;
        height: 3px;
        background-color: var(--text-primary);
        border-radius: 3px;
        transition: all 0.3s ease;
    }

#menu-back {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
}


.menu-overlay {
    display: flex;
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%; /* Fallback */
    height: calc(var(--vh, 1vh) * 100); /* Use custom viewport height variable */
    background-color: rgba(22, 24, 33, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 150;
    transition: right 0.4s ease;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
    padding: 80px 30px 30px;
    overflow-y: auto;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    overscroll-behavior: contain;
}

    .menu-overlay.active {
        right: 0;
    }

.menu-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex-grow: 1; /* Take available space */
}

.menu-link {
    display: flex;
    align-items: center;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

    .menu-link:hover {
        color: var(--accent);
        transform: translateX(5px);
    }

    .menu-link svg {
        margin-right: 15px;
        color: var(--accent);
    }

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.menu-overlay-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Fallback */
    height: calc(var(--vh, 1vh) * 100); /* Use custom viewport height variable */
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 140;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

    .menu-overlay-backdrop.active {
        opacity: 1;
        visibility: visible;
    }

.menu-open {
    overflow: hidden;
}



@media (max-width: 1111px) {
    .nav-links {
        display: none;
    }

    #sign-in {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {

    h1, .mycard h1 {
        font-size: 2rem;
    }

    p, .mycard p {
        font-size: 1rem;
    }

    .mycard p {
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }

    .nav-links {
        display: none;
    }

    #sign-in {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .card, .project, .testimonial {
        transform: none !important;
        opacity: 1 !important;
    }

    .card, .project, .timeline-item, .testimonial, .skill {
        will-change: transform, opacity;
    }

    .cards, .projects {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .skill {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }

    .testimonial-author {
        flex-direction: column;
        align-items: center;
    }

    .mycard {
        padding: 1.5rem;
        margin: 2rem;
    }

        .mycard h1 {
            font-size: 2rem;
        }

        .mycard p {
            font-size: 1rem;
            margin-bottom: 1.5rem;
        }

    .social-links {
        gap: 1rem;
    }

    .social-link {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }

    .project img {
        width: calc(100% + 20px); /* Even larger buffer on mobile */
        height: calc(100% + 20px);
        margin: -10px;
    }
}

/* Mobile Optimization */
@media screen and (max-width: 768px) {
    /* General adjustments */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    /* Hero section */
    .prometheus-hero-content {
        gap: 10px;
    }

    .prometheus-hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-metrics {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .metric {
        min-width: 100px;
        flex: 0 0 calc(50% - 15px);
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .prometheus-hero-visual {
        margin-top: 20px;
    }

    .resume-container {
        transform: perspective(1000px) rotateY(-8deg) rotateX(3deg) scale(0.9);
    }

    /* Process section */
    .process-step {
        margin-bottom: 4rem;
    }

    .step-number {
        left: 20px;
        top: 0;
        transform: translateY(-50%);
    }

    .step-content {
        order: 2;
        padding-top: 30px;
    }

    .step-visual {
        order: 1;
    }

    /* Ensure proper flow on mobile for all process steps */
    .process-step {
        flex-direction: column;
    }

        /* Remove the reversal for even steps on mobile */
        .process-step:nth-child(even) {
            flex-direction: column;
        }

    /* Features grid */
    .features-grid {
        gap: 15px;
    }

    .feature-card {
        min-height: auto;
    }

        .feature-card h3 {
            font-size: 1.3rem;
        }

    /* Stats grid */
    .stats-grid {
        gap: 15px;
    }

    .stat-card {
        padding: 20px;
    }

    /* Pricing cards */
    .pricing-cards {
        gap: 20px;
    }

    .pricing-card {
        max-width: 100%;
    }

        .pricing-card.featured {
            transform: scale(1);
            margin-top: 30px;
            margin-bottom: 30px;
        }

    /* Testimonials */
    .testimonial-card {
        flex: 0 0 calc(100% - 20px);
    }

    /* FAQ */
    .faq-question h3 {
        font-size: 1rem;
        padding-right: 20px;
    }

    /* CTA section */
    .cta-statistics {
        gap: 20px;
    }

    .stat {
        flex: 0 0 calc(50% - 10px);
    }

    /* Contact form */
    .contact-container {
        gap: 20px;
    }

    /* Flow line adjustment for process steps */
    .flow-line {
        left: 20px;
        height: calc(100% - 100px);
        transform: none;
    }

    /* Better vertical spacing */
    .section {
        padding: 40px 0;
    }

    /* Adjust carousel for single item view on mobile */
    .testimonials-carousel {
        flex-wrap: nowrap;
        gap: 15px;
    }

    /* Navbar adjustments - if present */
    .navbar .container {
        flex-direction: column;
        align-items: center;
    }

    .nav-links {
        margin-top: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Better spacing for feature lists */
    .feature-list {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Enhance touch targets */
    .btn, .btn-outline, .toggle-switch, .faq-question, .carousel-prev, .carousel-next {
        min-height: 30px;
    }

    /* Adjust images and icons */
    .feature-card, .stat-card, .pricing-card {
        text-align: center;
    }

    /* Make sure form elements are properly sized on mobile */
    input, textarea, button {
        font-size: 16px; /* Prevents iOS zoom on focus */
    }
}

/* Additional tweaks for extra small screens */
@media screen and (max-width: 480px) {
    .prometheus-hero-text h1 {
        font-size: 2rem;
    }

    .metric {
        flex: 0 0 100%;
        margin-bottom: 10px;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

        .cta-buttons .btn, .cta-buttons .btn-outline {
            width: 100%;
            margin-bottom: 10px;
        }

    .stat {
        flex: 0 0 100%;
    }

    /* Enhance readability */
    p {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    /* Better visual hierarchy */
    .step-number {
        width: 50px;
        height: 50px;
    }

    /* Form improvements */
    form button {
        padding: 12px;
    }
}