@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

html {
    font-size: 62.5%;
}


/* Hamburger styling */
.hamburger {
    display: none; /* Hidden by default on larger screens */
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
  }
  
  /* Show hamburger and adjust nav in mobile view */
  @media (max-width: 995px) {
    .hamburger {
      display: block;
    }
    
    nav {
      /* nav is hidden by default in mobile view per your existing styles */
      position: absolute;
      display: none;
      top: 0;
      right: 0;
      width: 40%;
      border-left: 3px solid #b74b4b;
      border-bottom: 3px solid #b74b4b;
      border-bottom-left-radius: 2rem;
      padding: 1rem;
      background-color: #161616;
      border-top: 0.1rem solid rgba(0,0,0,0.1);
    }
    
    nav.active {
      display: block;
    }
    
    nav a {
      display: block;
      font-size: 2rem;
      margin: 3rem 0;
    }
    
    nav a:hover,
    nav a.active {
      padding: 1rem;
      border-radius: 0.5rem;
      border-bottom: 0.5rem solid #b74b4b;
    }
  }
/* Arrow Animation */
/* Arrow Animation */
.arrow {
    margin: 0;
    padding: 0;
    background: #000;
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

.arrow span {
    display: block;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
    margin: -10px;
    animation: animate 2s infinite;
}

.arrow span:nth-child(1) {
    animation-delay: -0.2s;
}

.arrow span:nth-child(2) {
    animation-delay: -0.4s;
}

/* Media Query for Landscape Mode */
@media (max-width: 768px) and (orientation: landscape) {
    .arrow {
        top: 160%; /* Adjust position for landscape */
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

/* Media Query for Portrait Mode */
@media (max-width: 600px) and (orientation: portrait) {
    .arrow {
        top: 103%; /* Adjust position for portrait */
        left: 50%;
        transform: translate(-50%, -50%);
    }
}
@keyframes animate {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-20px, -20px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(20px, 20px);
    }
}

body {
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
    background-color: black;
    color: white;
}

header {
    margin-top: 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 9%;
    background-color: transparent;
    filter: drop-shadow(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-size: 3rem;
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
}
.logo:hover {
    transform: scale(1.1);
}

nav a {
    font-size: 1.8rem;
    color: white;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}
nav a:hover,
nav a.active {
    color: #00eeff;
    border-bottom: 3px solid #ffffff;
}

/* Existing Mobile Nav (for screens less than 995px) */
@media(max-width: 995px) {
    nav {
        position: absolute;
        display: none;
        top: 0;
        right: 0;
        width: 40%;
        border-left: 3px solid #ffffff;
        border-bottom: 3px solid #ffffff;
        border-bottom-left-radius: 2rem;
        padding: 1rem;
        background-color: #161616;
        border-top: 0.1rem solid rgba(0,0,0,0.1);
    }
    nav.active {
        display: block;
    }
    nav a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }
    nav a:hover,
    nav a.active {
        padding: 1rem;
        border-radius: 0.5rem;
        border-bottom: 0.5rem solid #ffffff;
    }
}

section {
    min-height: 100vh;
    padding: 5rem 9% 5rem;
}

/* About Section */
/* Ensure the layout is centered and responsive */
/* Ensure the layout is centered and responsive */
.about-me {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background-color: rgb(82, 102, 141);
    
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1000px;
    text-align: center;
    justify-content: center;
    
}

/* Increase text size */
.about-text {
    flex: 1 1 100%;
    max-width: 700px;
    padding: 20px;
    font-size: 20px; /* Larger text */
    line-height: 1.6; /* Improves readability */

}

.about-text h1 {
    font-size: 32px; /* Bigger title */
    margin-bottom: 15px;
}

/* Increase image size */
.about-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 700px;
}

.about-images img {
    width: 150px; /* Increased size */
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.about-images img:hover {
    transform: scale(1.1);
}

/* Enlarged image modal */
.enlarged-image img {
    max-width: 95%;
    max-height: 95%;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .about-me {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 40px;
        background-color: rgb(82, 102, 141);
        margin-top: 5%;
    }
    .about-container {
        flex-direction: column;
        align-items: center;
    }
    .about-text {
        font-size: 18px; /* Slightly smaller on mobile */
    }
    .about-text h1 {
        font-size: 28px;
    }
    .about-images img {
        width: 120px; /* Slightly smaller for small screens */
    }
}
/* Enlarged Image Modal */
.enlarged-image {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9); /* Darker background for better contrast */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* The enlarged image */
.enlarged-image img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Close button styled like FLAME CORE page */
.enlarged-image .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    background: transparent;
    border: none;
    font-weight: bold;
    transition: 0.3s ease-in-out;
}

.enlarged-image .close:hover {
    color: red; /* Red hover effect like FLAME CORE */
}
/* Hamburger menu styles */
.hamburger {
    display: none;
    font-size: 26px; /* Larger icon */
    cursor: pointer;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    /* Default state - Menu is hidden */
nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    background: #333;
    width: 120px; /* Slim width */
    text-align: center;
    padding: 5px;
}

/* When menu is active (open) */
nav.active {
    display: flex;
}

/* Landscape Mode - Slim Navigation */
@media (max-width: 768px) and (orientation: landscape) {
    nav {
        width: 120px !important;
        max-height: 55vh;
        overflow-y: auto;
        align-items: center;
    }

    nav a {
        font-size: 14px;
        padding: 4px;
        white-space: nowrap;
    }
}

}


