/* Basic reset to prevent any margins or scrolling */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow-x: hidden; /* Allow vertical scrolling for services section */
  background-color: #000; /* Black background to avoid white edges */
  font-family: 'Poppins', sans-serif;
  position: relative; /* Add this line */
}

/* Logo Styles - Scrolls away naturally */
.logo-container {
  position: absolute;
  top: 27px;
  left: 50px;
  width: 156px;
  height: 156px;
  z-index: 100;
}

.site-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
  transition: opacity 0.3s ease, box-shadow 0.3s ease;
}

.site-logo:hover {
  opacity: 0.9;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.5);
}

/* Mobile responsive logo sizing */
@media (max-width: 948px) {
  .logo-container {
    width: 60px; /* Match hamburger menu size area */
    height: 60px;
    top: 20px; /* Adjust top position slightly */
    left: 20px; /* Adjust left position slightly */
  }
}

/* Hamburger Menu Styles - Stays fixed in place */
.hamburger-menu {
  position: fixed; /* Stays fixed - doesn't scroll away */
  top: 30px;
  right: 50px;
  width: 36px;
  height: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 100;
}

.hamburger-line {
  width: 100%;
  height: 4px;
  background-color: white;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9);
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.8);
  transition: all 0.3s ease;
}

/* Transforms for the open state */
.hamburger-menu.open .hamburger-line:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.hamburger-menu.open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.open .hamburger-line:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* Navigation Menu Styles */
.nav-menu {
  position: fixed;
  top: 0;
  right: -300px; /* Start off-screen */
  width: 300px;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding-top: 80px;
  transition: right 0.3s ease;
}

.nav-menu.open {
  right: 0;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 500;
  padding: 15px 30px;
  transition: background-color 0.3s ease;
}

.nav-menu a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-menu a.active {
  position: relative;
}

.nav-menu a.active:after {
  content: '';
  position: absolute;
  width: 5px;
  height: 100%;
  top: 0;
  left: 0;
  background-color: white;
}

/* Hero section styles */
.hero-section {
  position: relative;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 1; /* Lower than navbar */
}

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2; /* Video behind content */
}

.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 3; /* Content above video */
  color: white;
  text-align: center;
  padding: 0 0px;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9); /* Stronger shadow */
}

/* Move just the description up closer to the title */
.hero-content .description {
  font-size: 1.75rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
  max-width: 80%;
  margin-top: -35px; /* Negative margin pulls it up closer to the title */
}

/* Overlay for when menu is open */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Contact Popup Styles */
.contact-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 150;
  display: none;
}

.contact-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 500px;
  background-color: white;
  border-radius: 8px;
  z-index: 151;
  display: none;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.contact-popup-content {
  padding: 30px 60px 30px 30px; /* Top Right Bottom Left */
  color: #333;
}

.contact-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.contact-popup-header h2 {
  margin: 0;
  color: #333;
  font-size: 1.8rem;
  font-weight: 600;
}

/* Optionally add more breathing room to the close button */
.close-popup {
  background: none;
  border: none;
  font-size: 40px;
  cursor: pointer;
  color: #777;
  transition: color 0.3s ease;
  margin-right: -50px; /* Move the close button slightly more to the right */
  margin-top: -40px;
}

.close-popup:hover {
  color: #333;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #535353;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  transition: border-color 0.3s ease;
  padding-right: 15px; /* Add extra padding on the right side of inputs */
  }

.form-group input:focus,
.form-group textarea:focus {
  border-color: #555;
  outline: none;
}

.submit-button {
  background-color: #000;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-button:hover {
  background-color: #333;
}

/* Animation classes */
.fade-in {
  animation: fadeIn 0.3s ease forwards;
}

