/*css document -css Animation */ 

/*Defualts*/ 
html{
    scroll-behavior: smooth;
	font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, "sans-serif"; 
	color: white; 
}

a {
  color: inherit;
}

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

body {
    line-height: 1.6;
    color: #333;
    background: #f4f4f4;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 2.7rem;
    font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, "sans-serif"; 
}

p{
    font-size: 1.2rem;
    font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, "sans-serif";
}

h4{
	font-size: 1.2rem;
    font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, "sans-serif";
}

/* Custom cursor (default grey dot) */
/* Hide the default cursor for all elements */
body,
a,
button {
    cursor: none; /* Ensures default browser cursor is hidden */
}

/* Custom cursor (default grey dot) */
.custom-cursor {
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: grey;
    border-radius: 50%;
    pointer-events: none; /* Prevents blocking interactions */
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease, width 0.2s ease, height 0.2s ease, border 0.2s ease;
}

/* Hover state for clickable items */
.custom-cursor.hover {
    width: 40px;
    height: 40px;
    background-color: transparent;
    border: 2px solid grey;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* Line inside the hollow circle */
.custom-cursor.hover::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: grey;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Scroll-to-top button styles at bottom of the page */
.scroll-to-top {
    position: fixed;
    bottom: 36px; 
    right: 20px;  
    width: 70px;
    height: 70px;
    border: none;
    border-radius: 50%;
    background-color: grey;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: none; /* Initially hidden */
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Hover effect */
.scroll-to-top:hover {
    background-color: rgba(169, 169, 169, 0.742);
    transform: scale(1.1);
}

/* Show the button when needed */
.scroll-to-top.show {
    display: flex; /* Make the button visible */
}

/* Progress Bar */
#progressBar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0; /* Start with no width */
    height: 5px; /* Thickness of the bar */
    background-color: #00000081; /* Bar color */
    z-index: 9999; /* Ensure it stays on top */
    transition: width 0.2s ease; /* Smooth filling animation */
}

#progressBar {
    height: 8px; /* Thicker bar */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Subtle shadow */
}

/*Structor*/ 

/*Nav*/ 
nav {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 1rem;
    transition: color .3s all ease, transform .3s ease; 
    color: #292929; 
}

nav a:hover {
    text-decoration: none;
    color: #000000;
    transform: scale(1.05);
}

.nav-link {
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    color: #292929;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #5d5d5d;
}

/* Header Styles */
header {
    width: 100%;
    padding: 10px 0;
}

/* Navigation */
.navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

/* Logo */
.logo img {
    width: 85px;
    height: 100px;
}

/* Menu Links */
.menu {
    display: flex;
    gap: 20px;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: right;
    gap: 10px;
    margin-top: -10px;
    padding-right: 25px;
}

/* Hide text inside the links while keeping images visible */
.social-links a {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: auto;
    height: auto;
    overflow: hidden;
}

/* Hide the text content but keep the image */
.social-links a::before {
    content: ""; /* Clear any text */
    display: block;
    width: 0;
    height: 0;
}

.social-links a img {
    height: 38px;
    width: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-links a:hover img {
    transform: scale(1.1);
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navigation {
        flex-direction: column;
        align-items: center;
    }

    .menu {
        margin-top: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Keep social links in a horizontal line and allow wrapping */
    .social-links {
        display: flex;            /* Keep them in a horizontal line */
        justify-content: center;  /* Center the social links horizontally */
        gap: 10px;                /* Add spacing between the social icons */
        margin-top: 10px;         /* Space between menu and social links */
        padding-right: 0;         /* Remove the right padding */
        flex-wrap: wrap;          /* Allow the icons to wrap when necessary */
    }

    /* Ensure the social icons are appropriately sized */
    .social-links a img {
        width: 26px;   /* Set a fixed width for the icons */
        height: 26px;  /* Set a fixed height for the icons */
    }
}


/*page 1 home*/ 
/*section structure 1*/ 

.heroBox {
    width: 100%;
    height: 50vh;
    background-image: url("../images/website-hero-image.png");
    background-size: cover; /* Ensures the image covers the area */
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 7rem;
    margin-top: 6.5rem;
}

/* Media query for larger screens (e.g., desktop) */
@media (min-width: 1024px) {
    .heroBox {
        background-size: 110%; /* Make the image 10% bigger on large screens */
    }
}

/* Media query for tablets and smaller screens */
@media (max-width: 768px) {
    .heroBox {
        height: 40vh; /* Adjust height for smaller screens */
        background-size: contain;  /* Use contain for better fit on smaller screens */
    }
}

/* Media query for mobile screens */
@media (max-width: 480px) {
    .heroBox {
        height: 30vh; /* Adjust height for mobile */
        background-size: contain;  /* Use contain for mobile */
    }
}

.scroll-down {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 3rem;
  color: black;
  text-decoration: none;
  animation: bounce 2s infinite;
  z-index: 10;
  cursor: default;
}

@keyframes bounce {
  0%, 100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 10px);
  }
}

