/* ========================================
   SQUARESPACE-INSPIRED CSS DESIGN
   ======================================== */

:root {
  /* Typography */
  --font-family: 'Roboto', system-ui, -apple-system, sans-serif;
  --heading-font-weight: 700;
  --heading-letter-spacing: -0.02em;
  --heading-line-height: 1.1;
  --body-font-weight: 400;
  --body-letter-spacing: -0.02em;
  --body-line-height: 1.3;
  
  /* Colors */
  --black: #000000;
  --white: #ffffff;
  --accent-orange: hsl(17.82, 100%, 55.1%);
  --light-bg: #f9fafb;
  --dark-bg: #1a1a1a;
  --text-dark: #333333;
  --text-light: #666666;
  
  /* Spacing */
  --gutter-desktop: 4vw;
  --gutter-mobile: 6vw;
  --max-width: 2000px;
  --section-padding: 80px;
  
  /* Effects */
  --transition: all 0.3s cubic-bezier(0.445, 0.05, 0.55, 0.95);
}

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

html, body {
  font-size: 16px;
  height: 100%;
}

body {
  font-family: var(--font-family);
  font-weight: var(--body-font-weight);
  line-height: var(--body-line-height);
  letter-spacing: var(--body-letter-spacing);
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ======== HEADER ======== */
.header {
  position: relative;
  background: var(--white);
  border-bottom: 1px solid #eee;
  padding: 20px var(--gutter-desktop);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.header-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

.header-title a {
  color: var(--black);
  text-decoration: none;
  transition: var(--transition);
}

.header-title a:hover {
  color: var(--accent-orange);
}

.nav {
  display: flex;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-link {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-orange);
  border-bottom-color: var(--accent-orange);
}

/* ======== PAGE SECTIONS ======== */
.page-section {
  width: 100%;
  padding: var(--section-padding) var(--gutter-desktop);
  transition: var(--transition);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-section[data-section-theme="dark"] {
  background: var(--dark-bg);
  color: var(--white);
}

.page-section[data-section-theme="light"] {
  background: var(--light-bg);
  color: var(--text-dark);
}

.page-section[data-section-theme="white"] {
  background: var(--white);
  color: var(--text-dark);
  border-bottom: 1px solid #eee;
}

.section-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* ======== HERO SECTION ======== */
.hero-section {
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: var(--accent-orange);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--heading-font-weight);
  letter-spacing: var(--heading-letter-spacing);
  line-height: var(--heading-line-height);
  margin: 20px 0;
  color: var(--dark-bg);
}

.hero-section[data-section-theme="dark"] .hero-content h1 {
  color: var(--white);
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 30px;
}

.hero-section[data-section-theme="dark"] .subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* ======== BUTTONS ======== */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
}

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

.btn-primary:hover {
  background: transparent;
  color: var(--accent-orange);
  border-color: var(--accent-orange);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-orange);
  border-color: var(--accent-orange);
}

.btn-secondary:hover {
  background: var(--accent-orange);
  color: var(--white);
}

/* ======== GRID LAYOUTS ======== */
.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.section-grid.reverse {
  grid-template-columns: 1fr 1fr;
}

.section-grid.reverse > :first-child {
  order: 2;
}

.section-grid.reverse > :last-child {
  order: 1;
}

.section-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: var(--heading-font-weight);
  letter-spacing: var(--heading-letter-spacing);
  line-height: var(--heading-line-height);
  margin-bottom: 20px;
}

.section-content p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
  color: var(--text-light);
}

.section-image img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  color: var(--accent-orange);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  margin-top: 16px;
}

.link-arrow:hover {
  gap: 8px;
}

/* ======== FEATURES GRID ======== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.feature-card {
  padding: 40px;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid #eee;
}

.page-section[data-section-theme="light"] .feature-card {
  background: var(--white);
  border: 1px solid #ddd;
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: var(--heading-font-weight);
  margin-bottom: 16px;
  color: var(--text-dark);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ======== TIMELINE ======== */
.timeline {
  display: grid;
  gap: 40px;
}

.timeline-item {
  padding-left: 40px;
  border-left: 3px solid var(--accent-orange);
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -9px;
  top: 0;
  width: 15px;
  height: 15px;
  background: var(--accent-orange);
  border-radius: 50%;
}

.timeline-item h3 {
  font-size: 1.2rem;
  font-weight: var(--heading-font-weight);
  margin-bottom: 8px;
  color: var(--text-dark);
}