.fade-out {
  animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Updated Cyrus Section with proper vertical alignment */
.cyrus-section {
  width: 100%;
  background-color: #000;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: stretch; /* Make both containers same height */
  gap: 20px;
  box-sizing: border-box;
  max-width: 100vw;
  overflow: hidden;
}

.cyrus-container {
  max-width: 960px;
  width: 48%;
  background-color: #1c3d5a;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Right image container - now matches height and aligns properly */
.cyrus-right-image {
  width: 48%;
  display: flex;
  align-items: stretch; /* Stretch to match container height */
  justify-content: center;
  box-sizing: border-box;
  flex-shrink: 0;
}

.cyrus-right-image img {
  width: 100%;
  height: 100%; /* Take full height of container */
  object-fit: cover; /* Cover the entire area while maintaining aspect ratio */
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

/* Keep original float layout for proper text wrapping inside container */
.cyrus-image-container {
  float: left;
  width: 40%;
  margin-right: 32px;
  margin-bottom: 24px;
}

.cyrus-image {
  width: 100%;
  height: auto;
  border-radius: 15px;
  border: 3px solid #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  display: block;
}

.cyrus-text {
  color: white;
}

.cyrus-text h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 20px;
  line-height: 1.4;
}

.cyrus-text p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 16px;
  font-weight: 400;
}

/* Clear the float to ensure container expands properly */
.cyrus-content::after {
  content: "";
  display: table;
  clear: both;
}

.cyrus-highlight {
  font-size: 1.04rem;
  font-weight: 600;
  font-style: italic;
  margin-bottom: 12px;
  text-align: center;
}

.cyrus-tagline {
  font-size: 0.96rem;
  font-weight: 700;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

/* Mobile responsive - stack vertically on mobile */
@media (max-width: 768px) {
  .cyrus-section {
    flex-direction: column;
    padding: 10px 20px;
    align-items: stretch;
    justify-content: flex-start;
  }
  
  .cyrus-container {
    width: 100%;
    padding: 24px 16px 32px 16px;
    margin: 10px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
  }
  
  .cyrus-right-image {
    width: 100%;
    margin: 10px 0;
    align-items: center;
  }
  
  .cyrus-right-image img {
    height: auto; /* Let image maintain natural height on mobile */
    max-height: 300px;
    object-fit: contain;
  }
  
  /* Make image take full width on mobile */
  .cyrus-image-container {
    float: none;
    width: 100%;
    margin-right: 0;
    margin-bottom: 16px;
  }
  
  .cyrus-content {
    gap: 16px;
  }
  
  .cyrus-text h2 {
    font-size: 1.36rem;
  }
  
  .cyrus-text p {
    font-size: 0.8rem;
  }
  
  .cyrus-highlight {
    font-size: 0.88rem;
  }
  
  .cyrus-tagline {
    font-size: 0.8rem;
  }
}

/* Tablet responsive */
@media (max-width: 1024px) and (min-width: 769px) {
  .cyrus-section {
    padding: 20px 30px;
  }
  
  .cyrus-container {
    width: 47%;
  }
  
  .cyrus-right-image {
    width: 47%;
  }
}

/* Featured Services Section */
.featured-services {
  display: flex;
  width: 100%;
  min-height: 250px;
  background-color: #000;
  color: white;
  padding: 20px 40px; /* Increased horizontal padding for container balance */
  gap: 20px; /* Space between service items */
  box-sizing: border-box; /* Make sure padding is included in width calculation */
  max-width: 100vw; /* Ensure it doesn't overflow the viewport */
}

.service-item {
  flex: 1;
  padding: 40px 30px 60px 30px; /* Generous padding inside boxes */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  border-radius: 15px; /* Rounded corners */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Subtle shadow */
  margin: 10px 0; /* Vertical margin */
  box-sizing: border-box; /* Ensure padding is included in width */
}

/* Different background colors for each service item */
.service-item:nth-child(1) {
  background-color: #2c3e50; /* Dark blue/slate color */
}

.service-item:nth-child(2) {
  background-color: #34495e; /* Slightly different slate shade */
}

.service-item:nth-child(3) {
  background-color: #1a2634; /* Darker blue/slate for contrast */
}

/* Hover effect for service items */
.service-item:hover {
  transform: translateY(-5px); /* Slight lift effect on hover */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); /* Enhanced shadow on hover */
}

.service-icon {
  margin-bottom: 20px;
  color: white;
  /* Icons slightly larger */
  font-size: 1.2em;
}

.service-item h3 {
  margin: 0 0 10px 0;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 15px; /* Space between icon and header */
}

.service-item p {
  margin: 0 0 25px 0; /* Space below paragraph */
  font-size: 1rem;
  line-height: 1.5;
  max-width: 90%;
  font-style: italic;
}

.service-item ul {
  list-style-position: inside; /* Keep bullets aligned with text */
  padding-left: 0; /* Remove default padding */
  margin-top: 0; /* Remove default top margin */
  width: 100%; /* Ensure proper width */
}

.service-item li {
  margin-bottom: 5px; /* Space between list items */
  text-align: left; /* Align list text to the left for better readability */
}

/* For the last list item, remove the bottom margin */
.service-item li:last-child {
  margin-bottom: 0;
}

/* Make it responsive */
@media (max-width: 768px) {
  .featured-services {
    flex-direction: column;
    padding: 10px 20px; /* Adjusted padding for mobile */
  }
  
  .service-item {
    padding: 30px 20px 40px 20px;
    margin: 10px 0;
  }
}

/* Team Section Styles */
.team-section {
  padding: 40px 40px 60px;
  background-color: #000;
  color: white;
  box-sizing: border-box;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.section-header p {
  font-size: 1.2rem;
  color: #ccc;
  max-width: 600px;
  margin: 0 auto;
}

.team-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.team-member {
  width: 300px;
  background-color: #2c3e50; /* Matching your featured items */
  border-radius: 15px; /* Same border radius as featured items */
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  padding-bottom: 25px;
}

/* Alternate background color for second team member */
.team-member:nth-child(2) {
  background-color: #1a2634; /* Matching the shade of your third featured item */
}

.team-member:hover {
  transform: translateY(-5px); /* Same hover effect as featured items */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.member-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-member:hover .member-image img {
  transform: scale(1.05);
}

.member-name {
  margin: 20px 0 5px;
  font-size: 1.4rem;
  font-weight: 600;
  padding: 0 20px;
}

.member-title {
  color: #ccc;
  font-size: 1rem;
  margin-bottom: 15px;
  padding: 0 20px;
}

.social-links {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  margin: 0 5px;
  transition: background-color 0.3s ease;
}

.social-links a:hover {
  background-color: #0077b5; /* LinkedIn blue */
}

.social-links i {
  font-size: 20px;
}

/* Responsive styles */
@media (max-width: 768px) {
  .team-section {
    padding: 30px 20px 40px;
  }
  
  .section-header {
    margin-bottom: 40px;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .team-container {
    gap: 30px;
    padding: 0 10px;
  }
  
  .team-member {
    width: 100%;
    max-width: 320px;
  }
}

/* CSS for spacing between paragraph and list */
.service-item p {
  margin-bottom: 25px; /* Increase space below the paragraph */
}

.service-item h3 {
  margin-top: 15px; /* Space between icon + Header */
}

.service-item ul {
  list-style-position: inside; /* Keep bullets aligned with text */
  padding-left: 0; /* Remove default padding */
  margin-top: 0; /* Remove default top margin */
}

.service-item li {
  margin-bottom: 5px; /* Space between list items */
  text-align: left; /* Align list text to the left for better readability */
}

/* For the last list item, remove the bottom margin */
.service-item li:last-child {
  margin-bottom: 0;
}



/* Scroll Down Arrow */
.scroll-arrow {
  position: absolute;
  bottom: 30px;
  right: 30px;
  z-index: 10; /* Higher than video but lower than menu */
  cursor: pointer;
  animation: bounce 2s infinite;
  transition: opacity 0.3s ease;
  filter: drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.5));
}

.scroll-arrow svg {
  filter: drop-shadow(0px 0px 3px rgba(0, 0, 0, 0.5));
}

.scroll-arrow:hover {
  opacity: 0.8;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Make arrow responsive on mobile */
@media (max-width: 768px) {
  .scroll-arrow {
    bottom: 20px;
    right: 20px;
  }
}

/* Footer with Grid Layout for Precise Positioning - FIXED VERSION */
.site-footer {
  background-color: #111;
  color: white;
  padding: 30px 0;
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer with Grid Layout for Precise Positioning - FIXED VERSION */
.site-footer {
  background-color: #111;
  color: white;
  padding: 30px 0;
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: center;
  gap: 20px; /* Add gap for breathing room */
}

/* Team members section - horizontal row on LEFT side */
.footer-team {
  display: flex;
  gap: 60px; /* Reduced from 125px */
  width: 100%;
  align-items: center;
  justify-content: flex-start; /* Changed from default */
  margin-left: 0; /* Removed negative margin */
}

.footer-team-member {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 0; /* Allow shrinking if needed */
}

.footer-team-member img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 12px;
  flex-shrink: 0; /* Prevent image from shrinking */
}

.footer-team-member .member-info {
  display: flex;
  flex-direction: column;
  min-width: 0; /* Allow text to wrap if needed */
}

.footer-team-member .member-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  color: white;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap; /* Prevent name wrapping */
}

.footer-team-member .member-title {
  font-size: 0.9rem;
  color: #ccc;
  margin: 0;
  white-space: nowrap;
}

.footer-team-member .linkedin-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #0077b5;
  transition: color 0.3s ease;
  flex-shrink: 0; /* Prevent icon from shrinking */
}

.footer-team-member .linkedin-icon:hover {
  color: #fff;
}

/* Divider - center column in grid */
.footer-divider {
  height: 30px;
  background-color: rgba(255, 255, 255, 0.3);
  width: 2px;
  justify-self: center;
}

/* Navigation section - RIGHT side of grid */
.footer-nav {
  display: flex;
  gap: 25px; /* Reduced from 40px */
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  margin-right: 0; /* Removed negative margin */
}

.footer-link {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s ease;
  padding: 5px 8px;
  position: relative;
  white-space: nowrap;
}

.footer-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: white;
  transition: width 0.3s ease;
}

