/* Global Variables & Reset */
:root {
  /* Light Theme Colors - Less White */
  --bg-color: #eaeff2;
  --bg-secondary: #f1f5f9;
  --text-primary: #1f2937;
  --text-secondary: #475569;
  --card-bg: #ffffff;
  --card-border: #cbd5e1;

  --primary-color: #4f46e5;
  /* A slightly darker indigo for contrast on white */
  --primary-glow: rgba(79, 70, 229, 0.2);
  --accent-color: #7c3aed;

  --font-main: 'Inter', sans-serif;
  --transition-speed: 0.3s;
  --nav-height: 70px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-speed) ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Section Header & Icons */
.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.section-icon {
  color: var(--primary-color);
  width: 2.5rem;
  height: 2.5rem;
}

h2 {
  margin-bottom: 0 !important;
  /* Override default margin since we use flex gap */
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  background: linear-gradient(to right, #111827, #4f46e5);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
}

span.highlight {
  color: var(--primary-color);
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--primary-color);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 4px 15px var(--primary-glow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--primary-color);
  color: #ffffff;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

nav ul {
  display: flex;
  gap: 2rem;
}

nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

nav a:hover,
nav a.active {
  color: var(--text-primary);
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Sections */
section {
  padding: 5rem 0;
}

/* Hero Section */
#hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 40%;
  height: 40%;
  background: var(--primary-color);
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.2;
  z-index: -1;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 40%;
  height: 40%;
  background: var(--accent-color);
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.2;
  z-index: -1;
}

.hero-subtitle {
  color: var(--primary-color);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.hero-text {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 1.5rem auto 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* About Section */
#about {
  background: var(--bg-secondary);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-img {
  position: relative;
}

.about-img img {
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Skills/Stats would go here */

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
}

.project-img {
  height: 200px;
  background: #e5e7eb;
  /* Placeholder for image */
  position: relative;
}

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.project-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tag {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.project-link {
  color: var(--text-primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Skills Section */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.skill-item {
  background: var(--card-bg);
  padding: 1rem 2rem;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Contact Section */
#contact {
  text-align: center;
  background: var(--bg-secondary);
}

.contact-card {
  background: var(--card-bg);
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid var(--card-border);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

input,
textarea {
  background: #f9fafb;
  border: 1px solid #d1d5db;
  padding: 1rem;
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Footer */
footer {
  padding: 2rem 0;
  text-align: center;
  color: var(--text-secondary);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .mobile-toggle {
    display: block;
  }

  nav ul {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
  }

  nav ul.show {
    transform: translateY(0);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .about-img {
    order: -1;

  }
}