/* ==========================================
   GLOBAL STYLES & VARIABLES
   ========================================== */
:root {
  --primary-black: #121212;
  --secondary-black: #1a1a1a;
  --transparent-black: #1c1b1bb2;
  --primary-yellow: #ffc107;
  --secondary-yellow: #ffb100;
  --accent-yellow: #e8e848;
  --text-white: #ffffff;
  --text-light: #f5f5f5;
  --text-gray: #bbbbbb;
  --shadow-dark: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-light: 0 8px 30px rgba(255, 209, 0, 0.15);
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
html {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--primary-black);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  /* padding-top: 80px; */
}

.nav-body {
  width: 100%;
  background-color: var(--primary-black);
}

a {
  text-decoration: none;
  color: var(--text-white);
  transition: all var(--transition-fast);
}

a:hover {
  color: var(--primary-yellow);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  overflow: visible !important;
}

/* section {
  padding: 0 1.5rem;
} */

/* ==========================================
     TYPOGRAPHY
     ========================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.heading-xl {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
  color: var(--text-white);
  text-shadow: 0 0 15px rgba(255, 209, 0, 0.3);
}

.heading-2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.heading-2::after {
  content: "";
  position: absolute;
  width: 60%;
  height: 4px;
  left: 0;
  bottom: -10px;
  background: var(--primary-yellow);
  transition: width var(--transition-medium);
}

.heading-2:hover::after {
  width: 100%;
}

.heading-3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-intro {
  text-align: center;
  margin-bottom: 3rem;
}

/* ==========================================
     NAVBAR STYLES
     ========================================== */
/* Navbar Core Styles */

/* ==========================================
     HERO SECTION
     ========================================== */
#hero {
  position: relative;
  z-index: 1;
  height: 84vh;
  width: 100%;
  padding-top: 50px;
  background: linear-gradient(
      75deg,
      rgba(104, 97, 97, 0.5) 0%,
      rgba(161, 159, 151, 0.4) 0%
    ),
    url("https://res.cloudinary.com/domkyl3rw/image/upload/v1742271372/image_fx__8_saxtjm.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  pointer-events: auto;
}

#hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    transparent 30%,
    var(--transparent-black)
  );
  z-index: 0;
}

#hero .container {
  position: relative;
  z-index: 0;
}

/* #hero-titles {
  font-weight: 800;
  border-right: 4px solid var(--primary-yellow);
  white-space: nowrap;
  overflow: hidden;
  animation: typing 4s steps(40, end) infinite alternate,
    blink-caret 0.75s step-end infinite;
} */

.scroll-to-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: var(--primary-yellow);
  animation: bounce 2s infinite;
  z-index: 2;
}

@media (max-width: 992px) {
  #hero {
    padding-top: 62px;
  }
}

/* ==========================================
     PARTNER/CLIENTS SECTION
     ========================================== */

#partners {
  background-color: var(--secondary-black);
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 209, 0, 0.1);
  border-bottom: 1px solid rgba(255, 209, 0, 0.1);
}

.partner-logo {
  width: 80%;
  height: auto;
  display: block;
  margin: 0 auto;
  max-height: 500px;
  filter: grayscale(100%) brightness(1.2);
  transition: all var(--transition-medium);
  padding: 0.75rem;
}

.carousel-item:hover .partner-logo {
  filter: grayscale(0%) brightness(1.2);
  transform: scale(1.05);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--primary-yellow);
  border-radius: 50%;
  padding: 1rem;
}

/* ==========================================
     SERVICES SECTION
     ========================================== */
#services {
  background-color: var(--primary-black);
  padding: 5rem 0;
  position: relative;
}

#services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="%23ffd100" opacity="0.3"/></svg>');
  z-index: 0;
}

.grid {
  display: grid;
  gap: 2rem;
}

.two-col-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.three-col-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.service {
  background-color: rgba(26, 26, 26, 0.7);
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-dark);
  transition: all var(--transition-medium);
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-left: 3px solid transparent;
}

.service::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(255, 209, 0, 0.05) 0%,
    transparent 100%
  );
  z-index: -1;
  transition: opacity var(--transition-medium);
  opacity: 0;
}

.service:hover {
  transform: translateY(-10px);
  border-left: 3px solid var(--primary-yellow);
}

.service:hover::before {
  opacity: 1;
}

.icon {
  font-size: 3rem;
  color: var(--primary-yellow);
  margin-bottom: 1.5rem;
  transition: all var(--transition-medium);
}

.service:hover .icon {
  transform: scale(1.2);
  text-shadow: 0 0 20px rgba(255, 209, 0, 0.5);
}

.btn-view {
  background-color: transparent;
  border: 2px solid var(--primary-yellow);
  color: var(--primary-yellow);
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 2rem;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: inline-block;
  margin-top: 1.5rem;
}

