/* Default light mode styles */
body {
    background-color: #fff;
    color: #333;
    font-family: "Kaisei Tokumin", serif;
    transition: all 0.3s ease;
    padding-top: 60px;
    overflow: hidden;
    margin: 0;
}

main {
    padding-top: 60px; /* Adjust depending on the height of your header */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
}

.container {
    text-align: center;
    margin-top: 50px;
}

.parallax-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 300vw; /* Extra width for effect */
    height: 100vh;
    position: relative;
}

/* Remove the default margin and padding */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    overflow-y: hidden;
}

/* Limit image size */
img, iframe {
    max-width: 100%;
    height: auto;
}

/* To prevent content hiding behind the fixed nav */
body {
  padding-top: 80px; /* Adjust based on header height */
}

/* Hide nav by default */
.nav {
  display: none;
  position: fixed;
  top: 60px; /* below hamburger */
  right: 1rem;
  background-color: rgba(0, 0, 0, 0.9);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  padding: 1rem;
  border-radius: 6px;
  z-index: 1000;
  flex-direction: column;
}

.nav.active {
  display: flex;
}

/* Hamburger button */
#hamburger {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1001;
  font-size: 2rem;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#hamburger:hover {
  background-color: rgba(255, 255, 255, 0.1); /* match nav link hover */
  color: #00ffff; /* same accent as link hover */
}

/* Optional: Style nav links vertically */
.nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav li {
  margin-bottom: 0.5rem;
}

.nav a {
  color: white;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  padding: 0.5rem;
  border-radius: 4px;
  display: block; /* ensures the hover area covers the full item */
}

.nav a:hover {
  background-color: rgba(255, 255, 255, 0.1); /* subtle highlight */
  color: #00ffff; /* or any accent color you like */
}

/* Hero Section Styling */
.hero {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    height: 100vh; /* Full viewport height */
    padding: 0 20px;
    overflow: hidden; /* Ensures nothing overflows */
}

.hero-content {
    display: flex;
    flex-direction: row; /* Stack elements vertically */
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-image {
    display: flex;
    justify-content: center;
    width: 100%;
}

.hero-image img {
    max-width: 300px; /* Ensures the image fits within the container */
    height: auto;
    border-radius: 10px;
}

.hero-text {
    display: flex;
    flex-direction: column; /* Stack content vertically */
    justify-content: center; /* Center content vertically */
    align-items: center; /* Center content horizontally */
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
    padding: 25px;
    border-radius: 8px;
    max-width: 80%; /* Adjust text width */
    color: #c3dbe7; /* Light text color */
    margin-top: 20px; /* Space between image and text */
    font-size: 1.15rem;
    line-height: 1.8;
}

.hero-text p {
    line-height: 1.8; /* Adjust this value for desired line spacing */
    margin-bottom: 20px; /* Adds space between paragraphs */
}

.hero-text a.btn {
    margin-top: 20px; /* Adds space between text and button */
    padding: 12px 24px;
    background-color: #2A8F8C;
    color: white;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero-text a.btn:hover {
    background-color: #188f8b;
    transform: scale(1.05);
}


.hero h2 {
    color: #d3a939;
}

/*About me content*/
.about-me-text {
  white-space: pre-line; /* respects line breaks */
  line-height: 1.5;
  font-size: 1.10rem;
  color: #c3dbe7;
}

/*scrollbar for the about me text*/
.scroll-box {
  max-height: 300px; /* or whatever fits nicely */
  overflow-y: auto;
  padding-right: 1rem; /* space for scrollbar */
  margin-bottom: 1rem;
}

/* Optional: Style the scrollbar (Chrome + Edge + some Firefox support) */
.scroll-box::-webkit-scrollbar {
  width: 8px;
}

.scroll-box::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.scroll-box::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.6);
}

/* Ensure Vanta.js canvas is positioned behind content */
.vanta-canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1; /* Position Vanta background behind content */
    width: 100%;
    height: 100%; /* Full section size */
}

/*Section Styling */
.section {
    width: 100%;
    height: 100vh; /* Full viewport height */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #c8d8e4; /* Light background color for the section */
    padding: 20px;
    opacity: 0; /* Start with section hidden */
    transform: scale(0.9); /* Start with a smaller scale */
    transition: opacity 0.5s ease, transform 0.5s ease; /* Smooth transition */
}

.section {
    overflow: hidden; /* Ensure no content overflows */
    clear: both; /* Ensures content below is aligned correctly */
    min-height: 100vh;
    padding: 20px; /* Adjust padding as necessary */
    margin-bottom: 40px;
}

