/*--------------------------------------------------
 # Header & Navigation Styles
 # Last audited: 2025-06-16
 #
 # This file contains all styles related to the site header,
 # navigation, and page headers (hero sections).
--------------------------------------------------*/

/*--------------------------------------------------
 # Main Site Header
--------------------------------------------------*/
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  background-color: transparent;
  padding: 12px 0;
}

/* Header style when scrolled (adds glassmorphism effect with brand color gradient) */
header.scrolled {
  background: linear-gradient(135deg, rgba(69, 39, 160, 0.42) 0%, rgba(123, 31, 162, 0.42) 100%);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  padding: 8px 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* =============================
   Navbar Layout
   ============================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo styles */
.logo a {
  display: inline-block;
}

/* Common styles for all logos */
.logo img {
  height: 40px;
  transition: all 0.3s ease;
}

/* Desktop specific logo styles */
.desktop-logo {
  display: block; /* Show on desktop */
}

.mobile-logo {
  display: none; /* Hide on desktop */
}

/* Reduce logo size when scrolled */
header.scrolled .logo img {
  height: 32px;
}

/* =============================
   Navigation Links
   ============================= */
.nav-links {
  display: flex;
  gap: 70px; /* Large gap for desktop navigation */
}

.nav-links a {
  font-family: 'Nunito Sans', sans-serif;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  position: relative;
  transition: all 0.3s ease;
}

/* Animated underline on hover */
.nav-links a::before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #fff;
  transition: width 0.3s ease, opacity 0.3s;
  opacity: 0;
  transform: translateY(5px);
}

.nav-links a:hover::before {
  width: 100%;
  opacity: 1;
  transform: translateY(0);
}

/* Bump effect on hover */
.nav-links a:hover {
  transform: translateY(-2px);
  opacity: 1;
}

/* Contact button in navbar */
.contact-btn .btn {
  padding: 8px 18px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

/* Contact button outline style when header is scrolled */
header.scrolled .nav-links a {
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Animated underline on hover for scrolled state */
header.scrolled .nav-links a::before {
  background-color: rgba(255, 255, 255, 0.8);
}

header.scrolled .contact-btn .btn-outline {
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

header.scrolled .contact-btn .btn-outline:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.05);
}

/* =============================
   Mobile Navigation
   ============================= */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

header.scrolled .mobile-menu-btn {
  color: white;
}

/* =============================
   Page Header (Hero Section)
   ============================= */
.page-header {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0 80px;
  overflow: visible;
  background: linear-gradient(to left, #e835d1 10%, #cc32c0 20%, rgba(165, 40, 175, 1) 35%, rgba(140, 50, 185, 1) 50%, rgba(110, 60, 195, 1) 75%, #303db5 100%);
  color: #fff;
  z-index: 1;
}

.page-header-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-header-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.page-header-title:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.5);
}

.page-header-subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}

/* SVG animation container for hero visuals */
.page-header .svg-animations-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
}

/* SVG element positioning and animations */
.page-header .svg-item[data-svg="screen-coding"] {
  width: 200px;
  bottom: 10%;
  right: 10%;
  transform: rotate(0deg) scale(0.75);
}

/* SVG gear rotation animation */
.page-header .svg-item[data-svg="gear"] {
  animation: rotateAnimation 25s linear infinite;
}

@keyframes rotateAnimation {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/*--------------------------------------------------
 # Responsive Styles
--------------------------------------------------*/

/* Large devices and mobile navigation (less than 992px) */
@media (max-width: 992px) {
  /* Mobile navigation styles */
  /* Hide nav links and contact button by default on mobile */
  .nav-links, .contact-btn {
    display: none;
  }
  
  /* Show mobile menu button */
  .mobile-menu-btn {
    display: block;
  }
  
  /* Active mobile menu styles - when menu is open */
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(69, 39, 160, 0.65) 0%, rgba(123, 31, 162, 0.65) 100%);
    padding: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  /* Link styles in active mobile menu */
  .nav-links.active a {
    color: white;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  }
  
  /* Contact button in active mobile menu */
  .contact-btn.active {
    display: block;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(69, 39, 160, 0.90) 0%, rgba(123, 31, 162, 0.90) 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  /* Header title size adjustments */
  .page-header-title {
    font-size: 3rem;
  }
}

/* Medium devices (tablets, less than 768px) */
@media (max-width: 768px) {
  /* Reduce header title and subtitle sizes */
  .page-header-title {
    font-size: 2.5rem;
  }
  
  .page-header-subtitle {
    font-size: 1rem;
  }
  
  /* Scale down SVG items on smaller screens */
  .page-header .svg-item {
    transform: scale(0.6);
  }
}

/* Small devices (phones, less than 576px) */
@media (max-width: 576px) {
  /* Further reduce header title size */
  .page-header-title {
    font-size: 2rem;
  }
  
  /* Adjust header padding for smaller screens */
  .page-header {
    padding: 100px 0 60px;
  }
}

/*--------------------------------------------------
 # End of Header Styles
 # Last updated: 2025-06-16
--------------------------------------------------*/