.footer-link:hover {
  color: #ccc;
}

.footer-link:hover:after {
  width: 100%;
}

.footer-copyright {
  grid-column: 1 / -1;
  color: #999;
  text-align: center;
  font-size: 0.9rem;
  margin-top: 20px;
}

/* Responsive breakpoints with better spacing management */

/* Large screens - ensure good spacing */
@media (max-width: 1400px) {
  .footer-content {
    padding: 0 30px;
  }
  
  .footer-team {
    gap: 50px;
  }
  
  .footer-nav {
    gap: 20px;
  }
}

/* Medium-large screens - start reducing spacing */
@media (max-width: 1200px) {
  .footer-content {
    padding: 0 25px;
  }
  
  .footer-team {
    gap: 40px;
  }
  
  .footer-nav {
    gap: 18px;
  }
  
  .footer-link {
    font-size: 1rem;
    padding: 5px 6px;
  }
}

/* When content starts getting cramped - reduce further */
@media (max-width: 1100px) {
  .footer-team {
    gap: 30px;
  }
  
  .footer-nav {
    gap: 15px;
  }
  
  .footer-team-member .member-name {
    font-size: 1rem;
  }
  
  .footer-team-member .member-title {
    font-size: 0.85rem;
  }
}

/* Critical breakpoint for 1000-1050px range where Contact gets cut off */
@media (max-width: 1050px) {
  .footer-content {
    padding: 0 15px; /* Reduce padding further */
  }
  
  .footer-team {
    gap: 25px; /* Tighter gap between team members */
  }
  
  .footer-nav {
    gap: 12px; /* Much tighter gap between nav links */
  }
  
  .footer-link {
    font-size: 0.95rem; /* Slightly smaller font */
    padding: 5px 4px; /* Reduce horizontal padding */
  }
  
  .footer-team-member .member-name {
    font-size: 0.95rem;
  }
  
  .footer-team-member .member-title {
    font-size: 0.8rem;
  }
}

