:root {
  --bg-main: #000;
  --text-main: #f1f1f1;
  --header-bg: #111;
  --header-text: #fff;
  --hero-bg: #222;
  --skill-bg: #333;
  --skill-text: #f1f1f1;
  --footer-bg: #111;
  --footer-text: #fff;
}

body.dark-mode {
  --bg-main: #f8f9fa;
  --text-main: #333;
  --header-bg: #ffcc00;
  --header-text: #fff;
  --hero-bg: #cce6ff;
  --skill-bg: #ffcc00;
  --skill-text: white;
  --footer-bg: #ffcc00;
  --footer-text: white;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  background-color: var(--bg-main);
  color: var(--text-main);
  padding: 20px;
}

/* Header */
header {
  background-color: var(--header-bg);
  color: var(--header-text);
  padding: 20px 0;
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}
nav a {
  color: white;
  text-decoration: none;
}
nav a:hover {
  text-decoration: underline;
}

/* Hero section with photo left and intro right */
.hero {
  background-color: var(--hero-bg);
  padding: 40px;
  border-radius: 10px;
}
.hero-content {
  display: flex;
  align-items: center;
  gap: 30px;
}
.profile-pic {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 3px solid white;
  object-fit: cover;
}
.hero-text {
  max-width: 1000px;
}
.hero-text h2 {
  font-size: 2.2em;
  margin-bottom: 10px;
}

.hero-text .objective {
  margin: 15px;
  font-style: italic;
}

/* Highlight line */
.highlight {  
  font-size: 1.5em;               
  margin: 20px 0;              
}

/*Skills*/
.skills-slider {
  display: flex;
  overflow-x: auto;               /* horizontal scroll */
  scroll-snap-type: x mandatory;  /* snap to each slide */
  gap: 40px;                      /* space between slides */
  scroll-behavior: smooth;
  padding: 10px 0;
}

.skills-slide {
  flex: 0 0 100%;                  /* each slide takes 80% width */
  scroll-snap-align: start;
  padding: 10px;
  color: var(--skill-text);
}

.skills-slide h3 {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #ffcc00;                 /* highlight category titles */
}

.soft-skills {
  font-style: italic;
  font-size: 1.1em;
  background: none;               /* no box background */
  padding: 0;
  margin-top: 10px;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
}

.skill {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100px;
  text-align: center;
}

.skill img {
  width: 70px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 8px;
  filter: brightness(1.2);
}

.skill span {
  font-weight: bold;
}

.education-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  color: var(--text-main);
}

.education-table th,
.education-table td {
  border: 1px solid rgba(255,255,255,0.2);
  padding: 12px 15px;
  text-align: left;
}

.education-table th {
  font-weight: bold;
}

.education-table tr:nth-child(even) {
  background-color: rgba(255,255,255,0.05); /* subtle striping */
}

.education-table tr:hover {
  background-color: rgba(255,255,255,0.1);  /* hover effect */
}

/* Tables */
.pub-table, .patent-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  color: var(--text-main);
}
.pub-table th, .patent-table th,
.pub-table td, .patent-table td {
  border: 1px solid rgba(255,255,255,0.2);
  padding: 12px 15px;
  text-align: left;
}
.pub-table th, .patent-table th {
  background-color: #ffcc00;
  color: #000;
}
.pub-table tr:nth-child(even), .patent-table tr:nth-child(even) {
  background-color: rgba(255,255,255,0.05);
}

/* Cards */
.card {
  background: rgba(255,255,255,0.05);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
}
.card h3 {
  color: #b29323f7;
  margin-bottom: 8px;
}

.card {
  background: rgba(255,255,255,0.05);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
}
.card h3 {
  color: #ffcc00;
  margin-bottom: 8px;
}

.projects-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 30px;
  scroll-behavior: smooth;
  padding: 10px 0;
}

.project-card {
  flex: 0 0 100%;
  scroll-snap-align: start;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  position: relative;
  color: #fff;
}

.project-card .overlay {
  background: rgba(0,0,0,0.6); /* dark overlay for readability */
  padding: 40px;
  border-radius: 10px;
}

.project-card h3 {
  color: #ffcc00;
  margin-bottom: 10px;
}

.project-buttons {
  margin-top: 15px;
  display: flex;
  gap: 15px;
}

.btn {
  background: #ffcc00;
  color: #000;
  padding: 8px 15px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.btn:hover {
  background: #ffaa00;
}

