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

:root {
  --color-primary: #0891b2;
  --color-primary-dark: #0e7490;
  --color-accent: #fbbf24;
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-text: #1e293b;
  --color-text-light: #64748b;
  --color-border: #e2e8f0;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: all 0.3s ease;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --max-width: 1200px;
  --border-radius: 12px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 0.5rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
  text-align: center;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-primary-dark);
}

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

.container.narrow {
  max-width: 800px;
}

.section {
  padding: 5rem 0;
}

.section.alt {
  background-color: var(--color-bg-alt);
}

.grid {
  display: grid;
  gap: 2rem;
}

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

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

@media (min-width: 768px) {
  .grid.two {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid.three {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid.three {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== Header & Navigation ===== */
.site-header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition);
}

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

.brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.5px;
}

.brand:hover {
  color: var(--color-primary);
}

.nav-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-text);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 3px;
}

.nav-list {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  max-width: 300px;
  height: 100vh;
  background-color: var(--color-bg);
  list-style: none;
  padding: 5rem 2rem 2rem;
  box-shadow: var(--shadow-lg);
  transition: right 0.3s ease;
  overflow-y: auto;
}

.nav-list.active {
  right: 0;
}

.nav-list li {
  margin-bottom: 1.5rem;
}

.nav-list a {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-text);
  display: block;
  padding: 0.5rem 0;
}

.nav-list a:hover {
  color: var(--color-primary);
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-list {
    position: static;
    display: flex;
    flex-direction: row;
    width: auto;
    max-width: none;
    height: auto;
    background: none;
    padding: 0;
    box-shadow: none;
    gap: 2rem;
  }

  .nav-list li {
    margin-bottom: 0;
  }

  .nav-list a {
    font-size: 1rem;
    padding: 0;
  }
}

/* ===== Hero Section ===== */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
  padding: 4rem 0;
}

.hero h1 {
  animation: fadeInUp 0.8s ease-out;
}

.tagline {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-text-light);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  font-family: var(--font-heading);
  border-radius: var(--border-radius);
  border: 2px solid var(--color-primary);
  background-color: transparent;
  color: var(--color-primary);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn.primary {
  background-color: var(--color-primary);
  color: white;
}

.btn.primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: white;
}

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

.btn.secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn.small {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

/* ===== About Section ===== */
.intro {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-text-light);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.skills-card, .highlights-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.skills-card:hover, .highlights-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--color-bg-alt);
  color: var(--color-text);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.tag:hover {
  background-color: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.bullets {
  list-style: none;
  padding-left: 0;
}

.bullets li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-text-light);
}

.bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

/* ===== Experience Section ===== */
.timeline {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.experience-card .card-header {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--color-bg-alt);
}

.experience-card h3 {
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.meta {
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.duration {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.years {
  font-style: italic;
}

/* ===== Projects Section ===== */
.project-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.project-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

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

.project-desc {
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
  flex-grow: 1;
}

.project-platform {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== Services Section ===== */
.service-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.service-card h3 {
  margin-bottom: 1rem;
  color: var(--color-text);
}

.service-card p {
  color: var(--color-text-light);
  font-size: 0.9375rem;
}

/* ===== Contact Section ===== */
.contact-info {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--color-bg-alt);
  border-radius: var(--border-radius);
}

.contact-info p {
  margin-bottom: 0.5rem;
}

.contact-info a {
  font-size: 1.125rem;
  font-weight: 500;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto 3rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--border-radius);
  transition: var(--transition);
  background-color: var(--color-bg);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  width: 100%;
}

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

.social-links a {
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--color-bg-alt);
}

/* ===== Footer ===== */
.site-footer {
  background-color: var(--color-text);
  color: white;
  padding: 2rem 0;
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

/* ===== Responsive Utilities ===== */
@media (max-width: 767px) {
  .section {
    padding: 3rem 0;
  }

  .container {
    padding: 0 1.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero {
    min-height: 80vh;
  }
}

/* ===== Accessibility ===== */
.btn:focus,
.nav-list a:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* ===== Print Styles ===== */
@media print {
  .site-header,
  .cta-row,
  .contact-form,
  .social-links,
  .site-footer {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .section {
    page-break-inside: avoid;
  }
}