.container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 1rem;
}

/* Use contain for mobile */
.containerv2 {
    max-width: 1100px;
    margin: 10rem auto 5rem;
    padding: 1rem;
}

.about {
    margin-bottom: 3rem; /* Space below the About section */
    padding: 1.5rem;
    border-radius: 8px;
}

.contact {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 8px;
}

/* project page case study section and responsive */
.projects {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem; /* Added breathing room between sections */
}



.project-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 8px;
    padding: 1rem;
    text-decoration: none; /* Remove link underline */
    color: #333; /* Text color */
    transition: transform 0.3s, box-shadow 0.3s;
    max-width: 100%;
    width: 100%;
}

.project-box img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.project-box h3 {
    margin: 0.5rem 0;
    font-size: 1.2rem;
}

.project-box p {
    font-size: 0.9rem;
    color: #666;
}

.project-box:hover {
    transform: scale(1.05); /* Slightly enlarge the box on hover */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}


    .heroBox {
        height: 30vh;
    }

    .button {
        padding: 8px 16px;
    }
}

/* Larger tablets (≤ 1024px) */
@media (max-width: 1024px) {
    .logo img {
        width: 70px; /* smaller logo */
    }

    .menu {
        justify-content: space-between;
        gap: 15px;
    }
}




/* General Section Styling */
.contact {
    padding: 40px;
    max-width: 1200px;
    margin: auto;
    font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, "sans-serif"; 
}

.firstpageheader {
    padding: 170px  ;
    max-width: 1200px;
    margin: auto;
    font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, "sans-serif"; 
}

.contact h3{
    font-size: 2rem;
}

/* Container for Columns */
.container {
    display: flex;
    flex-wrap: wrap; /* Ensures responsiveness */
    gap: 20px; /* Spacing between columns */
}

/* Button Styling */
.button {
    display: inline-block;
    padding: 10px 20px;
    color: white;
    background-color: #000000;
    border: none;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.button:hover {
    background-color: #5d5d5d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column; /* Stacks columns vertically on smaller screens */
    }
}

/* Stylizing the links */
/* Remove blue color and underline from links */
.custom-link {
    text-decoration: none;
    color: #5d5d5d; 
}

.custom-link:hover {
    color: #000000; 
}

/* Add a separator between sections */
.separator {
    border-top: 1px solid #ccc; /* Thin line */
    margin: 2rem auto; /* Spacing above and below the line */
    width: 80%; 
}

/* separator lines on project page*/
.separator2 {
    border-top: 1px solid #ccc; /* Thin line */
    margin: -20px auto; /* Spacing above and below the line */
    width: 57%; 
}

/* This is for the behance button */
.center-link {
    text-align: center; /* Center the text */
    margin-top: 20px;   /* Add some spacing from the project grid */
}

.center-link .button {
    display: inline-block;     /* Makes the link look like a button */
    padding: 10px 20px;        /* Adds space inside the button */
    font-size: 16px;           /* Adjust the font size */
    font-weight: bold;         /* Make the text bold */
    color: white;              /* Text color */
    background-color: #000000; /* Background color (use your brand color) */
    text-decoration: none;     /* Remove underline */
    border-radius: 5px;        /* Add rounded corners */
    transition: all 0.3s ease; /* Add a hover effect */
}

.center-link .button:hover {
    background-color: #333; /* Darker shade for hover */
}


/*page 2 about page*/ 
/*section structure 1*/ 

/* About me section */
.about-me{
    padding: 1.5rem;
    border-radius: 8px;
}

