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

/* =====================
   GLOBAL VARIABLES
   ===================== */
:root {
  --primary: #ff5555;
  --primary-hover: #e43232;
  --dark-primary: #000;
  --dark-secondary: #1e1b1b;
  --text-color: #c4c4c4;
}

/* =====================
   RESET & BASE STYLES
   ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: "Poppins", sans-serif;
  max-width: 100%;
  overflow-x: hidden;
  min-height: 100vh;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =====================
   HEADER
   ===================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--dark-primary);
  padding: 1rem clamp(0.5rem, 3vw, 1.5rem);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  flex-direction: column;
  gap: 0.75rem;
}

header div > a {
  text-decoration: none;
}

header .logo {
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 2px;
  font-size: clamp(1rem, 4vw, 1.5rem);
  text-align: center;
}

header ul {
  display: flex;
  list-style: none;
  gap: clamp(0.5rem, 2vw, 1.5rem);
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 100%;
}

header ul li {
  flex-shrink: 0;
}

header ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(0.75rem, 1.8vw, 1rem);
  transition: all 0.3s ease;
  white-space: nowrap;
  display: block;
  padding: 0.25rem 0.5rem;
}

header ul li a:hover {
  color: var(--primary);
}

/* =====================
   HERO SECTION
   ===================== */
section.hero-section {
  background-color: var(--dark-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(7rem, 15vh, 10rem) clamp(1.5rem, 8vw, 8rem) clamp(3rem, 8vh, 5rem);
  gap: clamp(2rem, 5vw, 5rem);
  min-height: 100vh;
  flex-direction: flex;
  /* flex-wrap: wrap; */
}

.hero-content {
  flex: 1;
  min-width: 280px;
  max-width: 600px;
  order: 1; /* Content on left */
}

.hero-section__title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-section__title span {
  color: var(--primary);
}

.hero-section__desc {
  color: var(--text-color);
  font-size: clamp(0.875rem, 2vw, 1rem);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.hero-img {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 280px;
  order: 2; /* Image on right */
}

.hero-img img {
  max-width: 100%;
  width: clamp(250px, 40vw, 450px);
  border-radius: 15px;
  margin: 0;
}

.social-icons {
  margin: 1.5rem 0;
}

ul.social-icons {
  list-style: none;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-icons li {
  border-radius: 50%;
  border: 1px solid var(--primary);
  padding: 0.5rem 0.75rem;
  transition: all 0.3s ease;
}

.social-icons li:hover {
  background-color: var(--primary);
}

.social-icons li a {
  text-decoration: none;
  color: #fff;
  font-size: clamp(1rem, 2vw, 1.125rem);
}

.hero-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-buttons button > a {
  text-decoration: none;
  color: #fff;
}

/* =====================
   BUTTONS
   ===================== */
.btn {
  padding: clamp(0.625rem, 2vw, 0.875rem) clamp(1rem, 3vw, 1.5rem);
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: clamp(0.875rem, 2vw, 1rem);
  font-weight: 600;
}

.btn.btn-primary {
  background-color: var(--primary);
  color: var(--dark-primary);
}

.btn.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-dark-outlined {
  background-color: var(--dark-primary);
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-dark-outlined:hover {
  background-color: var(--primary);
  color: #fff;
}

/* =====================
   TOOLTIPS
   ===================== */
[data-tooltip] {
  position: relative;
  cursor: pointer;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: clamp(0.625rem, 1.5vw, 0.75rem);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
}

[data-tooltip]::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

[data-tooltip]:hover::after,
[data-tooltip]:hover::before {
  opacity: 1;
}

[data-tooltip][tooltip-top]::after {
  bottom: 145%;
}

[data-tooltip][tooltip-top]::before {
  bottom: 145%;
  border-color: var(--primary) transparent transparent transparent;
}

[data-tooltip][tooltip-bottom]::after {
  top: 125%;
}

[data-tooltip][tooltip-bottom]::before {
  top: 115%;
  border-color: transparent transparent var(--primary) transparent;
}

[small-tooltip]::after {
  padding: 0.25rem 0.5rem;
  font-size: 0.625rem;
}

/* =====================
   CAREER SECTION
   ===================== */
section.career-section {
  background-color: var(--dark-secondary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3rem, 8vh, 5rem) clamp(1.5rem, 5vw, 3rem);
  gap: clamp(2rem, 5vw, 6rem);
  /* flex-wrap: wrap; */
}

.career-img {
  flex-shrink: 0;
}

.career-img img {
  width: clamp(180px, 30vw, 250px);
  height: clamp(180px, 30vw, 250px);
  padding: 2px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  box-shadow: 3px 5px 30px #03506e;
  object-fit: cover;
  margin: 0 auto;
}

.career-content {
  flex: 1;
  min-width: 280px;
  max-width: 600px;
}

.career-content h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 1rem;
}

.career-content h2 > span {
  color: var(--primary);
}

.career-content p {
  color: var(--text-color);
  font-size: clamp(0.875rem, 2vw, 1rem);
  line-height: 1.6;
}

/* =====================
   PROFESSIONAL SECTION
   ===================== */
section.professional-section {
  background-color: var(--dark-primary);
  color: #fff;
  padding: clamp(3rem, 8vh, 5rem) clamp(1.5rem, 5vw, 3rem);
}

.professional-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(2rem, 5vh, 3rem);
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.professional-content h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  width: 100%;
  text-align: center;
  margin-bottom: 1rem;
}

.professional-content h1 span {
  color: var(--primary);
}

/* Experience blocks */
.pro_exp1,
.pro_exp2 {
  width: 100%;
}

.pro_exp1 h2,
.pro_exp2 h2 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.pro_exp1 h2 span,
.pro_exp2 h2 span {
  font-size: clamp(0.875rem, 2vw, 1rem);
  font-weight: 400;
  color: var(--primary);
  margin-left: auto;
}

.pro_exp1 h4,
.pro_exp2 h4 {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  font-weight: 500;
  margin: 0.75rem 0;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.pro_exp1 h4 span,
.pro_exp2 h4 span {
  font-size: clamp(0.875rem, 2vw, 1rem);
  font-weight: 400;
  color: var(--primary);
  margin-left: auto;
}

.pro_exp1 ul,
.pro_exp2 ul {
  padding-left: 1.5rem;
  margin-top: 0.75rem;
  list-style-type: disc;
}

.pro_exp1 ul li,
.pro_exp2 ul li {
  margin-bottom: 0.75rem;
  font-size: clamp(0.875rem, 2vw, 0.9375rem);
  line-height: 1.6;
  color: #ccc;
}

/* =====================
   PROJECTS SECTION
   ===================== */
section.projects-section {
  background-color: var(--dark-secondary);
  color: #fff;
  padding: clamp(3rem, 8vh, 5rem) clamp(1.5rem, 5vw, 3rem);
}

.projects-section h2 {
  font-size: clamp(1.5rem, 4vw, 1.75rem);
  text-align: center;
  margin-bottom: 2rem;
}

.projects-section h2 > span {
  color: var(--primary);
}

.projects-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 1200px;
  margin: 0 auto;
}

.projects-card-box {
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.projects-card-box:hover {
  box-shadow: 3px 5px 20px #613026;
  transform: translateY(-2px);
}

.projects-card-box__icons > i {
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  border-radius: 50%;
  border: 1px solid var(--primary);
  padding: clamp(1rem, 3vw, 1.25rem);
}

.projects-card-box:hover .projects-card-box__icons > i {
  color: var(--primary);
  background-color: var(--dark-secondary);
}

.projects-card-box__desc h4 {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  margin: 1rem 0 0.75rem 0;
}

.projects-card-box__desc p {
  font-size: clamp(0.875rem, 2vw, 0.9375rem);
  color: var(--text-color);
  line-height: 1.5;
}

.projects-card-box__buttons {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.projects-card-box__buttons button {
  background-color: var(--dark-secondary);
}

.projects-card-box__buttons button > a {
  text-decoration: none;
  font-size: clamp(0.8125rem, 2vw, 0.875rem);
  color: #fff;
}

/* =====================
   PUBLICATIONS SECTION
   ===================== */
section.publications-section {
  background-color: var(--dark-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3rem, 8vh, 5rem) clamp(1.5rem, 5vw, 3rem);
  gap: clamp(2rem, 5vw, 6rem);
  flex-wrap: wrap;
}

.publications-img {
  flex-shrink: 0;
}

.publications-img img {
  width: clamp(180px, 30vw, 250px);
  height: clamp(180px, 30vw, 250px);
  padding: 2px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  box-shadow: 3px 5px 30px #03506e;
  object-fit: cover;
  margin: 0 auto;
}

.publications-content {
  flex: 1;
  min-width: 280px;
  max-width: 600px;
}

.publications-content h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 1rem;
}

.publications-content h2 > span {
  color: var(--primary);
}

.publications-content p {
  color: var(--text-color);
  font-size: clamp(0.875rem, 2vw, 1rem);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.publications-content button {
  margin-top: 1.5rem;
  font-size: clamp(0.875rem, 2vw, 0.9375rem);
}

.publications-content button > a {
  text-decoration: none;
  color: var(--dark-primary);
}

/* =====================
   GAUGE SECTION
   ===================== */
.container {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  padding: clamp(0.75rem, 2vw, 1.25rem);
  flex-wrap: wrap;
  max-width: 100%;
}

.gauge {
  width: clamp(120px, 20vw, 180px);
  height: clamp(80px, 15vw, 120px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
  max-width: 100px;
  max-height: 100px;
}

.label {
  position: absolute;
  width: 100%;
  text-align: center;
  bottom: -30px;
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  font-weight: bold;
}

.value {
  dominant-baseline: middle;
  alignment-baseline: middle;
  text-anchor: middle;
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  font-weight: bold;
  fill: white;
}

.horizontal-values {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  gap: 1rem;
}

/* =====================
   CONTACT SECTION
   ===================== */
section.contact-section {
  background-color: var(--dark-primary);
  color: #fff;
  text-align: center;
  padding: clamp(2.5rem, 6vh, 4rem) clamp(1.5rem, 5vw, 3rem);
  width: 100%;
}

.contact-section h2 {
  font-size: clamp(1.5rem, 4vw, 1.75rem);
  margin-bottom: 1.5rem;
}

.contact-section h2 > span {
  color: var(--primary);
}

.contact-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.5rem);
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: clamp(0.75rem, 2vw, 1rem) clamp(1.25rem, 3vw, 1.5rem);
  background-color: var(--primary);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: clamp(0.875rem, 2vw, 1rem);
  font-weight: 600;
  transition: 0.3s ease;
  min-width: 180px;
  justify-content: center;
}

.contact-btn i {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
}

.contact-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

/* =====================
   FOOTER
   ===================== */
footer {
  background-color: var(--dark-secondary);
  color: gray;
  text-align: center;
  padding: clamp(1rem, 3vh, 1.5rem) clamp(1rem, 3vw, 2rem);
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  width: 100%;
}

footer a {
  text-decoration: none;
  color: var(--primary);
}

.footer-buttons {
  margin-top: 0.75rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-buttons button {
  padding: clamp(0.5rem, 1.5vw, 0.625rem) clamp(0.625rem, 2vw, 0.875rem);
  cursor: pointer;
  font-weight: 600;
  border-radius: 8px;
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  transition: all 0.3s ease;
}

.footer__theme1 {
  color: #12bdff;
  background-color: transparent;
  border: 1px solid #12bdff;
}

.footer__theme1:hover {
  background-color: #12bdff;
  color: #fff;
}

.footer__theme2 {
  color: #ff5555;
  background-color: transparent;
  border: 1px solid #ff5555;
}

.footer__theme2:hover {
  background-color: #ff5555;
  color: #fff;
}

.footer__theme3 {
  color: #ff29e4;
  background-color: transparent;
  border: 1px solid #ff29e4;
}

.footer__theme3:hover {
  background-color: #ff29e4;
  color: #fff;
}

.active-theme {
  background-color: var(--primary);
  color: white;
}

/* =====================
   RESPONSIVE BREAKPOINTS
   ===================== */

/* Large Tablets & Small Laptops */
@media (max-width: 1024px) {
  header {
    padding: 1rem 1.5rem;
    gap: 0.75rem;
  }

  section.hero-section {
    min-height: auto;
  }

  .hero-content {
    max-width: 100%;
  }

  section.career-section,
  section.publications-section {
    flex-direction: column;
    text-align: center;
  }

  .career-content,
  .publications-content {
    max-width: 100%;
  }
}

/* Tablets */
@media (max-width: 768px) {
  header {
    padding: 0.875rem 1rem;
  }

  header .logo {
    margin-bottom: 0.25rem;
  }

  header ul {
    gap: 0.5rem;
  }

  header ul li a {
    font-size: 0.75rem;
    padding: 0.2rem 0.4rem;
  }

  section.hero-section {
    padding-top: 9rem;
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    order: 2; /* Content below on mobile */
  }

  .hero-img {
    order: 1; /* Image on top on mobile */
  }

  .hero-img img {
    max-width: 80%;
  }

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

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

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

  .professional-content h1 {
    text-align: center;
  }

  .pro_exp1 h2,
  .pro_exp2 h2,
  .pro_exp1 h4,
  .pro_exp2 h4 {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .pro_exp1 h2 span,
  .pro_exp2 h2 span,
  .pro_exp1 h4 span,
  .pro_exp2 h4 span {
    margin-left: 0;
  }

  .contact-btn {
    width: 100%;
    max-width: 300px;
  }
}

/* Mobile Phones */
@media (max-width: 480px) {
  header {
    padding: 0.75rem 0.5rem;
  }

  header ul {
    gap: 0.4rem;
  }

  header ul li a {
    font-size: 0.7rem;
    padding: 0.15rem 0.3rem;
  }

  section.hero-section {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    order: 2; /* Content below on mobile */
  }

  .hero-img {
    order: 1; /* Image on top on mobile */
  }

  .hero-img img {
    display: block;
    max-width: 90%;
  }

  .career-img img,
  .publications-img img {
    width: 200px;
    height: 200px;
  }

  .projects-card-box {
    padding: 1rem;
  }

  .container {
    gap: 1.5rem;
  }

  .gauge {
    width: 140px;
    height: 100px;
  }
}

/* Landscape Mode Fix */
@media screen and (max-height: 480px) and (orientation: landscape) {
  html, body {
    height: auto;
  }

  header {
    position: relative;
  }

  section.hero-section {
    min-height: auto;
    padding-top: 2rem;
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    order: 2; /* Content below on landscape */
  }

  .hero-img {
    order: 1; /* Image on top on landscape */
  }

  .hero-img img {
    max-width: 60%;
  }
}

/* Ultra-wide Screens */
@media (min-width: 1920px) {
  .container,
  .professional-content,
  .projects-cards {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 1024px) {
  section.career-section {
    gap: 15rem; /* you can change this value as you like */
  }
}
