/* CSS for custom font-face definitions for the 'Aptos' font with various weights. */
@font-face {
    font-family: 'Aptos';
    src: url('/assets/fonts/Aptos-Normal.ttf') format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: 'Aptos';
    src: url('/assets/fonts/Aptos-Bold.ttf') format('truetype');
    font-weight: 700;
}

@font-face {
    font-family: 'Aptos';
    src: url('/assets/fonts/Aptos-ExtraBold.ttf') format('truetype');
    font-weight: 800;
}

@font-face {
    font-family: 'Aptos';
    src: url('/assets/fonts/Aptos-Light.ttf') format('truetype');
    font-weight: 300;
}

@font-face {
    font-family: 'Aptos';
    src: url('/assets/fonts/Aptos-SemiBold.ttf') format('truetype');
    font-weight: 600;
}

@font-face {
    font-family: 'Aptos';
    src: url('/assets/fonts/Aptos-Black.ttf') format('truetype');
    font-weight: 900;
}

/* Body styles for general text and animation on page load. */
body {
    font-family: 'Aptos', sans-serif;
    margin: 0;
    padding: 0;
    background-color: white;
    color: black;
    animation: fadeIn 1.5s ease-in forwards;
}

/* Keyframe animation for a fade-in effect on page load. */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Styles for the navigation bar, including hover effects for links with an animated underline. */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
    background-color: white;
    padding: 10px 0;
    z-index: 1000;
}

nav a {
    position: relative;
    text-decoration: none;
    color: black;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: black;
}

nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: black;
    transition: width 0.3s ease-in, left 0.3s ease-out;
}

nav a:hover::after {
    width: 100%;
    left: 0;
}

nav a:not(:hover)::after {
    left: auto;
    right: 0;
    width: 0;
}

/* Body and heading-specific font-family declarations for consistent 'Aptos' usage. */
h1, h2, h3, h4, h5, h6, p {
    font-family: 'Aptos', sans-serif;
}

/* Heading styles (h1, h2, h3) with font size and spacing adjustments for layout consistency. */
h1 {
    font-size: 40px;
    margin: 60px 0 20px; /* Adjust margin for spacing below the fixed nav */
    text-align: center;
}

h2 {
    font-size: 32px;
    margin: 60px 0 20px; /* Adjust margin for spacing below the fixed nav */
    text-align: center;
}

h3 {
    text-align: center;
}

/* Footer styling for a fixed-width, centered layout with black background and white text. */
footer {
    position: relative;
    width: 100%;
    background-color: black;
    color: white;
    text-align: center;
    padding: 10px 0;
    margin-top: 50px;
    font-size: 14px;
}

/* Main content padding for spacing around page content. */
main {
    padding: 20px;
}

/* Social media icon box styling for layout and hover effects on individual icons, including platform-specific color transitions. */
.social-box {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 4px 0;
    margin-bottom: 4px;
}

.social-icon {
    text-decoration: none;
    color: white;
    font-size: 30px;
    transition: transform 0.3s, color 0.3s;
}

.social-icon:hover {
    transform: scale(1.2);
}

.social-icon.github:hover {
    color: #6e5494;
}

.social-icon.linkedin:hover {
    color: #0077b5;
}

.social-icon.facebook:hover {
    color: #1877F2;
}

.social-icon.twitter:hover {
    color: #1DA1F2;
}

.social-icon.email:hover {
    color: #73a1a1;
}

/* Instagram-specific hover effect with a gradient text fill for visual enhancement. */
.social-icon.instagram {
    font-size: 30px;
    color: white;
    transition: 0.3s ease-in-out;
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #f38334 12%, #e6683c 25%, #e1463d 37%, #dc2743 50%, #d02458 62%, #cc2366 75%, #c41e79 87%, #bc1888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* GroundUP-specific styling for logo image, including hover state with a different image. */
.social-icon img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}

.social-icon img:hover {
    transform: scale(1);
}

.social-icon.groundup img {
    content: url('/assets/media/groundup_white.svg');
}

.social-icon.groundup img:hover {
    content: url('/assets/media/groundup_hover.svg');
}


.copyright {
    font-family: 'Aptos', sans-serif;
    font-weight: 700;
    font-size: 16px; /* Adjust the size as needed */
    color: #ffffff; /* Adjust the color as needed */
    text-align: center; /* Center the text (optional) */
    margin-top: 10px; /* Adjust the spacing as needed */
}

.footeremail {
    font-family: 'Aptos', sans-serif;
    font-weight: 700;
    font-size: 16px; /* Adjust the size as needed */
    color: #ffffff; /* Adjust the color as needed */
    text-align: center; /* Center the text (optional) */
    margin-top: 4px; /* Adjust the spacing as needed */
}

