/* GENERAL - FLAT MODERN DESIGN */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap");

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

/* THEME VARIABLES */

:root {
  /* Light theme (default) */
  --bg-main: #f5f6fb;
  --bg-alt: #ffffff;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-nav: #ffffff;
  --bg-chip: #e9f3ff;

  --border-subtle: #dde3f0;
  --border-strong: #c3d0e5;

  --text-main: #0b1020;
  --text-muted: #5b6476;
  --text-soft: #7b8497;

  --accent: #0f9bff;
  --accent-soft: rgba(15, 155, 255, 0.08);

  --shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.08);

  --hero-gradient: radial-gradient(circle at top left, #e0f2ff, #f5f6fb 55%, #e4ecff);
  --section-gradient: radial-gradient(circle at top right, #e0f2ff, #f5f6fb 55%, #e4ecff);
  --menu-overlay-bg: #f5f6fb;
  --menu-divider: #0b4b8a;
}

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Dark theme */

body.dark-theme {
  --bg-main: #050509;
  --bg-alt: #0a0a0a;
  --bg-elevated: #0f0f10;
  --bg-card: #101017;
  --bg-nav: #050509;
  --bg-chip: rgba(15, 155, 255, 0.12);

  --border-subtle: #111827;
  --border-strong: #1f2937;

  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --text-soft: #6b7280;

  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.12);

  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.75);

  --hero-gradient: radial-gradient(circle at top left, #0b1120, #020617 55%, #020617);
  --section-gradient: radial-gradient(circle at top right, #0b1120, #0a0a0a 55%, #020617);
  --menu-overlay-bg: #0f172a;
  --menu-divider: #0b4b8a;
}

/* This appears to be a duplicate or misplaced font-family declaration and should be removed.
     The body selector above already sets the font-family for the page.
     It's safe and best practice to delete this for cleaner CSS. */


html {
  scroll-behavior: smooth;
}

p {
  color: #a3a3a3;
  line-height: 1.8;
}

/* TRANSITION */

a,
.btn {
  transition: all 200ms ease;
}

/* DESKTOP NAV - FLAT */

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

nav {
  justify-content: space-between;
  align-items: center;
  height: 70px;
  background: var(--bg-nav);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 4rem;
}

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

.nav-links {
  gap: 3rem;
  list-style: none;
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

a {
  color: var(--text-main);
  text-decoration: none;
  position: relative;
}

a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #00d4ff;
  transition: width 0.2s ease;
}

a:hover::after {
  width: 100%;
}

a:hover {
  color: var(--accent);
}

.logo {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.logo:hover {
  cursor: default;
}

/* HAMBURGER MENU */

#hamburger-nav {
  display: none;
}

.hamburger-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 22px;
  width: 26px;
  cursor: pointer;
  z-index: 1200;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  transition: all 0.2s ease-in-out;
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--bg-alt);
  width: 220px;
  overflow: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
  border: 1px solid var(--border-subtle);
  border-top: none;
  display: none;
  opacity: 0;
  transform: translateY(-6px);
  z-index: 1100;
}

.menu-links a {
  display: block;
  padding: 15px 20px;
  text-align: left;
  font-size: 0.9rem;
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.menu-links a:hover {
  background-color: var(--accent-soft);
  color: var(--accent);
  padding-left: 25px;
}

.menu-links li {
  list-style: none;
}

.menu-links.open {
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: translateY(0);
}

.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(8px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(8px, -5px);
}

/* SECTIONS - FLAT */

section {
  padding: 6rem 10rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg-main);
}

.section-header {
  text-align: left;
  margin-bottom: 4rem;
  border-left: 4px solid var(--accent);
  padding-left: 2rem;
}

.section__text__p1 {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 4rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
  line-height: 1.1;
}

/* HERO SECTION - FLAT */

#profile {
  background: var(--hero-gradient);
  padding: 8rem 10rem;
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6rem;
}

.hero-text {
  flex: 1;
}

.hero-title {
  font-size: 5rem;
  margin: 1rem 0;
  line-height: 1.1;
  color: var(--text-main);
}

.section__text__p2 {
  font-size: 1.5rem;
  color: var(--accent);
  margin: 1rem 0;
  font-weight: 500;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 2rem 0;
  max-width: 600px;
  line-height: 1.8;
}

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

.section__pic-container {
  width: 400px;
  height: 400px;
  overflow: hidden;
  border: 3px solid var(--accent);
  background: var(--bg-card);
  position: relative;
}

.section__pic-container::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--accent);
  z-index: -1;
  background: var(--bg-main);
}

.section__pic-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--text-soft);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.scroll-arrow {
  width: 1px;
  height: 30px;
  background: var(--accent);
  margin: 10px auto;
  position: relative;
}

.scroll-arrow::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -3px;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  transform: rotate(45deg);
}

/* BUTTONS - FLAT */

.btn-container {
  display: flex;
  gap: 1rem;
  margin: 2.5rem 0;
  flex-wrap: wrap;
}

.btn {
  font-weight: 600;
  transition: all 200ms ease;
  padding: 1rem 2.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  border: 2px solid;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: inherit;
}

