/* CSS Variables (Dark Theme - Default) */
:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary-color: #64748b;
  --accent-color: #3b82f6;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Dark Theme */
[data-theme="dark"] {
  --primary-color: #3b82f6;
  --primary-hover: #60a5fa;
  --secondary-color: #94a3b8;
  --accent-color: #60a5fa;
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --border-color: #334155;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  transition: var(--transition);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

.container {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Navigation */
.navbar {
  background-color: var(--bg-primary);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
  transition: var(--transition);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.navbar-brand:hover {
  color: var(--primary-hover);
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  border-radius: 0.5rem;
  transition: var(--transition);
}

.nav-link:visited {
  color: var(--text-secondary);
}

.nav-link:hover {
  color: var(--primary-color);
  background-color: var(--bg-tertiary);
}

.nav-link:focus {
  color: var(--text-secondary);
  outline: none;
  box-shadow: none;
}

.nav-link.active {
  color: var(--primary-color);
  font-weight: 600;
  background-color: var(--bg-tertiary);
}

.nav-link:not(.active) {
  color: var(--text-secondary);
  background-color: transparent;
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23475569' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

[data-theme="dark"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23cbd5e1' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.25rem;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: var(--transition);
}

.theme-toggle:hover {
  color: var(--primary-color);
  background-color: var(--bg-tertiary);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  padding-top: 80px;
  background: linear-gradient(
    135deg,
    var(--bg-primary) 0%,
    var(--bg-secondary) 100%
  );
}

.hero-content {
  padding: 2rem 0;
}

.greeting {
  color: var(--primary-color);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.name {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.role {
  font-size: 1.75rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  min-height: 2.5rem;
}

.cursor {
  animation: blink 1s infinite;
  color: var(--primary-color);
}

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

.tagline {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

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

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

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

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

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

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
  font-size: 1.25rem;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary-color);
  color: var(--bg-primary);
  transform: translateY(-3px);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.profile-img {
  width: 350px;
  height: 350px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--primary-color);
  box-shadow: var(--shadow-lg);
}

/* Section Styles */
section {
  padding: 100px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-primary);
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* About Section */
.about-section {
  background-color: var(--bg-secondary);
}

.about-content {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

.about-content p {
  margin-bottom: 1rem;
}

.education-cards {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.edu-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: var(--bg-primary);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  flex: 1;
  min-width: 280px;
}

.edu-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
}

.edu-logo {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.edu-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 9px;
}

.edu-logo img:hover {
  transform: scale(1.35);
  transition: var(--transition);
}

.edu-details h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.edu-details p {
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.edu-date {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Skills Section */
.skills-section {
  background-color: var(--bg-primary);
}

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

.skill-category {
  background-color: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
}

.skill-category h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-category h3 i {
  color: var(--primary-color);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
}

.skill-tag:hover {
  background-color: var(--primary-color);
  color: var(--bg-primary);
}

/* Experience Section */
.experience-section {
  background-color: var(--bg-secondary);
}

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

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

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 0;
  width: 16px;
  height: 16px;
  background-color: var(--primary-color);
  border-radius: 50%;
  transform: translateX(-50%);
  border: 3px solid var(--bg-secondary);
}

.timeline-content {
  background-color: var(--bg-primary);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  margin-left: 1rem;
}

.timeline-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.company-logo {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.company-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 40px;
}

.timeline-header-text h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.timeline-header-text .company {
  display: block;
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.timeline-header-text .date {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.timeline-content p {
  color: var(--text-secondary);
  margin: 0;
}

.timeline-content ul {
  color: var(--text-secondary);
  margin: 0;
  padding-left: 1.25rem;
}

.timeline-content li {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

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

/* Projects Section */
.projects-section {
  background-color: var(--bg-primary);
}

.project-card {
  background-color: var(--bg-secondary);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.project-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.project-logo {
  width: 180px;
  height: 180px;
  flex-shrink: 0;
  margin-bottom: 1.5rem;
}

.project-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 40px;
}

.project-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.project-card p {
  color: var(--text-secondary);
  flex-grow: 1;
  margin-bottom: 1rem;
}

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

.project-tech span {
  background-color: var(--bg-tertiary);
  color: var(--text-muted);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
}

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

/* Contact Section */
.contact-section {
  background-color: var(--bg-secondary);
}

.contact-text {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.contact-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--bg-primary);
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-sm);
  color: var(--text-secondary);
  transition: var(--transition);
}

.contact-card:hover {
  background-color: var(--primary-color);
  color: var(--bg-primary);
  transform: translateY(-3px);
}

.contact-card i {
  font-size: 1.25rem;
}

.location {
  color: var(--text-muted);
  font-size: 1rem;
}

.location i {
  color: var(--primary-color);
}

/* Footer */
.footer {
  background-color: var(--bg-tertiary);
  padding: 2rem 0;
}

.footer p {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.footer a {
  color: var(--text-secondary);
}

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

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.fade-in:nth-child(1) {
  animation-delay: 0.1s;
}
.fade-in:nth-child(2) {
  animation-delay: 0.2s;
}
.fade-in:nth-child(3) {
  animation-delay: 0.3s;
}
.fade-in:nth-child(4) {
  animation-delay: 0.4s;
}
.fade-in:nth-child(5) {
  animation-delay: 0.5s;
}

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

.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .name {
    font-size: 2.5rem;
  }

  .role {
    font-size: 1.5rem;
  }

  .profile-img {
    width: 280px;
    height: 280px;
  }

  .hero-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .name {
    font-size: 2rem;
  }

  .role {
    font-size: 1.25rem;
  }

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

  .profile-img {
    width: 220px;
    height: 220px;
  }

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

  .hero-buttons .btn {
    width: 100%;
  }

  .education-cards {
    flex-direction: column;
  }

  .timeline {
    padding-left: 1.5rem;
  }

  .timeline-dot {
    left: -1.5rem;
  }

  .about-content {
    font-size: 1rem;
  }

  .skills-grid {
    gap: 1.5rem;
  }

  .skill-category {
    padding: 1.25rem;
  }

  .project-card {
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  section {
    padding: 60px 0;
  }

  .name {
    font-size: 1.75rem;
  }

  .greeting {
    font-size: 1rem;
  }

  .tagline {
    font-size: 1rem;
  }

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

  .contact-cards {
    flex-direction: column;
  }

  .contact-card {
    width: 100%;
    justify-content: center;
  }

  .edu-card {
    padding: 1.25rem;
    flex-direction: column;
    text-align: center;
  }

  .timeline-content {
    padding: 1.25rem;
    margin-left: 0.75rem;
  }

  .social-links {
    justify-content: center;
  }

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

  .hero-buttons {
    align-items: center;
  }
}
