@import url('variables.css');

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

body {
  font-family: var(--font-body);
  background: var(--bg-color);
  background: var(--bg-gradient);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

h1,
h2,
h3,
a {
  font-family: var(--font-heading);
  color: var(--text-primary);
  text-decoration: none;
}

ul {
  list-style: none;
}

/* --- Utilities --- */
.text-gradient {
  background: linear-gradient(to right, #60a5fa, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: var(--transition-fast);
}

.btn-primary {
  background: var(--accent-primary);
  color: white;
  box-shadow: 0 0 15px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px var(--accent-glow);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

/* --- Layout --- */
.container,
.wrap {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 5rem 2rem;
  max-width: var(--container-width);
  margin: 0 auto;
}

.section-header {
  margin-bottom: 3rem;
  text-align: center;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-secondary);
}

/* --- Header --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
}

.nav-content {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
}

.navbar nav a {
  margin-left: 2rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.navbar nav a:hover {
  color: white;
}

.navbar nav .btn-primary {
  margin-left: 2rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* --- Hero --- */
.hero-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 5rem;
  position: relative;
}

.hero-content {
  max-width: 600px;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.badge {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-primary);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

/* Glow Effect */
.glow-orb {
  position: absolute;
  right: -100px;
  top: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-secondary) 0%, rgba(0, 0, 0, 0) 70%);
  opacity: 0.4;
  filter: blur(80px);
  z-index: 1;
  pointer-events: none;
}

/* --- Projects --- */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition-smooth);
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.project-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.project-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.project-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-card .tag {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  color: var(--text-secondary);
}

/* --- Experience & Education --- */
.timeline-container {
  max-width: 800px;
  margin: 0 auto;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  padding-left: 2rem;
}

.experience-card,
.education-card {
  margin-bottom: 3rem;
  position: relative;
}

.experience-card::before,
.education-card::before {
  content: '';
  position: absolute;
  left: -2.6rem;
  top: 0.5rem;
  width: 1rem;
  height: 1rem;
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-primary);
}

.experience-card h3,
.education-card h3 {
  font-size: 1.2rem;
}

.experience-card .role,
.education-card .degree {
  color: var(--accent-primary);
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
}

.date {
  font-size: 0.85rem;
  color: var(--text-secondary);
  opacity: 0.8;
}

/* --- Skills --- */
.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.skill-tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 1rem;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.skill-tag:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-primary);
  color: white;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

/* --- Contact & Footer --- */
.centered {
  text-align: center;
  padding: 3rem;
  border-radius: var(--radius-lg);
  margin-bottom: 4rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.contact-item {
  font-size: 1.1rem;
  color: var(--text-primary);
}

footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-top: 1px solid var(--glass-border);
}

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

  .hero-actions {
    justify-content: center;
  }

  .glow-orb {
    top: 10%;
    width: 300px;
    height: 300px;
  }

  .navbar nav {
    display: none;
    /* Mobile menu logic would go here ideally */
  }
}