:root {
  --bg: #f9fafb;
  --text: #1e293b;
  --muted: #64748b;
  --card: #ffffff;
  --accent: #2563eb;
  --radius: 10px;
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
}

/* Dark mode variables */
.dark {
  --bg: #0f172a;
  --text: #f8fafc;
  --muted: #94a3b8;
  --card: #1e293b;
  --accent: #3b82f6;
}

/* Global Styles */
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s, color 0.3s;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 2rem 1rem;
}

/* Navbar */
.navbar {
  background: var(--card);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 10;
  transition: background 0.3s;
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--accent);
}
.logo span {
  color: var(--text);
}

nav a {
  text-decoration: none;
  margin-left: 1.2rem;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.3s;
}
nav a:hover {
  color: var(--accent);
}

#theme-toggle {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.3s;
}
#theme-toggle:hover {
  color: var(--text);
}

/* HERO SECTION */
.hero {
  margin-top: 2rem;
}
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}
.hero-text {
  flex: 1;
  min-width: 300px;
}
.hero-text h2 {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  margin-bottom: 0.5rem;
}
.hero-text span {
  color: var(--accent);
}
.hero-text p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.hero-image {
  flex: 0 0 240px;
  display: flex;
  justify-content: center;
}
.hero-image img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 4px solid var(--accent);
  object-fit: cover;
}

/* Responsive Hero Alignment */
@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column-reverse;
    text-align: center;
  }
  .hero-image {
    margin-bottom: 1.5rem;
  }
}

/* Buttons */
.btn {
  text-decoration: none;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 500;
  transition: 0.3s;
}
.primary {
  background: var(--accent);
  color: #fff;
}
.secondary {
  border: 2px solid var(--accent);
  color: var(--accent);
}
.primary:hover,
.secondary:hover {
  background: #1d4ed8;
  color: #fff;
}

/* Section Titles */
.section-title {
  font-family: var(--font-heading);
  color: var(--accent);
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.4rem;
}
.section-subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 2rem;
}

/* === Tech Stack Section === */
.tech-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tech-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.tech-icon {
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.tech-card h3 {
  font-family: var(--font-heading);
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.tech-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.tech-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tech-card li {
  color: var(--text);
  font-size: 0.95rem;
  margin: 0.3rem 0;
  padding-left: 1.2rem;
  position: relative;
}

.tech-card li::before {
  content: "•";
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Layout for Tech Stack */
.tech-card.full {
  margin-bottom: 2rem;
  width: 100%;
}

.tech-grid.four {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Responsive Tech Stack */
@media (max-width: 1024px) {
  .tech-grid.four {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .tech-grid.four {
    grid-template-columns: 1fr;
  }
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.project-card {
  background: var(--card);
  padding: 1.5rem;
  border-radius: var(--radius);
  transition: 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.project-card:hover {
  transform: translateY(-5px);
}
.project-card h3 {
  color: var(--accent);
}
.stack {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

/* Experience */
.timeline {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}
.timeline-item {
  margin-bottom: 1.5rem;
}
.timeline-item h3 {
  color: var(--accent);
}
.timeline-item span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

/* Contact */
.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.contact-links a {
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: 0.3s;
}
.contact-links a:hover {
  background: #1d4ed8;
}

/* Footer */
footer {
  text-align: center;
  color: var(--muted);
  padding: 2rem 1rem;
  font-size: 0.95rem;
  transition: color 0.3s;
}


/* Timeline Header Alignment */
.timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.timeline-header h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--accent);
}

.company-link {
  text-decoration: none;
  color: var(--accent);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.3s;
}

.company-link:hover {
  color: #1d4ed8;
}

/* Mobile Fix */
@media (max-width: 600px) {
  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }
}





/* About Section Styling */
.about-text {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 1rem;
  color: var(--text);
}

.about-text p {
  margin-bottom: 1rem;
}

.about-text strong {
  color: var(--accent);
  font-weight: 600;
}
