/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

body {
  font-family: "Montserrat", sans-serif;
  background-image: url(images/HomeBg.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: white;
}
html {
  scroll-behavior: smooth;
}

/* Navbar */
/* Navbar Container */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  
  background-color: #0000a3;
  padding: 30px 40px;

  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

/* Nav Links */
.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
  z-index: 1001;
  position: absolute;
  left: 40%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* Links */
.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  position: relative;
}

/* Dropdown Container */
.dropdown {
  position: relative;
}

/* Dropdown Menu Hidden by Default */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #0000a3;
  padding: 10px 0;
  display: none;
  flex-direction: column;
  min-width: 160px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 1001;
}

/* Dropdown Items */
.dropdown-menu a {
  padding: 10px 20px;
  color: white;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background-color: #4c60ff;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
  display: flex;
}
.menu-toggle {
  display: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
  z-index: 1101;
}
/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    position: absolute;
    top: 30px;
    right: 30px;
  }
  /* .nav-links responsive styles moved to the main media query below for consolidation */
  .dropdown:hover .dropdown-menu {
    display: flex;
  }
  .dropdown-menu {
    position: static;
    background: transparent;
    box-shadow: none;
    padding-left: 10px;
  }
}


.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #0000a3;
  padding: 10px 0;
  display: none;
  flex-direction: column;
  min-width: 160px;
  z-index: 999;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  border-radius: 6px;
}

.dropdown-menu a {
  padding: 10px 20px;
  display: block;
  font-size: 14px;
  color: white;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background-color: #1a1aff;
}

.dropdown:hover .dropdown-menu {
  display: flex;
}


.image-wrapper {
  padding-left: 60px;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  left: 60px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: white;
}

.logo-symbol {
  font-size: 36px;
  margin-right: 5px;
}

/* Removed duplicate .nav-links definition; merged into the main definition above */

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}

.nav-links a:first-child {
  font-weight: 700;
}

/* Hero Section */
.hero {
  text-align: center;
  margin: 100px auto 80px;
  padding: 0 20px;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  font-size: 90px;
  font-weight: 800;
  line-height: 1.2;
}

.highlight {
  color: white;
}

.underline-smooth {
  position: relative;
  display: inline-block;
}

.underline-smooth::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -12px;
  width: 100%;
  height: 8px;
  background: #4c60ff;
  border-radius: 40px;
  transform: rotate(-2deg);
}

.description {
  margin-top: 20px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 1050px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.buttons {
  margin-top: 30px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  margin: 0 10px;
  transition: all 0.3s ease;
}

.btn-white {
  background-color: white;
  color: #0000aa;
  border: none;
}

.btn-white:hover {
  opacity: 0.9;
}

.btn-outline {
  border: 2px solid white;
  color: white;
}

.btn-outline:hover {
  background-color: white;
  color: #0000aa;
}

/* Clouds */
.cloud {
  position: absolute;
  width: 80px;
  height: 40px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 100px;
}

.cloud-left {
  bottom: 40px;
  left: 40px;
}

.cloud-right {
  top: 80px;
  right: 60px;
}

/* Section Structure */
.expertise {
  text-align: center;
  margin: 100px auto 80px;
  padding: 0 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 0;
  padding-top: 60px;
  padding-bottom: 60px;
}

.section-title {
  font-size: 64px;
  font-weight: 700;
  margin-bottom: 30px;
  position: relative;
}

.section-description {
  max-width: 900px;
  font-size: 20px;
  line-height: 1.8;
  margin: 0 auto 50px;
  text-align: center;
}

.section-title .underline-smooth {
  position: relative;
  display: inline-block;
}

.section-title .underline-smooth::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 8px;
  background: #4c60ff;
  border-radius: 50px;
  transform: rotate(-1.5deg);
}

/* Bubble Container */
.bubbles-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Bubble Tags */
.bubble {
  padding: 18px 32px;
  border-radius: 999px;
  font-size: 18px;
  display: inline-block;
  white-space: nowrap;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  cursor: pointer;
}

.bubble.white {
  background: white;
  color: black;
}

.bubble.white.bold {
  font-weight: 700;
}

.bubble.blue {
  background: #5277ff;
  color: white;
}

/* Hover Animations */
.bubble:hover {
  transform: scale(1.1) rotate(0deg);
  box-shadow: 0 8px 20px rgba(76, 96, 255, 0.4);
  z-index: 1;
}

.bubble.blue:hover {
  background-color: #3d5afe;
  box-shadow: 0 0 15px #4c60ff, 0 0 30px rgba(76, 96, 255, 0.5);
}

.bubble.white:hover {
  background-color: #f5f5f5;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
  color: #0000a3;
}


/* Rotation utility classes */
.rotate-1 {
  transform: rotate(1deg);
}
.rotate-2 {
  transform: rotate(2deg);
}
.rotate-3 {
  transform: rotate(3deg);
}
.rotate-5 {
  transform: rotate(5deg);
}
.rotate--2 {
  transform: rotate(-2deg);
}
.rotate--3 {
  transform: rotate(-3deg);
}
.rotate--5 {
  transform: rotate(-5deg);
}
.rotate--7 {
  transform: rotate(-7deg);
}

