/* ============================================================
   PAVITHRA KALAIARASAN — PORTFOLIO STYLESHEET
   Premium Light Theme · Blue Accent · Inter Font
   ============================================================ */

/* ── CSS Custom Properties ── */
:root {
  /* Colors */
  --color-bg:         rgba(10, 10, 10, 0.3);
  --color-bg-alt:     rgba(18, 18, 18, 0.4);
  --color-bg-card:    rgba(24, 24, 27, 0.85);
  --color-text:       #f8fafc;
  --color-text-muted: #a1a1aa;
  --color-text-light: #71717a;
  --color-border:     #27272a;
  --color-border-light: #1f2937;

  /* Blue accent palette */
  --color-accent:       #3b82f6;
  --color-accent-hover: #60a5fa;
  --color-accent-light: #1d4ed8;
  --color-accent-subtle: rgba(59, 130, 246, 0.15);
  --color-accent-glow:  rgba(59, 130, 246, 0.25);

  /* Shadows */
  --shadow-xs:  0 1px 2px rgba(0,0,0,0.3);
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md:  0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px -2px rgba(0,0,0,0.2);
  --shadow-lg:  0 10px 15px -3px rgba(0,0,0,0.5), 0 4px 6px -4px rgba(0,0,0,0.3);
  --shadow-xl:  0 20px 25px -5px rgba(0,0,0,0.6), 0 8px 10px -6px rgba(0,0,0,0.4);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.3), 0 4px 12px rgba(0,0,0,0.2);
  --shadow-card-hover: 0 8px 30px rgba(59, 130, 246, 0.15);

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;

  /* Spacing */
  --section-padding: 100px 0;
  --container-max: 1100px;
  --container-padding: 0 24px;

  /* Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Header */
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: #0a0a0a;
  overflow-x: hidden;
}

#canvas-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection {
  background: var(--color-accent);
  color: #fff;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* ── Section Headers ── */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  background: var(--color-accent-subtle);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.section-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.section-line {
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
  margin: 16px auto 0;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn svg {
  flex-shrink: 0;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--color-bg);
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}
.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-subtle);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border: 1.5px solid transparent;
}
.btn-ghost:hover {
  color: var(--color-accent);
  background: var(--color-accent-subtle);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

#site-header.scrolled {
  border-bottom-color: var(--color-border-light);
  box-shadow: var(--shadow-xs);
}

#main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
}

.nav-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -1px;
  transition: color var(--transition-fast);
}

.logo-bracket {
  color: var(--color-accent);
  font-weight: 700;
}

.nav-logo:hover {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
  transform: translateX(-50%);
  transition: width var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-accent);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 20px;
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.nav-toggle:hover {
  background: var(--color-bg-alt);
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: all var(--transition-base);
  transform-origin: center;
}

.nav-toggle.open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open .hamburger-line:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  background: var(--color-bg);
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
}

/* Split layout: text left, image right */
.hero-split {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 80px 24px;
}

.hero-content {
  text-align: left;
}

.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fadeInRight 0.8s ease forwards 0.5s;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  filter: drop-shadow(0 20px 40px rgba(37, 99, 235, 0.12));
  transition: transform var(--transition-slow);
}

.hero-image img:hover {
  transform: scale(1.02);
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-accent);
  background: var(--color-accent-subtle);
  border: 1px solid var(--color-accent-light);
  border-radius: var(--radius-full);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeInUp 0.7s ease forwards 0.1s;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-name {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--color-text);
  margin-bottom: 12px;
  opacity: 0;
  animation: fadeInUp 0.7s ease forwards 0.25s;
}

.accent-text {
  background: linear-gradient(135deg, var(--color-accent), #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeInUp 0.7s ease forwards 0.4s;
}

.hero-description {
  max-width: 520px;
  margin: 0 0 36px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text-muted);
  opacity: 0;
  animation: fadeInUp 0.7s ease forwards 0.55s;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  opacity: 0;
  animation: fadeInUp 0.7s ease forwards 0.7s;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeInUp 0.7s ease forwards 1s;
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

.hero-scroll-indicator span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-light);
}

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

/* ============================================================
   ABOUT SECTION
   ============================================================ */
#about {
  padding: var(--section-padding);
  background: var(--color-bg-alt);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text p {
  margin-bottom: 18px;
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1.8;
}

.about-lead {
  font-size: 18px !important;
  color: var(--color-text) !important;
  line-height: 1.7 !important;
}

.about-lead strong {
  color: var(--color-accent);
  font-weight: 600;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.highlight-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
}

.highlight-card:hover {
  border-color: var(--color-accent-light);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.highlight-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--color-accent-subtle);
  border-radius: var(--radius-sm);
  color: var(--color-accent);
}

.highlight-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.highlight-card p {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================================
   SKILLS SECTION
   ============================================================ */
#skills {
  padding: var(--section-padding);
  background: var(--color-bg);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.skill-category-card {
  padding: 28px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
}

.skill-category-card:hover {
  border-color: var(--color-accent-light);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.skill-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.skill-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-accent-subtle);
  border-radius: var(--radius-md);
  color: var(--color-accent);
}