/* Home Section */
.home {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background-color: rgb(82, 102, 141);

}
.home .home-content h1 {
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}
@media (max-width: 768px) {
    .home {
        flex-direction: column;
        gap: 2rem; /* Reduce gap for smaller screens */
    }
    .home .home-content h1 {
        font-size: 3rem; /* Adjust font size for better readability */
    }
}
span {
    color: #000000;
}

/* Project Details */
.project-details {
    text-align: center;
    padding: 40px;
    background-color: rgb(82, 102, 141);
}
.project-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    background-color: rgb(82, 102, 141);
    margin-top: 100px;
}
.video-container iframe {
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
}
.project-summary {
    max-width: 500px;
    text-align: left;
    font-size: 2rem;
    line-height: 1.6;
}
.project-images {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    
}
/* Hover Effect */
.project-images img {
    width: 450px;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}
.project-images img:hover {
    transform: scale(1.1);
}

/* Lightbox Styling */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.5);
}
/* Close Button */
.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}
.lightbox .close:hover {
    color: red;
}
/* Media Query for Mobile Devices */
@media screen and (max-width: 768px) {
    .project-details {
        margin-top: 10%;
        text-align: center;
        padding: 40px;
        background-color: rgb(82, 102, 141);
        font-size: 1.5rem;

    }
    .project-container {
        flex-direction: column;
    }

    .project-summary {
        font-size: 1.6rem;
        max-width: 90%;
    }

    .project-images img {
        width: 90%; /* Make images more responsive */
        max-width: 300px; /* Set a max size */
    }

    .video-container video {
        width: 100%; /* Make the video responsive */
    }

    .project-images {
        flex-direction: column; /* Stack images vertically */
        align-items: center; /* Center images */
        gap: 10px; /* Adjust spacing */
    }
}
/* Email Box */
.email-box {
    display: none;
    position: absolute;
    left: 67%;
    transform: translateX(-50%) translateY(-10px);
    top: 72%;
    background-color: #f8f8f8;
    color: #000000;
    border-radius: 10px;
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    width: 350px;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 1px;
}

/* Portrait Mode */
@media (max-width: 600px) {
    .email-box {
        top: 88%;
        left: 50%;
        width: 80%; /* Makes the email box width more adaptable */
        padding: 15px; /* Adjust padding for smaller screens */
    }
}

/* Landscape Mode */
@media (max-width: 768px) and (orientation: landscape) {
    .email-box {
         top: 140%; /* Adjust position for landscape */
        left: 76%;
        width: 44%; /* Adjust the width to fit better in landscape */
        padding: 20px;
        transform: translateX(-50%) translateY(-10px);
    }
}

.email-box.show {
    opacity: 1;
    transform: translateX(-50%) translateY(10px);
}



/* Experience Section */
.experience {
    text-align: center;
    padding: 5rem 9%;
    background-color: rgb(82, 102, 141);
    min-height: 100vh;
}
.experience h2 {
    font-size: 3.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2rem;
    margin-top: 5%;
}
.experience-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}
.experience-item {
    width: 30%;
    padding: 2rem;
    background-color: #333;
    color: white;
    border-radius: 1rem;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease;
}
.experience-item:hover {
    transform: scale(1.05);
}
.experience-item h3 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.experience-item p {
    font-size: 1.6rem;
    line-height: 1.5;
    color: #bbb;
}