/* Button */
.explore-button {
  display: inline-block;
  padding: 16px 40px;
  background: white;
  color: #0000aa;
  font-weight: bold;
  font-size: 18px;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.button-wrapper {
  text-align: center;
  margin-top: 200px;
}

.explore-button:hover {
  opacity: 0.9;
}

/* Brand Foundation Section */
.brand-foundation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 100vh;
  padding: 0 60px;
  background-color: #0000a3;
  color: white;
  /* Ensure no overflow or unintended margins */
}

.content-left {
  flex: 1;
  padding-right: 40px;
}

.brand-title {
  font-size: 54px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 30px;
}

.brand-description {
  font-size: 18px;
  line-height: 1.8;
  max-width: 550px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
}

.next-button {
  padding: 14px 40px;
  background-color: white;
  color: #0000aa;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.3s ease;
}

.next-button:hover {
  opacity: 0.9;
}

.content-right {
  flex: 1;
  text-align: right;
  /* Remove all padding/margin that could cause spacing */
  padding: 0;
.next-button {
  padding: 14px 40px;
  background-color: white;
  color: #0000a3;
  border-radius: 999px;
  font-weight: bold;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.3s ease;
}

.next-button:hover {
  opacity: 0.9;
}

/* Context-specific override for blog section if needed */
.safi-blog-button .next-button {
  border-radius: 999px;
  background-color: white;
  color: #0000a3;
  padding: 14px 40px;
  font-size: 16px;
}
}
/* Responsive Fixes */
@media (max-width: 1024px) {
  .nav-links {
    left: 50% !important;
  }

  .brand-title {
    font-size: 40px;
  }

  .brand-description {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .brand-foundation {
    flex-direction: column;
    padding: 40px 20px;
    text-align: center;
  }

  .content-left,
  .content-right {
    padding: 0;
  }

  .content-right {
    margin-top: 40px;
  }

  .content-right img {
    height: auto;
    width: 100%;
  }

  .logo {
    left: 30px !important;
  }

  .nav-links {
    display: none !important;
  }
}

/* SAFI Section Layout */
.safi-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 2rem;
  gap: 2rem;
  flex-direction: column-reverse; /* Default: image above text on small screens */
}

@media (max-width: 767px) {
  .safi-section {
    flex-direction: column-reverse !important;
  }

  .safi-left,
  .safi-right {
    width: 100%;
    padding: 20px;
    text-align: center;
  }

  .safi-right-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 0 auto;
  }
}

/* Desktop (Image on the right) */
@media (min-width: 768px) {
  .safi-section {
    flex-direction: row !important;
    height: 100vh;
  }
}

