/* style.css */

/* 1. Variables */
:root {
  --bg-color: #1e1e1e;
  --text-color: #d4d4d4;
  --accent-color: #569cd6;
  --link-color: #9cdcfe;
  --link-hover-color: #d7ba7d;
  --btn-bg: #0078D4;
  --btn-hover-bg: #005A9E;
  --container-max: 1100px;
  --font-mono: 'Fira Code', monospace;
  --vscode-tab-bar-bg: #252526;
  --vscode-tab-inactive: #2d2d2d;
  --vscode-tab-active: #1e1e1e;
  --vscode-border: #3c3c3c;
  --vscode-text-inactive: #c5c5c5;
  --vscode-text-active: #e8e8e8;
  --vscode-hover: #313131;
}

/* 2. Base & Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-mono);
  font-size: 1rem;
}

/* 3. Containers */
.container {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 2rem 0;
}

/* 4. Header & Footer */
header,
footer {
  background-color: var(--vscode-tab-bar-bg);
  text-align: center;
  padding: 2rem 0;
}

header {
  border-bottom: 1px solid var(--vscode-border);
}

header h1 {
  color: var(--accent-color);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

header p {
  color: var(--link-color);
  margin-bottom: 1rem;
}

footer {
  color: #858585;
  font-size: 0.8rem;
  margin-top: 2rem;
}

/* 5. Typography */
h2 {
  color: #c586c0;
  font-size: 2rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--vscode-border);
  padding-bottom: 0.5rem;
}

h3 {
  color: #4ec9b0;
  font-size: 1.5rem;
}

p,
li {
  line-height: 1.6;
}

/* 6. Lists */
ul {
  list-style-type: square;
  padding-left: 1.5rem;
}

ul.projects {
  list-style: none;
  padding-left: 0;
}

ul.projects li {
  margin-bottom: 1.5rem;
}

/* 7. Links & Buttons */
a {
  color: var(--link-color);
  text-decoration: none;
}

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

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

.btn-resume {
  display: inline-block;
  margin: 1rem 0 0 1rem;
  padding: 0.5rem 1rem;
  background-color: var(--btn-bg);
  color: #fff;
  border-radius: 4px;
  font-family: var(--font-mono);
}

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

/* 8. Syntax Coloring */
pre.func code {
  color: #dcdcaa;
  font-family: var(--font-mono);
}

pre.comment code {
  color: #6a9955;
  font-family: var(--font-mono);
  white-space: pre-wrap;
  margin: 0.5rem 0;
  padding-left: 1.5rem;      /* adds indent for all lines */
  text-indent: -1.5rem;      /* pulls first line back to align with "triple quote" */
  display: block;
}
pre.func {
  color: #dcdcaa;
  font-family: var(--font-mono);
  margin: 0.5rem 0;
  white-space: pre-wrap;
}

.keyword {
  color: #c586c0; /* Purple: typical for keywords like 'def', 'return', etc. */
}

.function-name {
  color: #dcdcaa; /* Yellowish: matches your function name style */
  font-family: var(--font-mono);
}

.syntax-def {
  color: #569cd6; /* blue */
}

.syntax-func {
  color: #dcdcaa; /* light yellow */
  font-weight: bold;
}

.syntax-parens {
  color: #d7ba7d; /* darker yellow */
}

.syntax-params {
  color: #dcdcaa;
  font-style: italic;
}

.syntax-colon {
  color: #d7ba7d; /* darker yellow */
}

pre.comment {
  color: #6a9955;
  font-family: var(--font-mono);
  margin: 0.5rem 0;
  white-space: pre-wrap;
  padding-left: 2rem; /* <-- This adds indentation */
}

.syntax-var    { color: #9cdcfe; }
.syntax-string { color: #ce9178; }
.keyword       { color: #c586c0; }
.module        { color: #9cdcfe; }
.alias         { color: #ce9178; }
.punctuation   { color: #d4d4d4; }
.highlight     { background-color: rgba(86, 156, 214, 0.2); padding: 0.2rem 0.4rem; border-radius: 4px; }

/* 9. About Section */
.about-content p.comment {
  color: #6a9955;
  font-family: var(--font-mono);
  white-space: pre-wrap;
  margin: 0.2rem 0;
}
.about-content .comment {
  color: #6a9955;
  font-family: var(--font-mono);
  white-space: pre-wrap;
  margin: 0.2rem 0;
}
.about-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  text-align: center;
}

.cert-item {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1.5rem;
}

.cert-icon {
  width: 120px; /* same width for both */
  height: 120px; /* fixed height to match visually */
  object-fit: contain;
  border: 1px solid var(--vscode-border);
  border-radius: 4px;
}

.cert-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--text-color);
  font-family: var(--font-mono);
  line-height: 1.4;
}

.profile-pic,
.about-content img {
  max-width: 250px;
  border-radius: 4px;
  border: 2px solid var(--vscode-border);
  object-fit: cover;
}

@media (min-width: 768px) {
  .about-content {
    flex-direction: row;
    text-align: left;
  }

  .about-content p {
    margin-left: 2rem;
  }
}

/* 10. Skills */
.skills-icons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem; 
}

.skills-icons i {
  font-size: 48px;
  color: var(--link-color);
}

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

/* 11. VSCode-style Tabs */
.tabs {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw; 
  z-index: 1000;
  display: flex;
  gap: 2px;
  background: var(--vscode-tab-bar-bg);
  border-bottom: 1px solid var(--vscode-border);
  padding: 4px 1rem;
  overflow-x: auto;
  overflow-y: hidden;
}

.tabs .tab {
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  font-size: 13px;
  line-height: 24px;
  color: var(--vscode-text-inactive);
  background: var(--vscode-tab-inactive);
  border: 1px solid transparent;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  border-bottom: 1px solid var(--vscode-tab-inactive);
  text-decoration: none;
}

.tabs .tab:hover {
  background: var(--vscode-hover);
  color: var(--vscode-text-active);
}

.tabs .tab.active {
  background: var(--vscode-tab-active);
  color: var(--vscode-text-active);
  border-color: var(--vscode-border);
  border-bottom-color: transparent;
}

.tabs .tab::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}

.tabs .tab.active::before {
  opacity: 1;
}

.esports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.esports-grid img.rank-icon {
  width: 28px !important;
  height: 28px !important;
  border: none !important;
  display: block;
  margin: 0.2rem auto 0;
}

.esport-card {
  text-align: center;
}

.esport-card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--vscode-border);
}

.esport-card p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-color);
}

.esport-card strong {
  color: var(--accent-color);
}

.esport-card em {
  color: #6a9955;
  font-style: italic;
}

.esport-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0.3rem;
}

.rank-icon {
  width: 28px;
  height: 28px;
  margin-top: 0.3rem;
  border: none;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.car-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.car-card {
  text-align: center;
}

.car-card img {
  width: 100%;
  height: auto;
  max-height: 150px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid var(--vscode-border);
}

.car-card p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-color);
  line-height: 1.3;
}

.education-entry {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.university-logo {
  width: 100px;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid var(--vscode-border);
}

.education-details h3,
.education-details p {
  margin: 0.2rem 0;
}

