*{
margin: 0;
padding: 0;
font-family:"Inter", sans-serif;
box-sizing: border-box;
text-decoration: none;
scroll-behavior: smooth;


}
:root {
    --background-color: #080808;
    --second-bg-color: #101010;
    --text-color: white;
    --main-color: orange;
    --timeline-gap: 60px;

}
html{
    font-size: 60%;
    overflow-x: hidden;
}

body{
background:var(--background-color);

color: var(--text-color)

}
.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 4rem 15%;
    background: rgb(0, 0,0 ,0.3);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    white-space: nowrap;
    text-wrap:nowrap;


}
#menu-icon{
    font-size: 3.5rem;
    color:var(--main-color);
    display: none;
}
.logo{ 
font-size: 3rem;
color: var(--text-color);
font-weight: 800;
cursor: pointer;
transition: 0.3s ease-in-out;
/* position: sticky;
left: auto;*/

}
.logo:hover{
transform: scale(1.1);
}

span {
    background: linear-gradient(
        270deg,
        #DF8908 10%,
        #ff1d15 100%
    );
    /* These are crucial for applying background gradient to text */
    -webkit-background-clip: text; /* Clips the background to the shape of the text */
    -webkit-text-fill-color: transparent; /* Makes the text color transparent so the background shows through */
    background-clip: text; /* Standard property */
    color: transparent; /* Fallback for browsers that don't fully support background-clip: text */
}

.navbar a{
    font-size: 1.8rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease-in-out;
    border-bottom: 3px solid transparent;

}
.navbar a:hover{

    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}

