/* =================================
   COLOR THEME VARIABLES
   ================================= */
:root {
    --bg-color-primary: #000000;
    --bg-color-secondary: rgba(255, 255, 255, 0.05);
    --bg-color-tertiary: #1a1a1a;
    --text-color-primary: #ffffff;
    --text-color-secondary: #ccc;
    --accent-color: #e4003a;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(228, 0, 58, 0.2);
    --timeline-dot-border: #000;
    --nav-bg-color: rgba(0, 0, 0, 0.5); /* ADD THIS */
    --nav-bg-color-scrolled: rgba(0, 0, 0, 0.7);
    --sidebar-bg-color: rgba(0, 0, 0, 0.95); /* ADD THIS */
     --header-bg-image: url('images/medt1.png'); /* ADD THIS */
    --header-bg-gradient: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)); /* ADD THIS */
}

body.light-theme {
    --bg-color-primary: #e5eafa;
    --bg-color-secondary: #ffffff;
    --bg-color-tertiary: #e9e9e9;
    --text-color-primary: #333333;
    --text-color-secondary: #555555;
    --accent-color: #e4003a;
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-color: rgba(228, 0, 58, 0.1);
    --timeline-dot-border: #f0f2f5;
        --nav-bg-color: rgba(255, 255, 255, 0.5); /* ADD THIS */
    --nav-bg-color-scrolled: rgba(255, 255, 255, 0.7); /* ADD THIS */
     --sidebar-bg-color: rgba(240, 242, 245, 0.98); /* ADD THIS */
      --header-bg-image: url('images/melt1.png'); /* ADD THIS */
    --header-bg-gradient: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)); /* ADD THIS */
}


/* style.css */

/* Add this new rule to apply a shadow in light mode */
body.light-theme .project-card,
body.light-theme .services-list div,
body.light-theme .skill-category,
body.light-theme .competencies-list,
body.light-theme .timeline-content,
body.light-theme .contact-right form,
body.light-theme .about-col-2 > p:first-of-type,
body.light-theme .copyright {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}
/* --- Add this to your style.css file --- */

body.light-theme .hero .tagline,
body.light-theme .typed-cursor {
    color: var(--text-color-secondary);
}

/* Your existing * rule starts below... */
* {
    margin: 0;
    padding: 0;
    /* ... */
}




* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color-primary);
    color: var(--text-color-primary);
    line-height: 1.6;
}

#header {
    width: 100vw;
    height: 100vh;
    background: var(--header-bg-gradient), var(--header-bg-image);
    background-size: cover;
    background-position: center;
    position: relative;
    /* background-attachment: fixed; */
}

.container {
    padding: 10px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

#header nav {
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--nav-bg-color); /*USE THE VARIABLE*/
    transition: background-color 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

#header nav.nav-scrolled {
    background-color: var(--nav-bg-color-scrolled);
}

.logo {
    display: block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}




#theme-toggle {
    font-size: 22px;
    cursor: pointer;
    color: var(--text-color-primary);
}


.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;   /* Stack items vertically */
    justify-content: center;  /* Center the block on the page */
    align-items: flex-end;    /* Align items to the right */
    position: relative;
    background-attachment: fixed;
    padding: 0 5%;
}

/* Styling for the new Hero Quote */

.hero-quote {
    max-width: 600px; /* Match the content below it */
    width: 100%;
    color: var(--text-color-secondary);
    text-align: right; /* Align text to the right */
    margin-bottom: 2rem; /* Add space below the quote */
}

.hero-quote blockquote {
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 300;
    line-height: 1.4;
    border-right: 3px solid #e4003a; /* Move border to the right */
    padding-right: 10px; /* Add padding to the right */
}

.hero-quote cite {
    display: block;
    margin-top: 10px;
    font-size: 1rem;
    font-style: normal;
    font-weight: 500;
    color: var(--text-color-primary);
}

.hero-content {
    max-width: 600px;
    text-align: right;
}
.hero h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #e4003a);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: right;
    background-attachment: fixed;
}

.hero .tagline {
    font-size: 1.5rem;
    color: #ccc;
    margin-bottom: 2rem;
    min-height: 2rem;
    text-align: right;

}

.cta-button {
    background: linear-gradient(45deg, #e4003a);
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    align-self: flex-end;
    margin-right: none;
}

.button-container {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-top: 1rem;
}

section {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
    color: #e4003a;
}

.section-title.animate {
    opacity: 1;
    transform: translateY(0);
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    /* background: var(--sidebar-bg-color); USE THE VARIABLE */
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
   color: var(--text-color-primary);
    text-decoration: none;
    font-size: 16px;
    position: relative;
    transition: color 0.3s;
}

nav ul li a::after {
    content: '';
    width: 0;
    height: 2px;
    background: #e4003a;
    position: absolute;
    left: 0;
    bottom: -5px;
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

.header-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
}

.header-text h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

.header-text h6 {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.header-text span {
    color: #e4003a;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color-primary); /* USE THE VARIABLE */
    margin: 3px 0;
    transition: 0.3s;
}



#about {
    padding: 50px 0;
    color: var(--text-color-primary);
}

#about .row {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 40px;
}

