@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
:root {
    --background-color: #1c1316;
    --text-color: #D6C0B3;
    --name-color: #9e8720;
    --navbar-color:#140c0e;
    --download1:#493628;
    --downloadhover:#AB886D;
    --shadow-color:#ffd700;
    --white-color: #ffffff;
    --black-color:#000000;
    --message-color:rgba(255, 255, 255, 0.5);
    --form-background: rgba(15, 15, 15, 0.9);
    --input-background: rgba(20, 20, 20, 0.9);
    --focus-color: rgba(0, 216, 255, 0.8);
    --sendmessage-color:#ffd700;
    --skill-color:#140c0e;
}

/* Light Theme Variables */
:root.light {
    --background-color: #D6C0B3;
    --text-color: #1c1316;;
    --name-color: #493628;
    --navbar-color:#493628;
    --download1:#D6C0B3;
    --downloadhover:#AB886D;
    --shadow-color:#ffd700;
    --white-color: #000000;
    --black-color:#D6C0B3;
    --message-color:rgba(15, 15, 15, 0.9);
    --form-background: #af9481;
    --sendmessage-color:#af9481;
    --input-background: rgba(110, 17, 17, 0.5);
    --focus-color: rgba(0, 216, 255, 0.8);
    --skill-color:#493628;
}
* {
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
    min-height: 100%;
    position: relative;
}

body {
    background-color: var(--background-color);
    color: white;
        font-family: 'Poppins', sans-serif;
    
}

/* Base Scroll Animation - Initially Hidden */
.scroll-animation {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* When in View - Fade in & Move Up */
.scroll-animation.visible {
    opacity: 1;
    transform: translateY(0);
}
#home {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

#home.visible {
    opacity: 1;
    transform: translateX(0);
}
#projects {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

#projects.visible {
    opacity: 1;
    transform: translateX(0);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    background-color: var(--navbar-color);
    padding: 0 80px;
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
}

nav ul li {
    list-style: none;
    margin: 0 23px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    
}

nav ul li a:hover {
    color:  #97920B;
    font-size: 1.04rem;
}
/* Toggle Icon Styles */
.toggle-icon {
    font-size: 24px;
    color: #D6C0B3;
    cursor: pointer;
    margin-left: 20px;
}

.toggle-icon:hover {
    color: #ffd700;
}

.left {
    font-size: 1.5rem;
}

.firstSection {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 80px 0;
}

.firstSection>div {
    width: 40%;
}
/* Container */
.intro-section {
    text-align: center;
    margin: 50px auto;
    padding: 20px;
    max-width: 800px;
    color: #E4E0E1; /* Light text color */
}

/* Name */
.name {
    text-align: left;
    font-size: 3rem; /* Larger name font */
    font-weight: 700;
    color: var(--name-color); /* Light brown color */
    margin-bottom: 10px;
    text-shadow: 0 0 5px #9e8720; 
}


/* Description */
.description {
    font-size: 1.1rem; /* Comfortable reading size */
    line-height: 1.6;
    color: var(--text-color); /* Softer text color */
    margin-bottom: 30px;
    text-align: justify;
    max-width: 600px; /* Ensures the text doesn't stretch too wide */
    margin: 0 auto 30px auto; /* Centers the block while keeping text left-aligned */
}


/* Buttons */
.buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    align-items: flex-start;
    margin-top: 25px;
}

/* Download Button */
.download-btn {
    text-decoration: none;
    color: var(--text-color);
    background-color: var(--download1); /* Dark background */
    border: 2px solid var(--text-color); /* Light border */
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Space between icon and text */
    transition: all 0.8s ease;
    
}

.download-btn:hover {
    background-color: var(--downloadhover); /* Hover color */
    color: var(--background-color); /* Text color on hover */
    text-shadow: 0 0 10px var(--download1);
}

/* Social Icons */
.social-icons {
    padding: 10px 8px;
    display: flex;
    gap: 15px;
    text-shadow: 0 0 10px var(--download1);
}

.social-icon {
    color: var(--text-color);
    font-size: 1.5rem; /* Adjust icon size */
    text-decoration: none;
    transition: color 0.8s ease;
}

.social-icon:hover {
    color: var(--downloadhover); /* Highlight color on hover */
}


.leftSection {
    font-size: 3rem;
}
.leftSection .buttons{
    padding: 23px 0;
    display: flex; /* Ensures buttons align horizontally */
    gap: 15px; /* Adds spacing between buttons */
    justify-content: start; /* Aligns buttons to the left */
    align-items: center; /* Centers icons vertically */
    
}
.leftSection .btn{
    text-decoration: none;
    padding: 12px;
    background: none;
    color: #97920B;
    border:2px solid #97920B;
    border-radius: 30px;
    font-size: 20px;
    cursor: pointer;
    align-items: center; /* Centers the icon vertically */
    justify-content: center; 
    transition: all 0.3s ease;
}


