/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  transition: all 0.3s ease;
}

/* CSS Variables for Light Theme */
:root {
  --background: #ffffff;
  --foreground: #0a0a0a;
  --card: #fafafa;
  --card-foreground: #0a0a0a;
  --primary: #0ea5e9;
  --primary-foreground: #ffffff;
  --secondary: #f59e0b;
  --secondary-foreground: #ffffff;
  --muted: #f5f5f5;
  --muted-foreground: #737373;
  --accent: #f59e0b;
  --accent-foreground: #ffffff;
  --border: #e5e5e5;
  --input: #f5f5f5;
  --ring: rgba(14, 165, 233, 0.5);
}

/* Dark Theme Variables */
.dark-theme {
  --background: #0a0a0a;
  --foreground: #fafafa;
  --card: #1a1a1a;
  --card-foreground: #fafafa;
  --primary: #38bdf8;
  --primary-foreground: #0a0a0a;
  --secondary: #fbbf24;
  --secondary-foreground: #0a0a0a;
  --muted: #262626;
  --muted-foreground: #a3a3a3;
  --accent: #fbbf24;
  --accent-foreground: #0a0a0a;
  --border: #404040;
  --input: #262626;
  --ring: rgba(56, 189, 248, 0.5);
}

body {
  background-color: var(--background);
  color: var(--foreground);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  background-color: transparent;
}

.navbar.scrolled {
  background-color: rgba(var(--background), 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo-text {
  font-size: 1.90rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.logo-text:hover {
  transform: scale(1.05);
}

.desktop-nav {
  display: none;
  gap: 1rem;
}

.nav-link {
  color: var(--foreground);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
  background-color: rgba(var(--muted), 0.5);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

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

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle {
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background: none;
  border-radius: 0.375rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  position: relative;
}

.theme-toggle:hover {
  background-color: rgba(var(--muted), 0.5);
  transform: scale(1.1);
}

.sun-icon {
  color: #f59e0b;
  transition: all 0.3s ease;
}

.moon-icon {
  color: #3b82f6;
  position: absolute;
  transition: all 0.3s ease;
  transform: rotate(90deg) scale(0);
}

.dark-theme .sun-icon {
  transform: rotate(-90deg) scale(0);
}

.dark-theme .moon-icon {
  transform: rotate(0deg) scale(1);
}

.mobile-menu-toggle {
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background: none;
  border-radius: 0.375rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
  background-color: rgba(var(--muted), 0.5);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background-color: var(--background);
  border-left: 1px solid var(--border);
  transition: right 0.3s ease;
  z-index: 999;
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.mobile-nav-link {
  color: var(--foreground);
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  border-left: 2px solid transparent;
}

.mobile-nav-link:hover {
  color: var(--primary);
  background-color: rgba(var(--muted), 0.5);
  border-left-color: var(--primary);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--background) 0%, rgba(var(--muted), 0.2) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.bg-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(3rem);
  animation: pulse 4s ease-in-out infinite;
}

.bg-circle-1 {
  top: -10rem;
  right: -10rem;
  width: 20rem;
  height: 20rem;
  background-color: rgba(14, 165, 233, 0.1);
}

.bg-circle-2 {
  bottom: -10rem;
  left: -10rem;
  width: 20rem;
  height: 20rem;
  background-color: rgba(245, 158, 11, 0.1);
  animation-delay: 1s;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 10;
  margin: 5rem;
}

.profile-image {
  margin-bottom: 2rem;
}

.profile-ring {
  width: 8rem;
  height: 8rem;
  margin: 4rem auto;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--primary), var(--accent));
  padding: 4px;
}

.profile-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--background);
  /* display: flex;
  align-items: center;
  justify-content: center; */
}

.profile-initials {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 3rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.text-primary {
  color: var(--primary);
}

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

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
  align-items: center;
}

.btn {
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1.125rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background-color: var(--primary);
  filter: brightness(1.1);
}

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

.btn-outline:hover {
  background-color: var(--muted);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.social-link {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background-color: transparent;
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  color: var(--primary);
  background-color: rgba(var(--muted), 0.5);
}

.scroll-indicator {
  animation: bounce 2s infinite;
}

.scroll-btn {
  background: none;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
}

.scroll-btn:hover {
  color: var(--primary);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: var(--muted);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 32rem;
  margin: 0 auto;
}

/* About Section */
.about-content {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.about-text p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

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

.stat-item {
  text-align: center;
  padding: 1.5rem;
  border-radius: 0.5rem;
  background-color: var(--card);
  border: 1px solid var(--border);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--muted-foreground);
  font-weight: 500;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.skill-category {
  background-color: var(--card);
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
}

.skill-category-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

.skill-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skill-name {
  font-weight: 600;
  color: var(--foreground);
}

.skill-bar-container {
  height: 0.5rem;
  background-color: var(--muted);
  border-radius: 0.25rem;
  overflow: hidden;
}

.skill-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 0.25rem;
  width: 0;
  transition: width 1.5s ease-out;
}

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

.timeline::before {
  content: "";
  position: absolute;
  left: 2rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 5rem;
}

.timeline-marker {
  position: absolute;
  left:1.25rem;
  top: 0.5rem;
  width: 1.5rem;
  height: 1.5rem;
  background-color: var(--primary);
  border-radius: 50%;
  border: 4px solid var(--background);
}

.timeline-content {
  background-color: var(--card);
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.timeline-company {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.timeline-period {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.timeline-description {
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Contact Section */
.contact-content {
  display: grid;
  gap: 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background-color: var(--card);
  border-radius: 0.75rem;
  border: 1px solid var(--border);
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-details h3 {
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.contact-details p {
  color: var(--muted-foreground);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background-color: var(--input);
  color: var(--foreground);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
a{
  text-decoration: none;
  color: darkgray;
}

/* Footer */
.footer {
  background-color: var(--card);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-content {
  display: flex;
  justify-content:center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-text {
  color: var(--muted-foreground);
}

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

.footer-link {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--primary);
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bounce {
  0%,
  20%,
  53%,
  80%,
  100% {
    transform: translateY(0);
  }
  40%,
  43% {
    transform: translateY(-10px);
  }
  70% {
    transform: translateY(-5px);
  }
  90% {
    transform: translateY(-2px);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.8;
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.animate-scale-in {
  animation: scaleIn 0.6s ease-out forwards;
  opacity: 0;
}

.animate-bounce {
  animation: bounce 2s infinite;
}

.animate-delay-200 {
  animation-delay: 0.2s;
}

.animate-delay-300 {
  animation-delay: 0.3s;
}

.animate-delay-400 {
  animation-delay: 0.4s;
}

.animate-delay-500 {
  animation-delay: 0.5s;
}

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Responsive Design */
@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }

  .mobile-only {
    display: none;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }

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

  .contact-content {
    grid-template-columns: 1fr 1fr;
  }

  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline-item {
    width: 50%;
    padding-left: 0;
    padding-right: 2rem;
  }

  .timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 2rem;
    padding-right: 0;
  }

  .timeline-marker {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4rem;
  }

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

/* Utility Classes */
.mobile-only {
  display: block;
}

@media (min-width: 768px) {
  .mobile-only {
    display: none;
  }
}
