@import url('https://fonts.googleapis.com/css2?family=Alegreya:ital@1&family=Alex+Brush&family=Poppins:wght@400;500;600;700&display=swap');

/* General Styles */
body {
    font-family: "Poppins", serif;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

/* Navbar Styles */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #333;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo {
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: .3s;
}

.logo:hover {
    color: #FFDAB9;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #FFDAB9;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
    transition: all 0.3s ease;
}

.back {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    opacity: 0.5;
  }
  
  .back img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* covers the whole space without distortion */
  }
  

.section h2 {
    font-size: 4rem;
    display: flex;
    justify-content: center;
    padding-top: 5rem;
    font-family: "Alex Brush", serif;
}

h2 {
    font-family: "Alex Brush", serif;
    display: flex;
    justify-content: center;
    font-size: 3rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 60px;
        right: 0;
        height: 25vh;
        width: 100%;
        background-color: #FFDAB9;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.3s ease-in;
    }

    .nav-links li {
        margin: 5px 0;
    }

    .nav-links a {
        color: #000000;
    }

    .hamburger {
        display: flex;
    }

    .nav-active {
        transform: translateX(0);
    }

    /* Hamburger to X */
    .hamburger.toggle .line:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 10px);
    }

    .hamburger.toggle .line:nth-child(2) {
        opacity: 0;
    }

    .hamburger.toggle .line:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -10px);
    }

    .logo {
        font-size: 1.3rem;
        font-family: "Poppins", serif;
    }

    .back {
        display: flex;
        justify-content: center;
    }

    .section h2 {
        font-size: 2.5rem;
    }
}

/*---Home Section--*/

#home {
    width: 100%;
    height: 100vh;
    position: relative;
    background: url(images/front.png);
    background-size: cover;
}

.section-front {
    position: absolute;
    font-size: 4rem;
    font-weight: 400;
    font-family: "Alex Brush", serif;
    color: black;
    margin-top: 1rem;
    margin-left: 11rem;
    padding: 1rem;
    width: 380px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    #home {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .section-front {
        position: absolute;
        margin: auto;
        width: 310px;
        font-size: 2.8rem;
        font-weight: 700;
    }
}

/*---About--*/

.about-container {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero {
    padding: 3rem;
    flex: 1;
    border-radius: 50%;
    width: 350px;
    height: auto;
}

.about-detail {
    margin: 3rem;
    flex: 2;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 2rem 4rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.about-p {
    font-weight: bold;
}

@media (max-width: 768px) {
    .about-container {
        display: flex;
        flex-direction: column;
    }

    .hero {
        padding: 1rem;
        width: 310px;
        height: auto;
    }

    .about-detail {
        margin: 1rem;
        padding: 1rem;
    }
}

/*--Portfolio--*/
.cert-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.cert-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.cert-row:last-child {
    justify-content: center;
}

.cert {
    width: 100%;
    max-width: 400px;
    height: auto;
    border: 2px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.cert:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .cert {
        max-width: 90%;
    }

    .cert-row {
        flex-direction: column;
        align-items: center;
    }
}

.adventure {
    display: flex;
    align-items: center;
}

.adventure-msg {
    font-size: 1.1rem;
    font-weight: 500;
    padding: 5rem;
    display: block;
    text-align: center;
}

.position {
    font-size: 1.5rem;
    color: blue;
}

.adventure p {
    flex: 2;
}

.adventure img {
    padding: 2rem;
    width: 500px;
    height: 330px;
}

.tools {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 10px;
    padding: 20px;
}

.tools-item {
    position: relative;
    padding: 20px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    overflow: hidden;
    transition: background 0.3s ease-in-out;
}

.hidden-text {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-100%);
    font-size: 18px;
    font-weight: bold;
    color: #000000;
    padding: 10px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, top 0.3s ease-in-out;
}

.tools-item:hover .hidden-text {
    opacity: 1;
    top: 40%;
}

@media (max-width: 768px) {
    .cert-list {
        display: flex;
        flex-direction: column;
        justify-self: center;
        align-items: center;
        gap: 3rem;
    }

    .cert {
        width: 300px;
    }

    .adventure {
        display: flex;
        flex-direction: column;
    }

    .adventure img {
        width: 300px;
        height: auto;
    }

    .adventure-msg {
        width: 100%;
        padding: 0;
        font-size: 1.2rem;
    }
}

/*---Contact--*/
#contact {
    padding: 50px 20px;
    text-align: center;
  }
  
  #contact h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #333;
    font-family: 'Arial', sans-serif;
  }
  
  .contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.8); /* Slightly transparent background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px); /* Frosted glass effect */
  }
  
  form {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  form input, form textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
  }
  
  form input:focus, form textarea:focus {
    border-color: #4CAF50; /* Highlight border on focus */
  }
  
  form textarea {
    resize: vertical;
    min-height: 150px;
  }
  
  button.btn {
    padding: 15px 30px;
    background-color: #4CAF50; /* Green button color */
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
  }
  
  button.btn:hover {
    background-color: #45a049; /* Darker green on hover */
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    #contact h2 {
      font-size: 2rem;
    }
  
    .contact-form-container {
      padding: 20px;
      width: 90%; /* Ensures it is not too wide on mobile */
    }
  
    form input, form textarea, button.btn {
      font-size: 1rem; /* Adjust font size for mobile */
    }
  }