/* Left Container */
.safi-left {
  background-color: #0000a3;
  color: white;
  width: 100%;
  padding: 20px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

/* Content */
.safi-content {
  max-width: 600px;
}

.safi-content h1 {
  font-size: 45px;
  font-weight: bold;
  margin-bottom: 30px;
}

@media (min-width: 640px) {
  .safi-content h1 {
    font-size: 48px;
  }
}

.safi-content p {
  font-size: 20px;
  font-weight: 200;
  line-height: 1.6;
  margin-bottom: 40px;
}

/* Button */
.safi-button {
  display: flex;
  justify-content: flex-end;
}

.safi-button a {
  display: inline-block;
  background-color: white;
  color: #0000a3;
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Right Side */
.safi-right {
  background-color: #0000a3;
  display: flex;
  justify-content: center; /* horizontally center content */
  align-items: center; /* vertically center content */
  flex: 1;
  padding: 40px;
  text-align: center; /* fallback for inline elements */
}

.safi-right-image {
  width: 100%;
  max-width: 500px;
  max-height: 500px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin: 0 auto; /* horizontally center inside block-level parent */
  display: block; /* ensure margin auto works */
  aspect-ratio: 1 / 1;
}

/* Fullscreen Section */
/* SAFI Tools Section */
.safi-tools-section {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
}

@media (min-width: 768px) {
  .safi-tools-section {
    flex-direction: row; /* content on the right */
  }
}

/* Left Side (Text Content) */
.safi-tools-left {
  background-color: #0000a3;
  color: white;
  width: 100%;
  padding: 20px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.safi-tools-content {
  max-width: 600px;
}

.safi-tools-content h1 {
  font-size: 45px;
  font-weight: bold;
  margin-bottom: 30px;
}

@media (min-width: 640px) {
  .safi-tools-content h1 {
    font-size: 48px;
  }
}

.safi-tools-content p {
  font-size: 20px;
  font-weight: 200;
  line-height: 1.6;
  margin-bottom: 40px;
}

/* Button */
.safi-tools-button {
  display: flex;
  justify-content: flex-start;
}

.safi-tools-button a {
  display: inline-block;
  background-color: white;
  color: #0000a3;
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.safi-tools-button a:hover {
  opacity: 0.9;
}

/* Right Side (Image) */
.safi-tools-right {
  background-color: #0000a3;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  padding: 40px;
}

@media (min-width: 768px) {
  .safi-tools-right {
    width: 50%;
    height: 100%;
  }
}

.safi-tools-right img {
  max-width: 100%;
  height: auto;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  width: 500px; /* Set a consistent max width */
  height: 500px; /* Set fixed height for uniform size */
  object-fit: cover;
}

.safi-blog-section {
  background-image: url(images/HomeBg.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: white;
  padding: 60px 20px;
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.safi-blog-wrapper {
  max-width: 1200px;
  width: 100%;
  display: flex;
  justify-content: flex-end; /* Push content to the right */
}

.safi-blog-text {
  max-width: 700px;
  padding: 20px;
  text-align: left;
}

.safi-blog-title {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 30px;
}

.safi-blog-paragraph {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

.safi-blog-paragraph code {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}

.safi-blog-button {
  margin-top: 30px;
  display: flex;
  justify-content: right;
}

.next-button {
  background-color: white;
  color: #0000a3;
  padding: 14px 40px;
  font-weight: bold;
  border-radius: 999px;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.3s ease;
}

.next-button:hover {
  opacity: 0.9;
}

/* Decorative Clouds */
.safi-blog-clouds .cloud {
  position: absolute;
  width: 60px;
  opacity: 0.6;
/* Removed duplicate .next-button definition; see unified definition above */
  .safi-blog-wrapper {
    justify-content: center;
  }

  .safi-blog-title {
    font-size: 32px;
  }

  .safi-blog-paragraph {
    font-size: 14px;
  }

  .next-button {
    padding: 12px 32px;
    font-size: 14px;
  }
}

/* Contact Section */
.contact-section {
  background-image: url(images/HomeBg.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: white;
  padding: 100px 40px;
  text-align: center;
}

.contact-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
}

.contact-subtitle {
  font-size: 16px;
  max-width: 700px;
  margin: 0 auto 60px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.form-container {
  background-color: #0d1d5b;
  padding: 50px 40px;
  border-radius: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

form {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.form-group {
  flex: 1;
  text-align: left;
}

.full-width {
  width: 100%;
}

label {
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
}

input {
  width: 100%;
  padding: 10px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid white;
  color: white;
  font-size: 16px;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.submit-wrapper {
  text-align: center;
  margin-top: 30px;
}

.submit-button {
  padding: 14px 40px;
  background: white;
  color: #0000aa;
  font-weight: bold;
  font-size: 16px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-button:hover {
  opacity: 0.9;
}

/* Footer */
.footer {
  background-color: #0d1d5b;
  color: white;
  padding: 60px 40px 30px;
  
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.footer-left {
  flex: 1;
  min-width: 250px;
}

.logo-footer {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}

.footer-left p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 10px;
  line-height: 1.6;
}

.footer-left small {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-center {
  flex: 1;
  min-width: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-center a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.footer-right {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  justify-content: center;
}

.footer-right p {
  margin: 0;
  font-size: 14px;
  color: white;
}

.socials a {
  margin-left: 10px;
  display: inline-block;
}

.socials img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1); /* makes image white on dark background */
}

.footer-icons {
  display: flex;
  gap: 10px;
  padding: 20px 0 0;
}

.footer-icons a {
  color: white;
  font-size: 18px;
  text-decoration: none;
  background: #0000a3;
  padding: 12px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-icons a:hover {
  color: #cccccc;
}

.all-links-button {
  display: inline-block;
  background-color: white;
  color: #0000a3;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.all-links-button:hover {
  background-color: #0000a3;
  color: white;
  border: 1px solid white;
}

/* Responsive Styling */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-right,
  .footer-center {
    align-items: center;
    text-align: center;
  }

  .form-row {
    flex-direction: column;
  }

  .footer-icons {
    justify-content: center;
    padding-top: 20px;
  }

  .socials a {
    margin: 0 5px;
  }
}


.nav-links a::after {
  content: "";
  display: block;
  height: 2px;
  width: 0;
  background: #4c60ff;
  transition: width 0.3s;
  margin: 4px auto 0;
}

.nav-links a:hover::after {
  width: 100%;
}
@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  animation: fadeSlideUp 1s ease-out forwards;
}
.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #4c60ff;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}
.logo:hover,
.btn:hover {
  box-shadow: 0 0 20px #4c60ff;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 1s ease-out forwards;
}

/* Creative Explore Button */
.creative-button {
  position: relative;
  padding: 16px 48px;
  font-size: 18px;
  font-weight: bold;
  color: white;
  text-decoration: none;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid transparent;
  transition: all 0.4s ease;
  background-clip: padding-box;
  box-shadow: 0 0 20px rgba(76, 96, 255, 0.2);
}

.creative-button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 40px;
  padding: 2px;
  background: linear-gradient(135deg, #4c60ff, #00bfff, #4c60ff);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
  transition: all 0.4s ease;
}

.creative-button:hover {
  transform: scale(1.05);
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 25px rgba(76, 96, 255, 0.5);
}

.creative-button:hover::before {
  filter: hue-rotate(30deg) brightness(1.2);
}