/* Stack layout for smaller screens */
@media (max-width: 1000px) {
  .footer-content {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 25px;
    text-align: center;
    padding: 0 20px;
  }
  
  /* Team members in a row */
  .footer-team {
    flex-direction: row;
    gap: 40px;
    justify-content: center;
    order: 1;
  }
  
  /* Divider */
  .footer-divider {
    width: 60%;
    height: 1px;
    justify-self: center;
    order: 2;
  }
  
  /* Navigation */
  .footer-nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    order: 3;
  }
  
  /* Copyright stays last */
  .footer-copyright {
    order: 4;
  }
}

/* Small screens - stack team members vertically */
@media (max-width: 768px) {
  .footer-content {
    padding: 0 15px;
    gap: 20px;
  }
  
  .footer-team {
    flex-direction: column;
    gap: 20px;
  }
  
  .footer-nav {
    gap: 15px;
  }
  
  .footer-link {
    font-size: 0.95rem;
    padding: 8px 10px;
  }
}

/* Very small screens - ensure everything fits */
@media (max-width: 480px) {
  .footer-content {
    padding: 0 10px;
  }
  
  .footer-team-member .member-name {
    font-size: 0.95rem;
  }
  
  .footer-team-member .member-title {
    font-size: 0.8rem;
  }
  
  .footer-link {
    font-size: 0.9rem;
    padding: 6px 8px;
  }
  
  .footer-nav {
    gap: 12px;
  }
}