.about-text {
    flex: 2;
    line-height: 1.6;
    text-align: justify;
}

.about-container {
    display: grid;
    grid-template-columns: 1.5fr 2fr; /* Instead of 1fr 2fr */
    gap: 2rem;
    align-items: start;
    margin-top: 1.5rem;
}

.about-image {
    max-width: 100%;
    border-radius: 1rem;
    object-fit: cover;
}

/* Optional: style the text box */
.about-content {
    padding: 1rem 0;
}

/* Responsive: Stack image and text */
@media (max-width: 768px) {
    .about-container {
        grid-template-columns: 1fr;
    }

    .about-image {
        max-width: 100%;
        margin: 0 auto;
    }
}

.experience-education-content {
    display: grid;
    grid-template-columns: 1fr 1fr; /* two equal columns */
    gap: 2rem; /* space between columns */
    margin-top: 1.5rem;
}

.experience, .education {
	    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 0.5rem;
}

ul {
    list-style-type: disc;
    padding-left: 1.2rem;
}

li {
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .experience-education-content {
        grid-template-columns: 1fr;
    }
}

/* Responsiveness for Smaller Screens */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-text {
        width: 100%;
    }

    .about-image {
        max-width: 250px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .about-text {
        font-size: 0.9rem; /* Adjust text size for smaller screens */
    }

    .about-image {
        max-width: 200px;
    }
}

/* Center the Experience and Education Section */
.experience-education {
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center; /* Center-align */
    margin: 0 auto;
    max-width: 800px; 
}

/* LinkedIn Button Styling */
.linkedin-cta {
    margin: 1.5rem 0;
    font-size: 1rem;
    color: #333;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #000000; /* LinkedIn blue */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #333;
}

/* Timeline Section */
.timeline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 10px;
    position: relative;
}

.timeline-step {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex: 1;
    max-width: 200px; 
}

.timeline-step h3 {
    margin: 0 0 1rem;
    font-size: 1.3rem;
    color: #222;
    font-weight: bold;
}

.timeline-step p {
    margin: 0;
    font-size: 1rem;
    color: #555;
}

/* Connector Lines */
.timeline-connector {
    height: 2px;
    width: 40px;
    background: #ccc;
    flex-shrink: 0; /* Prevent shrinking */
}

