/* --- Global Theme & CSS Variables --- */
:root {
  --bg-primary: #0a0f1d;
  --bg-secondary: #111a2e;
  --bg-card: rgba(22, 33, 56, 0.7);
  --border-color: rgba(0, 242, 254, 0.15);
  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --text-main: #f0f4f8;
  --text-muted: #94a3b8;
  --font-main: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.65;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Top Navigation Bar --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 15, 29, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  text-decoration: none;
}
.logo-img {
  max-height: 45px; /* Adjust this number to make the logo larger or smaller */
  width: auto;
  display: block;
  
  /* This is the magic line that forces the black logo to become pure white */
  filter: invert(100%);
  
  transition: opacity 0.3s ease;
}

.logo-img:hover {
  opacity: 0.8; /* Gives a nice subtle fade when someone hovers their mouse over it */
}

.geo-bracket {
  color: var(--accent-cyan);
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 14px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-cyan);
}

.nav-btn {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #050b14;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.85rem;
  transition: opacity 0.3s;
}

.nav-btn:hover {
  opacity: 0.9;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  padding: 100px 0 80px;
  background: radial-gradient(circle at top right, rgba(0, 242, 254, 0.08), transparent 50%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-block;
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-cyan);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.hero-subtitle span {
  color: #fff;
  font-weight: 600;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 32px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.btn {
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #040914;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 242, 254, 0.25);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(22, 33, 56, 1);
  border-color: var(--accent-cyan);
}

.hero-image-wrapper {
  display: flex;
  justify-content: center;
}

.image-border-glow {
  padding: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), transparent);
}

.hero-img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 4px solid var(--bg-primary);
}

/* --- Section Layouts --- */
.section {
  padding: 90px 0;
}

.bg-alt {
  background-color: var(--bg-secondary);
}

.section-title {
  font-size: 2rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title i {
  color: var(--accent-cyan);
}

.section-intro {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 40px;
}

/* --- About & Skills --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.about-card, .skills-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 32px;
}

.about-card h3, .skills-card h3 {
  margin-bottom: 16px;
  color: var(--accent-cyan);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background: rgba(0, 242, 254, 0.06);
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--text-main);
}

/* --- Project Cards --- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-cyan);
}

.project-img-box img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.project-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-tag {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.project-body h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.project-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex-grow: 1;
  margin-bottom: 20px;
}

.link-btn {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
}

.link-btn:hover {
  text-decoration: underline;
}

/* --- Conferences & Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  padding: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-card);
  text-align: center;
}

/* --- Certificates Grid --- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.cert-card {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #000;
  transition: transform 0.2s ease;
}

.cert-card:hover {
  transform: scale(1.04);
  border-color: var(--accent-cyan);
}

.cert-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Contact & Footer --- */
.contact-box {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 60px 24px;
  border-radius: 16px;
}

.contact-box h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.contact-box p {
  color: var(--text-muted);
  margin-bottom: 30px;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer {
  border-top: 1px solid var(--border-color);
  padding: 30px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin-top: 6px;
  color: var(--accent-cyan);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
  .hero-grid, .about-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .hero-title {
    font-size: 2.4rem;
  }
}