/* When section is visible, make it fully visible and scale normal */
.section.show {
    opacity: 1;
    transform: scale(1);
}

/* Button Styling */
.btn {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #45a049; /* Darker green on hover */
}

/* Accordion container */
.accordion {
  position: relative;
  max-width: 900px;
  margin: auto;
  padding: 2rem;
  margin-left: -1rem;  /* Pulls it to the left */
  transition: transform 0.5s ease;
  transform: translateX(0); /* default: centered */
}

.accordion-header {
  background-color: #074D66;
  color: #D3A939;
  padding: 1rem;
  border: none;
  text-align: left;
  width: 300%;
  cursor: pointer;
  font-size: 1.2rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  transition: background 0.3s ease;
  z-index: 1;
}

.accordion-header:hover {
  background-color: #4A8DA7;
}

.accordion-content {
  position: absolute;
  top: 0;
  left: 250%;
  width: 400%;
  max-width: 1000px;
  transition: transform 0.4s ease, opacity 0.4s ease;
  transform: translateX(50px);
  opacity: 0;
  z-index: 10;
  pointer-events: none;
}

.accordion-content.open {
  transform: translateX(-10px);
  opacity: 1;
  pointer-events: auto;
}

.accordion-wrapper {
  display: flex;
  justify-content: center;
  transition: justify-content 0.2s ease;
  position: relative;
  overflow: hidden;
}

.accordion-wrapper.shift-left {
  justify-content: flex-start;
  transform: translateX(-80px); /* shift left smoothly */
  padding-right: 75rem; /* optional for spacing */
}

