/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  /* Colors */
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.6);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-hover: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(255, 255, 255, 0.15);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-teal: #14b8a6;
  --accent-pink: #ec4899;
  --accent-amber: #f59e0b;

  --gradient-primary: linear-gradient(135deg, #3b82f6, #8b5cf6);
  --gradient-secondary: linear-gradient(135deg, #8b5cf6, #14b8a6);
  --gradient-hero: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #14b8a6 100%);
  --gradient-text: linear-gradient(90deg, #3b82f6, #8b5cf6, #14b8a6);

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

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Shadows */
  --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.15);
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-purple);
}

img {
  max-width: 100%;
  display: block;
}

/* ===== UTILITY CLASSES ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-padding);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 3rem;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition-medium);
  backdrop-filter: blur(0px);
}

.navbar.scrolled {
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  padding: 10px 0;
}

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

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

.nav-logo span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-medium);
  border-radius: 2px;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-medium);
}

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

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

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

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 8s ease-in-out infinite;
}

.hero-bg .orb-1 {
  width: 500px;
  height: 500px;
  background: var(--accent-blue);
  top: -10%;
  right: -5%;
  animation-delay: 0s;
}

.hero-bg .orb-2 {
  width: 400px;
  height: 400px;
  background: var(--accent-purple);
  bottom: -10%;
  left: -5%;
  animation-delay: -3s;
}

.hero-bg .orb-3 {
  width: 300px;
  height: 300px;
  background: var(--accent-teal);
  top: 40%;
  left: 50%;
  animation-delay: -5s;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -30px) scale(1.05);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 750px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  }

  50% {
    opacity: 0.8;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -1.5px;
}

.hero .typed-wrapper {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 500;
  height: 2.4rem;
  margin-bottom: 24px;
  color: var(--text-secondary);
}

.typed-cursor {
  display: inline-block;
  width: 3px;
  height: 1.6rem;
  background: var(--accent-blue);
  margin-left: 2px;
  animation: blink 0.8s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 600px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-medium);
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
  color: white;
}

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glass-hover);
  transform: translateY(-2px);
  color: var(--text-primary);
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border-glass);
}

.hero-stat h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ===== ABOUT SECTION ===== */
.about {
  padding: var(--section-padding);
  position: relative;
}

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

.about-image {
  position: relative;
}

.about-image-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 32px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.about-image-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.about-code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.85rem;
  line-height: 2;
}

.about-code .comment {
  color: var(--text-muted);
}

.about-code .keyword {
  color: var(--accent-purple);
}

.about-code .function {
  color: var(--accent-blue);
}

.about-code .string {
  color: var(--accent-teal);
}

.about-code .variable {
  color: var(--accent-pink);
}

.about-code .number {
  color: var(--accent-amber);
}

.about-text h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 12px;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.highlight-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(10px);
  transition: all var(--transition-medium);
}

.highlight-card:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glass-hover);
  transform: translateY(-2px);
}

.highlight-card .icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.highlight-card h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.highlight-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ===== SKILLS SECTION ===== */
.skills {
  padding: var(--section-padding);
  background: var(--bg-secondary);
  position: relative;
}

.skills::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glass), transparent);
}

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

.skill-category {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(10px);
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.skill-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.skill-category:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glass-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.skill-category:hover::before {
  opacity: 1;
}

.skill-category-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.skill-category:nth-child(2) .skill-category-icon {
  background: var(--gradient-secondary);
}

.skill-category:nth-child(3) .skill-category-icon {
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-blue));
}

.skill-category:nth-child(4) .skill-category-icon {
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
}

.skill-category h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.skill-item {
  margin-bottom: 16px;
}

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

.skill-item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.skill-item-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.skill-item-level {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.skill-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--gradient-primary);
  width: 0;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-category:nth-child(2) .skill-bar-fill {
  background: var(--gradient-secondary);
}

.skill-category:nth-child(3) .skill-bar-fill {
  background: linear-gradient(90deg, var(--accent-teal), var(--accent-blue));
}

.skill-category:nth-child(4) .skill-bar-fill {
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-purple));
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.skill-tag {
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.skill-tag:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

/* ===== PROJECTS SECTION ===== */
.projects {
  padding: var(--section-padding);
  position: relative;
}

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

.project-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(10px);
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  transition: opacity var(--transition-medium);
}

.project-card:nth-child(1)::before {
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
}

.project-card:nth-child(2)::before {
  background: linear-gradient(90deg, var(--accent-teal), var(--accent-blue));
}

.project-card:nth-child(3)::before {
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink));
}

.project-card:nth-child(4)::before {
  background: linear-gradient(90deg, var(--accent-amber), var(--accent-teal));
}

.project-card:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glass-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.project-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.project-card:nth-child(1) .project-icon {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
}

.project-card:nth-child(2) .project-icon {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.2), rgba(59, 130, 246, 0.2));
}

.project-card:nth-child(3) .project-icon {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
}

.project-card:nth-child(4) .project-icon {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(20, 184, 166, 0.2));
}

.project-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
}

.project-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.project-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 8px;
  flex-grow: 1;
}

.project-results {
  list-style: none;
  margin-bottom: 20px;
}

