* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0a0e27;
  --accent: #182e6f;
  --accent-light: #2a4a8f;
  --accent-dark: #06402b;
  --accent-cta: #fcca03;
  --accent-cta-hover: #e6b503;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-light: #9ca3af;
  --bg-white: #ffffff;
  --bg-light: #f9fafb;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-white);
  overflow-x: hidden;
}

/* Typography */
.display-font {
  font-family: "Playfair Display", serif;
}

/* Hero/Landing Section Background */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

/* Slideshow styles */
.hero-backgrounds {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: grayscale(100%) contrast(1.2);
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

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

.hero-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    270deg,
    rgba(6, 64, 43, 0.9),
    rgba(24, 46, 111, 0.9),
    rgba(6, 64, 43, 0.9)
  );
  background-size: 400% 400%;
  z-index: 2;
  animation: gradientAnimation 12s ease infinite;
}

@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Interior page top spacing to account for fixed navbar */
.interior-page .section:first-of-type {
  padding-top: 8rem;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 1.5rem 0;
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(0);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.navbar.scrolled .logo {
  color: var(--primary);
}

.navbar.scrolled .menu-trigger span {
  background: var(--primary);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  text-decoration: none;
  letter-spacing: -0.5px;
  transition: color 0.3s ease;
}

/* For interior pages, always show dark logo */
body.interior-page .logo {
  color: var(--primary);
}

body.interior-page .menu-trigger span {
  background: var(--primary);
}

/* Menu Trigger */
.menu-trigger {
  width: 32px;
  height: 24px;
  position: relative;
  cursor: pointer;
  z-index: 1002;
}

.menu-trigger span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: white;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: all 0.25s ease;
}

.menu-trigger span:nth-child(1) {
  top: 0px;
}

.menu-trigger span:nth-child(2) {
  top: 11px;
  width: 70%;
  right: 0;
  left: auto;
}

.menu-trigger span:nth-child(3) {
  top: 22px;
  width: 85%;
  right: 0;
  left: auto;
}

.menu-trigger.active span:nth-child(1) {
  top: 11px;
  transform: rotate(135deg);
}

.menu-trigger.active span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.menu-trigger.active span:nth-child(3) {
  top: 11px;
  width: 100%;
  transform: rotate(-135deg);
}

/* Right Side Menu */
.menu-overlay {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  height: 100vh;
  background: var(--primary);
  z-index: 998;
  display: flex;
  flex-direction: column;
  transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
}

.menu-overlay.active {
  right: 0;
}

/* Dark overlay for rest of screen */
.menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 997;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.menu-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.menu-content {
  flex: 1;
  padding: 6rem 3rem 2rem;
  overflow-y: auto;
}

.menu-nav {
  list-style: none;
}

.menu-nav li {
  margin: 0.5rem 0;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.5s ease;
}

.menu-overlay.active .menu-nav li {
  opacity: 1;
  transform: translateX(0);
}

.menu-overlay.active .menu-nav li:nth-child(1) {
  transition-delay: 0.1s;
}
.menu-overlay.active .menu-nav li:nth-child(2) {
  transition-delay: 0.15s;
}
.menu-overlay.active .menu-nav li:nth-child(3) {
  transition-delay: 0.2s;
}
.menu-overlay.active .menu-nav li:nth-child(4) {
  transition-delay: 0.25s;
}
.menu-overlay.active .menu-nav li:nth-child(5) {
  transition-delay: 0.3s;
}
.menu-overlay.active .menu-nav li:nth-child(6) {
  transition-delay: 0.35s;
}
.menu-overlay.active .menu-nav li:nth-child(7) {
  transition-delay: 0.4s;
}
.menu-overlay.active .menu-nav li:nth-child(8) {
  transition-delay: 0.45s;
}

.menu-nav a {
  color: white;
  text-decoration: none;
  font-size: 1.75rem;
  font-weight: 300;
  letter-spacing: -0.5px;
  position: relative;
  display: inline-block;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
}

.menu-nav a:hover {
  color: var(--accent-cta);
  transform: translateX(10px);
}

.menu-nav a.active {
  color: var(--accent-cta);
}

/* Social Links in Menu */
.menu-social-section {
  background: rgba(0, 0, 0, 0.2);
  padding: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-social-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  text-align: center;
}

.menu-social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
  transition-delay: 0.5s;
}

.menu-overlay.active .menu-social {
  opacity: 1;
  transform: translateY(0);
}

.menu-social a {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  transition: all 0.3s ease;
  font-size: 1.25rem;
}

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

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Sections */
.section {
  padding: 6rem 0;
  position: relative;
}

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

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 3;
  color: white;
  text-align: center;
}

.hero-subtitle {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -2px;
}