.btn-view::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--primary-yellow);
  transition: all var(--transition-fast);
  z-index: -1;
}

.btn-view:hover {
  color: var(--primary-black);
}

.btn-view:hover::before {
  left: 0;
}

/* ==========================================
     WORK/PORTFOLIO SECTION
     ========================================== */

#work {
  background-color: var(--secondary-black);
  padding: 5rem 0;
}

.project {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-dark);
  height: 300px;
}

.project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all var(--transition-slow);
}

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  transition: all var(--transition-medium);
  opacity: 0;
}

.project:hover .overlay {
  height: 100%;
  opacity: 1;
}

.project:hover img {
  transform: scale(1.1);
}

.overlay h2 {
  transform: translateY(20px);
  transition: all var(--transition-medium);
  transition-delay: 0.1s;
  color: var(--primary-yellow);
}

.overlay p {
  transform: translateY(20px);
  transition: all var(--transition-medium);
  transition-delay: 0.2s;
  opacity: 0;
}

.project:hover .overlay h2,
.project:hover .overlay p {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================
   RESPONSIVE STYLES
   ========================================== */
@media (max-width: 992px) {
  .section-intro h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .three-col-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .section-intro h1 {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  section {
    padding: 3rem 0;
  }

  .three-col-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
     BLOG SECTION
     ========================================== */

#blog {
  background-color: rgb(153, 154, 147);
  padding: 4rem 0;
}

/* Blog Member Default Styling */
.blog-member {
  background-color: rgba(26, 26, 26, 0.7);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-dark);
  transition: all var(--transition-medium);
  height: auto;
  max-width: 400px;
  margin: 0 auto;
}

/* Make sure blog images are square */
.blog-img img {
  width: 100%;
  aspect-ratio: 1/1; /* Keeps images square */
  object-fit: cover;
  transition: all var(--transition-medium);
}

/* Hover Effect */
.blog-member:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-light);
}

.blog-member:hover .blog-img img {
  transform: scale(1.05);
  filter: brightness(0.8);
}

.blog-info {
  padding: 1.25rem;
  text-align: center;
}

.blog-info h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.blog-info span {
  color: var(--primary-yellow);
  font-size: 0.85rem;
}

/* 🌟 Medium Screens (768px and up) - Blog items in one row */
@media (min-width: 768px) {
  .row {
    flex-wrap: nowrap; /* Ensure items stay in one row */
    justify-content: center;
  }
  .blog-member {
    max-width: 100%; /* Ensure full width */
    width: 100%;
  }
}

/* 🌟 Mobile Screens (Below 768px) - Ensure Square Blog Cards */
@media (max-width: 767px) {
  .blog-member {
    max-width: 300px; /* Make it smaller for mobile */
  }

  .blog-img img {
    aspect-ratio: 1/1; /* Keeps images square */
    max-height: 300px;
  }
}
.social {
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  padding: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.7);
  transition: all var(--transition-medium);
}

.social a {
  color: var(--primary-yellow);
  font-size: 1.25rem;
  transition: all var(--transition-fast);
}

.social a:hover {
  color: var(--text-white);
  transform: scale(1.2);
}

/* ==========================================
     TEAM SECTION
     ========================================== */
#team {
  background-color: var(--secondary-black);
  padding: 5rem 0;
}

.team-member {
  background-color: rgba(26, 26, 26, 0.7);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-dark);
  transition: all var(--transition-medium);
  height: 100%;
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-light);
}

.member-img {
  position: relative;
  overflow: hidden;
}

.member-img img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  transition: all var(--transition-medium);
}

.team-member:hover .member-img img {
  transform: scale(1.05);
  filter: brightness(0.8);
}

.social {
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  padding: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.7);
  transition: all var(--transition-medium);
}

.team-member:hover .social {
  bottom: 0;
}

.social a {
  color: yellow;
  font-size: 1.25rem;
  transition: all var(--transition-fast);
}

.social a:hover {
  color: var(--text-white);
  transform: scale(1.2);
}

.member-info {
  padding: 1.5rem;
  text-align: center;
}

.member-info h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.member-info span {
  color: var(--primary-yellow);
  font-size: 0.9rem;
}

/* ==========================================
     CONTACT SECTION
     ========================================== */
#contact {
  background-color: var(--primary-black);
  padding: 5rem 0;
  position: relative;
}

.contact-info,
.contact-form {
  background-color: rgba(26, 26, 26, 0.7);
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-dark);
}

.contact-widget {
  margin-bottom: 2rem;
}

.contact-widget:last-child {
  margin-bottom: 0;
}

