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

body, html {
    font-family: 'Public Sans', sans-serif;
    width: 100%;
    overflow-x: hidden;
    background: #181818;
}

/* Header */
header {
    background-color: #181818;
    width: 100%;
    top: 0;
    z-index: 1000;
}

#main_logo {
    height: auto;
    filter: invert(100%);
    max-width: 10%;
}

.logo {
    flex:1;
    text-align: center;
}

.logo h1 {
    color: #fff;
    text-align: center;
    padding: 20px;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    width: 100%;
}

.nav-links {
    list-style: none;
    display: flex;
    
}

.nav-links li {
    
}

.nav-links li a {
    color: white;
    text-decoration: none;
    padding: 20px;
    display: block;
}

.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
}

.burger div {
    background-color: #fff;
    margin: 5px;
    width: 25px;
    height: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background-image: url('background_puzzle.webp');
    height: 500px;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

/* Section Styling */
.section {
    padding: 80px 20px;
    text-align: center;
    color: white;
    background: #181818;
}

/* Footer */
footer {
    background-color: #181818;
    color: #fff;
    text-align: center;
    padding: 20px;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Media Queries */
@media screen and (max-width: 768px) {
    .modal-content {
     
        margin-top: 25% !important;
      
        }
    .dots{
        display:none;
    }
    .section_right, .section_left{
        float: center;
        width:100%;

    }
    #main_logo {
        max-width: 25%;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        
        background-color: #181818;
         flex: 1; /* Ensure it takes up available space */
    justify-content: flex-end; /* Align items to the right */
    }

    .nav-links li {
        margin: 15px 0;
        
        
    }

    .burger {
        display: block;
        margin-bottom: 2%;
    }

    .nav-active {
        display: flex;
        flex-direction: column;
        align-items: center;
        opacity: 1;
    }

    /* Add animation to nav links */
.nav-links li {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 2s ease, transform 2s ease; /* Increase duration to 2s */
}

.nav-active li:nth-child(1) {
    transition-delay: 0.5s; /* Increase delay to 0.5s */
}

.nav-active li:nth-child(2) {
    transition-delay: 1s; /* Increase delay to 1s */
}

.nav-active li:nth-child(3) {
    transition-delay: 1.5s; /* Increase delay to 1.5s */
}

    .hero {
        margin-top: 0px;
        max-height: 250px;
    }

    /* Burger animation */
  .burger.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
        transition: transform 0.5s ease; /* Adjust transition duration */
    }

    .burger.toggle .line2 {
        opacity: 0;
        transition: opacity 0.5s ease; /* Adjust transition duration */
    }

    .burger.toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
        transition: transform 0.5s ease; /* Adjust transition duration */
    }
}

@media screen and (max-width: 480px) {
    .nav-links li a {
        padding: 15px;
    }
}

/* Gallery */
.gallery { display: flex; flex-wrap: wrap; padding: 4px; margin-left: 15%; }
.gallery div { flex-basis: 20%; margin: 5px; box-shadow: 0 4px 8px rgba(0,0,0,.1); cursor: pointer; }
.gallery div img { width: 100%; height: auto; transition: transform .2s; }
.gallery div:hover img { transform: scale(1.05); }
.modal { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.9); }
.modal-content { margin: auto; margin-top: 5%; display: block; width: 80%; max-width: 700px; }
.close { position: absolute; top: 15px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; cursor: pointer; }
.right_btn { position: absolute; top: 50%; right: 5%; color: #f1f1f1; font-size: 40px; font-weight: bold; cursor: pointer; }
.left_btn { position: absolute; top: 50%; right: 95%; color: #f1f1f1; font-size: 40px; font-weight: bold; cursor: pointer; }

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animated-text {
    opacity: 0;
    animation-name: fadeInScale;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-delay: 0.5s;
    font-size: 48px;
    text-align: center;
    background: #181818;
    color: white;
    padding: 20px;
}
.animated-text p {
   color : rgba(103, 101, 101, 0.938);
   animation-name: fadeInScale;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-delay: 0.5s;
}

/* Logos */
.logo-banner {
    background-color: #181818;
    padding: 20px 0;
    text-align: center;
    overflow: hidden;
}

.logo-banner img {
    margin: 0 15px;
    vertical-align: middle;
    max-height: 50px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.logo-banner img:hover {
    opacity: 1;
}

/* Scrolling text */
body, html {
    margin: 0;
    padding: 0;
}

.scrolling-text {
    font-size: 600%;
    width: 100%;
    height: 10%;
    white-space: nowrap;
    overflow: hidden;
    box-sizing: border-box;
    background: #181818;
    color: #fff;
    display: flex;
    align-items: center;
}

.scrolling-text span {
    color: lightgray;
    display: inline-block;
    padding-left: 100%;
    animation: scroll 75s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}
.section_left{
    float:left;
    width: 48%;
}
.section_right{
    float:right;
    width: 48%;
}
.dots:hover{
    
    color: greenyellow;
    transition: 0.3s;
}
/* General styling */
.section.bigimages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 0 auto;
    max-width: 1200px;
}

.big_pic {
    flex: 0 1 calc(50% - 20px);
    box-sizing: border-box;
    text-align: center;
    margin-bottom: 20px;
}

.big_pic img {
    max-width: 100%;
    height: auto;
}

h2 svg {
    fill: white;
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: middle;
    margin-left: 5px;
}

/* Flexbox centering for the h2 element */
.bigimages h2 {
    display: flex; 
    align-items: center;
}

/* Hover effect for both text and SVG */
.bigimages h2:hover {
    transform: scale(1.05);
    color: greenyellow;
    transition: 0.3s;
}

/* Apply hover effect to the SVG when the h2 is hovered */
.bigimages h2:hover svg {
    fill: greenyellow;
    transition: 0.3s;
}