* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #0b0b0b;
  font-family: 'Recoleta', sans-serif;
  color: #fff;
}
header {
  position: fixed; /* Keeps it in place during scroll */
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  z-index: 1000; /* Ensures it stays on top of the carousel */
  background: rgba(11, 11, 11, 0.8); /* Optional: semi-transparent background */
  backdrop-filter: blur(10px); /* Optional: glass effect */
}
.hero {
    text-align: center;
    margin-top: 100px !important;
    margin-bottom: 40px;
}

@keyframes fadeInUp {
    from {
        opacity: 0.6; /* Starting opacity */
        transform: translateY(20px); /* Slide from 20px down */
    }
    to {
        opacity: 1; /* Final opacity */
        transform: translateY(0); /* Move to original position */
    }
}
.hero-body .header {
    font-size: 80px;
    font-weight: 500;
    margin-bottom: 10px !important;
    width: 500px;
    line-height: 88px;
    text-align: center; /* Centers text inside the 300px box */
    margin-left: auto;  /* Centers the 300px box horizontally */
    margin-right: auto;
    opacity: 0.9; /* Initial state before animation kicks in */
    animation: fadeInUp 1s ease-out forwards;
}

.hero-body .para {

    color: rgb(182, 187, 191);
    font-family: 'Recoleta';
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s forwards; /* 0.3s delay */

}
span {
    color: #fd658b;
}

.portfolio {
  width: 100%;
  overflow: hidden; /* Hides cards outside the viewport */
  padding: 48px 0;
}

.track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 16px;
  width: max-content; /* Critical: allows content to exceed screen width */
  will-change: transform;
}

.art-card {
  flex: 0 0 auto;
  width: 250px;
  height: 250px;
  border-radius: 12px;
  background: #141414;
  position: relative;
  overflow: hidden;
}

.img-wrapper {
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.more {
    margin: 120px 80px 100px 80px;
}
.more-body {
    text-align: center;
    margin-bottom: 100px;
}
.more-body .header {
    font-size: 48px;
    line-height: 52px;
     margin-bottom: 10px !important;
}

.more-body .para {
    font-family: 'Recoleta';
    color: rgb(182, 187, 191);
}
/* Container for the 4-column layout */
.grid-container {
    display: grid;
    /* repeat(4, 1fr) ensures exactly 4 columns of equal size */
    grid-template-columns: repeat(4, 1fr); 
    gap: 24px;
    margin-top: 40px;
    padding: 0 0px;
}

/* Individual Card */
.grid-item {
    background: #141414;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1; /* Keeps images square, similar to carousel */
    transition: transform 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px); /* Subtle hover effect */
}

/* Image Wrapper */
.grid-img-box {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.site-footer {
    padding: 60px 20px;
    text-align: center;
    background: #0b0b0b;
    border-top: 1px solid #1a1a1a;
    font-family: 'Recoleta';
}

#date-time-display {
    font-size: 14px;
    color: #fff;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.copyright-text {
    font-size: 13px;
    color: #888;
    margin: 0;
}


/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
   
   
    /* 1. Adjust Hero Header */
    .hero-body .header {
        font-size: 52px; /* Smaller font for mobile */
        width: 270px;      /* Allow it to use most of the screen width */
        line-height: 56px;
         margin-bottom: 0px !important;
    }

    /* 2. Adjust Carousel Card Size for Mobile */
    .art-card {
        width: 180px;  /* Slightly smaller cards for small screens */
        height: 180px;
    }

    .portfolio {

  padding: 28px 0;
}
    .img-wrapper {
        width: 100%; /* Changed from fixed 280px */
        height: 100%; /* Changed from fixed 280px */
        /* object-fit: cover or contain will now work correctly */
    }

    /* 3. Adjust Grid Section Margins */
    .more {
        margin: 60px 20px 60px 20px; /* Reduce large side margins */
    }

    .more-body {
        margin-bottom: 60px; /* Less empty space */
    }

    .more-body .header {
        font-size: 28px;
        line-height: 32px;
    }

    /* 4. Change Grid from 4 columns to 2 columns */
    .grid-container {
        grid-template-columns: repeat(2, 1fr); 
        gap: 16px; /* Tighter gap for mobile */
    }

    /* 5. Footer Adjustments */
    #date-time-display {
        font-size: 12px;
        line-height: 1.5;
    }
}

/* --- SMALL PHONE ADJUSTMENTS --- */
@media (max-width: 480px) {


    .herodiv {
   
    margin-top: 120px !important;

}

    .hero-body .header {
        font-size: 48px;
        line-height: 52px;
        margin-top: 60px !important;
         margin-bottom: 0px !important;
    }
    
    .hero-body .para {

    color: rgb(182, 187, 191);
    font-family: 'Recoleta';
    line-height: 16px;
}

.art-card {
        width: 200px;  /* Slightly smaller cards for small screens */
        height: 200px;
    }

.more-body .para {
    font-family: 'Recoleta';
    color: rgb(182, 187, 191);
      line-height: 16px;
      margin: 0px;
}
    /* Optional: 1 column for very small phones if preferred */
    /* .grid-container { grid-template-columns: 1fr; } */
}
