/* ==========================================================================
   CSS Variables & Design System
   ========================================================================== */
:root {
  /* Color Palette */
  --primary-blue: #0b3954;
  /* Deep corporate blue */
  --secondary-blue: #087e8b;
  /* Distinctive teal/blue for accents */
  --accent-blue: #3b8ed0;
  /* Brighter blue for buttons/links */
  --light-blue: #e8f4f8;
  /* Very light blue for soft backgrounds */

  --dark-grey: #2c3e50;
  --mid-grey: #7f8c8d;
  --light-grey: #f8f9fa;
  --white: #ffffff;

  --text-main: #333333;
  --text-muted: #666666;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Effects */
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 24px rgba(11, 57, 84, 0.12);
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--text-main);
  background-color: var(--light-grey);
  line-height: 1.6;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem !important;
  }

  h2 {
    font-size: 1.75rem !important;
  }

  h3 {
    font-size: 1.5rem !important;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--primary-blue);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

a {
  text-decoration: none;
  color: var(--accent-blue);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-blue);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--accent-blue);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
  background-color: var(--primary-blue);
  color: var(--white);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--secondary-blue);
  border-radius: 2px;
}

/* ==========================================================================
   Header & Navigation (Desktop Default)
   ========================================================================== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  height: 100%;
  transform: translateY(5px);
}

.logo-img {
  height: 230px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  display: block;
}


.logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-blue);
  line-height: 1.2;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  color: var(--dark-grey);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-blue);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-blue);
}

/* Mobile Menu Toggle */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.hamburger-line {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--primary-blue);
  transition: var(--transition);
  border-radius: 2px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 100%);
  position: relative;
  padding: 40px 0 60px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(8, 126, 139, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.hero-title {
  font-size: 3.5rem;
  color: var(--primary-blue);
  margin-bottom: 20px;
  animation: slideUp 0.8s ease-out;
}

.page-hero h1,
.page-hero .hero-title {
  color: #ffffff !important;
  text-align: center;
  font-weight: 600;
  margin: 0;
}

.page-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 220px;
  background-color: var(--primary-blue);
  color: white;
  padding: 40px 0;
}




.page-hero .hero-subtitle {
  color: rgba(255, 255, 255, 0.8);
  margin-top: 15px;
  margin-bottom: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--mid-grey);
  margin-bottom: 30px;
  animation: slideUp 1s ease-out;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  animation: slideUp 1.2s ease-out;
}

@media (max-width: 420px) {
  .hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero-buttons .btn {
    min-width: 0;
    width: auto;
  }
}

/* ==========================================================================
   Sections General
   ========================================================================== */
.section {
  padding: 80px 0;
}

.bg-light {
  background-color: var(--light-grey);
}

/* Cards (Services, Projects) */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  background: var(--white);
  border-radius: var(--border-radius-md);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--secondary-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: -1;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 20px;
  display: inline-block;
  padding: 15px;
  background-color: var(--light-blue);
  border-radius: 50%;
  transition: var(--transition);
}

.card:hover .card-icon {
  background-color: var(--primary-blue);
  color: var(--white);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: var(--dark-grey);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary-blue);
}

.footer-col p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 5px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-col {
    text-align: left !important;
    margin-left: 0 !important;
    align-items: flex-start !important;
  }

  .footer-col h4 {
    text-align: left !important;
  }

  .footer-col h4::after {
    left: 0 !important;
  }

  .footer-links li {
    margin-bottom: 15px;
    /* Better tap target spacing */
  }

  .footer-bottom {
    text-align: left;
  }
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive (Unified Mobile Fix)
   ========================================================================== */
@media (max-width: 991px) {
  body {
    padding-top: 72px;
    overflow-x: hidden;
  }

  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 72px;
    background-color: var(--white);
    z-index: 9999;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
  }

  .header .container {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
    padding: 0;
    gap: 0;
  }

  .logo {
    display: flex;
    align-items: center;
    height: 72px;
    transform: none;
  }

  .logo-img {
    height: 100px;
    max-width: 180px;
  }

  .nav-menu {
    position: fixed;
    top: 72px;
    left: -100%;
    width: 280px;
    height: calc(100vh - 72px);
    background-color: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    gap: 30px;
    transition: 0.4s;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    padding: 40px;
  }

  .nav-menu.active {
    left: 0;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .hamburger {
    display: block;
  }

  .nav-link {
    font-size: 1.2rem;
  }

  .hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .btn {
    width: 100%;
  }

  .hero.home-hero {
    padding-top: 100px !important;
    padding-bottom: 60px;
  }

  .hero {
    min-height: auto;
    align-items: flex-start;
  }

}

/* ==========================================================================
   Cookie Banner
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
  z-index: 9999;
  padding: 15px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.cookie-content p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--dark-grey);
}

.cookie-btn {
  padding: 8px 30px;
  font-size: 0.95rem;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .cookie-btn {
    width: 100%;
  }
}


/* Home Page Specific Responsive Styles */

.about-preview-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.about-preview-text {
  flex: 1;
  min-width: 300px;
}

.about-preview-visual {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
}

.visual-box {
  background-color: var(--primary-blue);
  height: 350px;
  width: 100%;
  max-width: 450px;
  border-radius: var(--border-radius-lg);
  position: relative;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-icon {
  font-size: 6rem;
  color: rgba(255, 255, 255, 0.2);
}

.visual-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.visual-badge p {
  color: white;
  margin: 0;
  font-weight: 500;
}

.visual-badge i {
  color: #4cd137;
  margin-right: 8px;
}

@media (max-width: 768px) {
  .about-preview-grid {
    flex-direction: column;
    gap: 30px;
  }

  .about-preview-text,
  .about-preview-visual {
    min-width: 100%;
  }

  .visual-box {
    height: 250px;
  }
}

/* Internal Pages Text Content Styling */
.text-content {
  max-width: 100%;
  box-sizing: border-box;
}

.text-content * {
  max-width: 100%;
}

.text-content a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 768px) {
  .text-content {
    padding: 25px !important;
  }
}