/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: Apercu, "Source Sans Pro", system, system-ui, -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
}





.html {

    scroll-behavior: smooth;
    scroll-padding-top: 100px;
   
    
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(to right, #333, #555);
    /* Gradient background */
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Vertically center items */
    padding: 15px 30px;
    /* Increase padding for a more spacious look */
    z-index: 100;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* Add a stronger shadow for depth */
}


nav {
    display: flex;
    flex: 1;
    margin: 0;
    padding: 0;
    flex: 1;
    /* Allow ul to grow and take available space */
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 20px;
    /* Increase font size for better readability */
    font-weight: 600;
    /* Use a slightly bolder font */
    padding: 10px 20px;
    /* Adjust padding for better click area */
    border-radius: 6px;
    /* More rounded corners */
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    /* Add transform transition */
}

nav ul li a:hover {
    background-color: #FF6347;
    /* Tomato color */
    color: #fff;
    transform: scale(1.05);
    /* Slightly enlarge the link on hover */
}

nav ul li a.active {
    background-color: #FF6347;
    /* Tomato color for active links */
    color: #fff;
    font-weight: 700;
    /* Bolder text for active link */
}

/* Button Styles */
.btn {
    background-color: #ff9800;
    /* Button color */
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-left: auto;
    /* Push the button to the right */
}


.btn:hover {
    background-color: #e68900;
    /* Darker orange on hover */
    transform: scale(1.05);
    /* Slightly enlarge the button on hover */
}

/* Full-Page Section */
.full-page {
    display: flex;
    align-items: center;
    height: 100vh;
}

#about {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;    
    padding-left:100px;
    padding-right:100px;
    padding-top: 100px;
    padding-bottom: 50px;
    height:auto;
    background-color: white;
    border-top: 5px solid #ff9800;      
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100vw; /* Full width of the viewport */
    height: 100vh;
}

/* Align text to the left */
.left {
    flex: 1;
    text-align: left;
    
    /* Align text to the left */
    /* Add some padding to the right */
}

.left .typewriter {
    font-size: 50px;
    color: #333;
    width: auto;
}

.left .name {
    font-size: 40px;
    margin-top: 40px;
    color: #333;
}

.left .highlight {
    font-size: 20px;
    color: #666;
}
.right {
    max-width: 400px !important;
    height:auto;

}



/* Align image to the right */
.right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.right img {
    width: 100%;
    max-width: 450px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.connect {
    font-size: 20px;
    margin-top: 40px;
}

.plain-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    position: relative;

}
.connect .plain-link:hover {
    color: #0056b3; /* Darker blue on hover */
    text-decoration: underline; /* Adds underline on hover */
    text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2); /* Adds shadow effect */
}



.highlight-name {
    font-weight: bold;
    /* Makes the text bold */
    padding: 2px 4px;
    /* Adds some padding around the text */
    border-radius: 1px;
    color: #ff9800;
    /* Optional: adds rounded corners */
}

.project-media {
    width: 800px;
    height: auto;
}







.right img:hover {
    transform: scale(1.05);
    /* Slightly enlarge the image on hover */
}

/* Projects Section */
#projects {
    display: flex;
    flex-direction: column;
    background-color: white;
    padding: 90px 0 300px;
    height: auto;
    border-top: 5px solid #ff9800;
    /* Add a decorative top border */
    border-bottom: 5px solid #ff9800;
}



#projects h2 {
    text-align: center;
    color: #333;
    font-size: 2.5rem;
    /* Increased font size for section heading */
    margin-bottom: 20px;
}

#projects h2::after {
    content: '';
    display: block;
    height: 4px;
    width: 150px;
    background-color: #f5a623;
    margin: 10px auto 0;
    border-radius: 2px;
}

.project-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Subtle shadow */
    margin: 20px auto;
    padding: 20px;
    max-width: 600px;
    /* Constrain the width of the cards */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    /* Lift the card on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    /* Enhance shadow on hover */
}

.project-card p {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
}

