/* ===== GLOBAL VARIABLES ===== */
:root {
  --primary-color: #20373d;        /* Instead of #1a2a4a */
  --primary-light: #2c4a52;        /* Instead of #2c3e66 */
  --accent-color: #3a6370; 
  --secondary-color: #bca454;
  --secondary-light: #e8c874;
  --dark-color: #222222;
  --light-color: #f8f9fa;
  --gray-color: #6c757d;
  --white-color: #ffffff;
  --overlay-color: rgba(0, 0, 0, 0.7);
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Playfair Display', serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  --border-radius: 8px;
  --container-width: 1320px;

  /* Text size variables for consistency */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
}



/* ===== BASE STYLES ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--dark-color);
  overflow-x: hidden;
  padding-top: 75px; /* Account for fixed navbar */
}

/* Increase specificity for navbar elements */
nav.navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  height: 75px !important;
  background-color: var(--primary-color) !important;
  padding: 0 5% !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
  transition: var(--transition) !important;
}

/* Logo - Fixed on left */
.logo {
  flex: 0 0 auto;
  order: 1;
  margin-right: auto;
  z-index: 1002;
}

.logo img {
  width: 90px;
  height: auto;
  transition: var(--transition);
  transform-origin: center;
}

/* Main Navigation Menu - Perfectly Centered */
.navMenu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.navLink {
  color: var(--white-color);
  text-transform: uppercase;
  padding: 8px 0;
  text-decoration: none;
  position: relative;
  transition: var(--transition);
  display: flex;
  align-items: center;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.navLink::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

.navLink:hover::after,
.navLink.active::after {
  width: 100%;
}

.navLink:hover,
.navLink.active {
  color: var(--secondary-color);
}

/* ===== ENHANCED LANGUAGE TOGGLE ===== */
.language-container {
  display: flex;
  align-items: center;
  order: 3;
  margin-left: auto;
  z-index: 1002;
}

.languageToggle {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 4px;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.languageButton {
  color: var(--white-color);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 11px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  text-align: center;
}

.languageButton.active {
  color: var(--primary-color);
  background-color: var(--white-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.languageButton:not(.active):hover {
  color: var(--secondary-color);
  background-color: rgba(255, 255, 255, 0.05);
}

.language-separator {
  color: rgba(255, 255, 255, 0.3);
  margin: 0 2px;
  font-weight: 300;
}

/* Hamburger Menu - Hidden by default */
.hamburger {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1003;
  order: 4;
  background: transparent;
  border: none;
  outline: none;
  margin-left: 20px;
}

.hamburger div {
  width: 100%;
  height: 2px;
  background-color: var(--white-color);
  transition: var(--transition);
  position: absolute;
  transform-origin: center;
}

.hamburger div:nth-child(1) { 
  top: 0;
  transform: translateY(0) rotate(0deg);
}
.hamburger div:nth-child(2) { 
  top: 50%; 
  transform: translateY(-50%) scaleX(1);
  opacity: 1;
}
.hamburger div:nth-child(3) { 
  bottom: 0;
  transform: translateY(0) rotate(0deg);
}

/* Active Hamburger State */
.hamburger.active div:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.hamburger.active div:nth-child(2) { 
  opacity: 0;
  transform: translateY(-50%) scaleX(0);
}
.hamburger.active div:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* ===== ENHANCED DROPDOWN MENU ===== */
.dropdown {
  position: relative;
}

.dropdown-arrow {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 8px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--white-color);
  transition: var(--transition);
  vertical-align: middle;
}

.navLink:hover .dropdown-arrow,
.dropdown.active .dropdown-arrow {
  border-top-color: var(--secondary-color);
}

.dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: -15px;
  background-color: var(--primary-color);
  min-width: 260px; /* Increased to prevent text breaking */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-radius: var(--border-radius);
  z-index: 1000;
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  transform: translateY(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-menu li {
  padding: 0;
  margin: 0;
  position: relative;
  padding-left: 30px;
}

.dropdown-menu a {
  display: block;
  padding: 12px 25px 12px 5px;
  color: var(--white-color);
  font-weight: 500;
  text-transform: none;
  transition: var(--transition);
  position: relative;
  font-size: var(--text-sm);
  white-space: nowrap; /* Prevent text breaking */
}

/* Modern bullet point */
.dropdown-menu li::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  transition: var(--transition);
}

/* Hover effect for bullet */
.dropdown-menu li:hover::before {
  transform: translateY(-50%) scale(1.3);
  background-color: var(--white-color);
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 25px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid var(--primary-color);
}

.dropdown-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 25px;
  right: 25px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-menu li:last-child a::after {
  display: none;
}

.dropdown-menu a:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--secondary-color);
  padding-left: 10px;
}

/* Active state for dropdown items */
.dropdown-menu a.active {
  color: var(--secondary-color);
  font-weight: 600;
  background-color: rgba(188, 164, 84, 0.1);
}

.dropdown-menu a.active::before {
  background-color: var(--white-color);
  transform: translateY(-50%) scale(1.3);
}

/* ===== ENHANCED RESPONSIVE STYLES ===== */

/* Large Tablets (1024px and below) */
@media (max-width: 1024px) {
  .navMenu {
    gap: 25px;
  }
}

/* Tablet Breakpoint (991px and below) - Hamburger Menu Activation */
@media (max-width: 991px) {
  .navbar {
    height: 80px;
    padding: 0 5%;
  }

  .logo img {
    width: 85px;
    margin-left: -10%;
  }

  .navMenu {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--primary-color);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 30px 5%; /* Align with logo padding */
    transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    transform: none;
    left: auto;
    margin: 0;
  }

  .navMenu.active {
    right: 0;
  }

  .navMenu li {
    width: 100%;
    text-align: left;
    margin-bottom: 0;
  }

  .navLink {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 18px;
    padding-left: 0; /* Align with logo */
  }

 .navbar.hide {
  transform: translateY(-100%);
  transition: transform 0.3s ease-in-out;
}

  .dropdown {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    transform: none;
    background-color: rgba(255, 255, 255, 0.03);
    box-shadow: none;
    border-radius: 0;
    padding: 0 0 0 45px;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    opacity: 1;
    visibility: visible;
    display: block;
    border-left: 3px solid var(--secondary-color);
    border: none;
  }

  .dropdown-menu li::before {
    left: 0;
  }

  .dropdown-menu a {
    padding: 12px 20px 12px 5px;
    font-size: 16px;
  }

  .dropdown-menu.active {
    max-height: 500px;
    margin-top: 0;
  }

  .dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--secondary-color);
    padding-left: 10px;
  }

  .hamburger {
    display: block;
    order: 4;
    margin-left: 20px;
  }

  .language-container {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    margin: 0 15px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
  }

  .languageToggle {
    margin: 0;
  }

  .languageButton {
    font-size: 14px;
    padding: 6px 12px;
  }

  /* Active state for mobile */
  .dropdown.active .navLink,
  .dropdown .navLink.active {
    color: var(--secondary-color) !important;
  }
  .dropdown.active .navLink::after,
  .dropdown .navLink.active::after {
    width: 100% !important;
  }
}