.about-col-1 {
    flex: 1;
    max-width: 400px;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.about-col-1 img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(228, 0, 58, 0.3);
}

.about-col-2 {
    flex: 2;
}

/* Box style for the main "About Me" paragraph */
.about-col-2 > p:first-of-type {
    background: var(--bg-color-secondary);
    border: 1px solid var(--border-color);
    padding: 25px; /* Adds space inside the box */
    border-radius: 15px; /* Rounds the corners */
    margin-bottom: 30px; /* Adds space below the box, before the tabs */
}

.sub-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 600;
    color: var(--text-color-primary);

    margin-bottom: 10px;
}

.tab-titles {
    display: flex;
    margin: 30px 0;
    flex-wrap: wrap;
    gap: 20px;
}

.tab-links {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 500;
    cursor: pointer;
    position: relative;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.1);
}

.tab-links::after {
    content: '';
    width: 0;
    height: 2px;
    background: #e4003a;
    position: absolute;
    left: 20px;
    bottom: 5px;
    transition: width 0.3s;
}

.tab-links.active-link {
    background: rgba(228, 0, 58, 0.2);
}

.tab-links.active-link::after {
    width: calc(100% - 40px);
}

.tab-contents ul li {
    list-style: none;
    margin: 15px 0;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    padding: 10px 0;
}

.tab-contents ul li span {
    color: #e4003a;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    font-weight: 600;
}

.tab-contents ul li img {
    width: 80px;
    height: 80px;
    margin: 10px 20px 10px 0;
    border-radius: 10px;
}

.tab-contents {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.tab-contents.active-tab {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#services {
    padding: 50px 0;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.services-list div {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px 20px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.services-list div i {
    font-size: 50px;
    margin-bottom: 20px;
    color: #e4003a;
}

.services-list div h2 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 600;
    margin-bottom: 15px;
}

.services-list div p {
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    margin-bottom: 20px;
    line-height: 1.6;
}

.services-list div a {
    text-decoration: none;
    color: #e4003a;
    font-weight: 500;
    padding: 10px 20px;
    border: 1px solid #e4003a;
    border-radius: 25px;
    transition: all 0.3s;
}

.services-list div:hover {
    background: rgba(228, 0, 58, 0.1);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(228, 0, 58, 0.2);
}

.services-list div:hover a {
    background: #e4003a;
    color: white;
}

#portfolio {
    padding: 50px 0;
}

.work-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    background: var(--bg-color-secondary);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(228, 0, 58, 0.2);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
     color: var(--text-color-primary);
}

.project-description {
    font-size: 1rem;
    color: #605f5f;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    background-color: rgba(228, 0, 58, 0.2);
    color: #e4003a;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-link {
    display: inline-block;
    background-color: #e4003a;
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.3s ease;
    margin-top: auto;
}

.project-link:hover {
    background-color: #dd879dfe;
}

.project-link .fa-github {
    margin-right: 8px;
}

.btn {
    display: block; /* Use block to center it properly with margin */
    width: fit-content; /* Ensure the button is only as wide as its content */
    margin: 50px auto 0; /* Center it horizontally */
    padding: 14px 40px;
    border: none; /* Remove the border */
    border-radius: 50px; /* Make it fully rounded */
    text-decoration: none;
    color: #fff;
    font-weight: 600; /* Slightly bolder text */
    text-align: center;
    background: var(--accent-color); /* Use the accent color by default */
    box-shadow: 0 5px 15px var(--shadow-color); /* Add a subtle shadow */
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px); /* A slightly more noticeable lift */
    box-shadow: 0 8px 25px var(--shadow-color); /* Enhance the shadow on hover */
    filter: brightness(1.1); /* Make it slightly brighter */
}

#contact {
    padding: 50px 0;
}

#contact .row {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.contact-left {
    flex: 1;
}

.contact-right {
    flex: 1;
}

.contact-left p {
    margin: 20px 0;
    display: flex;
    align-items: center;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
}

.contact-left p i {
    color: #e4003a;
    font-size: 24px;
    margin-right: 15px;
    width: 30px;
}

.contact-left p a,
.contact-left p a:visited {
    color: var(--text-color-secondary);
    text-decoration: none;
}

