/* Global resets */
body {
  margin: 0;
  padding: 0;
  font-family: 'Times New Roman', serif;
  background: #f8f8f8;
}

/* ===== HERO SECTION ===== */
section.hero {
  text-align: center;
  padding: 40px 20px;
}

header {
  display: flex;
  justify-content: space-between;
  padding: 0 5%;
  font-style: italic;
  font-size: 1.2rem; /* responsive font */
}

.hero-content {
  display: inline-block;
  margin-top: 60px;
  position: relative;
}

.hero-content h1 {
  font-size: 4vw;   /* scales with screen width */
  font-weight: normal;
  line-height: 1.2;
  margin: 0;
  position: relative;
  z-index: 2;
}

.hero-content h1 .kommune {
  font-size: 4.5vw;
}

.image-wrapper {
  margin-top: -6vh; /* overlap stays proportional */
}

.image-wrapper img {
  width: 25vw;     /* image scales with screen */
  max-width: 400px;
  height: auto;
}

/* ===== ABOUT SECTION ===== */
        section.about {
  padding: 60px 80px;
  background: #fff;
}

.about-container {
  display: flex;
  align-items: stretch;   /* text will stretch to match image height */
  gap: 40px;
}

.about-image img {
  width: 350px;      /* adjust as needed */
  height: auto;
  display: block;
  border-radius: 4px;
}

.about-text {
  flex: 1;
  font-size: 20.5px;       /* increased from 16px */
  line-height: 1.8;      /* increased for better vertical coverage */
  color: #333;
  display: flex;
  flex-direction: column;
  justify-content: center; /* keeps text vertically aligned */
}

.about-text p {
  margin-bottom: 24px;
}

.team-section {
    background-color: black;
    color: white;
    padding: 100px 40px;
    font-family: 'Roboto', sans-serif;
}

.team-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    /* Defines a 4-column grid for precise placement */
    grid-template-columns: repeat(4, 1fr);
    /* Defines rows, allowing content to determine height */
    grid-auto-rows: min-content;
    align-items: start; /* Aligns items to the top of their grid cell */
    justify-items: center; /* Centers items horizontally in their cell */
    gap: 20px 40px; /* Row and column gap */
}

.team-heading {
    /* Places the heading in the middle two columns of the first row */
    grid-column: 2 / span 2;
    grid-row: 1;
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4rem); /* Responsive font size */
    font-weight: 500;
    text-align: center;
    align-self: center; /* Vertically centers the heading in its grid area */
    margin: 0;
    line-height: 1.2;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.team-member img {
    width: 280px;
    height: 280px;
    border-radius: 60%;
    object-fit: cover;
    object-position: 50% 5%; /* Adjusts vertical position to show more of the top */
    margin-bottom: 15px;
    border: 2px solid #333; /* Optional border */
}

.team-member .name {
    font-weight: 500;
    font-size: 1.1rem;
    margin: 0 0 5px 0;
    text-transform: uppercase;
}

.team-member .role {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.4;
    margin: 0;
}

/* --- Grid placements for each team member --- */
/* These rules position each member in a specific grid cell */

#member-amitabh { grid-column: 1; grid-row: 1; align-self: center; }
#member-arunesh { grid-column: 4; grid-row: 1; align-self: center; }
#member-nyla { grid-column: 2 / span 2; grid-row: 2; }
#member-vijay { grid-column: 1; grid-row: 3; }
#member-sundip { grid-column: 2; grid-row: 3; }
#member-harbaksh { grid-column: 3; grid-row: 3; }
#member-naeem { grid-column: 4; grid-row: 3; }


