/* ===== CSS RESET & CUSTOM PROPERTIES ===== */
:root {
  /* Color Palette - American Professional Style */
  --primary-navy: #1a365d;
  --primary-white: #ffffff;
  --accent-blue: #3182ce;
  --accent-green: #38a169;
  --text-dark: #2d3748;
  --text-light: #4a5568;
  --text-muted: #718096;
  --bg-light: #f7fafc;
  --bg-card: rgba(255, 255, 255, 0.9);
  --border-light: rgba(45, 55, 72, 0.1);
  --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-medium: 0 10px 25px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 25px 50px rgba(0, 0, 0, 0.25);
  
  /* Dark Theme Colors */
  --dark-bg: #1a202c;
  --dark-surface: #2d3748;
  --dark-card: rgba(45, 55, 72, 0.9);
  --dark-text: #f7fafc;
  --dark-text-muted: #a0aec0;
  --dark-border: rgba(255, 255, 255, 0.1);
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-code: 'Fira Code', 'JetBrains Mono', monospace;
  
  /* Spacing & Sizing */
  --container-max: 1200px;
  --section-padding: 5rem 0;
  --border-radius: 12px;
  --border-radius-lg: 20px;
  
  /* Animations */
  --transition-fast: 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --backdrop-blur: blur(10px);
}

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

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

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--primary-white);
  overflow-x: hidden;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

/* Dark Theme */
[data-theme="dark"] {
  --primary-white: var(--dark-bg);
  --bg-light: var(--dark-surface);
  --bg-card: var(--dark-card);
  --text-dark: var(--dark-text);
  --text-light: var(--dark-text-muted);
  --text-muted: var(--dark-text-muted);
  --border-light: var(--dark-border);
}

/* ===== LOADING SCREEN ===== */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-navy), var(--accent-blue));
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-content {
  text-align: center;
  color: white;
}

.loading-logo {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 2rem;
  animation: pulse 2s infinite;
}

.code-bracket {
  color: var(--accent-green);
  font-family: var(--font-code);
}

.loading-progress {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.loading-progress::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, white, transparent);
  animation: loading-slide 2s infinite;
}

@keyframes loading-slide {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: var(--backdrop-blur);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: all var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-light);
}

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

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-navy);
  text-decoration: none;
}

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

.nav-link {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color var(--transition-fast);
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-blue);
  transition: width var(--transition-fast);
}

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

.theme-toggle {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background: var(--bg-light);
  color: var(--accent-blue);
  transform: rotate(15deg);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
}

.bar {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  margin: 3px 0;
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--primary-white) 100%);
  overflow: hidden;
}

.hero-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
  min-height: 80vh;
}

.hero-image {
  display: flex;
  justify-content: center;
  position: relative;
}

.image-frame {
  position: relative;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-heavy);
  animation: float 6s ease-in-out infinite;
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.image-glow {
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: linear-gradient(45deg, var(--accent-blue), var(--accent-green));
  border-radius: 50%;
  opacity: 0.3;
  filter: blur(20px);
  animation: glow-pulse 4s ease-in-out infinite alternate;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes glow-pulse {
  0% { opacity: 0.3; transform: scale(1); }
  100% { opacity: 0.6; transform: scale(1.1); }
}

.hero-text {
  animation: slideInFromRight 1s ease-out;
}

.hero-greeting {
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.typing-text {
  display: inline-block;
}

.cursor {
  display: inline-block;
  background: var(--accent-blue);
  margin-left: 3px;
  width: 3px;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--accent-blue);
  font-weight: 600;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.7;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  animation: fadeInUp 1s ease-out 0.8s both;
}

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

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-blue);
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3rem;
  animation: fadeInUp 1s ease-out 1s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(45deg, var(--accent-blue), var(--primary-navy));
  color: white;
  box-shadow: var(--shadow-medium);
}

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

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

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

.social-links {
  display: flex;
  gap: 1rem;
  animation: fadeInUp 1s ease-out 1.2s both;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  color: var(--text-light);
  text-decoration: none;
  transition: all var(--transition-smooth);
  backdrop-filter: var(--backdrop-blur);
}

.social-link:hover {
  background: var(--accent-blue);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  animation: fadeInUp 2s ease-out 1.5s both;
}

.scroll-arrow {
  margin-bottom: 0.5rem;
}

.scroll-arrow span {
  display: block;
  width: 2px;
  height: 20px;
  background: var(--accent-blue);
  margin: 0 auto 5px;
  border-radius: 2px;
  opacity: 0;
  animation: scroll-animation 2s infinite;
}