/* Responsiveness for Smaller Screens */
@media (max-width: 768px) {
    .timeline {
        flex-direction: column;
        align-items: center;
    }

    .timeline-step {
        max-width: 100%;
    }

    .timeline-connector {
        width: 2px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .timeline-step h3 {
        font-size: 1rem;
    }

    .timeline-step p {
        font-size: 0.85rem;
    }

    .timeline-connector {
        width: 2px;
        height: 15px;
    }
}


/*page 3 contact page*/ 
/*section structure 1*/ 
/* Ensure the container stacks children vertically */
.container2 {
    display: block;
    max-width: 1100px;
    margin: 2rem auto;
    padding: 1rem;
}

.container2 h1, .container2 p {
    display: block;
    margin: 0;
    padding: 0;
}

.container2 h1 {
    margin-bottom: 10px;
}

.top-sections {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping */
    gap: 20px;
    margin-bottom: 40px;
    width: 100%;
}

.contact-email, .contact-social {
    flex: 1 1 auto; /* Allow flexible resizing */

    padding: 20px;
    text-align: center;
    box-sizing: border-box;
}

.contact-email h2, .contact-social h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.contact-email p {
    font-size: 1rem;
    margin: 10px 0;
}

.contact-social nav {
    display: flex;
    justify-content: center;
    padding: 10px;
}

.contact-social img {
    max-width: 100%; /* Ensure responsiveness */
    height: 70px; 
	width: 70px/* Maintain aspect ratio */
}

.clickable-box {
    display: block;
    text-decoration: none;
    color: inherit;
    	    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: #f9f9f9;
    padding: 1rem;
    
    transition: background 0.2s ease;
}

.clickable-box:hover {
    background: #f5f5f5;
}


@media (max-width: 768px) {
    .top-sections {
        flex-direction: column; /* Stack items vertically */
    }

    .contact-email, .contact-social {
        width: 100%; /* Full-width on smaller screens */
    }
}


/* Footer */
.footer {
    padding: 30px 0px 0px 0px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.footer-trademark {
    text-align: center;
    font-size: 0.625rem;
	 padding: 70px 0px 1px 0px;
    color: #292929;
}

.logo2 {
	 width: 200px;
	height: 160px;
}

.footermenu {
    display: flex;
    justify-content: center; /* Center items horizontally */
    gap: 3.8rem; /* Space between the buttons */
    margin-top: 1rem;
	margin-right: 1.6rem;
}

.footermenu .nav-link {
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    transition: color 0.2s ease;
}

.footermenu .nav-link:hover {
    color: #888; /* Or whatever hover color fits your brand */
}



/*Scalable and Accessible Fonts*/
h2 {
    font-size: calc(1.5rem + 2vw); /* Dynamically adjust font size based on screen size */
}

h1 {
    font-size: calc(1.5rem + 2vw); /* Dynamically adjust font size based on screen size */
}

h3 {
    font-size: calc(1.5rem + 2vw); /* Dynamically adjust font size based on screen size */
}

/*Proper Image Responsiveness*/
.about-image, .project-box img {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
}



/* Make the Scroll-to-Top Button Responsive */
@media (max-width: 480px) {
    .scroll-to-top {
        width: 50px;
        height: 50px;
    }
}






/* General Layout Adjustments for Mobile */
@media (max-width: 768px) {
    /* Ensure the projects section has enough bottom margin */
    .projects {
        margin-bottom: 50px;  /* Add enough space below the projects section */
    }

    /* Ensure contact section has enough padding on top */
    .contact {
        padding-top: 40px;  /* Add padding to create space above the contact section */
    }

    /* Ensure project grid is properly spaced and non-overlapping */
    .project-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;  /* Add some space between the project boxes */
        justify-content: center;
    }

    .project-box {
        flex: 1 1 calc(33% - 20px); /* 3 boxes per row, with a gap between them */
        max-width: calc(33% - 20px); /* Prevents boxes from overflowing */
        box-sizing: border-box;
    }

    /* Optional: Prevent the hero section from overlapping other content */
    .heroBox {
        margin-bottom: 30px;  /* Space between hero section and main content */
    }
}

/* Ensure desktop view does not have overlap */
@media (min-width: 769px) {
    .projects {
        margin-bottom: 100px; /* Larger margin between projects and contact on desktop */
    }
}

/* Clearfix for projects section */
.projects::after {
    content: "";
    display: table;
    clear: both;
}

/* Optional: Ensure that other sections also have space */
.contact {
    margin-top: 50px; /* Make sure contact section is clearly separated */
}


/*about me pic*/ 
.about-image-top {
  display: block;
  margin: 0 auto 30px auto;
  width: 200px;             /* Fixed width for consistent look */
  height: auto;             /* Keep aspect ratio */
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/*fade in*/ 
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}
 



/* Responsive slider container */
.slider {
  position: relative;
  width: 100%;
  max-width: 2000px;
  height: 100vh; /* Responsive height */
  margin: 90px auto 50px auto;
  overflow: hidden;
  border-radius: 10px;
}

/* Each slide layer */
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  z-index: 0;
  pointer-events: none;
}

/* Image inside slide */
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the image fills the slide */
}

/* Active slide */
.slide.active {
  opacity: 1;
  z-index: 1;

}

/* Buttons */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;          /* remove background */
  color: black;              /* set arrow color */
  font-size: 50px;
  padding: 10px;
  border: none;              /* remove border */
  z-index: 2;
  cursor: pointer;
}
.prev { left: 10px; }
.next { right: 10px; }

.prev:hover, .next:hover {
  color: #333; /* slightly darker on hover */
}

/* Dots */
.dots {
  text-align: center;
  padding: 10px 0;
  position: relative;
  z-index: 2;
}

.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: #000; /* Black dot for active slide */
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .slider {
    height: 50vh; /* Shorter height for smaller screens */
    border-radius: 0;
  }

  .prev,
  .next {
    font-size: 30px;
    padding: 6px;
  }

  .dot {
    width: 10px;
    height: 10px;
    margin: 0 3px;
  }
}



/* this is the hero image for project1 page */
.hero-image {
    position: relative;
    width: 100%;
    height: 60vh; /* Adjust height as needed */
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures it covers the area nicely */
}