/* About Me Box Styles */
.aboutbox {
    display: flex;
    align-items: center;
    margin-bottom: 15px; /* Space below the header */
}

.about-icon {
    width: 20px; /* Adjust the icon size */
    height: 30px; /* Adjust the icon size */
    margin-right: 10px; /* Space between the icon and the text */
}

.about-me-box h2 {
    font-size: 24px; /* Title size */
    color: #1c0098; /* Title color */
    margin: 0; /* Remove default margin */
}

.about-me-box p {
    font-size: 14px; /* Text size */
    color: #1c0098; /* Text color */
    line-height: 1.6; /* Line height for readability */
}

.about-me-box {
    width: 80%; /* Box will scale with the width of the screen */
    max-width: 900px; /* Maximum width of the box */
    padding: 40px;
    background-color: #dee8ff; /* Background color */
    border-radius: 15px; /* Rounded corners */
    font-family: 'Aptos', sans-serif; /* Font style */
    margin: 16px auto; /* Center the box with margin */
    box-sizing: border-box; /* Ensure padding is included in width calculation */
}

@media (max-width: 800px) {
    .about-me-box {
        width: 100%; /* Slightly smaller width for mobile */
        padding: 10px; /* Reduce padding for smaller screens */
    }

    .about-me-box h2 {
        font-size: 20px; /* Slightly smaller title size */
    }

    .about-me-box p {
        font-size: 12px; /* Slightly smaller text size */
    }
}

/* experience Me Box Styles */
.experience-me-box {
    width: 80%; /* Box will scale with the width of the screen */
    max-width: 900px; /* Maximum width of the box */
    padding: 40px;
    background-color: #ffdede; /* Background color */
    border-radius: 15px; /* Rounded corners */
    font-family: 'Aptos', sans-serif; /* Font style */
    margin: 16px auto; /* Center the box with margin */
    box-sizing: border-box; /* Ensure padding is included in width calculation */
}

@media (max-width: 800px) {
    .experience-me-box {
        width: 100%; /* Slightly smaller width for mobile */
        padding: 10px; /* Reduce padding for smaller screens */
    }

    .experience-me-box h2 {
        font-size: 20px; /* Slightly smaller title size */
    }

    .experience-me-box p {
        font-size: 12px; /* Slightly smaller text size */
    }
}


.experiencebox {
    display: flex;
    align-items: center;
    margin-bottom: 15px; /* Space below the header */
}

.experience-icon {
    width: 25px; /* Adjust the icon size */
    height: 30px; /* Adjust the icon size */
    margin-right: 10px; /* Space between the icon and the text */
}

.experience-me-box h2 {
    font-size: 24px; /* Title size */
    color: #ff0000; /* Title color */
    margin: 0; /* Remove default margin */
}

.experience-me-box p {
    font-size: 14px; /* Text size */
    color: #ff0000; /* Text color */
    line-height: 1.6; /* Line height for readability */
}

/* Company Box */

/* Individual Company Box */
.company-box {
    background-color: #ffc8c8;
    border-radius: 10px;
    margin: 10px 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Company Header */
.company-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    background-color: #ffc8c8;
}

.company-info {
    display: flex;
    align-items: center;
}

.company-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 15px;
}

.company-info h3 {
    font-size: 20px;
    color: #ff0000;
    margin: 0;
    text-align: left;
}

.company-info h4 {
    font-size: 12px;
    color: #ff0000;
    margin: 0;
}

.company-info h5 {
    font-size: 14px;
    color: #ff0000;
    margin: 0;
}

.company-info p {
    font-size: 14px;
    color: #ff0000;
    margin: 5px 0 0;
}

/* Toggle Icon */
.toggle-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

/* Collapsible Content */
.company-content {
    display: none; /* Hidden by default */
    padding: 10px;
    font-size: 14px;
    color: #ffc8c8;
    border-top: 1px solid #ffc8c8;
}

/* Education */

.education-me-box {
    width: 80%; /* Box will scale with the width of the screen */
    max-width: 900px; /* Maximum width of the box */
    padding: 40px;
    background-color: #ddffdd; /* Background color */
    border-radius: 15px; /* Rounded corners */
    font-family: 'Aptos', sans-serif; /* Font style */
    margin: 16px auto; /* Center the box with margin */
    box-sizing: border-box; /* Ensure padding is included in width calculation */
}

@media (max-width: 800px) {
    .education-me-box {
        width: 100%; /* Slightly smaller width for mobile */
        padding: 10px; /* Reduce padding for smaller screens */
    }

    .education-me-box h2 {
        font-size: 20px; /* Slightly smaller title size */
    }

    .education-me-box p {
        font-size: 12px; /* Slightly smaller text size */
    }
}

.educationbox {
    display: flex;
    align-items: center;
    margin-bottom: 15px; /* Space below the header */
}