/* Social Media Icons Styling */
#social-media {
    padding: 30px 20px;
    text-align: center;
  }
  
  .contact-icon {
    margin-bottom: 20px;
  }
  
  .social-icon {
    font-size: 2.5rem;
    color: #333; /* Default icon color */
    margin: 0 15px;
    transition: transform 0.3s ease, color 0.3s ease;
  }
  
  .social-icon:hover {
    transform: scale(1.2); /* Slightly enlarge the icon on hover */
    color: #4CAF50; /* Green color on hover */
  }
  
  /* Icons8 Link Styling */
  .icons a {
    display: block;
    font-size: 1rem;
    color: #333;
    text-decoration: none;
    margin-top: 10px;
    transition: color 0.3s ease;
  }
  
  .icons a:hover {
    color: #4CAF50; /* Green color on hover */
  }
  
  /* Footer Styling */
  /* Footer Styling */
.footer {
    display: flex;
    flex-direction: column; /* Stack items vertically on mobile */
    align-items: center; /* Center align items */
    background-color: #333;
    padding: 20px;
    color: #fff;
    text-align: center;
    font-size: 1rem;
    border-top: 2px solid #4CAF50;
    margin-top: 30px;
}

.footer-links {
    display: flex;
    flex-direction: column; /* Stack links vertically on mobile */
    justify-content: center; /* Center links */
    gap: 10px; /* Space between links */
    margin: 10px 0;
}

.footer-link {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #4CAF50; /* Green color on hover */
}

.powered-by {
    margin-top: 10px;
    font-size: 0.9rem;
}

.powered-by a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.powered-by a:hover {
    color: #4CAF50; /* Green color on hover */
}

/* Media Query for larger screens */
@media (min-width: 600px) {
    .footer {
        flex-direction: row; /* Align items horizontally on larger screens */
        justify-content: space-around; /* Space out items */
    }

    .footer-links {
        flex-direction: row; /* Stack links horizontally on larger screens */
        gap: 20px; /* Add space between links */
    }
}

  

  
/*service */

#services {
    padding: 50px 20px;
    text-align: center;
  }
  
  #services h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #333;
    font-family: 'Arial', sans-serif;
  }
  
  .services-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center the items */
    gap: 20px;
  }
  
  .about-details {
    background-color: rgba(255, 255, 255, 0.2); /* Transparent background for the card */
    backdrop-filter: blur(10px); /* Frosted glass effect */
    padding: 20px;
    border-radius: 8px;
    width: calc(33.33% - 20px); /* Three items per row */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .about-details h3 {
    font-size: 1.5rem;
    color: #333; /* Dark text color for better contrast */
    margin-bottom: 15px;
  }
  
  .about-details p {
    font-size: 1rem;
    color: #555; /* Lighter color for the paragraph text */
    line-height: 1.5;
  }
  
  .about-details:hover {
    transform: translateY(-10px); /* Lift the card on hover */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Darker shadow on hover */
  }
  
  /* Responsive design */
  @media (max-width: 768px) {
    #services h2 {
      font-size: 2rem;
    }
  
    .about-details {
      width: calc(50% - 20px); /* Two items per row */
    }
  
    .about-details h3 {
      font-size: 1.25rem;
    }
  }
  
  @media (max-width: 480px) {
    .about-details {
      width: 100%; /* Full width for mobile */
    }
  }

/* Sample Works Layout */
.sample-works {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }
  
  .sample-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }
  
  .sample-item {
    flex: 1 1 20%; /* grow, shrink, basis (45% width) */
    max-width: 20%;
    aspect-ratio: 1 / 1; /* makes them square */
    overflow: hidden;
  }
  
.sample-item img,
.sample-item video {
  width: 100%;
  height: 100%;
  object-fit: contain; /* show entire image/video without cutting */
  background: #fff; /* optional: makes it look clean if image is not square */
  border-radius: 10px;
}

  
  /* Responsive for mobile */
  @media (max-width: 768px) {
    .sample-item {
      flex: 1 1 100%;
      max-width: 100%;
    }
  }
  
  #lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
  }
  
  #lightbox img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 20px white;
    border-radius: 10px;
  }
  
  /* Optional: make it close on hover-out if you want fancier UX */
  #lightbox:hover {
    cursor: zoom-out;
  }
  