/* Position Paper Page Styles */
.page-content {
  background-color: #000;
  min-height: 100vh;
  padding: 140px 40px 60px; /* Top padding to account for fixed logo/menu */
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.container {
  max-width: 1000px;
  width: 100%;
}

.position-paper {
  background-color: #1c3d5a; /* Same blue as Cyrus section */
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  color: white;
}

.position-paper h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 30px;
  text-align: center;
  color: white;
}

.position-paper h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 20px;
  color: white;
}

.position-paper h3 {
  font-size: 1.4rem;
  font-weight: 500;
  margin-top: 25px;
  margin-bottom: 15px;
  color: white;
}

.position-paper p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: white;
}

.position-paper ul,
.position-paper ol {
  margin-bottom: 20px;
  padding-left: 30px;
}

.position-paper li {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 8px;
  color: white;
}

.position-paper blockquote {
  border-left: 4px solid #fff;
  padding-left: 20px;
  margin: 30px 0;
  font-style: italic;
  color: #ccc;
}

.position-paper strong {
  color: white;
}

.position-paper em {
  color: #ccc;
}

/* Responsive styles for position paper */
@media (max-width: 768px) {
  .page-content {
    padding: 120px 20px 40px;
  }
  
  .position-paper {
    padding: 30px 25px;
  }
  
  .position-paper h1 {
    font-size: 2rem;
  }
  
  .position-paper h2 {
    font-size: 1.5rem;
  }
  
  .position-paper h3 {
    font-size: 1.2rem;
  }
  
  .position-paper p,
  .position-paper li {
    font-size: 1rem;
  }
}

/* Gallery Section Styles */
.gallery-preview-section {
  padding: 40px 40px 60px;
  background-color: #000;
  color: white;
  box-sizing: border-box;
}

.gallery-preview-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.gallery-preview-header {
  margin-bottom: 40px;
}

.gallery-preview-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: 600;
  color: white;
}

.gallery-preview-header p {
  font-size: 1.2rem;
  color: #ccc;
  margin-bottom: 0;
}

.gallery-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.gallery-preview-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 4/3; /* Consistent aspect ratio */
}

.gallery-preview-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.gallery-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-preview-item:hover img {
  transform: scale(1.05);
}

