* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #f2f2f2;
  padding: 10px;
}

.container {
  display: flex;
  justify-content: center;
}

.card {
  display: flex;
  flex-direction: column;
  width: 800px;
  background: white;
  border-top-right-radius: 40px;
  overflow: hidden;
  position: relative;
}

.top-section {
  display: grid;
  grid-template-columns: 30% 70%;
  min-height: 120px;
}

.left-area {
  background: #dce7d5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  height: 100%;
}

.lights {
  max-height: 120px;
  object-fit: contain;
}

.right-area {
  height: 100%;
  position: relative;
}

.header-image {
  height: 100%;
}

.header-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-top-right-radius: 40px;
}

.profile-section {
  display: flex;
  align-items: center;
  justify-content: start;
  padding: 30px;
  background: white;
  gap: 20px;
}

.profile-pic {
  min-width: 90px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
}

.profile-text h1 {
  font-size: 24px;
  color: #3c4328;
}

.profile-text p {
  font-size: 16px;
  color: #888;
}
.info{
  display: flex;
  justify-content: center;
  padding-left: 30px;
  padding-bottom: 30px;
}
.floating-socials {
  position: absolute;
  top: 210px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.floating-socials a {
  color: #3c4328;
  font-size: 20px;
  transition: transform 0.3s;
}

.floating-socials a:hover {
  transform: scale(1.2);
}

.content-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
  gap: 50px;
}



.section h2 {
  color: #3c4328;
  font-size: 26px;
  letter-spacing: 2px;
  font-weight: 800;
  margin-bottom: 20px;
}

.section h3 {
  font-size: 20px;
  margin: 8px 0;
  color: #3c4328;
}


form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