/* Tablet Portrait (768px and below) */
@media (max-width: 768px) {
  .navbar {
    padding: 0 4%;
  }
  
  .navMenu {
    padding: 25px 4%; /* Maintain alignment with logo */
  }
  
  .languageButton {
    padding: 5px 10px;
    font-size: 13px;
  }
}

/* Medium Mobile (600px and below) */
@media (max-width: 600px) {
  .navbar {
    height: 75px;
    padding: 0 15px;
  }
  
  .logo img {
    width: 80px;
    margin-left: -10%;
  }
  
  .navMenu {
    top: 75px;
    height: calc(100vh - 75px);
    padding: 20px 15px; /* Align with logo */
  }
  
  .navLink {
    padding: 14px 0;
    font-size: 17px;
  }
  
  .language-container {
    margin-right: 10px;
  }
  
  .languageToggle {
    padding: 3px;
  }
  
  .languageButton {
    font-size: 13px;
    padding: 5px 10px;
    min-width: 36px;
  }
  
  .hamburger {
    width: 28px;
    height: 22px;
    margin-left: 15px;
  }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
  .navbar {
    height: 70px;
    padding: 0 12px;
  }
  
  .logo img {
    width: 75px;
    margin-left: -10%;
  }
  
  .navMenu {
    top: 70px;
    height: calc(100vh - 70px);
    padding: 20px 12px; /* Align with logo */
  }
  
  .navLink {
    font-size: 16px;
    padding: 13px 0;
  }
  
  .dropdown-menu {
    padding-left: 40px;
  }
  
  .language-container {
    margin-right: 8px;
  }
  
  .languageToggle {
    padding: 2px;
  }
  
  .languageButton {
    font-size: 12px;
    padding: 4px 8px;
    min-width: 34px;
  }
  
  .hamburger {
    width: 26px;
    height: 20px;
    margin-left: 10px;
  }
}

