/* responsive-style.css */

/* Preserve desktop grid span */
.card:nth-child(1) {
  grid-column: span 2;
}

/* === MOBILE PHONES (max-width: 480px) === */
@media screen and (max-width: 480px) {

  html,
  body {

    width: 100%;
  }

  * {
    box-sizing: border-box;
  }

  .info-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card:nth-child(1) {
    grid-column: 1 / -1;
    /* full width on mobile */
  }

  /* Smaller image boxes without animation */
  .image-box,
  .image-box1 {
    width: 400px !important;
    height: 280px !important;
    border-radius: 25px !important;
    overflow: hidden;
  }

  .image-box img,
  .image-box1 img {
    width: 100%;
    height: 100%;
    object-fit: scale-down;
    /* fills container without distortion */
    display: block;
  }

  /* Additional responsive tweaks */
  .container {
    padding: 0 12px;
  }

  header {
    padding: 8px 12px;
  }

  .head-left img {
    width: 30px;
    height: 30px;
    margin-right: 12px;
  }

  .head-right p {
    margin: 0 8px;
    font-size: 12px;
  }

  .head-right a {
    padding-left: 12px;
  }

  .hero-info {
    top: 5vh;
    left: 5vw;
  }

  .hero-info h1 {
    font-size: 8vw;
    letter-spacing: 0.5vw;
  }

  .hero-info p {
    max-width: 90vw;
    font-size: 3.5vw;
  }

  .hero-info button {
    padding: 2vw 5vw;
    font-size: 4vw;
    border-radius: 4vw;
  }

  #timer {
    font-size: 30px;
    right: 3vw;
  }

  #timer-message {
    font-size: 15px;
    right: 3vw;
    bottom: 5vh;
  }

  .btn-conteiner {
    left: 80%;
    bottom: 40%;
  }

  .btn-content {
    font-size: 18px;
    padding: 6px 12px;
    border-radius: 50px;
  }

  .icon-arrow {
    width: 16px;
    margin-left: 10px;
    top: 8%;
  }

  .about-section h1 {
    font-size: 35px;
    max-width: 90vw;
  }

  .about-section h4,
  .about-section h5 {
    max-width: 280px;
    text-align: center;
  }

  .info-section {
    width: 100%;
    margin-top: 50px;
  }

  .card {
    height: 40vh;
  }

  .card h1 {
    font-size: 36px;
    max-width: 90vw;
  }

  .card p {
    max-width: 90vw;
  }

  .card button {
    padding: 8px 20px;
    font-size: 0.9rem;
    border-radius: 16px;
  }

  .contact-section h1 {
    font-size: 36px;
    max-width: 90vw;
  }

  .contact-section .img1,
  .contact-section .img2,
  .contact-section .img3 {
    width: 85px;
    height: 90px;
  }

  .contact-section .img1 {
    right: 5px;
    top: 10px;
  }

  .contact-section .img2 {
    left: 10px;
    top: 10px;
  }

  .contact-section .img3 {
    left: 5px;
    bottom: 5px;
  }

  .contact-section button {
    padding: 8px 20px;
    font-size: 0.9rem;
    border-radius: 16px;
  }

  /* Footer fixes */
  .footer {
    width: 100%;
    display: flex;
    align-items: center;
    background-color: rgb(0, 0, 0);
    backdrop-filter: blur(10px);
    height: 90px;
  }

  .footer p {
    font-size: 25px;
    color: rgb(255, 255, 255);
    text-align: center;
    align-items: center;
  }
}

/* === TABLETS (481px to 768px) === */
@media screen and (min-width: 481px) and (max-width: 768px) {
  .info-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .card:nth-child(1) {
    grid-column: span 2;
  }

  .image-box,
  .image-box1 {
    width: 300px;
    height: 400px;
    border-radius: 35px;
    overflow: hidden;
  }

  .image-box img,
  .image-box1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* Footer fixes */
  .footer {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(211, 211, 211, 0.21);
    backdrop-filter: blur(10px);
    height: 80px;
  }

  .footer p {
    margin: 0 10px;
  }
}

/* === LAPTOPS & IPADS (769px to 1024px) === */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .info-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .card:nth-child(1) {
    grid-column: span 2;
  }

  .image-box,
  .image-box1 {
    width: 360px;
    height: 510px;
    border-radius: 50px;
    overflow: hidden;
  }

  .image-box img,
  .image-box1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* Footer fixes */
  .footer {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(0, 0, 0, 0.21);
    backdrop-filter: blur(10px);
    height: 80px;
    padding: 0 40px;
  }

  .footer p {
    margin: 0;
    font-size: 14px;
    color: white;
    text-align: center;
    flex: 1;
  }

  .footer ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
  }

  .footer a {
    text-decoration: none;
    color: white;
    padding: 7px 14px;
    border-radius: 50px;
    border: 1px solid rgb(0, 130, 211);
    transition: 0.3s;
  }

  .footer a:hover {
    background-color: rgb(0, 130, 211);
    color: white;
  }
}

/* === COMMON KEYFRAME ANIMATIONS === */
@keyframes autoBlurAnimation {
  0% {
    filter: blur(40px);
  }

  10%,
  60% {
    filter: blur(0);
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    filter: blur(40px);
    transform: translateY(-200px);
    opacity: 0;
  }
}

@keyframes autoDisplayAnimation {
  from {
    opacity: 0;
    transform: translateY(200px) scale(0.3);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes autoSeparateAnimation {
  0% {
    transform: scale(0);
    filter: blur(20px);
    opacity: 0.5;
    left: 50%;
  }

  100% {
    transform: scale(1.1);
    opacity: 1;
  }
}

@keyframes autoSeparateAnimation1 {
  0% {
    transform: scale(0);
    filter: blur(20px);
    opacity: 0.5;
    right: 50%;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}