:root {
    --primary: #2a2a2a;
    --secondary: #64ffda;
    --bg: #0a192f;
    --text: #8892b0;


    --primary-dark: #0a192f; /* Navy Black */
    /* --primary-light: #ffffff; White */
    --text-dark: #8892b0; /* White text for dark theme */
    --text-light: #000; /* Black text for light theme */
    --icon-dark: #fff; /* Light icon for dark theme */
    --icon-light: #000; /* Dark icon for light theme */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background-color: var(--bg);
    color: #fff;
    overflow-x: hidden;

    background-color: var(--primary-dark);
    color: var(--text-dark);
    transition: background-color 0.3s, color 0.3s;
}
/* ------------------------------------------------------------------------------------------------------ */
/* ------------------------------------------Navigation-------------------------------------------------- */
nav {
    position: fixed;
    width: 100%;
    padding: 1.5rem;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    color: var(--secondary);
    text-decoration: none;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--secondary);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--secondary);
    transition: 0.3s;
}
/* ------------------------------------------------------------------------------------------------------ */
/* ------------------------------------------Hero Section------------------------------------------------ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 2rem;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

.hero small {
    color: var(--secondary);
    font-size: 1rem;
}

.hero h1 {
    font-size: 4.5rem;
    margin: 1rem 0;
}

.hero h2 {
    font-size: 3rem;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.hero p {
    color: var(--text);
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.cta-btn {
    display: inline-block;
    margin-top:0rem;
    padding: 1rem 4rem;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    animation: blink 2s infinite;
}

.cta-btn:hover, .resume-btn:hover {
    background: rgba(100, 255, 218, 0.1);
    animation:none;
    opacity:1;
}
/* Keyframes for blinking */
@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}
/* ------------------------------------------------------------------------------------------------------ */
/* ------------------------------------------About Section----------------------------------------------- */
.about, .projects, .contact {
    padding: 100px 2rem;
    max-width: 1200px;
    margin: 0 auto;
}


.role-buttons {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.role-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.role-btn:hover {
    background: rgba(100, 255, 218, 0.1);
}

.role-btn.active {
    background: rgba(100, 255, 218, 0.2);
}

.role-descriptions {
    margin: 2rem 0;
    min-height: 100px;
}

.role-desc {
    display: none;
    color: var(--text);
    line-height: 1.6;
    animation: fadeIn 0.5s ease forwards;
}

.role-desc.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Add this to your media queries */
@media screen and (max-width: 768px) {
    .role-buttons {
        flex-direction: column;
    }
    
    .role-btn {
        width: 100%;
    }
}

.resume-buttons {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.resume-buttons {
    display: flex;
    gap: 1rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.resume-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    animation: blink 2s infinite;
}
.role-btn:hover {
    background: rgba(100, 255, 218, 0.1);
}

.section-title {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
}

.section-title::after {
    content: "";
    display: block;
    height: 1px;
    width: 300px;
    background: var(--text);
    margin-left: 20px;
}

.about-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
    align-items: center;
}

.about-text {
    color: var(--text);
    line-height: 1.6;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 20px;
    list-style: none;
}

.skills-list li::before {
    content: "▹";
    color: var(--secondary);
    margin-right: 10px;
}

.about-image {
    position: relative;
    width: 300px;
    height: 300px;
    justify-self: center;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.about-image::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid var(--secondary);
    border-radius: 4px;
    transform: translate(20px, 20px);
    transition: transform 0.3s;
}

/* ------------------------------------------------------------------------------------------------------ */
/* ---------------------------------------Animation styles----------------------------------------------- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
  
  .animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Add staggered delay for children */
  .stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
  
  .stagger-children > *:nth-child(1) { transition-delay: 0.1s; }
  .stagger-children > *:nth-child(2) { transition-delay: 0.2s; }
  .stagger-children > *:nth-child(3) { transition-delay: 0.3s; }
  .stagger-children > *:nth-child(4) { transition-delay: 0.4s; }
  .stagger-children > *:nth-child(5) { transition-delay: 0.5s; }
  
  .stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
  }