.scroll-arrow span:nth-child(2) {
  animation-delay: 0.2s;
}

.scroll-arrow span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes scroll-animation {
  0% { opacity: 0; transform: translateY(-10px); }
  50% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}

.scroll-indicator p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Hero Background Animation */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.7;
  animation: float-orb 15s infinite ease-in-out;
}

.orb-1 {
  width: 300px;
  height: 300px;
  background: linear-gradient(45deg, var(--accent-blue), var(--accent-green));
  top: 20%;
  right: 10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
  bottom: 30%;
  left: 15%;
  animation-delay: 5s;
}

.orb-3 {
  width: 150px;
  height: 150px;
  background: linear-gradient(225deg, var(--primary-navy), var(--accent-blue));
  top: 60%;
  right: 30%;
  animation-delay: 10s;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -30px) scale(1.1); }
  50% { transform: translate(-20px, 20px) scale(0.9); }
  75% { transform: translate(20px, 30px) scale(1.05); }
}

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

.section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  animation: fadeInUp 0.8s ease-out;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(45deg, var(--accent-blue), var(--accent-green));
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== ABOUT SECTION ===== */
.about {
  padding: var(--section-padding);
  background: var(--bg-light);
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text {
  animation: fadeInLeft 1s ease-out;
}

.about-intro p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.about-highlights {
  margin-top: 3rem;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-light);
  transition: all var(--transition-smooth);
  backdrop-filter: var(--backdrop-blur);
}

.highlight-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.highlight-item i {
  font-size: 1.5rem;
  color: var(--accent-blue);
  margin-top: 0.25rem;
}

.highlight-item h4 {
  color: var(--primary-navy);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

.about-visual {
  animation: fadeInRight 1s ease-out;
}

.tech-stack-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-light);
  backdrop-filter: var(--backdrop-blur);
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.5);
  transition: all var(--transition-smooth);
}

.tech-item:hover {
  transform: translateY(-10px);
  background: var(--accent-blue);
  color: white;
}

.tech-item i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--accent-blue);
  transition: color var(--transition-smooth);
}

.tech-item:hover i {
  color: white;
}

.tech-item span {
  font-weight: 600;
  font-size: 0.9rem;
}

/* ===== SKILLS SECTION ===== */
.skills {
  padding: var(--section-padding);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.skill-category {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  border: 1px solid var(--border-light);
  transition: all var(--transition-smooth);
  backdrop-filter: var(--backdrop-blur);
  animation: fadeInUp 0.8s ease-out;
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-light);
}

.category-header i {
  font-size: 1.5rem;
  color: var(--accent-blue);
}

.category-header h3 {
  color: var(--primary-navy);
  font-weight: 600;
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skill-item {
  position: relative;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.skill-name {
  font-weight: 500;
  color: var(--text-dark);
}

.skill-percentage {
  font-weight: 600;
  color: var(--accent-blue);
  font-size: 0.9rem;
}

.skill-bar {
  height: 8px;
  background: var(--bg-light);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(45deg, var(--accent-blue), var(--accent-green));
  border-radius: 4px;
  width: 0;
  transition: width 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

.skill-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: translateX(-100%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ===== PROJECTS SECTION ===== */
.projects {
  padding: var(--section-padding);
  background: var(--bg-light);
}

.projects-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  border-radius: var(--border-radius);
  color: var(--text-light);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-smooth);
  backdrop-filter: var(--backdrop-blur);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-blue);
  color: white;
  border-color: var(--accent-blue);
  transform: translateY(-2px);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all var(--transition-smooth);
  backdrop-filter: var(--backdrop-blur);
  animation: fadeInUp 0.8s ease-out;
}

.project-card:hover {
  transform: translateY(-10px) rotateX(2deg);
  box-shadow: var(--shadow-heavy);
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 54, 93, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: white;
  color: var(--primary-navy);
  border-radius: 50%;
  text-decoration: none;
  transition: all var(--transition-smooth);
}

.project-link:hover {
  background: var(--accent-blue);
  color: white;
  transform: scale(1.1);
}

.project-content {
  padding: 2rem;
}

.project-category {
  color: var(--accent-blue);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.project-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-navy);
  margin-bottom: 1rem;
}

.project-description {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  padding: 0.25rem 0.75rem;
  background: var(--bg-light);
  color: var(--text-light);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--border-light);
}

/* ===== EXPERIENCE SECTION ===== */
.experience {
  padding: var(--section-padding);
}

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

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-blue), var(--accent-green));
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  animation: fadeInUp 0.8s ease-out;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: calc(50% + 40px);
  text-align: left;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: calc(50% + 40px);
  text-align: right;
}

