/* Global Resets & Variables */
:root {
  --bg-color: #0d1117;
  --card-bg: #161b22;
  --primary-text: #e6edf3;
  --secondary-text: #8b949e;
  --accent-color: #58a6ff;
  --button-bg: #21262d;
  --button-hover: #30363d;
  --border-color: #30363d;
  --skill-chip-bg: #238636;
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --max-width: 1200px;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--primary-text);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

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

ul {
  list-style: none;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}



.header-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 20px;
}

h1.name {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

p.role {
  color: var(--accent-color);
  font-size: 0.95rem;
}

.role span {
  display: inline-block;
}

.role span:not(:last-child)::after {
  content: "|";
  margin: 0 8px;
  color: #30363d;
}


/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 0;
  gap: 20px;
  border-bottom: 1px solid var(--border-color);
}

.hero-text {
  flex: 1;
}

.hero-text h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-text p {
  color: var(--secondary-text);
  font-size: 1.3rem;
  margin-bottom: 30px;
}

.cta-group {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background-color: var(--button-bg);
  color: var(--primary-text);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn:hover {
  background-color: var(--button-hover);
  border-color: var(--secondary-text);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--button-bg);
  border: 1px solid var(--border-color);
  color: var(--secondary-text);
}

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

.hero-image {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
}

.hero-image img {
  width: 100%;
  max-width: 200px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* About & Skills Grid */
.about-skills {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--primary-text);
}

.about-text p,
.about-text li {
  color: var(--secondary-text);
  margin-bottom: 15px;
  line-height: 1.7;
}

.skills-list p {
  margin-bottom: 8px;
  color: var(--secondary-text);
  font-size: 0.95rem;
}

.skills-list strong {
  color: var(--primary-text);
}

/* Projects Section */
.projects {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.project-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-content {
  padding: 25px;
}

.project-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.project-content p {
  color: var(--secondary-text);
  font-size: 0.95rem;
  margin-bottom: 20px;
  min-height: 3rem;
}

.card-footer {
  margin-top: auto;
}

/* Community & Speaking Section */
.speaking {
  padding: 60px 0;
}

.speaking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.event-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.event-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.event-icon {
  width: 40px;
  height: 40px;
  background-color: var(--button-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--secondary-text);
}

.event-details h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.event-meta {
  font-size: 0.85rem;
  color: var(--secondary-text);
  margin-bottom: 8px;
}

.event-desc {
  font-size: 0.9rem;
  color: var(--secondary-text);
  line-height: 1.5;
}

.event-links {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  color: var(--accent-color);
  text-decoration: none;
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(88, 166, 255, 0.1);
  transition: background 0.2s;
}

.link-btn:hover {
  background: rgba(88, 166, 255, 0.2);
}

/* Footer */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-color);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-text,
  .hero-text p {
    margin: 0 auto 20px;
  }

  .cta-group {
    justify-content: center;
  }

  .about-skills {
    grid-template-columns: 1fr;
  }

  .speaking-grid {
    grid-template-columns: 1fr;
  }

  .hero-image {
    width: 100%;
    justify-content: center;
  }
}