/* =========================================================
   GLOBAL
========================================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #0b1120;
  color: #e5e7eb;
  line-height: 1.7;
}

main {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 24px;
}


/* =========================================================
   HEADER / NAVIGATION
========================================================= */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 17, 32, 0.96);
  border-bottom: 1px solid #1f2937;
}

nav {
  max-width: 1150px;
  margin: 0 auto;
  padding: 20px 24px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.logo {
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #38bdf8;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid #273449;
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  padding: 8px 11px;
  border-radius: 7px;
  cursor: pointer;
}


/* =========================================================
   GLOBAL SECTIONS
========================================================= */

section {
  padding: 90px 0;
  border-bottom: 1px solid #1f2937;
  scroll-margin-top: 90px;
}

section h2 {
  color: #ffffff;
  font-size: 34px;
  margin-bottom: 30px;
}

section p {
  max-width: 850px;
  margin-bottom: 18px;
  color: #cbd5e1;
}

.section-label {
  color: #38bdf8;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}


/* =========================================================
   HERO
========================================================= */

.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
}

.hero-content {
  width: 100%;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  align-items: center;
  gap: 70px;
}

.intro {
  color: #38bdf8;
  font-size: 18px;
  margin-bottom: 10px;
}

.hero h1 {
  color: #ffffff;
  font-size: clamp(48px, 8vw, 85px);
  line-height: 1.05;
}

.hero h2 {
  margin-top: 15px;
  margin-bottom: 0;
  color: #94a3b8;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.3;
}

.hero-text {
  margin-top: 25px;
  max-width: 750px;
  color: #cbd5e1;
  font-size: 18px;
}

.hero-buttons {
  margin-top: 35px;
  display: flex;
  gap: 15px;
}

.hero-buttons a {
  padding: 13px 22px;
  border: 1px solid #38bdf8;
  border-radius: 7px;
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s ease;
}

.hero-buttons a:first-child {
  background: #38bdf8;
  color: #0b1120;
}

.hero-buttons a:hover {
  opacity: 0.85;
}

.hero-photo {
  display: flex;
  justify-content: center;
}

.hero-photo img {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 5;
  object-fit: cover;

  border: 1px solid #273449;
  border-radius: 22px;

  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
}


/* =========================================================
   ABOUT
========================================================= */

.about-section h2 {
  max-width: 800px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.2;
  margin-bottom: 35px;
}

.about-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.about-content p {
  margin: 0;
  padding: 24px;

  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 12px;
}


/* =========================================================
   SKILLS
========================================================= */

.skills-section h2 {
  font-size: clamp(30px, 4vw, 46px);
  margin-bottom: 40px;
}

.skill-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.skill-group {
  padding: 26px;
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 12px;
}

.skill-group h3 {
  color: #ffffff;
  font-size: 20px;
  margin-bottom: 20px;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skills span {
  padding: 9px 15px;

  background: #111827;
  border: 1px solid #273449;
  border-radius: 6px;

  color: #dbeafe;
  font-size: 14px;
}


/* =========================================================
   PROJECTS
========================================================= */

.projects-section h2 {
  max-width: none;
  font-size: clamp(30px, 3.3vw, 40px);
  margin-bottom: 40px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  padding: 28px;

  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 14px;
}

.project-number {
  color: #38bdf8;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
}

.project-card h3 {
  color: #ffffff;
  font-size: 22px;
  margin-bottom: 14px;
}

.project-card p {
  margin-bottom: 22px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tags span {
  padding: 7px 10px;

  border: 1px solid #273449;
  border-radius: 6px;

  color: #cbd5e1;
  font-size: 13px;
}


/* =========================================================
   EXPERIENCE
========================================================= */

.experience-section h2 {
  font-size: clamp(30px, 3.3vw, 40px);
  margin-bottom: 40px;
}

/* Main company card */
.experience-card {
  padding: 30px;

  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 14px;
}

/* Header rows */
.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 14px;
}

/* Company title */
.experience-card > .experience-header h3 {
  color: #ffffff;
  font-size: 24px;
  margin: 0 0 5px;
}

/* Company subtitle */
.experience-company {
  color: #38bdf8;
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

/* Dates */
.experience-period {
  color: #94a3b8;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  margin: 0;
}

/* Career progression intro */
.experience-card > p {
  color: #cbd5e1;
  line-height: 1.7;
  margin: 20px 0 8px;
}

/* Individual roles */
.experience-role {
  position: relative;

  margin-top: 24px;
  padding-top: 24px;

  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

/* Role title/date header */
.experience-role .experience-header {
  margin-bottom: 10px;
  align-items: center;
}

.experience-role h3 {
  color: #ffffff;
  font-size: 20px;
  line-height: 1.3;
  margin: 0;
}

/* Role description */
.experience-role > p {
  color: #cbd5e1;
  line-height: 1.7;
  margin: 0;
  max-width: 900px;
}

/* Small visual accent beside each role */
.experience-role::before {
  content: "";

  position: absolute;
  top: 22px;
  left: -31px;

  width: 3px;
  height: 26px;

  background: #38bdf8;
  border-radius: 3px;
}

/* Skills / technology tags */
.experience-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  margin-top: 28px;
  padding-top: 22px;

  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.experience-list span {
  padding: 7px 10px;

  border: 1px solid #273449;
  border-radius: 6px;

  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.35);

  font-size: 13px;
  line-height: 1.2;

  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.experience-list span:hover {
  color: #38bdf8;
  border-color: #38bdf8;
  transform: translateY(-1px);
}

/* Mobile */
@media (max-width: 768px) {

  .experience-card {
    padding: 22px;
  }

  .experience-header {
    flex-direction: column;
    gap: 6px;
  }

  .experience-role .experience-header {
    align-items: flex-start;
  }

  .experience-period {
    font-size: 13px;
  }

  .experience-role::before {
    display: none;
  }

  .experience-role h3 {
    font-size: 19px;
  }

  .experience-list span {
    font-size: 12px;
  }
}


/* =========================================================
   EDUCATION
========================================================= */

.education-section h2 {
  font-size: clamp(30px, 3.3vw, 40px);
  margin-bottom: 40px;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.education-card {
  padding: 28px;

  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 14px;
}

.education-year {
  color: #38bdf8;
  font-size: 14px;
  font-weight: 700;
}

.education-card h3 {
  color: #ffffff;
  font-size: 22px;
  margin: 14px 0 8px;
}

.education-card p {
  margin: 0;
}


/* =========================================================
   CERTIFICATIONS
========================================================= */

.certifications-section h2 {
  font-size: clamp(30px, 3.3vw, 40px);
  margin-bottom: 40px;
}

.certification-card {
  max-width: 850px;
  padding: 30px;

  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 14px;
}

.certification-year {
  color: #38bdf8;
  font-size: 14px;
  font-weight: 700;
}

.certification-card h3 {
  color: #ffffff;
  font-size: 24px;
  margin: 14px 0 8px;
}

.certification-issuer {
  color: #38bdf8;
  font-weight: 600;
  margin-bottom: 14px;
}

.certification-date {
  display: inline-block;
  margin-top: 10px;

  color: #94a3b8;
  font-size: 14px;
}


/* =========================================================
   CONTACT
========================================================= */

.contact-section h2 {
  font-size: clamp(30px, 3.3vw, 40px);
  margin-bottom: 20px;
}

.contact-section p {
  max-width: 700px;
  margin-bottom: 24px;
}

.contact-section a {
  display: inline-block;

  padding: 12px 18px;

  border: 1px solid #38bdf8;
  border-radius: 8px;

  color: #38bdf8;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;

  transition: 0.2s ease;
}

.contact-section a:hover {
  background: #38bdf8;
  color: #0b1120;
}

.linkedin-link {
  margin-left: 12px;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
  padding: 35px 20px;

  color: #64748b;
  font-size: 14px;
  text-align: center;
}

footer a {
  color: #38bdf8;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

  nav {
    position: relative;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;

    position: absolute;
    top: 72px;
    left: 24px;
    right: 24px;

    flex-direction: column;
    align-items: stretch;
    gap: 0;

    padding: 10px;

    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 10px;

    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 12px;
  }

}


/* =========================================================
   MEDIUM SCREENS
========================================================= */

@media (max-width: 900px) {

  .hero-content {
    grid-template-columns: 1fr;
    gap: 45px;

    padding-top: 60px;
    padding-bottom: 60px;
  }

  .hero-photo {
    justify-content: flex-start;
  }

  .hero-photo img {
    max-width: 300px;
  }

  .about-content,
  .skill-groups,
  .projects-grid {
    grid-template-columns: 1fr;
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 750px) {

  main {
    padding: 0 22px;
  }

  nav {
    padding: 18px 22px;
  }

  .logo {
    font-size: 20px;
  }

  section {
    padding: 65px 0;
    scroll-margin-top: 80px;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    gap: 45px;
    padding-top: 55px;
    padding-bottom: 55px;
  }

  .hero h1 {
    font-size: clamp(44px, 14vw, 64px);
  }

  .hero h2 {
    font-size: clamp(25px, 8vw, 32px);
  }

  .hero-text {
    font-size: 17px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-photo img {
    max-width: 100%;
  }

  .experience-header {
    flex-direction: column;
    gap: 8px;
  }

  .experience-period {
    white-space: normal;
  }

  .education-grid {
    grid-template-columns: 1fr;
  }

  .contact-section a {
    font-size: 17px;
  }

  .linkedin-link {
    margin-left: 0;
    margin-top: 12px;
  }

}