/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Color Scheme */
  --primary-blue: #1a365d;
  --accent-gold: #d4af37;
  --light-gray: #f7fafc;
  --dark-gray: #2d3748;
  --white: #ffffff;
  --text-dark: #2d3748;
  --text-light: #718096;

  /* Typography */
  --font-serif: "Playfair Display", serif;
  --font-sans: "Inter", sans-serif;

  /* Spacing */
  --section-padding: 80px 0;
  --container-padding: 0 20px;
  --card-padding: 30px;

  /* Shadows */
  --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 15px 35px rgba(0, 0, 0, 0.2);

  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--light-gray);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding);
}

/* 3D Header Styles - Innovation Point 1 */
.header-3d {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--primary-blue) 0%, #2c5282 100%);
  box-shadow: var(--shadow-heavy);
  transform: perspective(1000px) rotateX(0deg);
  transition: var(--transition-smooth);
}

.header-3d:hover {
  transform: perspective(1000px) rotateX(2deg);
  box-shadow: 0 20px 40px rgba(26, 54, 93, 0.3);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-gold);
  transition: var(--transition-smooth);
}

.logo:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.logo-text h1 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 2px;
  font-weight: 600;
}

.logo-text p {
  color: var(--accent-gold);
  font-size: 0.9rem;
  font-weight: 300;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  padding: 10px 15px;
  border-radius: 25px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 175, 55, 0.3),
    transparent
  );
  transition: var(--transition-smooth);
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link:hover {
  background: rgba(212, 175, 55, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.mobile-menu-toggle {
  display: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: inset(0% 0% 0% 0%);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(26, 54, 93, 0.8) 0%,
    rgba(44, 82, 130, 0.6) 100%
  );
  z-index: -1;
}

.hero-content {
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 0 20px;
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 40px;
  opacity: 0.9;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #f4d03f 100%);
  color: var(--primary-blue);
  box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary-blue);
  transform: translateY(-3px) scale(1.05);
}

/* Section Styles */
section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 15px;
  position: relative;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-gold), #f4d03f);
  border-radius: 2px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* About Section */
.about-section {
  background: var(--white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.about-text h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--primary-blue);
  margin-bottom: 20px;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
  color: var(--text-dark);
}

.values-list {
  list-style: none;
}

.values-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  font-size: 1.1rem;
  color: var(--text-dark);
  transition: var(--transition-smooth);
}

.values-list li:hover {
  transform: translateX(10px);
  color: var(--primary-blue);
}

.values-list i {
  color: var(--accent-gold);
  font-size: 1.2rem;
  width: 20px;
}

.team-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: var(--shadow-medium);
  clip-path: inset(0% 0% 5% 5%);
  transition: var(--transition-smooth);
}

.team-image:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-heavy);
}

/* Timeline - Innovation Point 5 */
.timeline-section {
  margin-top: 80px;
}

.timeline-section h3 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--primary-blue);
  text-align: center;
  margin-bottom: 50px;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-gold), var(--primary-blue));
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: 50%;
  padding-right: 40px;
  text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 50%;
  padding-left: 40px;
  text-align: left;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: var(--accent-gold);
  border: 4px solid var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-medium);
  z-index: 2;
}

.timeline-content {
  background: var(--white);
  padding: 30px;
  border-radius: 15px;
  box-shadow: var(--shadow-light);
  transition: var(--transition-smooth);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.timeline-content h4 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--primary-blue);
  margin-bottom: 10px;
}

.timeline-content p {
  color: var(--text-light);
  line-height: 1.6;
}

/* Trust Services Section */
.trust-services-section {
  background: linear-gradient(135deg, var(--light-gray) 0%, #e2e8f0 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

/* Service Cards - Innovation Point 2 */
.service-card {
  background: var(--white);
  padding: var(--card-padding);
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 175, 55, 0.1),
    transparent
  );
  transition: var(--transition-smooth);
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-heavy);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent-gold), #f4d03f);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
  transform: rotate(360deg) scale(1.1);
}

.service-icon i {
  font-size: 2rem;
  color: var(--white);
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--primary-blue);
  margin-bottom: 15px;
}

.service-card p {
  color: var(--text-light);
  line-height: 1.6;
}

.services-image {
  text-align: center;
}

.service-image {
  width: 100%;
  max-width: 600px;
  height: 300px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: var(--shadow-medium);
  clip-path: inset(0% 0% 5% 5%);
  transition: var(--transition-smooth);
}

.service-image:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-heavy);
}

/* Impact Stories Section */
.impact-stories-section {
  background: var(--white);
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
}

.story-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition-smooth);
}

.story-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy);
}

.story-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  clip-path: inset(0% 0% 5% 5%);
  transition: var(--transition-smooth);
}

.story-card:hover .story-image {
  transform: scale(1.05);
}

.story-content {
  padding: 30px;
}

.story-content h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--primary-blue);
  margin-bottom: 15px;
}

.story-content p {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 20px;
}

.story-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.story-stats span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-gold);
  font-weight: 600;
  font-size: 0.9rem;
}

.story-stats i {
  font-size: 1rem;
}

/* Subscribe Section */
.subscribe-section {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #2c5282 100%);
  color: var(--white);
}

.subscribe-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.subscribe-text h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.subscribe-text p {
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.8;
}

.newsletter-form {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1;
  padding: 15px 20px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  min-width: 250px;
}

.newsletter-form input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}

.newsletter-form .btn {
  white-space: nowrap;
}

.privacy-note {
  font-size: 0.9rem;
  opacity: 0.7;
  margin: 0;
}

.newsletter-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 15px;
  clip-path: inset(0% 0% 5% 5%);
  transition: var(--transition-smooth);
}

.newsletter-image:hover {
  transform: scale(1.02);
}

/* Contact Section */
.contact-section {
  background: var(--light-gray);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 25px;
  background: var(--white);
  border-radius: 15px;
  box-shadow: var(--shadow-light);
  transition: var(--transition-smooth);
}

.contact-item:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-medium);
}

.contact-item i {
  color: var(--accent-gold);
  font-size: 1.5rem;
  margin-top: 5px;
  width: 25px;
}

.contact-item h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--primary-blue);
  margin-bottom: 8px;
}

.contact-item p {
  color: var(--text-light);
  line-height: 1.6;
}

.map-container {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  transition: var(--transition-smooth);
}

.map-container:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-heavy);
}

.map-container iframe {
  border-radius: 15px;
}

/* Footer */
.footer {
  background: var(--primary-blue);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-logo-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-gold);
}

.footer-logo p {
  opacity: 0.8;
  line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--accent-gold);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  opacity: 0.8;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent-gold);
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  opacity: 0.8;
}

.footer-contact i {
  color: var(--accent-gold);
  width: 15px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }

  .about-content,
  .subscribe-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .timeline::before {
    left: 30px;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 60px;
    margin-right: 0;
    padding-left: 30px;
    padding-right: 0;
    text-align: left;
  }

  .timeline-marker {
    left: 30px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .stories-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input {
    min-width: auto;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .btn {
    padding: 12px 25px;
    font-size: 0.9rem;
  }

  .service-card,
  .story-card,
  .contact-item {
    padding: 20px;
  }
}
