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

:root {
  --primary-blue: #2563EB;
  --hover-blue: #60A5FA;
  --gold-accent: #FBBF24;
  --dark-base: #0F172A;
  --dark-slate: #1E293B;
  --primary-text: #1E293B;
  --secondary-text: #475569;
  --muted-text: #64748B;
  --borders: #E2E8F0;
  --light-bg: #F8FAFC;
  --white: #FFFFFF;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Helvetica, Arial, sans-serif;
  background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
  color: var(--primary-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(251, 191, 36, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--borders);
  z-index: 1000;
  padding: 16px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark-base);
  text-decoration: none;
  background: linear-gradient(90deg, var(--primary-blue) 0%, var(--gold-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-link {
  color: var(--secondary-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-blue);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-blue);
}

.nav-link.nav-cta {
  background: var(--primary-blue);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-link.nav-cta:hover {
  background: var(--hover-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.nav-cta::after {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--dark-base);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 80px;
  position: relative;
  z-index: 1;
}

.hero-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-greeting {
  display: block;
  font-size: 24px;
  color: var(--secondary-text);
  font-weight: 400;
  margin-bottom: 12px;
}

.hero-name {
  display: block;
  font-size: 64px;
  font-weight: 700;
  color: var(--dark-base);
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--dark-base) 0%, var(--primary-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 32px;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 24px;
  min-height: 48px;
}

.hero-description {
  font-size: 20px;
  color: var(--secondary-text);
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(90deg, var(--primary-blue) 0%, var(--hover-blue) 100%);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

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

.btn-large {
  padding: 16px 40px;
  font-size: 18px;
}

.hero-links {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.hero-link {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--primary-blue);
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-size: 20px;
}

.hero-link:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

/* Section Styles */
section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

/* Remove section padding on resume page */
body.resume-page section {
  padding: 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-size: 42px;
  font-weight: 700;
  color: var(--dark-base);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 20px;
  color: var(--secondary-text);
}

/* Services Section */
.services-section {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

.service-card {
  padding: 40px;
  background: linear-gradient(135deg, #F8FAFC 0%, #FFFFFF 100%);
  border-radius: 16px;
  border: 1px solid var(--borders);
  transition: all 0.3s ease;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-blue);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(251, 191, 36, 0.1));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--primary-blue);
}

.service-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--dark-base);
  margin-bottom: 16px;
}

.service-description {
  font-size: 16px;
  color: var(--secondary-text);
  line-height: 1.7;
}

.services-cta {
  text-align: center;
}

/* Projects Section */
.projects-section {
  background: var(--light-bg);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

.project-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--borders);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.project-image {
  width: 100%;
  height: 240px;
  background: linear-gradient(135deg, var(--primary-blue), var(--hover-blue));
  position: relative;
  overflow: hidden;
}

.project-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  color: var(--white);
  opacity: 0.8;
}

.project-content {
  padding: 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--dark-base);
  margin-bottom: 12px;
}

.project-description {
  font-size: 16px;
  color: var(--secondary-text);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}

.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  padding: 6px 12px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-blue);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}

.projects-cta {
  text-align: center;
}

/* Testimonials Section */
.testimonials-section {
  background: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 32px;
}

.testimonial-card {
  padding: 40px;
  background: linear-gradient(135deg, #F8FAFC 0%, #FFFFFF 100%);
  border-radius: 16px;
  border: 1px solid var(--borders);
  border-left: 4px solid var(--primary-blue);
}

.testimonial-text {
  font-size: 18px;
  color: var(--primary-text);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-blue), var(--hover-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 24px;
}

.testimonial-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark-base);
  margin-bottom: 4px;
}

.testimonial-role {
  font-size: 14px;
  color: var(--secondary-text);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--dark-slate) 0%, var(--dark-base) 100%);
  color: var(--white);
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
}

.cta-description {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-section .btn-primary {
  background: linear-gradient(90deg, var(--primary-blue) 0%, var(--hover-blue) 100%);
}

.cta-section .btn-outline {
  border-color: var(--white);
  color: var(--white);
}

.cta-section .btn-outline:hover {
  background: var(--white);
  color: var(--dark-base);
}

/* Footer */
.footer {
  background: var(--dark-base);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 48px;
  margin-bottom: 40px;
}

.footer-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(90deg, var(--primary-blue) 0%, var(--gold-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
}

.footer-heading {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--white);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 15px;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-links .admin-link {
  opacity: 0.5;
  font-size: 0.9em;
  display: flex;
  align-items: center;
  gap: 5px;
}

.footer-links .admin-link:hover {
  opacity: 1;
  color: var(--primary-blue);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: var(--white);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 40px 0;
    gap: 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    width: 100%;
    padding: 16px 0;
  }

  .nav-link.active::after {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .hero-name {
    font-size: 42px;
  }

  .hero-subtitle {
    font-size: 24px;
  }

  .hero-description {
    font-size: 18px;
  }

  .section-title {
    font-size: 32px;
  }

  .section-subtitle {
    font-size: 18px;
  }

  .services-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

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

  .cta-title {
    font-size: 32px;
  }

  section {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: 36px;
  }

  .hero-buttons,
  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .service-card,
  .project-card {
    padding: 24px;
  }
}