.close-button {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: rgba(0, 0, 0, 0.6); /* semi-transparent black */
  color: white;
  border: none;
  font-size: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 6px; /* rounded square */
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.vanta-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.card {
  position: relative;
  background: transparent; /* so Vanta shows through */
  overflow: hidden;
  padding: 2rem 1rem 1rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.card iframe {
  width: 100%;
  height: 300px;
  border: none;
  border-radius: 8px;
}

.card iframe,
.close-button {
  position: relative;
  z-index: 1; /* so they appear above the animation */
}

.card-text {
  font-family: "Kaisei Tokumin";
  position: relative;
  z-index: 1;
  color: white; /* or your preferred color */
  padding: 1rem;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.card-text h2 {
  color: #D3A939;
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.card-text p {
  background-color: rgba(0, 0, 0, 0.6);
  font-size: 1rem;
  line-height: 1.4;
}

/*Resume section*/
#resume {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh; /* full screen height */
  padding: 1rem;
  box-sizing: border-box;
}

#resume iframe {
  width: 100%;
  height: 100%;
  max-width: 900px;
  border: none;
}

/* Contact Information */
.contact-info {
    background-color: rgba(7, 77, 102, 0.7); /* Semi-transparent background */
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.contact-info p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #d3a939;
}

/* Social Icons styling */
.about-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon {
    display: inline-block;
}

.social-icon-img {
    width: 50px; /* Ensure all icons are the same size */
    height: 50px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.social-icon-img:hover {
    transform: scale(1.1); /* Slight scale effect on hover */
}

.social-icon:hover .social-icon-img {
    transform: scale(1.1); /* Slight scale effect on hover */
}

/* Style for the screenshots container */
.screenshots {
    display: flex;
    flex-direction: row; 
    align-items: center; /* Center the images horizontally */
    padding: 20px;
}

/* Ensure images inside the screenshots have consistent spacing */
.screenshots img {
    margin-bottom: 20px; /* Adds space between the images */
    width: 50%; /* Adjust image size */
    height: auto;
    transition: transform 0.3s ease; /* Smooth transition for zoom effect */
}

/* Zoom in effect on hover */
.screenshots img:hover {
    transform: scale(1.5); /* Zoom in by 1.5 times */
    cursor: pointer; /* Change cursor to indicate zoom functionality */
}

/* Item styling */
.item {
    display: flex;
    flex-direction: row;
    margin-bottom: 45px;
    align-items: center;
}

.item:nth-child(even) {
    flex-direction: row-reverse; /* Reverse the order for even items (align right) */
}

.image {
    width: 150px; /* Adjust the size of the image */
    height: auto;
    margin: 0 20px;
}

.text {
    font-size: 16px;
    line-height: 1.5;
    max-width: 500px;
}

/* General Footer Styling */
footer {
    background-color: #333;  /* Dark background for footer */
    color: #fff;  /* White text */
    padding: 40px 20px;  /* Add padding around the footer */
    text-align: center;
    font-size: 14px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Footer Sections */
.footer-left, .footer-middle, .footer-right {
    flex: 1;
    padding: 10px;
}

/* Footer Links */
.footer-middle ul {
    list-style: none;
    padding: 0;
}

.footer-middle ul li {
    display: inline;
    margin: 0 15px;
}

.footer-middle ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    transition: color 0.3s ease;
}

.footer-middle ul li a:hover {
    color: #4CAF50;  /* Green color on hover */
}

/* Social Icons */
.social-icons {
    list-style: none;
    padding: 0;
}

.social-icons li {
    display: inline;
    margin: 0 10px;
}

.social-icons .social-icon {
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    transition: color 0.3s ease;
}

.social-icons .social-icon:hover {
    color: #4CAF50;  /* Green color on hover */
}

/* For screens between 480px and 760px (Mobile Landscape layout) */
@media (max-width: 760px) and (min-width: 480px) {
    /* Adjust layout for small tablets and large phones */
    .hamburger {
        display: block; /* Ensure hamburger is visible on smaller screens */
    }

    .scroll-box {
        max-height: 200px;
    }

    .accordion-header {
        font-size: 14px; /* Adjust font size for mobile landscape */
    }

    /* Adjust padding for drawers */
    .drawer {
        padding: 8px;
    }

    /* Accordion layout adjustments */
    .accordion {
        padding: 15px;
    }

    .hero-image img {
        max-width: 200px; /* Adjust image size for better fitting */
    }

    .hero-text {
        max-width: 90%; /* Allow text to occupy more space */
        font-size: .55rem; /* Slightly smaller font size for readability */
    }

    #nav-list {
        display: flex;  /* Use flex to make the nav items horizontal */
        flex-direction: row; /* Horizontal layout */
        justify-content: center; /* Center nav items */
    }

    #nav-list li {
        margin: 0 15px;  /* Add space between links */
    }

    /* Adjust iframe for better visibility on mobile landscape */
    #resume iframe {
        width: 100%;
        height: 75vh; /* less height for mobile */
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* For screens between 760px and 1000px (Tablet layout) */
@media (max-width: 1000px) and (min-width: 761px) {
    .hamburger {
        display: block; /* Ensure hamburger is visible on smaller screens */
    }

    .hero-content {
        flex-direction: row; /* Stack text and image vertically */
        text-align: center; /* Center text */
    }

    .hero-image img {
        max-width: auto; /* Allow the image to take up more space on smaller screens */
        margin-bottom: 20px; /* Add space between the image and text */
    }

    .hero-text {
        max-width: 90%; /* Allow the text to occupy more space */
        font-size: .75rem; /* Slightly reduce font size on mobile */
    }

    .accordion-header {
        font-size: 16px; /* Adjust font size for tablets */
    }

    .drawer {
        padding: 10px;
    }

    /* Adjust iframe size for tablets */
    #resume iframe {
        width: 100%;
        height: 600px; /* Adjust height for smaller devices */
        margin-right: 0; /* Remove margin */
    }

    #nav-list {
        display: flex;  /* Use flex to make the nav items horizontal */
        flex-direction: row; /* Horizontal layout */
        justify-content: center; /* Center nav items */
    }

    #nav-list li {
        margin: 0 15px;  /* Add space between links */
    }

    .top-nav ul {
        flex-direction: row; /* Horizontal layout for tablets */
        justify-content: center;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* For screens between 760px and 1000px (Tablet layout) */
@media (max-width: 1200px) and (min-width: 1001px) {
    .hamburger {
        display: block; /* Ensure hamburger is visible on smaller screens */
    }

    .hero-content {
        flex-direction: row; /* Stack text and image vertically */
        text-align: center; /* Center text */
    }

    .hero-image img {
        max-width: auto; /* Allow the image to take up more space on smaller screens */
        margin-bottom: 20px; /* Add space between the image and text */
    }

    .hero-text {
        max-width: 90%; /* Allow the text to occupy more space */
        font-size: .85rem; /* Slightly reduce font size on mobile */
    }

    .accordion-header {
        font-size: 16px; /* Adjust font size for tablets */
    }

    .drawer {
        padding: 10px;
    }

    /* Adjust iframe for large screens */
    #resume iframe {
        width: 100%;
        height: 800px; /* Adjust height for smaller devices */
        margin-right: 0; /* Remove margin */
    }

    #nav-list {
        display: flex;  /* Use flex to make the nav items horizontal */
        flex-direction: row; /* Horizontal layout */
        justify-content: center; /* Center nav items */
    }

    #nav-list li {
        margin: 0 15px;  /* Add space between links */
    }

    .top-nav ul {
        flex-direction: row; /* Horizontal layout for tablets */
        justify-content: center;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}