:root {
    --sky: #7fb3d5;          /* Soft blue */
    --light: #f8f9fa;        /* Light background */
    --text: #212529;         /* Dark text */
    --accent: #0d6efd;       /* Professional blue accent */
    --card-bg: #ffffff;      /* White cards */
    --plane-color: #ffffff;  /* Plane color (white) */
    --shadow: rgba(0, 0, 0, 0.08);
    --border: #dee2e6;       /* Light border */
}

/* V1 */

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

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--light);
    color: var(--text);
    overflow-x: hidden;
    text-align: justify;
}

.body-wrapper{
    overflow-x: hidden;
}

h1, h2, h3, p {
    color: var(--text);
}

h3 {
    color: var(--accent);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

p {
    /* max-width: 800px; */
    line-height: 1.6;
    color: #495057; /* Slightly muted text */
}

/* Clouds container */
.clouds {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

/* Cloud base style */
.cloud {
  position: absolute;
  width: 300px;
  fill: rgba(255, 255, 255, 1);
  filter: blur(20px);
  opacity: 0.7;
}

/* Cloud positions */
.cloud-1 {
  top: 1%;
  left: -0%;
  width: 500px;
  animation: moveCloudLeft 35s infinite alternate;
}

.cloud-2 {
  top: 50%;
  right: 0%;
  width: 700px;
  animation: moveCloudRight 30s infinite alternate;
}

.cloud-3 {
  top: 20%;
  right: 20%;
  width: 300px;
  animation: moveCloudRight 37s infinite alternate;
}

.cloud-4 {
  top: 15%;
  right: 80%;
  width: 600px;
  animation: moveCloudLeft 40s infinite alternate;
}

.cloud-5 {
  top: 25%;
  right: 10%;
  width: 750px;
  animation: moveCloudLeft 32s infinite alternate;
}

/* Animations */
@keyframes moveCloudLeft {
  from { transform: translateX(0); }
  to { transform: translateX(500px); }
}

@keyframes moveCloudRight {
  from { transform: translateX(100px); }
  to { transform: translateX(-500px); }
}

/* Hero Section */
.hero {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(180deg, var(--sky) 0%, var(--light) 100%);
    z-index: 5;
    padding: 0 2rem;
}

/* Plane Overlay */
.plane-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: 0;
    z-index: 10;
    pointer-events: none;
    transition: height 0.3s linear, opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    will-change: transform;
    overflow-x: clip;
}

.plane-overlay svg {
    will-change: transform;
    transform-origin: center;
    width: 300px;
    height: auto;
    fill: var(--plane-color);
    transform: translateY(100%) scale(0.2);
    transition: transform 0.1s linear, fill 0.3s ease;
}

/* Content */
.content {
    position: relative;
    margin-top: 20vh;
}

/* Story Cards */
section {
    padding: 6rem 10vw;
    display: flex;
    flex-direction: column;
}

.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 6px var(--shadow);
    border: 1px solid var(--border);
}

/* Cards with an image */
.card.with-image {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.timeline-content.with-image {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Square image container (shared) */
.card-image {
  width: 220px;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  background: #eaeaea;
}

/* Image behavior */
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Text content */
.card-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Profile card reuse */
.profile-card {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.mock-img {
    width: 100%;
    max-width: 420px;
    border-radius: 12px;
    opacity: 1;
    object-fit: cover;
    box-shadow: 0 2px 4px var(--shadow);
}

/* Timeline */
.timeline {
    position: relative;
    margin-top: 3rem;
    padding-left: 3rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 0;
    height: var(--line-height, 0px);
    width: 2px;
    background: var(--accent);
    transition: height 0.3s ease-out;
}

.timeline-item {
    margin-bottom: 4rem;
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.timeline-item.active {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item .dot {
    position: absolute;
    left: -22px;
    top: 0.4rem;
    width: 14px;
    height: 14px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(13, 110, 253, 0.3);
}

.timeline-image {
    display: flex;
    width: 220px;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  background: #eaeaea;
}

.timeline-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.timeline-content{
    padding: 20px;
}

.timeline-content-text{
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.linkedin-btn {
  padding: 0.75rem 1.5rem;
  background-color: #2a6fdb;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: max-content;
  font-weight: 600;
  transition: 
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.linkedin-btn svg {
  transition: transform 0.25s ease;
}

.linkedin-btn:hover {
  background-color: #1f5bc4;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(42, 111, 219, 0.35);
}

.card-image,
.timeline-image{
    box-shadow: 10px 10px 10px rgba(6, 16, 32, 0.1);
}

/* Table wrapper for mobile scrolling */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

/* Aviation documents table */
.docs-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
  font-size: 0.95rem;
}

.docs-table thead {
  background: #f0f4f8;
}

.docs-table th,
.docs-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  white-space: nowrap;
}

.docs-table th {
  font-weight: 600;
  color: #1a1a1a;
}

.docs-table tbody tr {
  border-top: 1px solid #e0e6ed;
}

.docs-table tbody tr:hover {
  background: #f7faff;
}

/* Status colors (optional but nice) */
.docs-table td:last-child {
  font-weight: 500;
}

/* Rounded corners inside card */
.docs-table thead tr th:first-child {
  border-top-left-radius: 10px;
}
.docs-table thead tr th:last-child {
  border-top-right-radius: 10px;
}


@media (max-width: 1000px) {

  .card{
    padding: 10px;
  }

  .card.with-image,
  .card.profile-card,
  .timeline-content {
    flex-direction: column;
    align-items: center; /* ⬅️ center children */
    text-align: left;
  }

  /* Center image container */
  .card-image,
  .profile-image,
  .timeline-image {
    width: 100%;
    aspect-ratio: 4/3;
    max-width: 250px;
    margin: 0 auto; /* ⬅️ hard center */
  }

  /* Text stays full width */
  .card-content,
  .profile-content,
  .timeline-content-text {
    width: 100%;
  }
}