/* --- Responsive Design for smaller screens --- */
@media (max-width: 992px) {
    .team-member img {
        width: 180px;
        height: 180px;
    }

    .team-grid-container {
        /* Switch to a 2-column layout on tablets */
        grid-template-columns: repeat(2, 1fr);
    }
     /* Re-assign grid positions for the 2-column layout */
    .team-heading { grid-column: 1 / span 2; grid-row: 1; margin-bottom: 40px; }
    #member-amitabh { grid-column: 1; grid-row: 2; }
    #member-arunesh { grid-column: 2; grid-row: 2; }
    #member-nyla { grid-column: 1 / span 2; grid-row: 3; }
    #member-vijay { grid-column: 1; grid-row: 4; }
    #member-sundip { grid-column: 2; grid-row: 4; }
    #member-harbaksh { grid-column: 1; grid-row: 5; }
    #member-naeem { grid-column: 2; grid-row: 5; }
}

@media (max-width: 576px) {
    .team-member img {
        width: 150px;
        height: 150px;
    }

    .team-section {
        padding: 60px 20px;
    }
    .team-grid-container {
        /* Stack everything in a single column on mobile */
        grid-template-columns: 1fr;
    }
    /* All items will automatically fall into a single column, no need for re-assignment */
    .team-heading,
    .team-member {
        grid-column: 1; /* Ensure they take up the full column */
    }
    /* Reset row assignments so they flow naturally */
    #member-amitabh, #member-arunesh, #member-nyla, #member-vijay, #member-sundip, #member-harbaksh, #member-naeem {
        grid-row: auto;
    }
}

/* --- SAMPLE WORKS SECTION --- */

.sample-works-section {
    background-color: #000;
    color: #fff;
    padding: 100px 80px;
    font-family: 'Georgia', serif;
}

.works-heading {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-align: left;
    margin-bottom: 60px;
}

.works-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* This is the fix to align items to the top */
    gap: 20px; /* Reduced the gap between items */
    flex-wrap: wrap; 
}

.work-item {
    flex: 1;
    min-width: 300px; 
    max-width: 420px; /* Increased max-width to allow items to grow larger */
}

.work-item img {
    width: 100%;
    height: 300px; /* Increased image height */
    object-fit: cover; /* Ensures the image covers the area, cropping as needed */
    display: block;
    margin-bottom: 30px;
    border: 1px solid #444; 
}

.work-info h3 {
    font-family: 'Georgia', serif;
    font-size: 28px; /* Increased font size */
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 20px 0;
}

.work-info p {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 18px; /* Increased font size */
    color: #ccc;
    margin: 10px 0;
}

.work-info hr {
    border: none;
    height: 1px;
    background-color: #555;
    margin: 15px 0;
}


/* --- Responsive Design --- */
@media (max-width: 992px) {
    .sample-works-section {
        padding: 80px 40px;
    }
    .works-grid {
        flex-direction: column;
        align-items: center; 
    }
    .work-item {
        width: 100%;
        max-width: 500px; 
    }
}

@media (max-width: 576px) {
    .sample-works-section {
        padding: 60px 20px;
    }
    .works-heading {
        font-size: 36px;
        text-align: center;
    }
}

.clients-section {
    background-color: #e9e9e9; /* Light grey background */
    padding: 100px 80px;
}

.clients-heading {
    font-family: 'Playfair Display', serif;
    font-size: 64px;
    font-weight: 500;
    color: #333;
    text-align: left;
    margin: 0 0 60px 0;
}

.clients-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Changed from flex-start to center */
    align-items: center;
    gap: 40px; /* Space between logos */
}

.client-logo {
    background-color: #fff; /* White background for each logo box */
    padding: 20px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    flex-basis: calc(20% - 32px); /* 5 items per row, accounting for gap */
    min-width: 180px;
}

.client-logo img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}


/* --- Responsive Design --- */
@media (max-width: 1200px) {
    .client-logo {
        /* 4 items per row */
        flex-basis: calc(25% - 30px);
    }
}

@media (max-width: 992px) {
    .clients-section {
        padding: 80px 40px;
    }
    .client-logo {
         /* 3 items per row */
        flex-basis: calc(33.33% - 27px);
    }
}