.contact-left p a:hover {
    color: #e4003a;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}

.social-icons a {
    width: 50px;
    height: 50px;
    background: rgba(228, 0, 58, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #e4003a;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    background: #e4003a;
    color: white;
    transform: translateY(-3px);
}

.contact-right form {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

form input,
form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
   border: 1px solid var(--border-color);
    background: var(--bg-color-secondary);
    color: var(--text-color-primary);
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: #e4003a;
    background: rgba(255, 255, 255, 0.15);
}

form input::placeholder,
form textarea::placeholder {
    color: var(--text-color-secondary);
}

.btn.btn2 {
    background: #e4003a;
    border: none;
    cursor: pointer;
    width: 100%;
}

#msg {
    color: #4CAF50;
    font-weight: 500;
    display: block;
    margin-top: 20px;
    text-align: center;
}

#submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#submit-button .button-loader {
    display: none; /* Hide the spinner by default */
}

.copyright {
    text-align: center;
    padding: 30px 0;
    background: rgba(255, 255, 255, 0.05);
    margin-top: 50px;
    border-radius: 15px 15px 0 0;
}

.copyright i {
    color: #e4003a;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e4003a;
    transform: translateX(-50%);
}

.timeline-item {
    padding: 20px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 60px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 60px;
}

.timeline-dot {
    content: '';
    position: absolute;
    top: 30px;
    width: 16px;
    height: 16px;
    background: #e4003a;
    border: 2px solid var(--timeline-dot-border);
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -8px;
}

.timeline-date {
    font-size: 1rem;
    font-weight: 600;
    color: #e4003a;
    margin-bottom: 10px;
}

.timeline-content {
    background: var(--bg-color-secondary);
    padding: 20px;
    border-radius: 10px;
    
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(228, 0, 58, 0.2);
}

.timeline-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.timeline-content a {
    text-decoration: none;
    color: var(--text-color-primary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.skill-category {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-category h4 {
    font-size: 1.1rem;
    color: #e4003a;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skill-item {
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.skill-item img {
    width: 24px;
    height: 24px;
    margin-right: 12px;
}

.competencies-list {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
}

.competencies-list h4 {
    font-size: 1.1rem;
    color: #e4003a;
    margin-bottom: 10px;
}

.competencies-list p {
    line-height: 1.8;
}

.typed-cursor {
    font-size: 1.5rem;
    color: #ccc;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

@media screen and (max-width: 768px) {
    .container {
        padding: 10px 20px;
    }
    #header nav {
        padding: 0 20px;
    }
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--sidebar-bg-color);
        flex-direction: column;
        justify-content: center;
        transition: right 0.3s ease;
    }
    nav ul.active {
        right: 0;
    }
    nav ul li {
        margin: 20px 0;
    }
    nav ul li a {
        font-size: 24px;
    }
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }
    .header-text {
        width: 95%;
    }
    #about .row {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    .about-col-1 {
        position: static;
        max-width: 90%;
    }
    .tab-titles {
        justify-content: center;
        flex-wrap: wrap;
    }
    .services-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .work-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    #contact .row {
        flex-direction: column;
    }
    .contact-right form {
        margin-top: 30px;
    }
    .timeline::before {
        left: 8px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 40px;
        padding-right: 0;
        text-align: left;
    }
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        padding-left: 40px;
    }
    .timeline-dot {
        top: 28px;
    }
    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 0;
    }
}


    @media screen and (max-width: 768px) {
    
    /* ADD THESE NEW RULES */
    .hero {
        flex-direction: column; /* Stacks the items vertically */
        justify-content: center;
        text-align: center;
        gap: 50px; /* Adds space between quote and main text */
    }

    .hero-quote {
        flex-basis: auto; /* Resets the width */
    }
    
    .hero-quote blockquote {
        font-size: 1.2rem;
        text-align: center;
        border-left: none; /* Removes the border */
        padding-left: 0;
    }

    .hero-content {
        width: 100%; /* Ensure it takes full width */
        text-align: center;
        align-items: center;
    }
    
    .hero h1, .hero .tagline {
        text-align: center;
    }
    
    .cta-button {
        margin: 0 auto; /* Centers the button */
    }

    /* ... your other responsive styles ... */

    .container {
        padding: 10px 15px;
    }
    #header nav {
        padding: 0 15px;
    }
    .header-text h1 {
        font-size: 2rem;
    }
    .sub-title {
        font-size: 2rem;
    }
    .services-list {
        grid-template-columns: 1fr;
    }
    .services-list div {
        padding: 30px 20px;
    }
    .work-list {
        grid-template-columns: 1fr;
    }
    .work img {
        height: 200px;
    }
    .social-icons {
        justify-content: center;
    }
    .contact-right form {
        padding: 20px;
    }
    
}