form input, form textarea {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

form button, .section button {
  padding: 10px;
  background-color: #f4c35b;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

form button:hover, .section button:hover {
  background-color: #e1b347;
}

form button, .section .createnexlink{
  padding: 10px;
  background-color: #940057;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  padding: 0 30px 30px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f9f9f9;
  border-radius: 10px;
  padding: 12px;
  transition: all 0.3s ease;
}

.contact-card:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

.icon-box {
  width: 40px;
  height: 40px;
  background:#fbd779;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-boxdownload{
  width: 40px;
  height: 40px;
  background:#940057;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}


.icon-box i {
  color: #50553a;
  font-size: 18px;
}

.contact-text {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 12px;
  color: #888;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-value {
  font-size: 12px;
  color: #333;
  font-weight: 600;
  margin-top: 2px;
}

/* Gallery Container Fixes */
.gallery-container {
  width: 100%;
  overflow-x: auto;
  padding: 20px 0;
  scroll-snap-type: x mandatory; /* Changed to mandatory for better snapping */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.gallery-scroll {
  display: flex;
  gap: 20px;
  padding: 0 20px; /* Changed from calc() to simple padding */
  width: max-content; /* Key fix - makes container expand to content */
  margin: 0 auto; /* Center the scrollable area */
}

/* File Gallery Container Fixes */
.file-gallery-container {
  width: 100%;
  overflow-x: auto;
  padding: 20px 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.file-gallery-scroll {
  display: flex;
  gap: 20px;
  padding: 0 20px; /* Changed from calc() */
  width: max-content; /* Key fix */
  margin: 0 auto; /* Center alignment */
}

/* Gallery Item Adjustments */
.gallery-item {
  scroll-snap-align: center;
  min-width: 250px;
  height: 300px;
  flex-shrink: 0; /* Prevent items from shrinking */
}

.file-gallery-item {
  scroll-snap-align: center;
  min-width: 300px;
  height: 220px;
  flex-shrink: 0; /* Prevent shrinking */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .gallery-item {
    min-width: 180px;
    height: 220px;
  }
  
  .file-gallery-item {
    min-width: 250px;
    height: 200px;
  }
  
  .gallery-scroll,
  .file-gallery-scroll {
    padding: 0 15px; /* Smaller padding on mobile */
  }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.gallery-item.center {
  transform: scale(1.05);
  z-index: 2;
}

.gallery-item.center img {
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 100;
  justify-content: center;
  align-items: center;
}

.modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

.modal.active {
  display: flex;
}

.close-modal {
  position: absolute;
  top: 30px;
  right: 30px;
  color: white;
  font-size: 30px;
  cursor: pointer;
}

.section p {
  font-size: 15px;
  color: #666;
}
.section-title {
  position: relative;
  font-size: 60px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1;
}

.outline-text {
  color: transparent;
  -webkit-text-stroke: 1px #cfd3c2; /* light outline */
  font-weight: 900;
  text-transform: uppercase;
}

.filled-text {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translate(-50%, -50%);
  font-size: 28px;
  font-weight: 700;
  color: #3c4328;
  text-transform: capitalize;
  white-space: nowrap;
}

.createcard1 {
  color: transparent;
  -webkit-text-stroke: 1px #cfd3c2; /* light outline */
  font-weight: 900;
  text-transform: uppercase;
}

.createcard2 {
  position: absolute;
  left: 50%;
  top: 110%;
  transform: translate(-50%, -50%);
  font-size: 27px;
  font-weight: 700;
  color: #3c4328;
  text-transform: capitalize;
  white-space: nowrap;
}

/* Testimonial Section */
.testimonial-container {
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
  border-radius: 16px;
  padding: 30px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border-left: 5px solid #f4c35b;
  margin-top: 20px;
}

.testimonial-container::before {
  content: """;
  font-size: 80px;
  color: #940057;
  opacity: 0.2;
  position: absolute;
  top: 10px;
  left: 20px;
  font-family: Georgia, serif;
}

.testimonial-text {
  font-style: italic;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  font-weight: 700;
  color: #940057;
  text-align: right;
  font-size: 14px;
}

/* Business Hours Section */
.business-hours {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.hour-item {
  background: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.hour-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.hour-item i {
  margin-right: 12px;
  color: #f4c35b;
  font-size: 18px;
  width: 30px;
  text-align: center;
}

.day-name {
  font-weight: 600;
  color: #3c4328;
  margin-bottom: 3px;
}

.hour-range {
  font-size: 14px;
  color: #666;
}

.saturday-item {
  grid-column: span 2;
  background: #f8f8f8;
  text-align: center;
  color: #940057;
  font-weight: 600;
}

/* NEXLINK Card Section */
.nexlink-section {
  position: relative;
  text-align: center;
  padding: 30px;
  background: linear-gradient(135deg, #940057 0%, #6a023f 100%);
  border-radius: 16px;
  color: white;
  overflow: hidden;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.nexlink-section h2 {
  color: white;
  margin-bottom: 15px;
  position: relative;
  z-index: 2;
}

.nexlink-icon {
  font-size: 40px;
  margin-bottom: 15px;
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.nexlink-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
  animation: rotate 15s linear infinite;
}

a{
  text-decoration: none;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.gallery-container::-webkit-scrollbar,
.file-gallery-container::-webkit-scrollbar {
  display: none;
}


@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr); /* now 2 per row */
    padding: 0 20px 20px;
  }

  .contact-card {
    max-width: 205px; /* fill available space */
  }

  .contact-value {
    font-size: 10px; /* fill available space */
  }


  .gallery-scroll {
    padding: 0 calc(50% - 100px);
  }

  .gallery-item {
    min-width: 180px;
    height: 220px;
  }

  .gallery-item.center {
    transform: scale(1.1);
  }

  .lights {
    width: 100px;
  }

  .top-section {
    height: 150px;
  }

  .floating-socials {
    top: 170px;
  }
}

/* File Gallery Styles */
.file-gallery-container {
  width: 100%;
  overflow-x: auto;
  padding: 20px 0;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  /* Hide scrollbar */
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none; 
}

.file-gallery-scroll {
  display: flex;
  gap: 20px;
  padding: 0 calc(50% - 175px);
}

.file-gallery-item {
  scroll-snap-align: center;
  min-width: 300px;
  height: 220px;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  background: white;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.file-gallery-item.center {
  transform: scale(1.1);
  z-index: 2;
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.file-thumbnail {
  height: 60%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
}

.file-thumbnail i {
  position: relative;
  z-index: 2;
}

.thumbnail-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.pdf-thumbnail {
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.1);
}

.ppt-thumbnail {
  color: #d35400;
  background: rgba(211, 84, 0, 0.1);
}

.doc-thumbnail {
  color: #2980b9;
  background: rgba(41, 128, 185, 0.1);
}

.file-details {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.file-name {
  font-size: 16px;
  font-weight: 600;
  color: #3c4328;
  margin-bottom: 5px;
}

.file-size {
  font-size: 12px;
  color: #888;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  background: #fbd779;
  color: #50553a;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 10px;
  transition: all 0.3s ease;
}

.download-btn:hover {
  background: #3c4328;
  color: white;
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .file-gallery-scroll {
    padding: 0 calc(50% - 150px);
  }
  
  .file-gallery-item {
    min-width: 250px;
    height: 200px;
  }
  
  .file-thumbnail {
    font-size: 50px;
  }
  
  .file-name {
    font-size: 15px;
  }
  
  .download-btn {
    padding: 6px 10px;
    font-size: 12px;
  }

  
}