@media (max-width: 768px) {
    .clients-heading {
        text-align: center;
    }
    .clients-grid {
        justify-content: center;
    }
     .client-logo {
         /* 2 items per row */
        flex-basis: calc(50% - 20px);
    }
}

@media (max-width: 576px) {
    .clients-section {
        padding: 60px 20px;
    }
    .client-logo {
         /* 1 item per row */
        flex-basis: 100%;
    }
}


/* --- BOOKING SECTION --- */

.booking-section {
    background-color: #111;
    color: #fff;
    padding: 120px 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; /* Set positioning context */
}

.booking-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    gap: 40px;
}

/* --- Left Side --- */
.booking-left {
    flex: 1;
}

.booking-brand {
    /* Position absolutely relative to the section */
    position: absolute;
    top: 120px; /* Match section top padding */
    left: 80px; /* Match section left padding */
    font-size: 22px; /* Increased font size */
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.3; /* Added for better spacing */
}

.booking-heading {
    font-family: 'Playfair Display', serif;
    font-size: 96px; /* Increased font size */
    font-weight: 500;
    line-height: 1.1;
    margin: 60px 0 50px 0; /* Added top margin to create space */
}

.booking-heading span {
    font-style: italic;
    display: block; /* Puts "Booking" on a new line */
}

.register-btn {
    display: inline-block;
    font-size: 20px; /* Increased font size */
    color: #fff;
    text-decoration: none;
    border: 1px solid #fff;
    border-radius: 50px;
    padding: 15px 45px;
    transition: background-color 0.3s, color 0.3s;
}

.register-btn:hover {
    background-color: #fff;
    color: #111;
}

/* --- Right Side (Updated) --- */
.booking-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.contact-details {
    display: flex;
    flex-direction: column;
    align-items: left; /* Horizontally center the stacked items */
    gap: 10px; /* Reduced gap for less space */
    font-size: 18px; /* Increased font size */
}

.contact-details p {
    margin: 0;
}


/* --- Responsive Design --- */
@media (max-width: 992px) {
    .booking-section {
        padding: 100px 40px;
    }
    .booking-brand {
        /* Revert to normal flow for centered mobile layout */
        position: static;
        margin-bottom: 80px;
        text-align: center; /* Center text for stacked layout */
    }
    .booking-container {
        flex-direction: column;
        text-align: center;
        gap: 80px;
    }
    .booking-heading {
        font-size: 72px; /* Increased font size */
        margin-top: 0; /* Reset top margin for mobile */
    }
    .booking-right {
        justify-content: center;
    }
    .contact-details {
        align-items: center;
    }
}

@media (max-width: 576px) {
    .booking-section {
        padding: 80px 20px;
    }
    .booking-heading {
        font-size: 54px; /* Increased font size */
    }
}




/* ===== TABLET VIEW ===== */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 6vw;
  }

  .hero-content h1 .kommune {
    font-size: 6.5vw;
  }

  .image-wrapper img {
    width: 40vw;
  }

  .about-text {
    font-size: 1rem;
    line-height: 1.6;
  }
}

/* ===== MOBILE VIEW ===== */
@media (max-width: 768px) {
  header {
    font-size: 1rem;
    padding: 0 20px;
  }

  .hero-content h1 {
    font-size: 8vw;
  }

  .hero-content h1 .kommune {
    font-size: 9vw;
  }

  .image-wrapper {
    margin-top: -4vh;
  }

  .image-wrapper img {
    width: 60vw;
    max-width: 300px;
  }

  .about-container {
    flex-direction: column;
    align-items: center;
    text-align: justify;
  }

  .about-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 20px;
  }
}

/* ===== SMALL MOBILE VIEW ===== */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 10vw;
  }

  .hero-content h1 .kommune {
    font-size: 11vw;
  }

  .image-wrapper img {
    width: 80vw;
  }

  .about-text {
    font-size: 0.9rem;
  }
}