.project-card a {
    display: inline-block;
    margin-top: 10px;
    color: white;
    /* Button color */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

/* Optional: Prevent background scroll when modal is open */
.shifted {
    overflow: hidden;
}

.project-card a:hover {
    color: #e68900;
    /* Darker orange on hover */
}


table {
    width: 90%;
    max-width: 1200px;
    border-collapse: collapse;
    margin: 20px auto;
    justify-content: center;
}

table,
th,
td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

th {
    background-color: #333;
    color: white;
}

/* Modal Styles */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1000;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.7);
    /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    /* Could be more or less, depending on screen size */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#projectModal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1000;
    /* Above other elements */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    /* Semi-transparent black background */
    overflow: auto;
}

/* Modal Content */
#modalDetails {
    position: relative;
    background-color: #ffffff;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 900px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

/* Headings and Paragraphs */
#modalDetails h3 {
    font-size: 1.8em;
    color: #333;
    text-align: center;
    margin-bottom: 10px;
}

#modalDetails p {
    font-size: 1em;
    color: #666;
    line-height: 1.6;
    margin: 20px 0;
}

/* Styling for the Video Containers */
.video-container {
    text-align: center;
    margin: 20px 0;
}

.video-container h2 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 10px;
}

.video-container video {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    margin-top: 15px;
}




/* Contact Section */
/* About Me Section */
#about-me {
    background-color: white;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-top: 5px solid #ff9800;  
}

.about-container {
    max-width: 800px;
    align-items: center;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    transition: transform 0.3s;
}
.about-container:hover {
    transform: scale(1.02);
  }

.about-details {
    padding: 1rem;
}

#about-me h2 {
    text-align: center;
    color: #333;
    font-size: 2.5rem;
    /* Increased font size for section heading */
    margin-bottom: 30px;
}

#about-me h2::after {
    content: '';
    display: block;
    height: 4px;
    width: 15%;
    background-color: #f5a623;
    margin: 10px auto 0;
    border-radius: 2px;
}

.about-details p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1.5rem;
}

/* Skills Categories */
.skills-category {
    margin-bottom: 1.5rem;
}

.skills-category h4 {
    font-size: 1.5rem;
    color: #ff9800;
    margin-bottom: 0.5rem;
}

.skills {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}
#about-me h3 {
    text-align: center;
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1.5rem;
    color: #e68900;
}
#about-me h3::after{
    content: '';
    display: block;
    height: 4px;
    width: 5%;
    background-color: #f5a623;
    margin: 10px auto 0;
    border-radius: 1.5px;

}



.skills li {
    background-color: #ff9800;
    color: white;
    margin: 5px;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.skills li:hover {
    background-color: #744d14;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 0;
}

.skill-category h4 {
  color: #ff9800;
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 1.3rem;
  border-bottom: 2px solid #ff9800;
  padding-bottom: 4px;
}

.skill-category ul {
  list-style: none;
  padding-left: 0;
}

.skill-category ul li {
  background-color: #f57c00;
  color: white;
  margin-bottom: 8px;
  padding: 8px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 1rem;
  display: inline-block;
  box-shadow: 0 3px 8px rgba(245, 124, 0, 0.5);
  transition: background-color 0.3s ease;
}

.skill-category ul li:hover {
  background-color: #ffb74d;
  cursor: default;
}


/* Footer Styles */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
    position: fixed;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.2);
    /* Subtle shadow */
}
.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  padding: 10px 5px;
}

.skills-cloud span {
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
  color: white;
  padding: 12px 18px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.5);
  cursor: pointer;
  user-select: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  white-space: nowrap;
}

.skills-cloud span:hover {
  transform: scale(1.15) rotate(-3deg);
  box-shadow: 0 8px 20px rgba(255, 152, 0, 0.8);
  background: linear-gradient(135deg, #f57c00 0%, #ffb74d 100%);
}


footer .icon {
    color: white;
    font-size: 24px;
    margin: 0 10px;
    transition: color 0.3s ease;
}

footer .icon:hover {
    color: #f39c12;
}

footer p {
    margin-top: 10px;
    font-size: 14px;
}

.hamburger {
    display: none;
}

.media-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.view-new-tab {
    text-align: center;
    margin-top: 10px;
}

.view-new-tab a {
    display: inline-block;
    padding: 10px 20px;
    /* Add padding for the box effect */
    background-color: #007bff;
    /* Background color */
    color: #ffffff;
    /* Text color */
    border-radius: 5px;
    /* Rounded corners */
    font-weight: bold;
    text-decoration: none;
    /* Remove underline */
    transition: background-color 0.3s;
    /* Smooth transition for hover effect */
}

.view-new-tab a:hover {
    background-color: #0056b3;
    /* Darker shade on hover */
}


@media (max-width: 1500px) {
    

    .project-media {
        width: 800px;
        height: auto;
    }




}



@media (max-width: 1200px) {
    
    .project-media {
        width: 500px;
        height: auto;

    }




}

@media (max-width: 1024px) {
    #about-me h2{
        font-size: 2.0rem;
    }
    .about-details p {
        font-size: 1.1rem;
    }
    #about-me h3 {
        font-size: 1.4rem;

    }
    .skills-category h4 {
        font-size: 1.4rem;
    }
    .skills li {
        border-radius: 15px;
        font-size: small;
    }
    #projects h2 {
        font-size: 2.0rem;
    }
    .project-card p{
        font-size: 1.0rem;
    }
    

    .left .name {
        font-size: 20px;
        margin-top: 40px;
        color: #333;
    }

    .left .highlight {
        font-size: 20px;
        color: #666;
    }

    .connect {
        font-size: 15px;
    }
    .right img{
        width:350px;
    }


}

