/* ============================================
   AL KULAIB INTERNATIONAL - MAIN STYLES
   ============================================ */

@import url('variables.css');

/* === RESET & BASE === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--color-text-dark);
  background-color: var(--color-bg-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-base);
}

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* === UTILITIES === */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.container-lg {
  max-width: var(--container-2xl);
}

.section {
  padding: var(--space-24) 0;
}

.section-dark {
  background-color: var(--color-primary);
  color: var(--color-text-white);
}

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

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-subtitle {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--color-accent-red);
  margin-bottom: var(--space-4);
  position: relative;
}

.section-subtitle::before,
.section-subtitle::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 2px;
  background-color: var(--color-accent-gold);
}

.section-subtitle::before {
  right: calc(100% + 12px);
}

.section-subtitle::after {
  left: calc(100% + 12px);
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-primary);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-4);
}

.section-dark .section-title {
  color: var(--color-text-white);
}

.section-description {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: var(--leading-relaxed);
}

.section-dark .section-description {
  color: var(--color-text-light);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left var(--transition-slow);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background-color: var(--color-accent-red);
  color: var(--color-text-white);
  border: 2px solid var(--color-accent-red);
}

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

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

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

.btn-gold {
  background-color: var(--color-accent-gold);
  color: var(--color-primary);
  border: 2px solid var(--color-accent-gold);
}

.btn-gold:hover {
  background-color: var(--color-accent-gold-dark);
  border-color: var(--color-accent-gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-text-white);
  transform: translateY(-2px);
}

.btn-lg {
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-lg);
}

.btn-sm {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
}

/* === PRELOADER === */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  text-align: center;
}

.preloader-logo {
  font-size: var(--text-3xl);
  font-weight: var(--weight-black);
  color: var(--color-text-white);
  margin-bottom: var(--space-6);
  letter-spacing: var(--tracking-wide);
}

.preloader-logo span {
  color: var(--color-accent-gold);
}

.preloader-bar {
  width: 200px;
  height: 3px;
  background-color: rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 0 auto;
}

.preloader-bar::after {
  content: '';
  display: block;
  width: 40%;
  height: 100%;
  background-color: var(--color-accent-gold);
  border-radius: var(--radius-full);
  animation: preloaderSlide 1.2s ease-in-out infinite;
}

@keyframes preloaderSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* === READING PROGRESS BAR === */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent-red), var(--color-accent-gold));
  z-index: calc(var(--z-fixed) + 1);
  transition: width 50ms linear;
}

/* === HEADER / NAVIGATION === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: var(--z-fixed);
  transition: all var(--transition-base);
  background: transparent;
}

.header.scrolled {
  height: var(--header-height-scrolled);
  background-color: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-2xl);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  z-index: var(--z-fixed);
}

.logo-text {
  font-size: var(--text-xl);
  font-weight: var(--weight-black);
  color: var(--color-text-white);
  letter-spacing: var(--tracking-wide);
  line-height: var(--leading-tight);
}

.logo-text span {
  color: var(--color-accent-gold);
}

.logo-tagline {
  font-size: var(--text-xs);
  color: var(--color-accent-gold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  font-weight: var(--weight-medium);
}

/* Main Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-link {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  position: relative;
  transition: color var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-accent-gold);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--color-accent-gold);
  transition: width var(--transition-base);
}

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

/* Dropdown */
.nav-item {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background-color: var(--color-primary);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: var(--space-2) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-2xl);
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.75);
  transition: all var(--transition-fast);
}

.dropdown-link:hover {
  color: var(--color-accent-gold);
  background-color: rgba(255,255,255,0.05);
  padding-left: var(--space-8);
}

/* Dropdown Arrow */
.nav-link .arrow {
  display: inline-block;
  margin-left: var(--space-1);
  font-size: 10px;
  transition: transform var(--transition-base);
}