.skill-card-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text);
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skill-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.skill-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
}

.skill-level {
  flex: 1;
  max-width: 120px;
  height: 5px;
  background: var(--color-bg-alt);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.skill-level::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--color-accent), #7c3aed);
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-level.animate::after {
  transform: scaleX(var(--level));
}

/* Tags style for tools */
.skill-list-tags {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  display: inline-block;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-accent);
  background: var(--color-accent-subtle);
  border: 1px solid var(--color-accent-light);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.skill-tag:hover {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

/* ============================================================
   PROJECTS SECTION
   ============================================================ */
#projects {
  padding: var(--section-padding);
  background: var(--color-bg-alt);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  padding: 28px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--color-accent-light);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.project-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.project-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--color-accent-subtle);
  border-radius: var(--radius-md);
  color: var(--color-accent);
}

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

.project-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.project-link-icon:hover {
  color: var(--color-accent);
  background: var(--color-accent-subtle);
}

.project-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
  line-height: 1.3;
}

.project-desc {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.project-tech span {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-accent);
  background: var(--color-accent-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* ============================================================
   LEARNING JOURNEY TIMELINE
   ============================================================ */
#learning {
  padding: var(--section-padding);
  background: var(--color-bg);
}

.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 48px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-accent-light), var(--color-border-light));
  border-radius: 1px;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -48px;
  top: 4px;
  width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  background: var(--color-bg);
  border: 2.5px solid var(--color-accent);
  border-radius: 50%;
  transition: all var(--transition-base);
  position: relative;
  z-index: 1;
}

.timeline-item:hover .timeline-dot {
  background: var(--color-accent);
  box-shadow: 0 0 0 6px var(--color-accent-glow);
}

.timeline-dot.pulse {
  background: var(--color-accent);
  box-shadow: 0 0 0 6px var(--color-accent-glow);
  animation: timeline-pulse 2s ease-in-out infinite;
}

@keyframes timeline-pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--color-accent-glow); }
  50% { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0.06); }
}

.timeline-content {
  padding: 24px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
}

.timeline-item:hover .timeline-content {
  border-color: var(--color-accent-light);
  box-shadow: var(--shadow-card-hover);
}

.timeline-year {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent);
  background: var(--color-accent-subtle);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.timeline-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 6px;
}

.timeline-content p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
#contact {
  padding: var(--section-padding);
  background: var(--color-bg-alt);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-lead {
  font-size: 18px;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-channel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.contact-channel:hover {
  border-color: var(--color-accent-light);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.channel-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--color-accent-subtle);
  border-radius: var(--radius-sm);
  color: var(--color-accent);
}

.channel-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.channel-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
}

/* Contact Form */
.contact-form-wrap {
  padding: 32px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--color-text);
  background: var(--color-bg-alt);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: all var(--transition-fast);
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-light);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  background: var(--color-bg);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.form-status {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  min-height: 20px;
}

.form-status.success {
  color: #059669;
}

.form-status.error {
  color: #dc2626;
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  padding: 40px 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border-light);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -1px;
}

.footer-left p {
  font-size: 13px;
  color: var(--color-text-muted);
}

.footer-center {
  text-align: center;
}

.footer-center p {
  font-size: 13px;
  color: var(--color-text-muted);
}

.footer-built {
  font-size: 12px !important;
  color: var(--color-text-light) !important;
  margin-top: 2px;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-right a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.footer-right a:hover {
  color: var(--color-accent);
  background: var(--color-accent-subtle);
}

/* ============================================================
   SCROLL REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

/* Tablet */
@media (max-width: 900px) {
  :root {
    --section-padding: 80px 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-split {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    text-align: center;
    order: 1;
  }

  .hero-image {
    order: 2;
    max-width: 400px;
    margin: 0 auto;
  }

  .hero-description {
    margin: 0 auto 36px;
  }

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

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-left {
    flex-direction: column;
    gap: 8px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  :root {
    --section-padding: 64px 0;
    --container-padding: 0 16px;
    --header-height: 64px;
  }

  /* Mobile Nav */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-110%);
    opacity: 0;
    transition: all var(--transition-base);
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a {
    padding: 12px 16px;
    font-size: 15px;
    width: 100%;
    border-radius: var(--radius-sm);
  }

  .nav-links a:hover {
    background: var(--color-accent-subtle);
  }

  .nav-links a::after {
    display: none;
  }

  /* Hero mobile spacing */
  .hero-split {
    padding: 48px 16px;
  }

  .hero-image {
    max-width: 280px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .btn {
    justify-content: center;
  }

  /* Skills mobile */
  .skills-grid {
    grid-template-columns: 1fr;
  }

  /* Section header */
  .section-header {
    margin-bottom: 40px;
  }

  /* Timeline */
  .timeline {
    padding-left: 36px;
  }

  .timeline::before {
    left: 12px;
  }

  .timeline-marker {
    left: -36px;
    width: 24px;
  }

  .timeline-dot {
    width: 10px;
    height: 10px;
  }

  .timeline-content {
    padding: 18px;
  }
}

/* ============================================================
   ACCESSIBILITY: Reduced Motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