.project-results li {
  padding: 4px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.project-results li::before {
  content: '▸';
  color: var(--accent-blue);
  font-weight: bold;
  flex-shrink: 0;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-glass);
}

.project-tech span {
  padding: 4px 10px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 6px;
  font-size: 0.72rem;
  color: var(--accent-blue);
  font-weight: 500;
}

/* ===== TIMELINE (Experience & Education) ===== */
.timeline-section {
  padding: var(--section-padding);
  background: var(--bg-secondary);
  position: relative;
}

.timeline-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glass), transparent);
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-blue), var(--accent-purple), var(--accent-teal));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-left: 64px;
  padding-bottom: 48px;
}

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

.timeline-dot {
  position: absolute;
  left: 16px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--accent-blue);
  z-index: 2;
}

.timeline-item:nth-child(2) .timeline-dot {
  border-color: var(--accent-purple);
}

.timeline-item:nth-child(3) .timeline-dot {
  border-color: var(--accent-teal);
}

.timeline-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(10px);
  transition: all var(--transition-medium);
}

.timeline-card:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glass-hover);
}

.timeline-card .badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.badge-work {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
}

.badge-education {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-purple);
}

.timeline-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-card .org {
  color: var(--accent-teal);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.timeline-card .period {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.timeline-card ul {
  list-style: none;
}

.timeline-card ul li {
  padding: 3px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  gap: 8px;
}

.timeline-card ul li::before {
  content: '▸';
  color: var(--accent-blue);
  flex-shrink: 0;
}

/* ===== CERTIFICATIONS ===== */
.certifications {
  padding: var(--section-padding);
  position: relative;
}

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

.cert-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(10px);
  transition: all var(--transition-medium);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.cert-card:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glass-hover);
  transform: translateY(-2px);
}

.cert-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.cert-card:nth-child(2) .cert-icon {
  background: var(--gradient-secondary);
}

.cert-card:nth-child(3) .cert-icon {
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-blue));
}

.cert-card:nth-child(4) .cert-icon {
  background: linear-gradient(135deg, var(--accent-amber), var(--accent-pink));
}

.cert-info h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.cert-info .cert-org {
  font-size: 0.8rem;
  color: var(--accent-teal);
  margin-bottom: 2px;
}

.cert-info .cert-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===== CONTACT SECTION ===== */
.contact {
  padding: var(--section-padding);
  background: var(--bg-secondary);
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glass), transparent);
}

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

.contact-info h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.contact-info>p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  transition: all var(--transition-medium);
  color: var(--text-primary);
}

.contact-link:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glass-hover);
  transform: translateX(4px);
  color: var(--text-primary);
}

.contact-link-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-link-text h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-link-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.contact-form {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(10px);
}

.contact-form h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 24px;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

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

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

/* ===== FOOTER ===== */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-glass);
  background: var(--bg-primary);
}

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

.footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color var(--transition-fast);
}

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

/* ===== PARTICLES CANVAS ===== */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
}

/* ===== FORM FEEDBACK ===== */
.form-success {
  display: none;
  text-align: center;
  padding: 32px 24px;
}

.form-success.show {
  display: block;
}

.form-success-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  animation: pop-in 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pop-in {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.form-success h4 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-success p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.form-error {
  display: none;
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 10px;
  color: #ef4444;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.form-error.show {
  display: block;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn .spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3.2rem;
  }

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

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

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

@media (max-width: 768px) {
  :root {
    --section-padding: 70px 0;
    --container-padding: 0 20px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 40px;
    transition: right var(--transition-medium);
    border-left: 1px solid var(--border-glass);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .hero {
    min-height: auto;
    padding: 120px 0 60px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero .typed-wrapper {
    font-size: 1.1rem;
    height: auto;
    min-height: 2rem;
  }

  .hero p {
    font-size: 1rem;
    line-height: 1.7;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 40px;
    padding-top: 24px;
  }

  .hero-stat {
    text-align: center;
  }

  .hero-stat h3 {
    font-size: 1.6rem;
  }

  .hero-stat p {
    font-size: 0.75rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .about-highlights {
    grid-template-columns: 1fr 1fr;
  }

  .about-code {
    font-size: 0.75rem;
    line-height: 1.8;
  }

  .about-image-card {
    padding: 20px;
  }

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

  .skill-category {
    padding: 24px;
  }

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

  .contact-link {
    padding: 14px;
  }

  .contact-form {
    padding: 24px;
  }

  .timeline-item {
    padding-left: 56px;
  }

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

  .footer p {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: 0 16px;
  }

  .hero h1 {
    font-size: 2rem;
    letter-spacing: -1px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
    font-size: 1rem;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 6px 12px;
  }

  .about-highlights {
    grid-template-columns: 1fr;
  }

  .highlight-card {
    padding: 16px;
  }

  .project-card {
    padding: 24px;
  }

  .project-card h3 {
    font-size: 1.1rem;
  }

  .timeline-card {
    padding: 20px;
  }

  .contact-link-icon {
    width: 40px;
    height: 40px;
  }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ===== SELECTION ===== */
::selection {
  background: rgba(59, 130, 246, 0.3);
  color: var(--text-primary);
}