.btn-color-1 {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn-color-1:hover {
  background: transparent;
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-color-2 {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-color-2:hover {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ICONS */

.icon {
  cursor: pointer;
  height: 2.2rem;
  transition: transform 0.2s ease;
  filter: brightness(0);
  opacity: 0.8;
}

.icon:hover {
  transform: scale(1.1);
  opacity: 1;
  filter: brightness(0) saturate(100%) sepia(100%) hue-rotate(190deg);
}

#socials-container {
  display: flex;
  justify-content: flex-start;
  gap: 1.5rem;
  margin-top: 2rem;
}

/* ABOUT SECTION - FLAT */

#about {
  background: var(--section-gradient);
  border-bottom: 1px solid var(--border-subtle);
}

.about-content {
  display: flex;
  gap: 6rem;
  align-items: flex-start;
}

.about-image-container {
  flex: 1;
}

.about-pic {
  width: 100%;
  max-width: 450px;
  border: 3px solid var(--accent);
  display: block;
  background: var(--bg-card);
}

.about-text-container {
  flex: 1;
}

.professional-summary {
  background: var(--bg-card);
  padding: 3rem;
  margin-bottom: 2rem;
  border-left: 4px solid var(--accent);
}

.professional-summary h2 {
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  font-family: "Space Grotesk", sans-serif;
}

.professional-summary p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-muted);
}

.location-info {
  background: var(--bg-card);
  padding: 2rem;
  border: 1px solid var(--border-subtle);
}

.location-info p {
  margin: 0.8rem 0;
  font-size: 1rem;
  color: var(--text-main);
}

.location-info strong {
  color: var(--accent);
  font-weight: 600;
}

/* SKILLS SECTION - FLAT */

#skills {
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-subtle);
}

.skills-container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.skills-category-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.5rem;
  color: var(--text-main);
  margin-bottom: 2.5rem;
  text-align: left;
  border-left: 4px solid var(--accent);
  padding-left: 1.5rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  background: var(--bg-card);
  padding: 2rem;
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.skill-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.skill-card h3 {
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.skill-items span {
  color: var(--text-main);
}

.soft-skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 2.5;
}

.soft-skills-list span {
  color: var(--text-main);
  display: inline-block;
}

.soft-skills-list span::after {
  content: ',';
  margin-left: 0.2rem;
  color: #666;
}

.soft-skills-list span:last-child::after {
  content: '';
}

/* PROJECTS SECTION - FLAT */

#projects {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-subtle);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-card);
  overflow: hidden;
  transition: all 0.2s ease;
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  border-radius: 12px;
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
}

.project-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--bg-main);
  border-bottom: 2px solid var(--accent);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-content {
  padding: 1.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  color: var(--text-main);
  font-size: 1.6rem;
  margin-bottom: 1rem;
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
}

.project-description {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  flex: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.tech-tag {
  background: var(--bg-chip);
  color: var(--accent);
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--accent);
}

.project-btn {
  width: 100%;
  margin-top: auto;
}

/* EDUCATION SECTION - FLAT */

#education {
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-subtle);
}

.education-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 2rem;
}

.education-card,
.certification-card {
  background: var(--bg-card);
  padding: 3rem;
  display: flex;
  gap: 2rem;
  transition: all 0.2s ease;
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent);
}

.education-card:hover,
.certification-card:hover {
  border-color: #00d4ff;
  transform: translateX(5px);
}

.education-icon,
.certification-icon {
  width: 60px;
  height: 60px;
  background: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--accent);
}

.education-icon img,
.certification-icon img {
  width: 30px;
  height: 30px;
  filter: brightness(0) saturate(100%) sepia(100%) hue-rotate(190deg);
}

.education-content h2,
.certification-content h2 {
  color: var(--text-main);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  font-family: "Space Grotesk", sans-serif;
}

.education-content h3 {
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.education-institution,
.certification-org {
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.education-date,
.education-status,
.certification-desc {
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.education-status {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 1rem;
  border: 1px solid #00d4ff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* CONTACT SECTION - FLAT */

#contact {
  background: var(--section-gradient);
}

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

.contact-card {
  background: var(--bg-card);
  padding: 1.8rem;
  text-align: center;
  transition: all 0.2s ease;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}

.contact-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.contact-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 1.2rem;
  background: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent);
}

/* Style for img tags that have contact-icon class */
.contact-card img.contact-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
  padding: 10px;
  filter: brightness(0) saturate(100%) sepia(100%) hue-rotate(190deg);
  background: var(--bg-main);
  border: 2px solid var(--accent);
  display: block;
  margin: 0 auto 1.2rem;
}

.phone-icon,
.location-icon {
  font-size: 2rem;
  background: var(--bg-main);
  border: 2px solid var(--accent);
}

.contact-card h3 {
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
}

.contact-card p {
  color: var(--text-main);
  margin: 0.3rem 0;
}

.contact-card a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.contact-card a:hover {
  color: var(--text-main);
  text-decoration: underline;
}

/* FOOTER SECTION - FLAT */

footer {
  background: var(--bg-nav);
  color: var(--text-main);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-top: 2px solid #1a1a1a;
}

footer p {
  text-align: center;
  color: var(--text-soft);
  font-size: 0.85rem;
}

/* THEME TOGGLE */

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 2rem;
}

#hamburger-nav .theme-toggle {
  margin-left: 0;
}

.theme-toggle-button {
  width: 46px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  padding: 2px;
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.theme-toggle-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(0);
  transition: transform 0.2s ease;
}

body.dark-theme .theme-toggle-button {
  background: var(--accent-soft);
  border-color: var(--accent);
}

body.dark-theme .theme-toggle-thumb {
  transform: translateX(20px);
}