/*
This file is divided into sections:
  1. Variables & Reset
  2. Base Styles
  3. Layout & Components
  4. Sections
  5. Utilities
  6. Media Queries
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* --- Variables & Reset --- */
:root {
  --white: #ffffff;
  --off-white: #f7f9fb;
  --light-gray: #e9ecef;
  --mid-gray: #8a96a3;
  --dark-gray: #2c3440;
  --black: #1a1f28;

  --main-color: #17506b;
  --main-color-dark: #103a4e;
  --main-color-light: #2d7a9c;
  --secondary-color: #dcedf4;
  --accent-color: #c98a3e;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.12);

  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;

  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;

  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;

  --container-max-width: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* --- Base Styles --- */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--white);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: var(--font-size-4xl);
}

h2 {
  font-size: var(--font-size-3xl);
}

h3 {
  font-size: var(--font-size-xl);
}

h4 {
  font-size: var(--font-size-lg);
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--main-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--main-color-dark);
}

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

ul {
  list-style-type: none;
}

/* --- Layout & Components --- */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 80px 0;
}

.section.alt-bg {
  background-color: var(--off-white);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-divider {
  height: 4px;
  width: 60px;
  background: var(--main-color);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--main-color);
  background-color: var(--secondary-color);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links li a {
  font-weight: 500;
  font-size: var(--font-size-sm);
  color: var(--dark-gray);
  padding: 0.5rem 0;
  position: relative;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--main-color);
  transition: width var(--transition-normal);
}

.nav-links li a:hover {
  color: var(--main-color);
}

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

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-md);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  line-height: 1;
}

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

.btn-primary:hover {
  background-color: var(--main-color-dark);
  border-color: var(--main-color-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--white);
}

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

.btn-outline:hover {
  background-color: var(--main-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* --- Hero Section --- */
.hero {
  padding: 160px 0 80px;
  background-color: var(--off-white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -15%;
  right: -12%;
  width: 65%;
  height: 85%;
  background-color: var(--secondary-color);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  z-index: 0;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1;
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  font-weight: 500;
  margin-bottom: 1.25rem;
  color: var(--main-color-dark);
}

.hero-tagline {
  font-weight: 400;
  font-size: var(--font-size-lg);
  color: var(--dark-gray);
  max-width: 44ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

#profile-picture {
  display: flex;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 5px solid var(--white);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-normal);
  overflow: hidden;
}

#profile-picture:hover {
  transform: scale(1.03);
}

#profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- About Section --- */
.about-content {
  display: flex;
  gap: 4rem;
  align-items: center;
}

.about-text {
  flex: 3;
}

.about-text p {
  margin-bottom: 1.25rem;
}

.about-stats {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat {
  text-align: center;
  padding: 1.5rem;
  background-color: var(--secondary-color);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal);
}

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

.stat-number {
  display: block;
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--main-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: var(--font-size-md);
  color: var(--dark-gray);
}

/* --- Experience Timeline --- */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 2rem;
  border-left: 3px solid var(--secondary-color);
}

.timeline-item {
  position: relative;
  padding-bottom: 2.75rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -2.45rem;
  top: 0.35rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--main-color);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--secondary-color);
}

.timeline-content {
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  padding: 1.5rem 1.75rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.timeline-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin-bottom: 0.25rem;
}

.timeline-header h3 {
  margin-bottom: 0;
  color: var(--main-color-dark);
}

.timeline-date {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--accent-color);
  white-space: nowrap;
}

.timeline-company {
  font-weight: 500;
  color: var(--mid-gray);
  margin-bottom: 0.75rem;
}

.timeline-bullets {
  list-style: none;
  margin-bottom: 0;
}

.timeline-bullets li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.6rem;
  font-size: var(--font-size-sm);
}

.timeline-bullets li:last-child {
  margin-bottom: 0;
}

.timeline-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--main-color-light);
}

/* --- Skills Section --- */
.skills-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.skill-category {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition: box-shadow var(--transition-normal);
}

.skill-category:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.skill-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.skill-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--main-color);
  flex-shrink: 0;
}

.skill-header h3 {
  margin-bottom: 0;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-tag {
  background-color: var(--secondary-color);
  color: var(--main-color-dark);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.skill-tag:hover {
  background-color: var(--main-color);
  color: var(--white);
  transform: translateY(-2px);
}

.strengths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.strength-item {
  text-align: center;
  padding: 1.5rem;
  background-color: var(--off-white);
  border-radius: var(--border-radius-lg);
  transition: var(--transition-normal);
}

.strength-item:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

.strength-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--white);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--main-color);
  font-size: 1.4rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.strength-item h4 {
  margin-bottom: 0.5rem;
}

.strength-item p {
  font-size: var(--font-size-sm);
  color: var(--mid-gray);
  margin-bottom: 0;
}

/* --- Education / Certifications --- */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.credential-card {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition: transform var(--transition-normal);
}

.credential-card:hover {
  transform: translateY(-5px);
}

.credential-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  color: var(--main-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.5rem;
}

.credential-org {
  font-weight: 500;
  color: var(--mid-gray);
  margin-bottom: 0.25rem;
}

.credential-detail {
  font-size: var(--font-size-sm);
  color: var(--accent-color);
  margin-bottom: 0;
}

/* --- Footer --- */
.footer {
  background-color: var(--main-color-dark);
  color: var(--white);
  padding: 3rem 0 2rem;
}

.footer-info h3 {
  font-size: var(--font-size-xl);
  margin-bottom: 0.5rem;
}

.footer-info p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.25rem;
}

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

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--font-size-sm);
  margin-bottom: 0;
}

/* --- Media Queries --- */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-tagline {
    max-width: none;
  }

  .hero-cta {
    justify-content: center;
  }

  .about-content {
    flex-direction: column;
    gap: 2rem;
  }

  .about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  h1 {
    font-size: var(--font-size-3xl);
  }

  h2 {
    font-size: var(--font-size-2xl);
  }

  .nav-links {
    gap: 1rem;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .about-stats {
    grid-template-columns: repeat(1, 1fr);
  }

  .timeline {
    padding-left: 1.5rem;
  }

  .timeline-marker {
    left: -1.95rem;
  }

  .timeline-content {
    padding: 1.25rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 1rem;
  }

  .nav-links {
    font-size: var(--font-size-xs);
    gap: 0.75rem;
  }

  #profile-picture {
    width: 200px;
    height: 200px;
  }

  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