.hero-description {
  font-size: 1.25rem;
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto 3rem;
  opacity: 0.95;
  line-height: 1.8;
}

.hero-cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--accent-cta);
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(252, 202, 3, 0.3);
}

.hero-cta:hover {
  background: var(--accent-cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(252, 202, 3, 0.4);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

/* Updated Section Description - Fixed to keep text on one line */
.section-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 750px;
  margin: 0 auto;
  white-space: nowrap;
}

/* Skills/Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

/* Enhanced Service Card with Better Hover Effect */
.service-card {
  background: white;
  padding: 3rem;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(24, 46, 111, 0.15);
  border-color: var(--accent);
}

.service-card:hover::before {
  opacity: 0.03;
}

.service-card:hover .service-icon {
  transform: rotateY(360deg);
  background: linear-gradient(
    135deg,
    var(--accent-cta),
    var(--accent-cta-hover)
  );
}

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: white;
  position: relative;
  z-index: 1;
  transition: all 0.6s ease;
}

.service-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary);
  position: relative;
  z-index: 1;
}

.service-description {
  color: var(--text-secondary);
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

/* Experience Timeline */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: var(--border);
}

.timeline-item {
  display: flex;
  justify-content: center;
  margin-bottom: 4rem;
  position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: auto;
  margin-left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: auto;
  margin-right: 0;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--accent);
  border: 4px solid white;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}

.timeline-content {
  width: 45%;
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.timeline-date {
  font-size: 0.875rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.timeline-company {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.timeline-description {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.project-image {
  width: 100%;
  height: 240px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
}

.project-content {
  padding: 2rem;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.project-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  padding: 0.25rem 0.75rem;
  background: var(--bg-light);
  color: var(--text-secondary);
  font-size: 0.875rem;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.project-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.project-link:hover {
  color: var(--accent-cta);
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--primary);
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.contact-item i {
  width: 24px;
  margin-right: 1rem;
  color: var(--accent);
  font-size: 1.25rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(24, 46, 111, 0.1);
}

.btn-submit {
  background: var(--accent-cta);
  color: var(--primary);
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  background: var(--accent-cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(252, 202, 3, 0.3);
}

/* Footer */
footer {
  background: var(--primary);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-about h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

.footer-links h4 {
  margin-bottom: 1.5rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-cta);
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: all 0.3s ease;
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* Gallery grid styles */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  font-weight: 500;
  transition: transform 0.3s ease;
}

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

/* Certification and Project Filters */
.cert-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.625rem 1.25rem;
  background: white;
  border: 2px solid var(--border);
  border-radius: 50px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-btn i {
  font-size: 0.875rem;
}

.filter-btn:hover {
  border-color: var(--accent-cta);
  color: var(--accent-cta);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--accent-cta);
  color: var(--primary);
  border-color: var(--accent-cta);
  font-weight: 600;
}

.cert-item,
.project-item {
  transition: all 0.3s ease;
  opacity: 1;
  transform: scale(1);
}

.cert-item.hidden,
.project-item.hidden {
  opacity: 0;
  transform: scale(0.9);
  position: absolute;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-overlay {
    width: 100%;
    right: -100%;
  }

  .timeline::before {
    left: 30px;
  }

  .timeline-item {
    justify-content: flex-start;
    margin-left: 60px;
  }

  .timeline-dot {
    left: 30px;
  }

  .timeline-content {
    width: calc(100% - 60px);
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: 0;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .services-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .menu-nav a {
    font-size: 1.5rem;
  }

  .page-header h1 {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  /* Allow text to wrap on mobile */
  .section-description {
    white-space: normal;
  }
}

/* ===== COOKIE CONSENT STYLES ===== */
/* Add this to the end of your styles.css file */

/* Cookie Notice Bar */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 15, 20, 0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
}

.cookie-notice.show {
  transform: translateY(0);
}

.cookie-notice-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.cookie-notice-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cookie-notice-text h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.cookie-notice-text p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 600px;
}

.cookie-notice-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cookie-btn-settings {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-settings:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.cookie-btn-reject {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-reject:hover {
  background: rgba(255, 255, 255, 0.15);
}

.cookie-btn-accept {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.cookie-btn-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

/* Remove underlines from social icon links */
.footer-social a,
.menu-social a {
  text-decoration: none !important;
}

/* Also ensure no underlines on hover */
.footer-social a:hover,
.menu-social a:hover {
  text-decoration: none !important;
}

/* If the above doesn't work, target Font Awesome icons specifically */
a i.fab,
a i.fas,
a i.far {
  text-decoration: none !important;
}

/* Remove any potential underlines from the parent link elements */
a:has(i.fab),
a:has(i.fas),
a:has(i.far) {
  text-decoration: none !important;
}