/* Extra Small Mobile (414px and below) */
@media (max-width: 414px) {
  .navbar {
    height: 65px;
    padding: 0 10px;
  }
  
  .logo img {
    width: 70px;
    margin-left: -15%;
  }
  
  .navMenu {
    top: 65px;
    height: calc(100vh - 65px);
    padding: 15px 10px; /* Align with logo */
  }
  
  .navLink {
    font-size: 15px;
    padding: 12px 0;
  }
  
  .dropdown-menu {
    padding-left: 35px;
  }
  
  .dropdown-menu a {
    padding: 10px 15px 10px 5px;
    font-size: 14px;
  }
  
  .language-container {
    margin-right: 5px;
  }
  
  .languageToggle {
    gap: 0;
  }
  
  .languageButton {
    font-size: 11px;
    padding: 3px 7px;
    min-width: 32px;
  }
  
  .hamburger {
    width: 24px;
    height: 18px;
  }
}

/* Smallest Mobile (320px and below) */
@media (max-width: 320px) {
  .navbar {
    height: 60px;
    padding: 0 10px;
  }
  
  .logo img {
    width: 65px;
    margin-left: -10%;
  }
  
  .navMenu {
    top: 60px;
    height: calc(100vh - 60px);
    padding: 12px 10px; /* Align with logo */
  }
  
  .navLink {
    font-size: 14px;
    padding: 11px 0;
  }
  
  .dropdown-menu {
    padding-left: 30px;
  }
  
  .dropdown-menu a {
    padding: 9px 12px 9px 5px;
    font-size: 13px;
  }
  
  .language-container {
    margin-right: 3px;
  }
  
  .languageToggle {
    padding: 1px;
  }
  
  .languageButton {
    font-size: 10px;
    padding: 2px 6px;
    min-width: 30px;
  }
  
  .hamburger {
    width: 22px;
    height: 16px;
    margin-left: 8px;
  }
}

/* Special adjustments for very tall but narrow screens */
@media (max-height: 700px) and (max-width: 991px) {
  .navMenu {
    padding-top: 20px;
    overflow-y: auto;
  }
  
  .navLink {
    padding: 12px 0;
  }
}