.nav-item:hover .nav-link .arrow {
  transform: rotate(180deg);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: var(--z-fixed);
  padding: var(--space-2);
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background-color: var(--color-text-white);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* === HERO SECTION === */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10,22,40,0.92) 0%, rgba(10,22,40,0.6) 50%, rgba(10,22,40,0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 var(--container-padding);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(212, 168, 67, 0.15);
  border: 1px solid rgba(212, 168, 67, 0.4);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-2xl);
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-accent-gold);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
}

.hero-badge i {
  font-size: var(--text-xs);
}

.hero-title {
  font-size: var(--text-6xl);
  font-weight: var(--weight-black);
  color: var(--color-text-white);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-6);
  letter-spacing: var(--tracking-tight);
}

.hero-title .highlight {
  color: var(--color-accent-gold);
  position: relative;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: rgba(212, 168, 67, 0.3);
  z-index: -1;
}

.hero-description {
  font-size: var(--text-xl);
  color: rgba(255,255,255,0.8);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-10);
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Hero Geometric Decoration */
.hero-decoration {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  opacity: 0.08;
  z-index: 1;
}

.hero-decoration .circle {
  position: absolute;
  border: 2px solid var(--color-accent-gold);
  border-radius: 50%;
  animation: heroRotate 20s linear infinite;
}

.hero-decoration .circle:nth-child(1) {
  width: 100%;
  height: 100%;
}

.hero-decoration .circle:nth-child(2) {
  width: 75%;
  height: 75%;
  top: 12.5%;
  left: 12.5%;
  animation-direction: reverse;
  animation-duration: 15s;
}

.hero-decoration .circle:nth-child(3) {
  width: 50%;
  height: 50%;
  top: 25%;
  left: 25%;
  animation-duration: 10s;
}

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

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}

.hero-scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-accent-gold), transparent);
  margin: var(--space-3) auto 0;
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5); opacity: 0.5; }
}

/* === STATS SECTION === */
.stats {
  position: relative;
  background-color: var(--color-primary);
  padding: var(--space-16) 0;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(30,58,95,0.3) 0%, transparent 50%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: var(--space-8);
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(212,168,67,0.3), transparent);
}

.stat-icon {
  font-size: var(--text-3xl);
  color: var(--color-accent-gold);
  margin-bottom: var(--space-4);
}

.stat-number {
  font-size: var(--text-5xl);
  font-weight: var(--weight-black);
  color: var(--color-text-white);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-number .suffix {
  font-size: var(--text-3xl);
  color: var(--color-accent-gold);
}

.stat-label {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  font-weight: var(--weight-medium);
}

/* === ABOUT PREVIEW === */
.about-preview {
  padding: var(--space-24) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  position: relative;
  z-index: 1;
}

.about-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-image-wrapper::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100px;
  height: 100px;
  border-top: 4px solid var(--color-accent-gold);
  border-left: 4px solid var(--color-accent-gold);
  z-index: 0;
}

.about-image-wrapper::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  border-bottom: 4px solid var(--color-accent-red);
  border-right: 4px solid var(--color-accent-red);
  z-index: 0;
}

.about-experience-badge {
  position: absolute;
  bottom: 30px;
  right: -30px;
  background: var(--color-accent-red);
  color: var(--color-text-white);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  text-align: center;
  z-index: 2;
  box-shadow: var(--shadow-xl);
}

.about-experience-badge .number {
  font-size: var(--text-4xl);
  font-weight: var(--weight-black);
  line-height: 1;
}

.about-experience-badge .text {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-top: var(--space-1);
}

.about-content .section-subtitle {
  text-align: left;
}

.about-content .section-subtitle::before {
  display: none;
}

.about-content .section-title {
  text-align: left;
  margin-bottom: var(--space-6);
}

