/* === Google Fonts & Base Styles === */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@300;400;500;600;700&display=swap');

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

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.7;
  color: #ffffff;
  background: linear-gradient(135deg, #0F2027 0%, #203A43 50%, #00C9FF 100%);
  scroll-behavior: smooth;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.section {
  padding: 100px 0;
}

.bg-light {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

/* === Typography === */
h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  color: #ffffff;
  font-weight: 700;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

h2::after {
  content: '';
  display: block;
  width: 100px;
  height: 4px;
  background: #00C9FF;
  margin: 20px auto 0;
  border-radius: 2px;
  box-shadow: 0 0 15px rgba(0, 201, 255, 0.4);
}

h3 {
  font-size: 1.9rem;
  color: #00C9FF;
}

h4 {
  font-size: 1.4rem;
  color: #00C9FF;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
  color: #e0f7ff;
  font-size: 1.1rem;
}

a {
  color: #00C9FF;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #fff;
}

/* === Logo: MTQ (Badoni-inspired) === */
.logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffffff;
  text-transform: uppercase;
  display: inline-block;
  background: linear-gradient(45deg, #ffffff, #00C9FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* === Navigation === */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(15, 32, 39, 0.85);
  border-bottom: 1px solid rgba(0, 201, 255, 0.2);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.8rem;
}

.nav-links a {
  color: #e0f7ff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  position: relative;
  transition: all 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #00C9FF;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #00C9FF;
}

.nav-links a:hover::after {
  width: 60%;
}

.burger {
  display: none;
  cursor: pointer;
}

.burger .line {
  width: 28px;
  height: 3px;
  background: #00C9FF;
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.4s;
}

/* === Hero Section (Increased Height) === */
.hero {
  min-height: 100vh;
  height: 115vh; /* Increased height for dramatic look */
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.hero h1 {
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.35rem;
  margin-bottom: 2.5rem;
  color: #a8e6ff;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  background: #00C9FF;
  color: #0F2027;
  padding: 16px 40px;
  border: none;
  border-radius: 30px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(0, 201, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.btn:hover {
  background: #00a8d4;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 201, 255, 0.4);
}

/* Optional Scroll Indicator */
.hero::after {
  content: '↓';
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: #00C9FF;
  font-size: 1.2rem;
  opacity: 0.7;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-10px) translateX(-50%);
  }
  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

/* === About Section === */
.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  align-items: center;
  justify-content: center;
}

.about-img img {
  width: 100%;
  max-width: 400px;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.about-text p {
  font-size: 1.15rem;
  color: #e0f7ff;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

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

.timeline::after {
  content: '';
  position: absolute;
  width: 3px;
  background: #00C9FF;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1.5px;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(0, 201, 255, 0.3);
}

.timeline-item {
  padding: 32px 45px;
  position: relative;
  width: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 201, 255, 0.1);
  transition: transform 0.3s ease;
  margin-bottom: 50px;
}

.timeline-item:hover {
  transform: translateY(-5px);
}

.timeline-item:nth-child(odd) { left: 0; }
.timeline-item:nth-child(even) { left: 50%; }

.timeline-item::before {
  content: '';
  position: absolute;
  width: 26px;
  height: 26px;
  background: #0F2027;
  border: 3px solid #00C9FF;
  border-radius: 50%;
  top: 40px;
  z-index: 2;
}

.timeline-item:nth-child(odd)::before { right: -13px; }
.timeline-item:nth-child(even)::before { left: -13px; }

.company {
  font-weight: 600;
  color: #a8e6ff;
  margin: 8px 0 5px;
  font-size: 1.15rem;
}

.company i {
  color: #00C9FF;
  margin-right: 6px;
}

.date {
  color: #00C9FF;
  font-weight: 600;
  margin-bottom: 14px;
  display: block;
}

.details li {
  margin-bottom: 10px;
  position: relative;
  line-height: 1.6;
  color: #d0f0ff;
}

.details li::before {
  content: "✓";
  color: #00C9FF;
  font-weight: bold;
  position: absolute;
  left: -20px;
}

/* === Certifications & Skills === */
.certs-grid, .skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.cert-item, .skill-category {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  padding: 30px 25px;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 201, 255, 0.1);
  transition: all 0.3s ease;
}

.cert-item:hover, .skill-category:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.cert-item h4 {
  color: #ffffff;
  margin-bottom: 8px;
}

.cert-item p {
  color: #00C9FF;
  font-weight: 500;
}

.skill-category h3 {
  margin-bottom: 18px;
  color: #00C9FF;
  font-size: 1.4rem;
  border-bottom: 2px solid rgba(0, 201, 255, 0.2);
  padding-bottom: 8px;
}

.skill-category li {
  margin-bottom: 12px;
  padding-left: 22px;
  position: relative;
  font-size: 1.05rem;
  color: #e0f7ff;
}

.skill-category li::before {
  content: "•";
  color: #00C9FF;
  font-size: 1.5rem;
  position: absolute;
  left: 0;
  top: -4px;
}

/* === Contact Section === */
.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  justify-content: space-between;
}

.contact-info p {
  margin-bottom: 22px;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #e0f7ff;
}

.social-links {
  margin-top: 25px;
  font-size: 1.6rem;
  display: flex;
  gap: 22px;
}

.social-links a {
  color: #a8e6ff;
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: #00C9FF;
  transform: scale(1.25);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 1rem;
  font-family: 'Open Sans', sans-serif;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #00C9FF;
  box-shadow: 0 0 0 3px rgba(0, 201, 255, 0.2);
}
.contact-form .placeholder {
  color: #d7dbdd;
  opacity: 0.7;
}

/* === Footer === */
footer {
  text-align: center;
  padding: 30px 20px;
  background: rgba(15, 32, 39, 0.9);
  color: #a8e6ff;
  font-size: 1rem;
  border-top: 1px solid rgba(0, 201, 255, 0.1);
}

footer p {
  margin: 0;
  opacity: 0.8;
}

/* === Responsive Design === */
@media (max-width: 768px) {
  .logo {
    font-size: 2rem;
  }

  .navbar {
    padding: 1.2rem 5%;
  }

  .nav-links {
    position: fixed;
    right: -100%;
    top: 70px;
    height: calc(100vh - 70px);
    background: rgba(15, 32, 39, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    transition: right 0.5s ease;
    padding-top: 40px;
    z-index: 999;
    border-top: 1px solid rgba(0, 201, 255, 0.2);
  }

  .nav-links.active {
    right: 0;
  }

  .burger {
    display: block;
  }

  .burger .line {
    width: 30px;
  }

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

  .timeline-item {
    width: 100%;
    padding-left: 70px;
  }

  .timeline-item::before {
    left: -13px !important;
    right: auto;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .btn {
    font-size: 1.05rem;
    padding: 14px 36px;
  }

  .hero {
    height: 110vh;
  }

  .hero::after {
    display: none; /* Hide arrow on mobile if needed */
  }
}