/* Education Section */
.education {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: rgb(82, 102, 141);
    padding: 5rem 9%;
    min-height: 100vh;
}
.education h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    margin-top: 5%;
}
.education-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    max-width: 800px;
}
.education-item {
    background-color: #333;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    width: 100%;
}
.education-item h2 {
    font-size: 3rem;
    font-weight: 600;
    color: #ffcc00;
}
.education-item p {
    font-size: 1.8rem;
    color: white;
}
.course-list {
    list-style: none;
    padding: 0;
    text-align: left;
    font-size: 2rem;
    font-weight: 500;
}
.course-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    color: white;
}
.course-list i {
    font-size: 2.5rem;
    color: #ffcc00;
}

/* Skills Section */
.skills {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    background-color: rgb(82, 102, 141);
    padding: 5rem 9%;
    min-height: 100vh;
}
.skills h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}
.skills-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 2rem;
    font-weight: 500;
    text-align: left;
    max-width: 600px;
}
.skills-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}
.skills-list i {
    font-size: 2.5rem;
    color: #ffcc00;
}

.home-content h3 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}
.home-content p {
    font-size: 1.6rem;
}
.home-img {
    border-radius: 50%;
}
.home-img img {
    position: relative;
    width: 32vw;
    border-radius: 80%;
    box-shadow: 0 0 25px solid #000000;
    cursor: pointer;
    transition: 0.2s linear;
    background: #ffffff00;
}
.home-img img:hover {
    font-size: 1.8rem;
    font-weight: 500;
}
.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color: transparent;
    border: 0.2rem solid #000000;
    font-size: 2rem;
    border-radius: 50%;
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
    color: #000000;
    background-color: #ffffff;
}
.social-icons a:hover {
    color: rgb(255, 255, 255);
    transform: scale(1.3) translateY(-5px);
    background-color: #000000;
    box-shadow: 0 0 25px #ffffff;
}
.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: rgb(255, 255, 255);
    border-radius: 4rem;
    font-size: 1.6rem;
    color: #000000;
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid #000000;
    transition: 0.3s ease;
    cursor: pointer;
}
.btn:hover {
    transform: scale3d(1.03);
    background-color: #000000;
    color: rgb(255, 255, 255);
    box-shadow: 0 0 25px #ffffff;
}

/* Typing Text Animation */
.typing-text {
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}
.typing-text span {
    position: relative;
}
.typing-text span::before {
    content: "Programmer";
    color: #b74b4b;
    animation: words 20s infinite;
}
.typing-text span::after {
    content: "";
    background-color: black;
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid black;
    right: -8px;
    animation: cursor 0.6s infinite;
}
@keyframes cursor {
    to {
        border-left: 3px solid #b74b4b;
    }
}
@keyframes words {
    0%, 20% {
        content: "Student";
    }
    41%, 60% {
        content: "Engineer";
    }
    81%, 100% {
        content: "Programmer";
    }
}

/* Projects Section */
.projects {
    padding-top: 3rem;
    text-align: center;
}
.projects h2 {
    font-size: 3.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2rem;
}
.project-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}
.project-item {
    width: 30%;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease;
    background-color: #333;
    margin-bottom: 2rem;
}
.project-item:hover {
    transform: scale(1.05);
}
.project-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: opacity 0.3s ease;
}
.project-item h3 {
    font-size: 2.2rem;
    font-weight: 600;
    color: white;
    padding: 1rem;
    text-align: center;
    background-color: #ff0000;
    margin-top: -1rem;
    z-index: 1;
}
.project-item a {
    display: block;
}

/* Responsive Mobile Adjustments */
@media (max-width: 768px) {
    html {
        font-size: 55%;
    }
    header {
        padding: 1rem 5%;
    }
    nav {
        width: 70%;
    }
    nav a {
        font-size: 1.5rem;
        margin-left: 1.5rem;
    }
    section {
        padding: 3rem 5%;
    }
    .about-container {
        flex-direction: column;
        margin-top: 0;
    }
    .about-imgleft,
    .about-imgright,
    .about-imgrightb,
    .about-imgright2,
    .about-imgrightb2,
    .about-imgright3,
    .about-imgrightb3 {
        width: 90%;
        margin: 1rem auto;
        position: static;
    }
    .experience-item {
        width: 100%;
        margin-bottom: 2rem;
    }
    .project-item {
        width: 100%;
    }
    .home-content h1 {
        font-size: 4rem;
    }
    .home-content h3 {
        font-size: 3rem;
    }
    .home-content p {
        font-size: 1.4rem;
    }
    .social-icons a {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.8rem;
        margin: 2rem 1rem;
    }
    .education-container {
        max-width: 100%;
    }
    .course-list,
    .skills-list {
        font-size: 1.8rem;
    }
}