.about-text {
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
  font-size: var(--text-lg);
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.about-feature {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.about-feature i {
  color: var(--color-accent-gold);
  font-size: var(--text-lg);
}

.about-feature span {
  font-weight: var(--weight-medium);
  font-size: var(--text-sm);
  color: var(--color-text-dark);
}

/* === SERVICES SECTION === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.service-card {
  background-color: var(--color-bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  position: relative;
  group: true;
}

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

.service-card-image {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-card:hover .service-card-image img {
  transform: scale(1.1);
}

.service-card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(10,22,40,0.5), transparent);
}

.service-card-icon {
  position: absolute;
  bottom: -25px;
  left: var(--space-6);
  width: 50px;
  height: 50px;
  background-color: var(--color-accent-red);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-white);
  font-size: var(--text-xl);
  z-index: 2;
  box-shadow: var(--shadow-lg);
  transition: background-color var(--transition-base);
}

.service-card:hover .service-card-icon {
  background-color: var(--color-accent-gold);
}

.service-card-content {
  padding: var(--space-10) var(--space-6) var(--space-6);
}

.service-card-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.service-card-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-accent-red);
  transition: gap var(--transition-base);
}

.service-card-link:hover {
  gap: var(--space-3);
  color: var(--color-accent-red-dark);
}

/* === PROJECTS SECTION === */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-8);
}

.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 350px;
  cursor: pointer;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover img {
  transform: scale(1.1);
}

.project-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--space-8) var(--space-6);
  background: linear-gradient(to top, rgba(10,22,40,0.95), rgba(10,22,40,0.5) 60%, transparent);
  transition: all var(--transition-base);
}

.project-card:hover .project-card-overlay {
  padding-bottom: var(--space-10);
}

.project-card-category {
  display: inline-block;
  background-color: var(--color-accent-red);
  color: var(--color-text-white);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-3);
}

.project-card-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-text-white);
  margin-bottom: var(--space-2);
}

.project-card-client {
  font-size: var(--text-sm);
  color: var(--color-accent-gold);
  font-weight: var(--weight-medium);
}

.project-card-value {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  margin-top: var(--space-2);
}

/* === CLIENTS SECTION === */
.clients {
  padding: var(--space-16) 0;
  background-color: var(--color-bg-section);
  overflow: hidden;
}

.clients-track {
  display: flex;
  gap: var(--space-16);
  animation: clientsScroll 30s linear infinite;
  width: max-content;
}

.clients-track:hover {
  animation-play-state: paused;
}

.client-logo {
  flex-shrink: 0;
  height: 60px;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-4);
}

.client-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.client-logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.client-logo-text {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-primary);
  white-space: nowrap;
}

@keyframes clientsScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === CERTIFICATIONS SECTION === */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.cert-card {
  background-color: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  border-top: 4px solid var(--color-accent-gold);
}

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

.cert-icon {
  font-size: var(--text-4xl);
  color: var(--color-accent-gold);
  margin-bottom: var(--space-4);
}

.cert-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.cert-code {
  font-size: var(--text-sm);
  color: var(--color-accent-red);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-3);
}

.cert-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

/* === CTA SECTION === */
.cta {
  position: relative;
  padding: var(--space-24) 0;
  background-color: var(--color-secondary);
  background-image: url('../images/hero/cta-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10,22,40,0.93), rgba(30,58,95,0.9));
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-text-white);
  margin-bottom: var(--space-4);
}

.cta-text {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-8);
  line-height: var(--leading-relaxed);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* === FOOTER === */
.footer {
  background-color: var(--color-primary);
  color: var(--color-text-white);
  padding-top: var(--space-20);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-12);
  padding-bottom: var(--space-16);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-about .logo-text {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.footer-about p {
  color: rgba(255,255,255,0.6);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: var(--text-sm);
  transition: all var(--transition-base);
}

.footer-social a:hover {
  background-color: var(--color-accent-gold);
  border-color: var(--color-accent-gold);
  color: var(--color-primary);
  transform: translateY(-3px);
}

.footer-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-6);
  position: relative;
  padding-bottom: var(--space-3);
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--color-accent-gold);
}