.leftSection .btn:hover {
    text-shadow: 0 0 10px var(--shadow-color);
    color: rgb(34, 23, 27);
    border-color: #97920B; /* Matches original background */
}
.leftSection .btn i {
    font-size: 20px; /* Adjust icon size for better visibility */
    vertical-align: middle;
}

.rightSection img {
    width: 100%; 
    max-width: 400px; /* Optional: Limit the max size */
    border-radius: 50%; /* Makes the image circular */
    border: 5px solid var(--download1); /* Optional: Add a border */
    box-shadow: 0px 8px 20px rgba(140, 169, 9, 0.3); 
}

.purple {
    color: #97920B;
}

#element {
    color: #97920B;
}

.secondSection {
    max-width: 90vw;
    margin: auto;
    height: 80vh;
}

main hr {
    border: 0;
    background: #97920B;
    height: 1.2px;
    margin: 40px 84px;

}

.secondSection h1 {
    font-size: 2rem;
}

.text-gray {
    color: gray;
}

.custom-button {
    text-decoration: none;
    color: var(--text-color);
    background-color: var(--download1); /* Dark background */
    border: 2px solid var(--text-color); /* Light border */
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Space between icon and text */
    transition: all 0.8s ease;
}


.custom-button:hover {
    background-color: white;
    color: black;
}
/* ****************************************************EDUCATION SECTION*************************************************************** */
.education-section {
    padding: 50px 20px;
    color: var(--white-color);
    height: 475px;
}

.section-title {
    font-size: 48px; /* Increase heading size */
    margin-bottom: 40px; /* Add more space below the heading */
    color: var(--white-color);
    text-shadow: 0 0 15px var(--shadow-color);
    text-align: center; /* Aligns the title to the left */
}

.timeline {
    position: relative;
    margin: 0 auto;
    max-width: 800px;
    padding: 0 20px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 30px; /* Positions the vertical line on the left */
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--text-color); /* Light brown line */
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    padding-left: 70px; /* Adds spacing from the line */
    position: relative;
}

.timeline-dot {
    width: 15px;
    height: 15px;
    background: var(--background-color); /* Darker brown dot */
    border: 3px solid var(--text-color); /* Light border */
    border-radius: 50%;
    position: absolute;
    left: 22px; /* Aligns the dot with the line */
    top: 10px;
    z-index: 1;
}

.timeline-content {
    background-color: var(--download1); /* Dark background for content */
    padding: 20px;
    min-height: 120px;
    border-radius: 8px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    min-width: 600px;
    text-align: left;
    border-left: 5px solid var(--text-color); 
    display: flex; /* Aligns content vertically */
    flex-direction: column;
    justify-content: center;
}
.timeline-content:hover{
    z-index: 2;
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0px 12px 30px var(--shadow-color);
}
.timeline-content h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-color); /* Softer text color */
}

.timeline-content p {
    font-size: 16px;
    color: var(--text-color); /* Light text */
}

.timeline-date {
    font-size: 14px;
    color: var(--text-color); /* Date color */
    margin-bottom: 10px;
    font-weight: bold;
}




/* ************************************************************************************************************************ */
/* ***********************************PROJECT SECTION ******************************************************** */
.projects-section {
    position: relative;
    padding: 10px 20px;
    overflow: hidden;
    min-height: 100vh;
    display: flex; /* Enables flexbox */
    flex-direction: column; /* Align items vertically */
    align-items: center; /* Centers content horizontally */
    justify-content: center; /* Centers content vertically */
    text-align: center;
}

.project-container {
    display: flex;
    flex-direction: column;
    gap: 100px;
    position: relative;
}

.project-card {
    position: relative;
    width: 80%;
    max-width: 800px;
    margin: 0 auto;
    background: var(--download1);
    border-radius: 20px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.6);
    padding: 30px;
    transition: transform 0.5s ease, box-shadow 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
}

.project-card:nth-child(1) {
    transform: translateY(0);
}

.project-card:nth-child(2) {
    transform: translateY(-40px);
}

.project-card:nth-child(3) {
    transform: translateY(-80px);
}

/* Hover Effects */
.project-card:hover {
    z-index: 2;
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0px 12px 30px var(--shadow-color);
}

.project-content {
    flex: 1;
    color: #F4EDE0;
    text-align: left;
}

.project-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.project-content p {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.project-metrics {
    display: flex;
    gap: 40px;
    margin-bottom: 20px;
}

.project-metrics div {
    text-align: center;
}

.project-metrics strong {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.8);
}