.gradient-btn{
    font-size: 1.8rem;
    padding: 1rem 2rem;
    border-radius: 3rem;
    background: linear-gradient(270deg,#DF8908 10%,
        #ff1d15 100% );
        letter-spacing: 1px;
        cursor: pointer;
        transition: 0.3s ease-in-out;
        color: white;
        border: none;
        text-wrap: nowrap;

}
.gradient-btn:hover{
    transform: scale(1.05)

}
section{
    min-height: 100vh;
    padding: 10rem 15%;


}
.Home{
    display: flex;
    align-items: center;
    justify-content:center ;
    gap:15rem;
    flex-wrap: wrap;
    
    gap: 5rem;
    padding-top: 15rem;
    min-height: 100vh;
}

.home-content{
   /* display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: left; */
    flex: 1 1 50%; /* Allows home-content to grow, shrink, and take up roughly 50% of the space */
    max-width: 600px; /* Limit max width for better readability on very wide screens */
    text-align: left; /* Ensure text inside is left-aligned */
    order: 1; /* Default order for text content */
}

.home-content h1{
    font-size: 8rem;
    font-weight: 700;
    margin-top: 1.5rem;
    line-height: 1;
   
}
.home-content h3{
    margin: 1rem 0;
    font-size: 4rem;
}
.home-content p{
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.8;
    margin-bottom: 2rem;
}
.home-img {
    flex: 1 1 40%; /* Allows home-img to grow, shrink, and take up roughly 40% of the space */
    display: flex; /* Use flex to center the image within its container */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    order: 2; /* Default order for image */
}

.home-img img{
   /* width: 32vw;
    border-radius: 8%;
    box-shadow: 0 0 25px var(--main-color);
    transition: 0.4s ease-in-out;*/
    max-width: 100%; /* Ensure image doesn't overflow its container */
    width: clamp(250px, 35vw, 450px); /* Responsive width: min 250px, ideal 35vw, max 450px */
    height: auto; /* Maintain aspect ratio */
    border-radius: 8%;
    box-shadow: 0 0 25px var(--main-color);
    transition: 0.4s ease-in-out;

}
.home-img img:hover{
     box-shadow: 0 0 25px var(--main-color),  0 0 50px var(--main-color), 0 0 100px var(--main-color)


}

.social-icons a{

    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    padding: 1rem;
    background: transparent;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    color: var(--main-color);
    margin: 3rem 0.5rem;
    transition: 0.3s ease-in-out;
}

.social-icons a:hover{
    color: var(--text-color);
    background-color: var(--main-color);
    transform: scale(1.2)translateY(-5px);
    box-shadow: 0 0 25px var(--main-color);
    


}

.Experience {
    background-color: var(--second-bg-color);
    padding: 10rem 15%;
}

.Experience-Title {
    text-align: center;
    font-size: 6rem;
    margin-bottom: 5rem;
    color: var(--text-color);
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 100%;
    background: rgb(229, 229, 229);
    top: 0;
    left: 50%;
    margin-left: -4px;
    z-index: 0; /* Changed z-index to 0 to be below content but above background */
    animation: moveline 2.5s linear forwards;
}

@keyframes moveline {
    0% { height: 0; }
    100% { height: 100%; }
}

.container {
    padding: 20px 0;
    position: relative;
    width: 50%;
    background-color: transparent;
    animation: movedown 1s linear forwards;
    opacity: 0;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    min-height: 150px;
}

@keyframes movedown {
    0% { opacity: 0; transform: translateY(-30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Animation delays */
.container:nth-child(1) { animation-delay: 0s; }
.container:nth-child(2) { animation-delay: 1s; }
.container:nth-child(3) { animation-delay: 1.4s; }
.container:nth-child(4) { animation-delay: 1.9s; }

/* Spacing from the center line */
.left-container {
    left: 0;
    justify-content: flex-end;
    padding-right: var(--timeline-gap);
}

.right-container {
    left: 50%;
    justify-content: flex-start;
    padding-left: var(--timeline-gap);
}

.timeline-img {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    z-index: 10;
    top: 50%;
    transform: translateY(-50%);
    border: 3px solid var(--main-color);
    object-fit: cover;
    background-color: var(--background-color);
}

.left-container .timeline-img {
    right: calc(var(--timeline-gap) - 25px); /* Adjusted to align with the gap */
    right: -25px; /* Half of image width to center on line */
}

.right-container .timeline-img {
    left: -25px; /* Half of image width to center on line */
}

.text-box {
    padding: 20px 30px;
    background: var(--main-color);
    position: relative;
    border-radius: 6px;
    font-size: 15px;
    flex-grow: 1;
    color: var(--background-color);
    /* No need for this max-width if flexbox is used correctly.
       Let the flex-grow property handle the sizing. */
}

.text-box h2 {
    font-weight: 600;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.text-box small {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: rgba(0, 0, 0, 0.7);
}

.text-box p {
    font-size: 1.5rem;
    line-height: 1.6;
}

/* Arrows are positioned relative to the text-box, not the container */
.text-box::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  z-index: 1;
}

.left-container .text-box::after {
  right: -15px;
  border-left: 15px solid var(--main-color);
}

.right-container .text-box::after {
  left: -15px;
  border-right: 15px solid var(--main-color);
}

/* Remove old arrow classes */
.left-container-arrow, .right-container-arrow {
  display: none;
}


/* Media Queries for Responsiveness */
@media screen and (max-width: 600px) {
    .timeline::after {
        left: 20px; /* Move the timeline to the left */
        margin-left: 0;
    }

    .container {
        width: 100%; /* Full width for containers */
        padding-left: 50px; /* Create space for the line */
        padding-right: 20px;
        left: 0; /* Ensure it's on the left */
        justify-content: flex-start;
    }

    .right-container {
        left: 0;
    }

    .left-container, .right-container {
        padding-right: 0; /* Remove right padding for left container */
        padding-left: 50px;
    }

    .left-container .timeline-img {
        left: 0px;
        right: auto;
    }
    
    .right-container .timeline-img {
        left: 0px;
    }

    .text-box {
        max-width: none;
    }

    .left-container-arrow, .right-container-arrow {
      display: none; /* Hide old arrows */
    }

    .text-box::after {
      border-right: 15px solid var(--main-color);
      border-left: 0;
      left: -15px; /* All arrows point left to the line */
      right: auto;
    }
}


/* old code - but timeline is not showing up still 

.timeline{
    position: relative;
    max-width: 1200px;
    margin: 100px auto;

} 
.container{
padding: 10px 50px;
position: relative;
width: 50%;
animation: movedown 1s linear forwards;
opacity: 0;



}



@keyframes movedown{
    0%{
        opacity: 1;
        transform: translateY(-30px);

    }
    100%{
        opacity: 1;
        transform: translateY(0);
        
    }


}

.container:nth-child(1){
    animation-delay:0s;

}

.container:nth-child(2){
    animation-delay:1s;
    
}

.container:nth-child(3){
    animation-delay:1.4s;
    
}

.container:nth-child(4){
    animation-delay:1.9s;
    
}

/* will need to build in phone functionaluty for time line and anumations above 


.text-box{
    padding: 20px 30px;
    background: var(--main-color);
    position: relative;
    border-radius: 6px;
    font-size: 15px;


}
.left-container{
    left: 0;

}
.right-container{
   left:50%
}

.container img{

    position: fixed;
    width: 50px;
    border-radius:55%;
    right: -20px;
    top: 32px;
    z-index: 10;

}

.right-container img{
    left: -20px;

}


    

.timeline::after{
    content: '';
    position: absolute;
    width: 8px;
    height:100%;
    background: rgb(229, 229, 229);
    top: 0;
    left:50%;
    margin-left: -3px;
    z-index: -1;
    animation: moveline 2.5s linear forwards;
}

@keyframes moveline{
    0%{
        height: 0;
    }
    100%{
        height: 100%;
    }
    

}

.text-box h2{
    font-weight: 600;;

}
.text-box small{
    display: inline-block;
    margin-bottom: 15px;
}

.left-container-arrow{
    height: 0;
    width:0;
    position: absolute;
    top:28px;
    z-index: 1;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 15px solid var(--main-color);
    right: -10px;


}

.right-container-arrow{
    height: 0;
    width:0;
    position: absolute;
    top:28px;
    z-index: 1;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 15px solid var(--main-color);
    left: -10px;


}
    */

.Projects{
    background-color: var(--background-color);
    padding: 10rem 15%; /* Added padding for consistency */
}
.heading{
    text-align: center;
    font-size: 6rem; /* Made heading larger for prominence */
    margin-bottom: 5rem; /* Space below heading */
    color: var(--text-color); /* Ensure heading color is visible */
    
}

.projects-box{
    display: grid;
     /* MODIFIED: Forces two equal columns on larger screens */
    grid-template-columns: repeat(2, 1fr);
    place-items: center; /* Centers grid items both horizontally and vertically within their cells */
    gap: 3rem; /* Space between grid items (columns) */
    row-gap: 5rem; /* Space between grid rows */
    max-width: 1200px; /* Limit max width of the grid for better layout on large screens */
    margin: 0 auto; /* Center the grid container itself */
}

.project-card{
    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--background-color);
    border: 2px solid var(--main-color);
    border-radius:3rem;
    gap: 2rem;
    padding: 3rem 1.5rem; /* MODIFIED: Reduced padding to make cards smaller */
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 0 5px var(--main-color);
    transition: 0.3s ease;
    min-height: 400px; /* MODIFIED: Reduced min-height to make cards smaller */
    max-width: 450px; /* MODIFIED: Added max-width to control card size on large screens */

}

.project-card:hover{
box-shadow: 0 0 25px var(--main-color),  0 0 50px var(--main-color);
transform: scale(1.02);

}

.project-card img{

    max-width: 100%; /* Ensure image scales within its card */
    width: 350px; /* MODIFIED: Increased width for larger images */
    height: 250px; /* MODIFIED: Increased height for larger images */
    border-radius: 2em;
    object-fit: cover; /* Ensures image covers the area without distortion */
}

.project-card h3 {
    font-size: 3rem;
    margin-top: 1rem; /* Added margin for spacing */
}

.project-card p { /* Corrected from .project-cardp */
    font-size: 1.6rem;
    margin-bottom: 2rem; /* Added margin for spacing before button */
}

.btn{
    font-size: 1.8rem;
    padding: 1rem 2rem;
    border-radius: 3rem;
    background: linear-gradient(270deg,#DF8908 10%,
        #ff1d15 100% );
        letter-spacing: 1px;
        cursor: pointer;
        transition: 0.3s ease-in-out;
        color: white;
        border: none;
        text-wrap: nowrap;

}
.btn:hover{
    transform: scale(1.05)
}



/*


.Contact{
    background-color: var(--background-color);


}

.Contact h2{
    display: flex;
    flex-direction: row;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.Contact form{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin: 5rem 0;
    text-align: center;


}

.Contact form .input-box input,
.Contact form textarea{
    align-items: left;
    width: 100%;
    padding: 1.8rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background-color: var(--background-color);
    border-radius: 2rem;
    border: 2px solid var(--main-color);
    margin: 1.5rem 0;
    resize: none;
}


*/

.Contact {
    background-color: var(--second-bg-color);
    padding: 5rem 15%;
    margin-bottom: 9rem;
}

.contact-content-wrapper {
    display: flex;
    flex-direction: row; /* This ensures side-by-side layout on larger screens */
    flex-wrap: wrap; /* Allows wrapping to column on smaller screens */
    gap: 8rem;
    justify-content: center;
    align-items: flex-start; /* Aligns items to the top of the flex container */
    width: 100%;
    max-width: 1200px;
    margin-top: 3rem;
}

.sub-heading {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.contact-left,
.contact-right {
    flex: 1 1 45%; /* Each column takes roughly 45% of the space, allowing for gap */
    max-width: 550px; /* Limits the maximum width of each box */
    padding: 3rem;
    background-color: var(--second-bg-color);
    border-radius: 2rem;
    border: 2px solid var(--main-color);
    box-shadow: 0 0 15px var(--main-color);
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers content horizontally within each box */
    text-align: center; /* Centers text within each box */
    cursor: pointer;
    transition: 0.3s ease-in-out;

}



.contact-form {
    width: 100%;
    max-width: 500px;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-form .input-group {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1.5rem;
    background-color: var(--background-color);
    border: 2px solid var(--main-color);
    border-radius: 1rem;
    font-size: 1.6rem;
    color: var(--text-color);
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    
}



.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 10px var(--main-color);
}


.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}




.contact-form .send-message-btn {
    width: fit-content;
    margin: 0 auto;
    padding: 1.5rem 4rem;
    font-size: 2rem;
    border-radius: 4rem;
}

.contact-info-details {
    width: 100%;
    margin-top: 2rem;
    text-align: center;
}

.contact-info-details p {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.contact-info-details p i {
    font-size: 2.5rem;
    color: var(--main-color);
}

.contact-info-details .contact-description {
    font-size: 1.6rem;
    line-height: 1.8;
    margin-top: 2.5rem;
    margin-bottom: 3rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}
.contact-link{
    color: white;
}

.footer {
    background-color: var(--background-color);
    padding: 50px 0;
    display: flex; /* Make footer a flex container */
    flex-direction: column; /* Stack children vertically */
    align-items: center; /* Center children horizontally */
    justify-content: center; /* Center children vertically */
    gap: 20px; /* Add some space between footer elements */
}

.footer .social-icons { /* Corrected selector: target .social-icons inside .footer */
    text-align: center; /* This will center inline/inline-block children */
    width: 100%; /* Ensure it takes full width to apply text-align */
    display: flex; /* Ensure it's a flex container */
    justify-content: center; /* Center the icons themselves */
    margin-bottom: 10px; /* Add some space below icons */
}

.footer ul {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 10px; /* Add some space below list */
}

.footer ul li {
    display: inline-block;
    margin: 0 10px; /* Adjusted margin for better spacing */
}

.footer ul li a {
    color: white;
    border-bottom: 3px solid transparent;
    transition: 0.3s ease-in-out;
}

footer ul li a:hover {
    border-bottom: 3px solid var(--main-color);
}

.footer .copyright {
    text-align: center;
    margin-top: 0; /* Removed redundant margin-top as gap handles spacing */
    font-size: 16px;
}



@media(max-width:1258px){
    #menu-icon{
        display: block;

    }
    .navbar{
        position: absolute;
        top: 100%;
        right: 0;
        width: 50%;
        padding: 1rem 3rem;
        background: rgba(0,0,0,0.8);
        border-bottom-left-radius: 2rem;
        border-left: 2px solid var(--main-color);
        border-bottom: 2px solid var(--main-color);
        display: none;
    }

    .navbar a{
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
        color: var(--text-color);
    }
    .navbar.active{
        display: block;
    }
    .gradient-btn{
        display: none ;
    }
    .home{
        flex-direction: column-reverse;
        margin: 5rem 0;
        gap: 5rem;
    }
    .home-content{
        align-items: center;
        text-align: center;
    }
    .home-img img{
        width: 56vw;
    }
    .about{
        flex-direction: column-reverse;
        text-align: center;
    }
    .about h2{
        text-align: center;
        margin: 2rem 0;
    }
    .about img{
        width: 52vw;
    }

    .contact form{
        flex-direction: column;

    }

    }







