/* ------------------------------------------------------------------------------------------------------ */
/* -----------------------------------Experience Section Styles------------------------------------------ */
.experience-container {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.experience h2{
    padding: 0px 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.experience-tabs {
    display: flex;
    flex-direction: column;
    min-width: 160px;
    border-left: 2px solid var(--text);
    margin-right:2px;
}

.tab-button {
    padding: 1rem 2rem;
    background: transparent;
    border: none;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.tab-button::before {
    content: '';
    position: absolute;
    left: -2px;
    width: 2px;
    height: 100%;
    background: var(--secondary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.tab-button.active {
    color: var(--secondary);
}

.tab-button.active::before {
    transform: scaleY(1);
}

.tab-content {
    flex-grow: 1;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.tab-panel.active {
    display: block;
}

.tab-panel h3 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.company {
    color: var(--secondary);
}

.duration {
    color: var(--text);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.experience-list {
    list-style: none;
}

.experience-list li {
    color: var(--text);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.experience-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--secondary);
}

/* ------------------------------------------------------------------------------------------------------ */
/* ---------------------------------------Open Source Section-------------------------------------------- */
.opensource {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
    padding: 5rem 5rem; /* Added padding for consistent spacing */
    padding-left: 5rem;
}

.opensource.show {
    opacity: 1;
    transform: translateY(0);
}

/* Updated section title styling to match */
.opensource .section-title {
    margin-top: 4rem;
    margin-left: 7rem;
}

.opensource-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 2rem;
    margin-left: -3rem;
}

.opensource-text {
    max-width: 600px;
    text-align: left;
    color: var(--text);
    line-height: 1.6; /* Added line height for better readability */
}

.opensource-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.opensource-list li {
    margin-bottom: 10px;
    font-size: 1rem;
    position: relative;
    padding-left: 20px; /* Space for the arrow */
}

.opensource-list li::before {
    content: "▹";
    color: var(--secondary);
    position: absolute;
    left: 0;
}

.opensource-list li strong {
    color: var(--secondary);
}

.opensource-image img {
    width: 100%;
    max-width: 400px;
    border: 3px solid var(--secondary);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.opensource-text p {
    margin: 10px 0;
    color: var(--text);
}

.opensource-text a.cta-btn {
    margin-top: 20px;
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    border-radius: 4px;
    cursor: pointer;
    transition: all 2s ease;
    font-size: 1rem;
}

.opensource-text a.cta-btn:hover {
    background: rgba(100, 255, 218, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .opensource {
        padding: 0 2rem;
    }
    
    .section-title::after {
        width: 200px;
    }
}


/* ------------------------------------------------------------------------------------------------------ */
/* --------------------------------------Projects Section------------------------------------------------ */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: #112240;
    padding: 2rem;
    border-radius: 4px;
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.folder-icon {
    color: var(--secondary);
    font-size: 2rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-links a {
    color: #fff;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.project-links a:hover {
    color: var(--secondary);
}

.project-title {
    margin-bottom: 1rem;
}

.project-description {
    color: var(--text);
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    gap: 1rem;
    color: var(--text);
    font-size: 0.9rem;
}

/* Animations */
.animate-text {
    opacity: 0;
    transform: translateY(20px);
}
/* ------------------------------------------------------------------------------------------------------ */
/* ------------------------------------------Footer Styles----------------------------------------------- */
.footer {
    background: #060f1e;
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(100, 255, 218, 0.1);
    box-shadow: 0 -10px 30px rgba(10, 25, 47, 0.5);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.footer-section {
    text-align: left;
}

.footer-section h4 {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background: var(--secondary);
}

.footer-section p, 
.footer-section a {
    color: var(--text);
    margin-bottom: 0.8rem;
    text-decoration: none;
    display: block;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--secondary);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--text);
    transition: all 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--text);
}

.social-links a:hover {
    color: var(--secondary);
    border-color: var(--secondary);
    transform: translateY(-3px);
}

.footer-bottom {
    padding: 2rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

.footer-bottom p {
    color: var(--text);
}

.scroll-to-top {
    width: 40px;
    height: 40px;
    background: var(--secondary);
    color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.3);
}

@media screen and (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
/* ------------------------------------------------------------------------------------------------------ */
/* -------------------------------------Responsive Design------------------------------------------------ */
@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg);
        padding: 1rem;
        flex-direction: column;
        align-items: center;
    }

    .nav-links.active {
        display: flex;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .section-title::after {
        width: 150px;
    }
}
/* ------------------------------------------------------------------------------------------------------ */