.timeline-item .meta {
  font-size: 0.85rem;
  color: var(--accent-orange);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.timeline-item p {
  color: var(--text-light);
  line-height: 1.6;
}

/* ======== SKILLS GRID ======== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.skill-category h3 {
  font-size: 1.1rem;
  font-weight: var(--heading-font-weight);
  margin-bottom: 16px;
  color: var(--text-dark);
}

.skill-category ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.skill-category li {
  color: var(--text-light);
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}

.skill-category li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-orange);
  font-weight: 600;
}

/* ======== CONTACT PAGE ======== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3,
.contact-form-box h3 {
  font-size: 1.3rem;
  font-weight: var(--heading-font-weight);
  margin-bottom: 20px;
}

.contact-info p {
  line-height: 1.8;
  margin-bottom: 12px;
  color: var(--text-light);
}

.contact-info a {
  color: var(--accent-orange);
  text-decoration: none;
  font-weight: 600;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* ======== FORM ======== */
.contact-form {
  display: grid;
  gap: 20px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(255, 117, 56, 0.1);
}

/* ======== STRENGTHS LIST ======== */
.strengths-list {
  list-style: none;
  display: grid;
  gap: 20px;
}

.strengths-list li {
  padding: 16px;
  background: var(--white);
  border-left: 4px solid var(--accent-orange);
  border-radius: 4px;
  line-height: 1.7;
  color: var(--text-light);
}

.strengths-list strong {
  color: var(--text-dark);
}

/* ======== FOOTER ======== */
.footer {
  background: var(--dark-bg);
  color: var(--white);
  text-align: center;
  padding: 40px var(--gutter-desktop);
  font-size: 0.9rem;
}

.footer p {
  margin: 0;
}

/* ======== RESPONSIVE ======== */
@media (max-width: 768px) {
  :root {
    --gutter-desktop: var(--gutter-mobile);
    --section-padding: 40px;
  }
  
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  .nav {
    gap: 20px;
    width: 100%;
  }
  
  .section-grid,
  .section-grid.reverse {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .section-grid.reverse > :first-child,
  .section-grid.reverse > :last-child {
    order: initial;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .skills-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
}

.nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero {
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero--center {
  flex-direction: column;
  text-align: center;
  justify-content: center;
}

.hero__content--center {
  max-width: 720px;
  width: 100%;
}

.hero__content h1 {
  font-size: clamp(2.2rem, 3vw, 3rem);
  margin: 12px 0 12px;
}

.subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.6;
}

.badge {
  display: inline-flex;
  background: rgba(14, 165, 233, 0.1);
  color: var(--accent-2);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.3px;
  font-size: 0.85rem;
}

.contact {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.contact .label,
.hero__meta .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.contact .value,
.hero__meta .value {
  font-weight: 600;
  font-size: 0.98rem;
}

.hero__card {
  background: linear-gradient(135deg, rgba(43, 108, 176, 0.08), rgba(14, 165, 233, 0.12));
  padding: 28px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero__card h2 {
  margin-top: 0;
}

.hero__meta {
  display: flex;
  gap: 24px;
  margin-top: 20px;
}

main {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

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

.card {
  background: var(--card);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.split {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.image-card {
  background: var(--card);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
}

.image-card img {
  width: 100%;
  border-radius: 16px;
  height: auto;
  object-fit: cover;
}

.caption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 16px;
}

.card h4 {
  margin: 0 0 6px;
}

.stack {
  display: grid;
  gap: 16px;
}

.skills {
  display: grid;
  gap: 20px;
}

.languages {
  display: grid;
  gap: 12px;
}

.languages div {
  display: grid;
  gap: 4px;
}

.language {
  font-weight: 600;
}

.level {
  color: var(--accent);
  font-weight: 600;
}

.note {
  color: var(--muted);
  font-size: 0.92rem;
}

.strengths {
  display: grid;
  gap: 12px;
  padding-left: 18px;
}

.strengths li {
  line-height: 1.5;
}

.muted {
  color: var(--muted);
  margin-top: 16px;
}

.small {
  font-size: 0.85rem;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.cta-row.center {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
}

.btn.primary:hover {
  filter: brightness(1.05);
}

.btn.ghost {
  background: rgba(43, 108, 176, 0.08);
  color: var(--accent);
  border-color: rgba(43, 108, 176, 0.2);
}

.btn.ghost:hover {
  background: rgba(43, 108, 176, 0.15);
}

.gallery {
  display: grid;
  gap: 16px;
}

.gallery__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.form {
  display: grid;
  gap: 12px;
}

.form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.form input,
.form textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.95rem;
}

.form input:focus,
.form textarea:focus {
  outline: 2px solid rgba(14, 165, 233, 0.3);
  border-color: rgba(14, 165, 233, 0.6);
}

footer {
  text-align: center;
  margin-top: 40px;
  color: var(--muted);
}

/* Section System - Full-width Squarespace-style sections */
.section {
  width: 100%;
  padding: 64px var(--gutter, 24px);
  background: var(--bg);
}

.section--hero {
  padding: 96px var(--gutter, 24px);
  background: linear-gradient(135deg, rgba(43, 108, 176, 0.05) 0%, rgba(14, 165, 233, 0.05) 100%);
}

.section--muted {
  background: #f9fafb;
}

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

.split {
  display: grid;
  gap: 48px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-row.center {
  justify-content: center;
}

@media (max-width: 720px) {
  .hero__meta {
    flex-direction: column;
    gap: 12px;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