.project-metrics p {
    font-size: 20px;
    font-weight: bold;
    color: var(--white-color);
}

.project-image {
    flex: 0.5;
    padding-left: 20px;
}

.project-image img {
    width: 100%;
    border-radius: 15px;
    object-fit: cover;
}
.view-case-study {
    text-decoration: none;
    color: var(--text-color);
    background-color: var(--download1); /* Dark background */
    border: 2px solid var(--text-color); /* Light border */
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Space between icon and text */
    transition: all 0.8s ease;
}

.view-case-study:hover {
    background-color: var(--downloadhover); /* Hover color */
    color: var(--background-color); /* Text color on hover */
    text-shadow: 0 0 10px var(--download1);
    
}
/* ********************************************************************************************************************** */
/* ***********************************SKILL SECTION***************************************************** */
.skillsSection {
    padding: 70px 20px; /* Increase padding for more spacing */
    color: var(--white-color);
    text-align: center;
}

.skillsSection h1 {
    font-size: 48px; /* Increase heading size */
    margin-bottom: 40px; /* Add more space below the heading */
    color: var(--white-color);
    text-shadow: 0 0 15px var(--shadow-color); /* Glow effect */
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px; /* Increase spacing between skill items */
    justify-content: center;
    margin-top: 20px;
}

.skill-item img,
.skill-item i {
    width: 50px; /* Increase icon size */
    height: 50px;
    object-fit: contain;
    font-size: 35px;
    align-items: center; /* Vertically center */
    justify-content: center;
    display: flex;
    
}

.skill-item {
    background: var(--skill-color);
    border: 2px solid #444;
    border-radius: 30px; /* Slightly larger border radius */
    padding: 25px 40px; /* Increase padding for bigger buttons */
    font-size: 29px; /* Increase font size */
    color: var(--white-color);
    transition: all 0.3s ease;
    display: flex;
    align-items: center; /* Vertically center */
    justify-content: center; /* Horizontally center */
    gap: 10px; /* Space between icon and text */
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2); /* Add a subtle shadow */
}

.skill-item:hover {
    color: var(--shadow-color);
    border-color: var(--shadow-color);
    transform: scale(1.1); /* Add a hover effect to enlarge */
    box-shadow: 0px 12px 30px rgba(255, 215, 0, 0.3); /* Add a glow effect */
}

/* ******************************************************************************************* */
/* *********************************************GET IN TOUCH*********************************************************** */


.contact-section {
    padding: 80px 20px;
    color: var(--text-color);
    text-align: center;

}

.section-title {
    font-size: 48px; /* Increase heading size */
    margin-bottom: 40px; /* Add more space below the heading */
    color: var(--white-color);
    text-shadow: 0 0 15px var(--shadow-color);/* Yellow glow effect */
}

.contact-form {
    max-width: 400px;
    min-height: 400px;
    margin: 0 auto;
    padding: 30px;
    background: var(--black-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.5);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 24px;
    margin-bottom: 0px;
    color: var(--name-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    font-size:16px;
    color: var(--white-color);
    background: var(--form-background);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--message-color);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--shadow-color); /* Yellow border on focus */
    box-shadow: 0px 0px 5px var(--name-color); /* Yellow glow */
}

.btn.submit-btn {
    background: var(--sendmessage-color); /* Yellow button background */
    color: var(--black-color); /* Black text */
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn.submit-btn:hover {
    background: var(--shadow-color); /* Slightly darker yellow on hover */
    transform: scale(1.05);
}

.btn.submit-btn i {
    font-size: 16px;
}

/* *************************************************************************************************************************************** */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 100px;
    background: var(--navbar-color); /* Black background */
    color: var(--text-color); /* White text */
    font-size: 16px;
    position: relative; /* Ensure it stays at the bottom of the content */
    width: 100%; /* Ensure it spans the width */
    box-sizing: border-box;
    position: absolute;
    bottom: 0;
    width: 100%;

    /* Set the fixed height of the footer here */
    height: 60px;
    
}

.footer-left {
    
    color: var(--text-color); /* Slightly faded text */
}

.footer-right a {
    margin-left: 20px;
    color: var(--text-color);
    text-decoration: none;
    
    transition: color 0.3s ease;
}

.footer-right a:hover {
    color: var(--name-color); /* Change color on hover */
}


.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-size: 20px;
    font-weight: bold;
    padding: 0 80px;
}

.custom-logo {
    width: 40px; 
    height: 40px; 
    object-fit: contain; 
    margin-right: 10px; 
    border-radius: 50%; 
    box-shadow: 0 4px 4px #9e8720; 
}
.logo:hover i {
    transform: rotate(360deg); /* Rotate effect on hover */
    color: var(--downloadhover); /* Hover color */
}