.timeline-marker {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, var(--accent-blue), var(--accent-green));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: var(--shadow-medium);
}

.timeline-marker i {
  color: white;
  font-size: 1.2rem;
}

.timeline-content {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-light);
  backdrop-filter: var(--backdrop-blur);
  transition: all var(--transition-smooth);
  position: relative;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 30px;
  width: 0;
  height: 0;
  border: 10px solid transparent;
}

.timeline-item:nth-child(even) .timeline-content::before {
  left: -20px;
  border-right-color: var(--bg-card);
}

.timeline-item:nth-child(odd) .timeline-content::before {
  right: -20px;
  border-left-color: var(--bg-card);
}

.timeline-date {
  color: var(--accent-blue);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

.timeline-company {
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 1rem;
}

.timeline-description {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.timeline-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.timeline-item:nth-child(odd) .timeline-skills {
  justify-content: flex-end;
}

.skill-tag {
  padding: 0.25rem 0.75rem;
  background: var(--accent-blue);
  color: white;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

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

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  margin-top: 3rem;
  align-items: start;
}

.contact-info {
  animation: fadeInLeft 1s ease-out;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-light);
  transition: all var(--transition-smooth);
  backdrop-filter: var(--backdrop-blur);
}

.contact-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-medium);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(45deg, var(--accent-blue), var(--accent-green));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.contact-details h4 {
  color: var(--primary-navy);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

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

.contact-details a:hover {
  color: var(--primary-navy);
}

.contact-social {
  margin-top: 3rem;
}

.contact-social h4 {
  color: var(--primary-navy);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Contact Form */
.contact-form {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-light);
  backdrop-filter: var(--backdrop-blur);
  animation: fadeInRight 1s ease-out;
}

.form-group {
  position: relative;
  margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border-light);
  border-radius: var(--border-radius);
  background: var(--primary-white);
  font-family: var(--font-primary);
  font-size: 1rem;
  color: var(--text-dark);
  transition: all var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:valid + label,
.form-group textarea:valid + label {
  top: -10px;
  font-size: 0.8rem;
  color: var(--accent-blue);
  background: var(--bg-card);
  padding: 0 0.5rem;
}

.form-group label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: var(--text-muted);
  font-size: 1rem;
  transition: all var(--transition-smooth);
  pointer-events: none;
}

.form-error {
  color: #e53e3e;
  font-size: 0.8rem;
  margin-top: 0.5rem;
  display: block;
}

.btn-submit {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.btn-loading {
  display: none;
}

.btn-submit.loading .btn-text {
  opacity: 0;
}

.btn-submit.loading .btn-loading {
  display: block;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--primary-navy);
  color: white;
  padding: 3rem 0 1rem;
}

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

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-left p {
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-bottom i {
  color: #e53e3e;
  margin: 0 0.25rem;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(45deg, var(--accent-blue), var(--accent-green));
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
  z-index: 100;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: var(--shadow-medium);
}

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

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

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

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  :root {
    --section-padding: 4rem 0;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .timeline::before {
    left: 30px;
  }
  
  .timeline-item:nth-child(even) .timeline-content,
  .timeline-item:nth-child(odd) .timeline-content {
    margin-left: 70px;
    margin-right: 0;
    text-align: left;
  }
  
  .timeline-marker {
    left: 30px;
  }
  
  .timeline-content::before {
    left: -20px !important;
    right: auto !important;
    border-right-color: var(--bg-card) !important;
    border-left-color: transparent !important;
  }
  
  .timeline-skills {
    justify-content: flex-start !important;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: var(--backdrop-blur);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: left var(--transition-smooth);
    border-top: 1px solid var(--border-light);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .hamburger {
    display: flex;
  }
  
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .projects-filter {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .tech-stack-preview {
    grid-template-columns: 1fr 1fr;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .nav-container {
    padding: 0 1rem;
  }
  
  .image-frame {
    width: 250px;
    height: 250px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .tech-stack-preview {
    grid-template-columns: 1fr;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .project-card {
    margin: 0 0.5rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-marker {
    left: 20px;
    width: 40px;
    height: 40px;
  }
  
  .timeline-item:nth-child(even) .timeline-content,
  .timeline-item:nth-child(odd) .timeline-content {
    margin-left: 50px;
  }
}

/* ===== ACCESSIBILITY & PERFORMANCE ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --border-light: #000;
    --text-light: #000;
    --bg-card: #fff;
  }
}

/* Focus visible for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .navbar,
  .hero-background,
  .back-to-top,
  .social-links {
    display: none;
  }
  
  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .section {
    break-inside: avoid;
  }
}