/* ===== LANDSCAPE/HORIZONTAL ORIENTATION STYLES ===== */
/* Enhanced landscape styles for Honor70 and similar devices */
@media (max-width: 991px) and (orientation: landscape) {
  .navbar {
    height: 70px;
    padding: 0 3%;
  }
  
  .logo img {
    width: 70px;
    margin-left: -10%;
  }
  
  /* Mobile menu in landscape - full height and scrollable */
  .navMenu {
    width: 100%;
    top: 70px;
    height: calc(100vh - 70px);
    padding: 20px 3%; /* Align with logo */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .navLink {
    padding: 12px 0;
    font-size: 16px;
  }
  
  /* Ensure all menu items are visible and properly spaced */
  .navMenu li {
    margin-bottom: 5px;
  }
  
  /* Language toggle adjustments */
  .language-container {
    margin-right: 8px;
  }
  
  .languageButton {
    font-size: 12px;
    padding: 5px 10px;
  }
  
  /* Make dropdown menus scrollable if needed */
  .dropdown-menu {
    max-height: 200px;
    overflow-y: auto;
  }
}

/* HONOR70 SPECIFIC LANDSCAPE FIX */
@media (max-width: 915px) and (orientation: landscape) and (max-height: 430px) {
  .navbar {
    height: 60px;
    padding: 0 3%;
  }
  
  .navMenu {
    top: 60px;
    height: calc(100vh - 60px);
    padding: 15px 3%; /* Align with logo */
    display: block;
  }
  
  .navLink {
    padding: 10px 0;
    font-size: 15px;
  }
  
  /* Compress menu items slightly for very short screens */
  .navMenu li {
    margin-bottom: 3px;
  }
  
  /* Ensure the last menu item (Contatti) is always visible */
  .navMenu {
    padding-bottom: 30px; /* Extra padding to ensure last item is visible */
  }
  
  /* Make sure dropdowns don't take too much space */
  .dropdown-menu {
    max-height: 150px;
  }
  
  .languageButton {
    padding: 4px 8px;
    font-size: 11px;
  }
}

/* Enhanced landscape styles for smaller devices */
@media (max-width: 768px) and (orientation: landscape) {
  .navbar {
    height: 65px;
    padding: 0 3%;
  }
  
  .navMenu {
    width: 100%;
    top: 65px;
    height: calc(100vh - 65px);
    padding: 15px 3%; /* Align with logo */
  }
  
  .navLink {
    padding: 10px 0;
    font-size: 15px;
  }
}

@media (max-width: 600px) and (orientation: landscape) {
  .navbar {
    height: 60px;
    padding: 0 2%;
  }
  
  .logo img {
    width: 65px;
  }
  
  .navMenu {
    width: 100%;
    top: 60px;
    height: calc(100vh - 60px);
    padding: 12px 2%; /* Align with logo */
  }
  
  .language-container {
    margin-right: 5px;
  }
  
  .languageButton {
    font-size: 11px;
    padding: 4px 8px;
  }
  
  .hamburger {
    width: 24px;
    height: 18px;
    margin-left: 10px;
  }
}

@media (max-width: 480px) and (orientation: landscape) {
  .navbar {
    height: 55px;
    padding: 0 2%;
  }
  
  .logo img {
    width: 60px;
  }
  
  .navMenu {
    width: 100%;
    top: 55px;
    height: calc(100vh - 55px);
    padding: 10px 2%; /* Align with logo */
  }
  
  .navLink {
    font-size: 14px;
    padding: 8px 0;
  }
  
  .dropdown-menu {
    padding-left: 30px;
  }
  
  .dropdown-menu a {
    padding: 8px 12px 8px 5px;
    font-size: 13px;
  }
  
  .language-container {
    margin-right: 3px;
  }
  
  .languageButton {
    font-size: 10px;
    padding: 3px 6px;
  }
  
  .hamburger {
    width: 22px;
    height: 16px;
  }
}

/* Special adjustments for very short landscape screens */
@media (max-width: 991px) and (orientation: landscape) and (max-height: 450px) {
  .navMenu {
    padding-top: 10px;
    overflow-y: auto;
  }
  
  .navLink {
    padding: 8px 0;
    font-size: 14px;
  }
  
  .dropdown-menu {
    max-height: 150px;
    overflow-y: auto;
  }
  
  /* Ensure all menu items fit even on very short screens */
  .navMenu li {
    margin-bottom: 2px;
  }
  
  /* Extra padding at bottom to ensure Contatti link is visible */
  .navMenu {
    padding-bottom: 40px;
  }
  
  .languageButton {
    padding: 3px 6px;
    font-size: 10px;
  }
}

/* High-resolution displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .navbar {
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
  }
  
  .dropdown-menu {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  }
  
  .languageToggle {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  }
}

/* ===== BODY SCROLL LOCK FOR MOBILE MENU ===== */
.body-no-scroll {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* Special fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
  .navMenu {
    height: -webkit-fill-available;
    top: 70px;
    max-height: calc(100vh - 70px);
  }
  
  @media (orientation: landscape) {
    .navMenu {
      max-height: calc(100vh - 70px);
    }
  }
}

/* ===== FOOTER STYLES ===== */
.footer {
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 60px 5% 30px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

.footerContent {
  display: grid;
  grid-template-columns: 1.5fr 1.2fr 1fr 1fr;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
}

.footerColumn:first-child {
  padding-right: 40px;
}

.footerColumn:nth-child(2) {
  padding-left: 40px;
  padding-right: 20px;
}

.footerColumn:nth-child(3) {
  padding-left: 30px;
  padding-right: 30px;
}

.footerColumn:nth-child(4) {
  padding-left: 30px;
}

.footerLogo img {
  width: 110px;
  height: auto;
  margin-bottom: 15px;
}

.footerTagline {
  margin: 0;
  font-size: 0.9rem;
  line-height: 2.2;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--white-color);
}

.footerHeading {
  font-size: 1rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
  padding-bottom: 5px;
  position: relative;
  font-weight: 600;
}

.footerHeading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 25px;
  height: 2px;
  background-color: var(--secondary-color);
}