.contact-widget h3 {
  color: var(--primary-yellow);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.contact-widget ul {
  list-style: none;
  padding-left: 0;
}

.contact-widget ul li {
  margin-bottom: 0.5rem;
  color: var(--text-gray);
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-yellow);
  color: var(--primary-black);
  font-size: 1.2rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--secondary-black);
  color: var(--text-white);
}

/* ==========================================
     Subscription Section
     ========================================== */
.signup-container {
  background-color: #fff;
  border: 3px solid #ffd700;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  /* max-width: 8000px; */
  width: 100%;
}
.input-group-custom {
  border: 2px solid #000;
  border-radius: 8px;
  overflow: hidden;
}
.form-control-custom {
  border: none;
  font-size: 1.2rem;
  padding: 15px;
  height: 60px;
}
.input-group-text-custom {
  background-color: #000;
  color: #ffd700;
  border: none;
  padding: 0 15px;
  font-size: 1.5rem;
}
.btn-custom {
  background-color: #000;
  color: #ffd904;
  border: 2px solid #ffd700;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 1px;
  margin-top: 15px;
}
.btn-custom:hover {
  background-color: #383837;
  color: #000;
}
.message {
  margin-top: 15px;
  font-weight: bold;
}
.message-success {
  color: green;
}
.message-error {
  color: red;
}
.privacy-text {
  color: #6c757d;
  font-size: 0.8rem;
  margin-top: 10px;
  text-align: center;
}
.newsletter-title {
  color: #000;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
}

.btn {
  background-color: var(--primary-yellow);
  color: var(--primary-black);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn:hover {
  background-color: var(--secondary-yellow);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 209, 0, 0.3);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ==========================================
     FOOTER SECTION
     ========================================== */

/* ==========================================
     ANIMATIONS
     ========================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: var(--primary-yellow);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-20px) translateX(-50%);
  }
  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}

@keyframes floatElement {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes scaleUpDown {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* ==========================================
     MEDIA QUERIES
     ========================================== */
@media (max-width: 1200px) {
  .heading-xl {
    font-size: 3rem;
  }

  .heading-2 {
    font-size: 2.25rem;
  }
}

@media (max-width: 992px) {
  .heading-xl {
    font-size: 2.5rem;
  }

  .heading-2 {
    font-size: 2rem;
  }

  .two-col-grid,
  .three-col-grid {
    grid-template-columns: 1fr;
  }

  #contact .grid {
    grid-template-columns: 1fr;
  }

  .contact-info {
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .heading-xl {
    font-size: 2rem;
  }

  .heading-2 {
    font-size: 1.75rem;
  }

  .service,
  .blog-post,
  .team-member,
  .contact-info,
  .contact-form {
    padding: 1.5rem;
  }

  #hero {
    height: 90vh;
  }

  .project {
    height: 250px;
  }
}

@media (max-width: 576px) {
  .heading-xl {
    font-size: 1.75rem;
  }

  .heading-2 {
    font-size: 1.5rem;
  }

  .heading-3 {
    font-size: 1.25rem;
  }

  .section-intro {
    margin-bottom: 2rem;
  }

  #services,
  #work,
  #blog,
  #team,
  #contact {
    padding: 3rem 0;
  }
}

/* ==========================================
     ADDITIONAL ANIMATIONS FOR ELEMENTS
     ========================================== */
[data-aos] {
  opacity: 0;
  transition-duration: 800ms;
}

.service .icon i {
  display: inline-block;
  animation: scaleUpDown 3s infinite;
  animation-delay: calc(var(--animation-order) * 0.2s);
}

.service:nth-child(1) .icon i {
  --animation-order: 1;
}
.service:nth-child(2) .icon i {
  --animation-order: 2;
}
.service:nth-child(3) .icon i {
  --animation-order: 3;
}
.service:nth-child(4) .icon i {
  --animation-order: 4;
}

.btn-view:hover {
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 209, 0, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 209, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 209, 0, 0);
  }
}

/* Animated backgrounds */
#hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="%23ffd100" opacity="0.3"/></svg>');
  z-index: -0;
  animation: moveBackground 60s linear infinite;
}

@keyframes moveBackground {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 1000px 1000px;
  }
}

/* Glowing effect for buttons and key elements */
.btn,
.btn-view {
  animation: glow 2s infinite alternate;
}

@keyframes glow {
  0% {
    box-shadow: 0 0 5px rgba(255, 209, 0, 0.2);
  }
  100% {
    box-shadow: 0 0 15px rgba(255, 209, 0, 0.5);
  }
}

/* Typing animation for hero text */
#hero-titles {
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  animation: typing 4s steps(40) 1s forwards,
    blink-caret 0.75s step-end infinite;
}

/* Adding life to navigation and buttons with hover effects */

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--secondary-black);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-yellow);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-yellow);
}