.footer-links li {
  margin-bottom: var(--space-3);
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: var(--text-sm);
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-links a:hover {
  color: var(--color-accent-gold);
  transform: translateX(5px);
}

.footer-links a i {
  font-size: var(--text-xs);
  color: var(--color-accent-gold);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  color: rgba(255,255,255,0.6);
  font-size: var(--text-sm);
}

.footer-contact li i {
  color: var(--color-accent-gold);
  margin-top: 3px;
  min-width: 16px;
}

.footer-bottom {
  padding: var(--space-6) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copyright {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
}

.footer-copyright a {
  color: var(--color-accent-gold);
}

/* === PAGE HERO / BANNER === */
.page-hero {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10,22,40,0.9), rgba(30,58,95,0.8));
}

.page-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.page-hero-title {
  font-size: var(--text-5xl);
  font-weight: var(--weight-black);
  color: var(--color-text-white);
  margin-bottom: var(--space-4);
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
}

.breadcrumb a {
  color: var(--color-accent-gold);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: rgba(255,255,255,0.5);
}

/* === WHATSAPP BUTTON === */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  background-color: #25D366;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--text-2xl);
  z-index: var(--z-fixed);
  box-shadow: var(--shadow-xl);
  transition: all var(--transition-base);
  animation: whatsappPulse 2s infinite;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
}

/* === BACK TO TOP === */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 44px;
  height: 44px;
  background-color: var(--color-primary);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-white);
  font-size: var(--text-sm);
  z-index: var(--z-fixed);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--color-accent-gold);
  color: var(--color-primary);
  transform: translateY(-3px);
}

/* === FILTER BUTTONS === */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-12);
  flex-wrap: wrap;
}

.filter-btn {
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-2xl);
  color: var(--color-text-muted);
  transition: all var(--transition-base);
  cursor: pointer;
  background: var(--color-bg-white);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-white);
}

/* === CONTACT FORM === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
}

.contact-info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.contact-info-card {
  background: var(--color-bg-white);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: all var(--transition-base);
}

.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}

.contact-info-card i {
  font-size: var(--text-2xl);
  color: var(--color-accent-red);
  margin-bottom: var(--space-3);
}

.contact-info-card h4 {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.contact-info-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-4);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--color-text-dark);
  transition: border-color var(--transition-base);
  background-color: var(--color-bg-white);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(30,58,95,0.1);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-input.error {
  border-color: var(--color-accent-red);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--color-accent-red);
  margin-top: var(--space-1);
}

/* === TIMELINE === */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--color-accent-gold), var(--color-accent-red));
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-12);
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
  text-align: right;
}

.timeline-content {
  width: calc(50% - 40px);
  background: var(--color-bg-white);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background-color: var(--color-accent-gold);
  border: 3px solid var(--color-bg-white);
  border-radius: var(--radius-full);
  z-index: 1;
  box-shadow: var(--shadow-md);
}

.timeline-year {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-accent-red);
  margin-bottom: var(--space-2);
}

.timeline-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.timeline-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

/* === LIGHTBOX === */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: var(--text-3xl);
  cursor: pointer;
  z-index: 1;
}

/* === GALLERY GRID === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item::after {
  content: '\f00e';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: var(--text-2xl);
  color: white;
  opacity: 0;
  transition: all var(--transition-base);
  z-index: 1;
}

.gallery-item:hover::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10,22,40,0.4);
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: 1;
}

.gallery-item:hover::before {
  opacity: 1;
}

/* === SCOPE OF WORK LIST === */
.scope-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.scope-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-bg-white);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-accent-gold);
  transition: all var(--transition-base);
}

.scope-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}

.scope-item i {
  color: var(--color-accent-gold);
  margin-top: 3px;
  flex-shrink: 0;
}

.scope-item span {
  font-size: var(--text-sm);
  color: var(--color-text-dark);
  font-weight: var(--weight-medium);
}

/* === MAP === */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}