.footerInfo {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footerInfo p {
  margin: 0;
  color: var(--white-color);
  font-size: 0.9rem;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  white-space: nowrap;
}

.footerInfo p strong {
  display: inline-block;
  width: 75px;
  font-weight: 500;
  flex-shrink: 0;
  color: var(--white-color);
}

.footerLinks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 0;
  margin-left: 0;
}

.footerLinks a {
  font-size: 0.85rem;
  text-decoration: none;
  transition: var(--transition);
  display: block;
  color: var(--white-color);
}

.footerLinks a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

/* ===== FOOTER BOTTOM SECTION ===== */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white-color);
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--white-color);
  margin-bottom: 10px;
}

.footer-developer {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: all 0.3s ease;
}

.footer-developer a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
}

.footer-developer a:hover {
  color: #d4af37;
}

.footer-developer a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

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

/* ===== RESPONSIVE FOOTER STYLES ===== */

/* Large Tablets (1024px and below) */
@media (max-width: 1024px) {
  .footer {
    padding: 70px 5% 35px;
  }
  
  .footerContent {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 45px;
  }
  
  .footerColumn:first-child {
    padding-right: 30px;
  }
  
  .footerColumn:nth-child(2) {
    padding-left: 30px;
    padding-right: 15px;
  }
  
  .footerColumn:nth-child(3),
  .footerColumn:nth-child(4) {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .footerLogo img {
    width: 105px;
  }
  
  .footerTagline {
    font-size: 0.95rem;
    line-height: 1.9;
  }
  
  .footerHeading {
    font-size: 1.05rem;
    margin-bottom: 22px;
  }
  
  .footerInfo p {
    font-size: 0.92rem;
  }
  
  .footerLinks a {
    font-size: 0.9rem;
  }
  
  .footer-bottom {
    padding-top: 45px;
    margin-top: 45px;
  }
}

/* Tablet Breakpoint (991px and below) */
@media (max-width: 991px) {
  .footer {
    padding: 60px 5% 30px;
  }
  
  .footerContent {
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    text-align: center;
  }
  
  .footerColumn:first-child {
    grid-column: 1 / -1;
    padding-right: 0;
  }
  
  .footerColumn {
    padding: 0 !important;
  }
  
  .footerLogo img {
    width: 110px;
    margin-bottom: 20px;
    display: block;
    margin: 0 auto;
  }
  
  .footerTagline {
    font-size: 1rem;
    line-height: 1.8;
    justify-content: center;
    text-align: center;
    max-width: 550px;
    margin: 0 auto;
    border-left: none;
    padding-left: 0;
  }
  
  .footerHeading {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 25px;
  }
  
  .footerHeading::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footerInfo {
    align-items: center;
    gap: 15px;
  }
  
  .footerInfo p {
    flex-direction: column;
    align-items: center;
    text-align: center;
    white-space: normal;
    font-size: 0.95rem;
  }
  
  .footerInfo p strong {
    width: auto;
    margin-right: 0;
    margin-bottom: 8px;
    font-weight: 600;
  }
  
  .footerLinks {
    align-items: center;
    gap: 15px;
  }
  
  .footerLinks a {
    font-size: 0.95rem;
    padding-left: 0;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding-top: 50px;
    margin-top: 50px;
  }
  
  .footer-copyright {
    font-size: 0.85rem;
    margin-bottom: 0;
    color: var(--white-color);
  }
  
  .footer-developer {
    font-size: 0.9rem;
  }
}

/* Tablet Portrait (768px and below) */
@media (max-width: 768px) {
  .footer {
    padding: 55px 4% 25px;
  }
  
  .footerContent {
    gap: 45px;
  }
  
  .footerLogo img {
    width: 100px;
    margin-bottom: 5%;
  }
  
  .footerTagline {
    font-size: 0.95rem;
  }
  
  .footerInfo p {
    font-size: 0.9rem;
  }
  
  .footerLinks a {
    font-size: 0.9rem;
  }
  
  .footer-bottom {
    padding-top: 45px;
    margin-top: 45px;
  }
}

/* Medium Mobile (600px and below) */
@media (max-width: 600px) {
  .footer {
    padding: 50px 15px 25px;
  }
  
  .footerContent {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .footerColumn:first-child {
    grid-column: 1;
  }
  
  .footerLogo img {
    width: 100px;
  }
  
  .footerTagline {
    font-size: 0.92rem;
    line-height: 1.7;
  }
  
  .footerHeading {
    font-size: 1.05rem;
    margin-bottom: 20px;
  }
  
  .footerInfo p {
    font-size: 0.9rem;
  }
  
  .footerLinks a {
    font-size: 0.9rem;
  }
  
  .footer-bottom {
    margin-top: 40px;
    padding-top: 40px;
  }
  
  .footer-copyright,
  .footer-developer {
    font-size: 0.85rem;
    color: var(--white-color);
  }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
  .footer {
    padding: 45px 15px 20px;
  }
  
  .footerContent {
    gap: 35px;
  }
  
  .footerLogo img {
    width: 95px;
  }
  
  .footerTagline {
    font-size: 0.9rem;
    line-height: 1.6;
  }
  
  .footerHeading {
    font-size: 1rem;
    margin-bottom: 18px;
  }
  
  .footerInfo p,
  .footerLinks a {
    font-size: 0.88rem;
  }
  
  .footerInfo p strong {
    min-width: 65px;
    margin-bottom: 6px;
  }
  
  .footer-bottom {
    padding-top: 35px;
    margin-top: 35px;
  }
  
  .footer-copyright,
  .footer-developer {
    font-size: 0.82rem;
    color: var(--white-color);
  }
}

/* Extra Small Mobile (414px and below) */
@media (max-width: 414px) {
  .footer {
    padding: 40px 12px 18px;
  }
  
  .footerContent {
    gap: 30px;
  }
  
  .footerLogo img {
    width: 90px;
  }
  
  .footerTagline {
    font-size: 0.88rem;
    line-height: 1.6;
  }
  
  .footerInfo p,
  .footerLinks a {
    font-size: 0.85rem;
  }
  
  .footer-bottom {
    padding-top: 30px;
    margin-top: 30px;
  }
  
  .footer-copyright,
  .footer-developer {
    font-size: 0.8rem;
  }
}

/* Smallest Mobile (320px and below) */
@media (max-width: 320px) {
  .footer {
    padding: 35px 10px 15px;
  }
  
  .footerContent {
    gap: 25px;
  }
  
  .footerLogo img {
    width: 85px;
  }
  
  .footerTagline {
    font-size: 0.85rem;
    line-height: 1.5;
  }
  
  .footerInfo p,
  .footerLinks a {
    font-size: 0.82rem;
  }
  
  .footerInfo p strong {
    min-width: 60px;
    margin-bottom: 5px;
  }
  
  .footer-bottom {
    padding-top: 25px;
    margin-top: 25px;
  }
  
  .footer-copyright,
  .footer-developer {
    font-size: 0.78rem;
    color: var(--white-color);
  }
}

/* ===== LANDSCAPE FOOTER ENHANCEMENTS ===== */
@media (max-width: 991px) and (orientation: landscape) {
  .footer {
    padding: 40px 4% 20px;
  }
  
  .footerContent {
    grid-template-columns: 1fr 1fr;
    gap: 35px;
  }
  
  .footerColumn:first-child {
    grid-column: 1 / -1;
  }
  
  .footerLogo img {
    width: 95px;
  }
  
  .footerTagline {
    font-size: 0.9rem;
    max-width: 500px;
  }
  
  .footerInfo p {
    font-size: 0.85rem;
  }
  
  .footerLinks a {
    font-size: 0.85rem;
  }
  
  .footer-bottom {
    padding-top: 35px;
    margin-top: 35px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
  
  .footer-copyright {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .footer {
    padding: 35px 3% 18px;
  }
  
  .footerContent {
    gap: 30px;
  }
  
  .footer-bottom {
    padding-top: 30px;
    margin-top: 30px;
  }
}

@media (max-width: 600px) and (orientation: landscape) {
  .footer {
    padding: 30px 2% 15px;
  }
  
  .footerContent {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
}

@media (max-width: 480px) and (orientation: landscape) {
  .footer {
    padding: 25px 2% 12px;
  }
  
  .footerContent {
    gap: 20px;
  }
  
  .footerLogo img {
    width: 85px;
  }
  
  .footerTagline {
    font-size: 0.85rem;
  }
  
  .footerInfo p,
  .footerLinks a {
    font-size: 0.82rem;
  }
  
  .footer-bottom {
    padding-top: 25px;
    margin-top: 25px;
  }
}

/* Special adjustments for very short landscape screens */
@media (max-width: 991px) and (orientation: landscape) and (max-height: 450px) {
  .footer {
    padding: 20px 2% 10px;
  }
  
  .footerContent {
    gap: 20px;
  }
  
  .footerLogo img {
    width: 80px;
    margin-bottom: 10px;
  }
  
  .footerTagline {
    font-size: 0.82rem;
    line-height: 1.4;
  }
  
  .footerHeading {
    margin-bottom: 15px;
    font-size: 0.95rem;
  }
  
  .footerInfo p,
  .footerLinks a {
    font-size: 0.8rem;
  }
  
  .footerInfo {
    gap: 10px;
  }
  
  .footerLinks {
    gap: 10px;
  }
  
  .footer-bottom {
    padding-top: 20px;
    margin-top: 20px;
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .footer-copyright,
  .footer-developer {
    font-size: 0.75rem;
  }
}

/* High-resolution displays for footer */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .footer::before {
    height: 2px;
  }
  
  .footerHeading::after {
    height: 1.5px;
  }
}




.gototop {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.gototop.active {
  opacity: 1;
  visibility: visible;
}

.gototop a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background-color: var(--primary-color);
  color: var(--white-color);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.gototop a:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.gototop svg {
  width: 18px;
  height: 18px;
}

/* Small mobile devices (320px to 479px) */
@media (max-width: 479px) {
  .gototop {
    bottom: 15px;
    right: 15px;
  }
  
  .gototop a {
    width: 40px;
    height: 40px;
  }
  
  .gototop svg {
    width: 16px;
    height: 16px;
  }
}

/* Print styles */
@media print {
  .gototop {
    display: none !important;
  }
}