.gallery-view-all {
  display: inline-block;
  background-color: #1c3d5a; /* Same blue as Cyrus section */
  color: white;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.gallery-view-all:hover {
  background-color: #2c5282;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: white;
  text-decoration: none;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .gallery-preview-section {
    padding: 30px 20px 40px;
  }
  
  .gallery-preview-header h2 {
    font-size: 2rem;
  }
  
  .gallery-preview-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 30px;
  }
  
  .gallery-preview-item {
    aspect-ratio: 16/10; /* Slightly wider aspect ratio on mobile */
  }
  
  .gallery-view-all {
    padding: 12px 25px;
    font-size: 1rem;
  }
}

/* Tablet responsive styles */
@media (max-width: 1024px) and (min-width: 769px) {
  .gallery-preview-grid {
    gap: 15px;
  }
}

/* Gallery Page Styles */
.gallery-page {
  padding: 40px 40px 60px;
  background-color: #000;
  color: white;
  box-sizing: border-box;
}

.gallery-header {
  text-align: center;
  margin-bottom: 50px;
}

.gallery-header h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: white;
}

.gallery-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: white;
  max-width: 800px;
  margin: 0 auto;
}

.gallery-description h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: white;
}

.gallery-description p {
  margin-bottom: 15px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
  max-width: 1400px;  /* ADD THIS - makes thumbnails larger */
  margin-left: auto;   /* ADD THIS - centers the grid */
  margin-right: auto;  /* ADD THIS - centers the grid */
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  color: white;
  font-size: 2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Image Modal Styles - Updated */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 200;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-modal.show {
  display: block !important;
  opacity: 1;
}

.image-modal.hide {
  opacity: 0;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90vw;
  max-height: 90vh;
  z-index: 201;
}

.modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: white;
  font-size: 40px;
  cursor: pointer;
  z-index: 202;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s ease;
  font-family: Arial, sans-serif;
  line-height: 1;
}

.modal-close:hover {
  background-color: rgba(0, 0, 0, 0.9);
}

#modalImage {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: block;
  object-fit: contain;
  /* Add these new properties for better display */
  min-width: 300px;
  min-height: 200px;
  background-color: rgba(255, 255, 255, 0.1); /* Light background so you can see if image loads */
}

/* Make sure gallery items are clickable */
.gallery-item {
  cursor: pointer !important;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Mobile responsive styles for modal */
@media (max-width: 768px) {
  .modal-close {
    top: -40px;
    font-size: 30px;
    width: 40px;
    height: 40px;
  }
  
  .modal-content {
    max-width: 95vw;
    max-height: 85vh;
  }
}

/* Mobile responsive for gallery page - stack images vertically */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .gallery-item {
    aspect-ratio: 16/10;
  }
}

/* Gallery Navigation Arrows */
.modal-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: white;
  font-size: 40px;
  cursor: pointer;
  z-index: 203;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  font-family: Arial, sans-serif;
  line-height: 1;
  user-select: none;
}

.modal-nav-arrow:hover {
  background-color: rgba(0, 0, 0, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.modal-nav-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.modal-prev-arrow {
  left: -80px;
}

.modal-next-arrow {
  right: -80px;
}

/* Mobile responsive styles for navigation arrows */
@media (max-width: 768px) {
  .modal-nav-arrow {
    font-size: 30px;
    width: 50px;
    height: 50px;
  }
  
  .modal-prev-arrow {
    left: 10px;
  }
  
  .modal-next-arrow {
    right: 10px;
  }
}

/* For very small screens, make arrows smaller and closer */
@media (max-width: 480px) {
  .modal-nav-arrow {
    font-size: 24px;
    width: 40px;
    height: 40px;
  }
  
  .modal-prev-arrow {
    left: 5px;
  }
  
  .modal-next-arrow {
    right: 5px;
  }
}

/* Add a subtle animation when arrows are disabled */
.modal-nav-arrow[style*="opacity: 0.3"] {
  pointer-events: none;
}