@media (max-width: 824px) {

    .left .name {
        font-size: 40px;
        margin-top: 40px;
        color: #333;
    }

    .left .highlight {
        font-size: 20px;
        color: #666;
    }

    .connect {
        font-size: 20px;
    }

    #about {
        display: flex;
        flex-direction: column !important;
    }




    .right img {
        width: 200px;
        align-items: center;
        display: block;

    }


}

/* Responsive Design */
@media (max-width: 768px) {
    .left{
        padding-bottom:20px;
    }
    
   

    .left .name {
        font-size: 35px;
        margin-top: 40px;
        color: #333;
    }

    .left .highlight {
        font-size: 15px;
        color: #666;
    }

    .connect {
        font-size: 15px;
    }

    .right img {
        width: 200px;
    }
    .right{
        padding-bottom:20px ;
    }

    #about {
        display: flex;
        flex-direction: column !important;
    }
    
    .contact-container {
        flex-direction: column;
        /* Stack form and box vertically on smaller screens */
        align-items: center;
    }

    form {
        width: 100%;
        margin-right: 0;
        /* Remove margin on small screens */
        margin-bottom: 2rem;
        /* Add space below form */
    }

    .contact-box {
        width: 100%;
        margin-bottom: 2rem;
        /* Space between contact box and form on small screens */
    }

    nav ul {
        display: none;
        overflow-x: auto; 
        flex-direction: row;
        /* Hide the nav links */
        position: absolute;
        top: 60px;
        /* Adjust top based on your header height */
        right: 0;
        width: 100%;
        height: 50px;
        background-color: #333;
    }

    .hamburger {
        display: block;
        cursor: pointer;
        font-size: 28px;
        color: white;
    }

    nav ul.show {
        display: flex;
        justify-content: space-between;
    }

    .project-media {
        width: 300px;
        height: auto;

    }
    nav ul li{
        padding-top: 10px;
        margin: 0px !important;
        width:auto !important;
        white-space: nowrap; 
    }
    nav ul a{
        font-size: medium !important;
        font-weight: 600 !important;
    }



}

@media (max-width:545px) {
    .left {
        position: absolute; /* Establish a positioning context */
        
        top: 50%; /* Move the element's top edge to the center */
        left: 50%; /* Move the element's left edge to the center */
        transform: translate(-50%, -50%);
      }
    
    .project-media {
        width: 200px;
        height: auto;

    }
    .right img{
        display: none;
    }
    .right{
        display: none;
        
    }
    #modalDetails h3 {
        font-size: 1em;
    }
    #modalDetails p {
        font-size: 0.8em;
    }
    #projects h2 {
        font-size: 2.0rcapem;
    }
    #about-me h2 {
        font-size: 2.0rem;
    }
    #projects h2::after {
        width: 70px;
    }
    
}

@media(max-height:600px){
    .left .name {
        font-size: 40px;
        margin-top: 40px;
        color: #333;
    }

    .left .highlight {
        font-size: 20px;
        color: #666;
    }
    .right {
        max-width: 400px !important;
        height:auto;

    }

}

@media(max-width:300px){
    #about{
        display: flex;
        justify-content: center;
        align-items: center;
    }
    body {
        min-width: 300px;  
        overflow-x: hidden;  
    }
    
}