/*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}
*/
header{
    height: 100px;
    background-color: #343a40; 
    filter: drop-shadow(10px);
    z-index: 1000000000;
}

.logo{
    height: 100px;
    width: 15rem!important;
    transition: 0.5s ease;
}

.logo:hover{
    transform: scale(1.1);
}
nav a{
    
    font-size: 2rem!important;
    color: white;
    margin-left: 1.5rem;
    font-weight: 500;
    border-bottom: 3px solid transparent!important;
    
}

nav a:hover,
nav a.active{
    color: #b74b4b;
    border-bottom: 3px solid #b74b4b!important;
}

body{
    
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
    background-color: black;
    color: white;
}

section{
    
    padding-top: 3rem;
    padding: 5rem 9% 5rem;
    min-height: 83vh;
    margin: 0;
    height: auto;
    box-sizing: border-box;
}

@media (max-width: 768px) {
  section {
    padding: 3rem 4% 3rem; /* reduce side padding */
  }
    .logo {
    width: 9rem !important;  /* smaller logo */
    height: auto;
    }
    nav a {
    font-size: 1.2rem !important;
    margin-left: 0.5rem;
  }
  .navbar-nav {
    text-align: center;
    margin-top: 1rem;
  }
  .navbar-nav .nav-item {
    margin: 0.5rem 0;
  }
}

.home{
    display: flex;
    padding-top: 150px;
    flex: 0 1 200px;
    gap: 8rem;
    align-items: center;
    justify-content: center;
}

.home .home-content h1{
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.3;
}

span{
    color: #b74b4b;
}
#formText{
    color: #b74b4b;
}

.home-content a{
    text-align: center;
    justify-content: center;
    align-items: center;
}

.home-content h2{
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.home-content p{
    font-size: 1.6rem;
}

.home-img{
    
    border-radius: 50%;
}
.about-us>div{
    gap:15.25rem;
}
.team-item{
    
    position: relative;
    width: 22vw;
    min-width: 150px;
    cursor: pointer;
    transition: 0.2s linear;
    border: 2px solid #eeecec; 
    box-shadow: 0 0 35px #b74b4b; 
}

@media (max-width: 768px) { 
    .team-item {
        width: 40vw; 
        min-width: 180px; 
    }
}

@media (max-width: 480px) { 
    .team-item {
        width: 70vw; 
        min-width: 200px; 
    }
}
.profile{
    gap: 20px;
}
.text {
    max-width: 600px;
    padding: 125px;
    font-size: 20px; 
}
.background-text{
    filter: brightness(75%);
}
.home-img img{
    position: relative;
    width: 32vw;
    border-radius: 10%;
    box-shadow: 0 0 25px solid #b74b4b;
    cursor: pointer;
    transition: 0.2s linear;
}

.home-img img:hover{
    font-size: 1.8rem;
    font-weight: 500;
}



.social-icons a:hover{
    color: black;
    transform: scale(1.3) translateY(-5px);
    background-color: #b74b4b;
    box-shadow: 0  0 25px #b74b4b;
}

.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: black;
    border-radius: 4rem;
    font-size: 1.6rem;
    color: #b74b4b;
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid #b74b4b;
    transition: 0.3s ease;
    cursor: pointer;
    margin-top: 2rem;
}

.btn:hover{
    transform: scale3d(1.03);
    background-color: #b74b4b;
    color: black;
    border: 2px solid #ffffff;
    box-shadow: 0 0 25px #b74b4b;
}

.team-name{
    text-align: center;
    font-size: 30px;
}

.typing-text{
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
    
}

.typing-text span{
    position: relative;
}

.typing-text span::before{
    content: "";
    color: #b74b4b;
    animation: words 20s infinite;
}

.typing-text span::after{
    content: "";
    background-color: black;
    position: absolute;
    width: calc(100% + 8px);
    height: 1lh;
    border-left: 9px solid black;
    right: -8;
    animation: cursor 0.6s infinite;
}

@keyframes cursor{
    to{
        border-left: 3px solid #b74b4b;
    }
}


@keyframes words{
    0%, 20%{
        content: "Lakások és Családi házak teljes körű villanyszerelését.";
    }
    21%, 40%{
        content: "Lakások és Családi házak teljes körű villanyszerelését.";
    }
    41%, 60%{
        content: "EPH rendszer kiépítését.";
    }
    61%, 80%{
        content: "Háztartási villamos berendezések bekötését";
    }
    81%, 100%{
        content: "Lámpák felszerelését, konnektor dugaljak cseréjét.";
    }
}

@media (max-width: 1000px){
    .home{
        gap: 4rem;
    }
}
.about-us-cards-container {
    padding-top: 3rem; /* Optional: adds top padding to the section */
    padding-bottom: 3rem; /* Optional: adds bottom padding to the section */
    gap: 15.25rem; /* This sets the exact gap you wanted between the cards */
}

/* Media query for smaller screens */
@media (max-width: 991.98px) {
    .about-us-cards-container {
        flex-direction: column; /* Stacks the cards vertically */
        align-items: center; /* Centers the stacked cards */
        gap: 2rem; /* Reduces the gap for a better mobile layout */
    }
}
@media(max-width:995px){
    .home {
    flex-direction: column;
    margin: 3rem auto;      /* remove large side margins */
    align-items: center;    /* center children horizontally */
    justify-content: center;
    text-align: center;     /* make text center nicely */
    gap: 2rem;
  }

  .home .home-content {
    text-align: center;     /* center headings + paragraph */
    max-width: 90%;         /* prevent overflow on small screens */
  }

  .home .home-content h1 {
    font-size: 2.5rem;
  }

  .home .home-content h2 {
    font-size: 1.8rem;
  }

  .home-img img {
    width: 80vw;            /* responsive image scaling */
    margin-top: 2rem;
  }
  
}
    
#experience{
    margin: auto;
    display: flex!important;
    flex-direction: column;
    align-items: center!important;
    justify-content: center!important;
}
.carousel-inner {
  aspect-ratio: 1/1; /* You can change this to 1/1 for square, 4/3 for a box, etc. */
}

.carousel-inner img {
  height: 100%;
  object-fit: cover; /* This is the key to cropping the images */
}
#carouselExample {
  width: 90%; /* A percentage width for responsiveness */
  margin: 0 auto; /* Centers the carousel */
}

/* Control the aspect ratio and max-width of the images */
#carouselExample img {
  width: 100%; /* Image fills its container */
  height: auto; /* Maintain aspect ratio */
  /* Remove fixed aspect-ratio, let the browser handle it */
}

/* Media query to make the carousel smaller on mobile */
@media (max-width: 768px) {
  #carouselExample {
    width: 100%; /* Use full width on small screens */
  }
}

/* Media query to set a max-width on larger screens */
@media (min-width: 992px) {
  #carouselExample {
    max-width: 900px; /* Adjust as needed for your design */
  }
}
    
.Contact{
    display: flex;
    flex-direction: row;
    gap: 2rem;
    padding: 20px;

    align-items: center;
    justify-content: center;
}
.Map {
  /* This container will make the iframe responsive */
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 75%; /* Maintain a 4:3 aspect ratio */
  box-shadow: 0 0 25px #b74b4b; /* Re-add the box-shadow to the container */
  border-radius: 10px; /* Re-add the border-radius to the container */
  overflow: hidden; /* Ensures the iframe doesn't go outside the container */
}

.Map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0; /* Ensures there is no default border */
}

/* Make it full width on smaller screens */
@media (max-width: 768px) {
  .Map {
    width: 90%;
    margin: 0 auto;
  }
}