.education-icon {
    width: 25px; /* Adjust the icon size */
    height: 30px; /* Adjust the icon size */
    margin-right: 10px; /* Space between the icon and the text */
}

.education-me-box h2 {
    font-size: 24px; /* Title size */
    color: #00d800; /* Title color */
    margin: 0; /* Remove default margin */
}

.education-me-box p {
    font-size: 14px; /* Text size */
    color: #00d800; /* Text color */
    line-height: 1.6; /* Line height for readability */
}

/* Company Box */

/* Individual Company Box */
.company-box-education {
    background-color: #aaffaa;
    border-radius: 10px;
    margin: 10px 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Company Header */
.company-header-education {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    background-color: #aaffaa;
}

.company-info-education {
    display: flex;
    align-items: center;
}

.company-icon-education {
    width: 30px;
    height: 35px;
    margin-right: 15px;
}

.company-info-education h3 {
    font-size: 20px;
    color: #00d800;
    margin: 0;
    text-align: left;
}

.company-info-education h4 {
    font-size: 12px;
    color: #00d800;
    margin: 0;
}

.company-info-education h5 {
    font-size: 14px;
    color: #00d800;
    margin: 0;
}

.company-info-education p {
    font-size: 14px;
    color: #00d800;
    margin: 5px 0 0;
}

/* Toggle Icon */
.toggle-icon-education {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

/* Collapsible Content */
.company-content-education {
    display: none; /* Hidden by default */
    padding: 10px;
    font-size: 14px;
    color: #aaffaa;
    border-top: 1px solid #aaffaa;
}

/* Center the button below the text */
.button-container {
    display: flex; /* Make the container inline-block to take up only the space needed */
    justify-content: center;
    align-items: center; 
    margin-top: 20px; /* Adds space between the text and the button */
}

.square-button-red {
    display: inline-block;
    padding: 8px 20px; /* Smaller height, adjust padding to make it smaller */
    background-color: #ff0000; /* Red background */
    color: #ffffff; /* White text */
    text-align: center;
    text-decoration: none; /* Remove underline from the link */
    font-size: 16px;
    border: none;
    border-radius: 5px; /* Optional: rounded corners */
    transition: background-color 0.3s, color 0.3s; /* Smooth transition for hover effect */
}

.square-button-red:hover {
    background-color: #ffffff; /* White background on hover */
    color: #ff0000; /* Red text on hover */
}

.square-button-green {
    display: inline-block;
    padding: 8px 20px; /* Smaller height, adjust padding to make it smaller */
    background-color: #00d800; /* Red background */
    color: #ffffff; /* White text */
    text-align: center;
    text-decoration: none; /* Remove underline from the link */
    font-size: 16px;
    border: none;
    border-radius: 5px; /* Optional: rounded corners */
    transition: background-color 0.3s, color 0.3s; /* Smooth transition for hover effect */
}

.square-button-green:hover {
    background-color: #ffffff; /* White background on hover */
    color: #00d800; /* Red text on hover */
}

body {
    font-family: Aptos, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
  }

  .gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px; /* Space between gallery items */
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .gallery-item {
    flex: 1 1 calc(33.333% - 20px); /* Three items per row */
    max-width: calc(33.333% - 20px);
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  
  .gallery-item img {
    width: 100%; /* Full width of the container */
    height: 300px; /* Fixed height */
    object-fit: cover; /* Default behavior for landscape images */
    display: block;
    border-bottom: 1px solid #ddd;
    max-height: 100%; /* Ensure portrait images don't exceed container height */
  }
  
  /* Ensure portrait images scale to fit properly */
  .gallery-item img:only-of-type {
    object-fit: contain; /* Portrait images will fully fit */
    height: auto;
    max-height: 300px; /* Keeps portrait images within the fixed height */
  }
  
  .caption {
    padding: 10px;
    text-align: center;
    font-size: 14px;
    color: #555;
    background-color: #fff;
    border-top: 1px solid #ddd;
    flex-shrink: 0;
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .gallery-item {
      flex: 1 1 calc(50% - 20px); /* Two items per row on tablets */
      max-width: calc(50% - 20px);
    }
  
    .gallery-item img {
      height: 200px; /* Reduce height for smaller screens */
    }
  
    .gallery-item img:only-of-type {
      height: auto;
      max-height: 200px;
    }
  }
  
  @media (max-width: 480px) {
    .gallery-item {
      flex: 1 1 calc(100% - 10px); /* Full width on smaller devices */
      max-width: calc(100% - 10px);
    }
  
    .gallery-item img {
      height: 150px; /* Further reduce height for very small screens */
    }
  
    .gallery-item img:only-of-type {
      height: auto;
      max-height: 150px;
    }
  }