.hero-text {
    position: absolute;
    bottom: 20%;
    left: 10%;
    color: white;
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.7);
}

.hero-text h1 {
    font-size: 3rem;
    margin: 0;
}

.hero-text p {
    font-size: 1.2rem;
    margin-top: 0.5rem;
}

/* this is the project page top section under hero 2 coloum section*/
.project-header {
  padding: 1rem;
}

.header-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 8rem;
}

.header-col {
  flex: 1 1 100px;
}

@media (max-width: 768px) {
  .header-columns {
    flex-direction: column;
  }
}

/* this is the arrow for the project page*/
.view-project {
  text-align: center;
  margin-top: 2rem;
}

.arrow {
  font-size: 2rem; /* Make arrow bigger */
  animation: bounce 1.5s infinite;
  display: inline-block;
  margin-top: 0.5rem;
}

/* Bounce animation */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

/* this is for the three coloum section on the project page*/
.project-overview {
  padding: 2rem;
}

.overview-container {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

.overview-block {
  flex: 1 1 30%;
  min-width: 250px;
  background-color: #f5f5f5; /* optional for visibility */
  padding: 1rem;
  border-radius: 8px;
}


.gallery,
.applications-gallery{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}


.gallery img,
.applications-gallery img {
  width: 100%;
  height: auto;
  display: block;
}


/* buttons on case study 10 rockauto figma buttons */
.button-row {
  display: flex;
  gap: 16px;
  margin-top: 20px;
	justify-content: center;
}

.figma-button {
  background-color: #1e1e1e;
  color: #ffffff;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.figma-button:hover {
  background-color: #333;
}



/* project page top page buttons */
.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 40px;
  justify-content: center;
}

.category-nav a {
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid #ccc;
  border-radius: 20px;
  font-weight: 500;
  color: #333;
  transition: all 0.3s ease;
}

.category-nav a:hover {
  background-color: #000;
  color: #fff;
  border-color: #000;
}

html {
  scroll-behavior: smooth;
}




/* Default: 3-column grid on large screens */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

/* Tablet screens (≤ 768px): switch to flex layout with 2–3 items per row */
@media (max-width: 768px) {
  .project-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }

  .project-box {
    flex: 1 1 calc(85% - 20px); /* About 2 per row with spacing */
    max-width: calc(85% - 20px);
    box-sizing: border-box;
  }
}

/* Mobile screens (≤ 480px): stack in a single column */
@media (max-width: 480px) {
  .project-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .project-box {
    max-width: 100%;
    width: 100%;
    padding: 1rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
  }

  .project-box img {
    max-width: 100%;
    height: auto;
    margin-bottom: 0.75rem;
    border-radius: 5px;
  }

  .project-box h3 {
    font-size: 1.1rem;
  }

  .project-box p {
    font-size: 0.9rem;
  }
}



/* Homepage specific styles scoped inside homepage-wrapper */





.homepage-wrapper .firstpageheader {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 1rem;
}

.homepage-wrapper .firstpageheader h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.homepage-wrapper .firstpageheader p {
  font-size: 1.25rem;
  color: #555;
}

/* Slider container */
.homepage-wrapper .slider {
  position: relative;
  max-width: 1000px;
  margin: 2rem auto;
  overflow: hidden;
  border-radius: 12px;
}

/* Individual slides */
.homepage-wrapper .slide {
  display: none;
  width: 100%;
  height: auto;
}

.homepage-wrapper .slide.active {
  display: block;
}

/* Navigation buttons */
.homepage-wrapper .slider button.prev,
.homepage-wrapper .slider button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem ;
  cursor: pointer;
  font-size: 2rem;
  border-radius: 50%;
  user-select: none;
  transition: background 0.3s ease;
}

.homepage-wrapper .slider button.prev:hover,
.homepage-wrapper .slider button.next:hover {
  background: rgba(0,0,0,0.8);
}

.homepage-wrapper .slider button.prev {
  left: 13px;
}

.homepage-wrapper .slider button.next {
  right: 13px;
}

/* Dots navigation */
.homepage-wrapper .slider .dots {
  text-align: center;
  margin-top: 1rem;
}

.homepage-wrapper .slider .dots span {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 6px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.homepage-wrapper .slider .dots span.active,
.homepage-wrapper .slider .dots span:hover {
  background-color: #717171;
}

