/* Modern CSS Variables */
:root {
  /* Colors */
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --secondary-color: #64748b;
  --accent-color: #f59e0b;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;

  /* Gradients */
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-purple: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-pink: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-blue: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --card-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);

  /* Dark mode colors */
  --bg-dark: #0f172a;
  --bg-dark-secondary: #1e293b;
  --text-dark: #f8fafc;
  --text-muted: #64748b;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;

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

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Transitions */
  --transition-fast: all 0.2s ease;
  --transition-normal: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: #334155;
  background-color: #ffffff;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
}

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

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--secondary-color);
}

/* Utility Classes */
.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.title-divider {
  width: 60px;
  height: 4px;
  background: var(--primary-gradient);
  border: none;
  border-radius: 2px;
  margin: 1rem auto;
}

/* Navigation */
#navigation {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: var(--transition-normal);
  padding: 1rem 0;
}

#navigation.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color) !important;
  text-decoration: none;
}

.navbar-nav .nav-link {
  color: #475569 !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: 0.5rem;
  transition: var(--transition-fast);
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
  background-color: rgba(37, 99, 235, 0.1);
}

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

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

/* Hero Section */
.hero-section {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-swiper {
  width: 100%;
  height: 100%;
}

.hero-swiper .swiper-slide {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  transition: opacity 1s ease-in-out;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.6) 0%,
    rgba(139, 69, 19, 0.6) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  color: white;
  text-align: center;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-greeting {
  display: block;
  font-size: 0.6em;
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.hero-name {
  display: block;
  color: #ffffff !important;
  font-weight: 800;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  min-height: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

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

.cursor {
  animation: blink 1s infinite;
}

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

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

.hero-buttons .btn {
  padding: 0.875rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition-normal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-height: 48px; /* Touch-friendly size */
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.scroll-indicator a {
  color: white;
  font-size: 1.5rem;
  animation: bounce 2s infinite;
  text-decoration: none;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* About Section */
.about-section {
  padding: var(--section-padding);
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.about-image .image-container {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.image-overlay {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
}

.experience-badge {
  background: rgba(37, 99, 235, 0.9);
  color: white;
  padding: 1rem;
  border-radius: 1rem;
  text-align: center;
  backdrop-filter: blur(10px);
}

.badge-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.badge-text {
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0.9;
}

.about-content {
  padding-left: 2rem;
}

.about-text p {
  margin-bottom: 1.5rem;
  color: #475569;
  font-size: 1.1rem;
}

.about-highlights {
  margin: 2rem 0;
}

.highlight-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  background: white;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

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

.highlight-item i {
  font-size: 1.25rem;
  margin-right: 0.75rem;
  width: 24px;
}

.highlight-item span {
  font-weight: 500;
  color: #334155;
}

/* Skills Section */
.skills-section {
  padding: var(--section-padding);
  background: white;
}

.skill-category {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-lg);
  height: 100%;
  transition: var(--transition-normal);
  border: 1px solid #f1f5f9;
}

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

.skill-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.skill-icon i {
  font-size: 2rem;
  color: white;
}

.skill-category h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #1e293b;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.skill-tag {
  background: #f1f5f9;
  color: #475569;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.skill-tag:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.05);
}

/* Courses Section */
.courses-section {
  padding: var(--section-padding);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.courses-section .section-title,
.courses-section .section-subtitle {
  color: white;
}

.course-card {
  background: white;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transition: var(--transition-normal);
  height: 100%;
}

.course-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.course-image {
  position: relative;
  overflow: hidden;
}

.course-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition-normal);
}

.course-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-normal);
}

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

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

.course-content {
  padding: 1.5rem;
}

.course-badge {
  margin-bottom: 1rem;
}

.course-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.75rem;
}

.course-description {
  color: #64748b;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

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

.course-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.original-price {
  text-decoration: line-through;
  color: #94a3b8;
  font-size: 0.875rem;
}

.discount-price {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.125rem;
}

.course-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--accent-color);
  font-weight: 600;
}

/* Stats Section */
.stats-section {
  padding: var(--section-padding);
  background: #0f172a;
  color: white;
}

.stats-section .section-title,
.stats-section .section-subtitle {
  color: white;
}

.stat-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: var(--transition-normal);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-10px);
}

.stat-icon {
  width: 70px;
  height: 70px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.stat-icon i {
  font-size: 1.75rem;
  color: white;
}

.stat-content h2 {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
}

.stat-content h3 {
  font-size: 1.1rem;
  color: #cbd5e1;
  font-weight: 500;
  margin: 0;
}

/* Contact Section */
.contact-section {
  padding: var(--section-padding);
  background: var(--primary-gradient);
  color: white;
}

.contact-section .section-title,
.contact-section .section-subtitle {
  color: white;
}

.cta-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
  padding: 3rem 2rem;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-content h3 {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.cta-content h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.cta-content p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
.footer-section {
  background: #1e293b;
  color: white;
  padding: 3rem 0 1rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.footer-text {
  color: #94a3b8;
  margin-bottom: 0;
}

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

.social-link {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2rem 0 1rem;
}

.copyright {
  color: #94a3b8;
  font-size: 0.875rem;
  margin: 0;
}

/* Button Styles */
.btn {
  border-radius: 0.75rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: var(--transition-normal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  border: none;
  cursor: pointer;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: white;
  background: transparent;
}

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

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

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

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

  .course-card {
    margin-bottom: 1.5rem;
  }

  .stat-card {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 992px) {
  .hero-section {
    height: 90vh;
  }

  .hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .hero-buttons {
    gap: 1rem;
  }

  .about-section {
    padding: 80px 0;
  }

  .skills-section {
    padding: 80px 0;
  }

  .courses-section {
    padding: 80px 0;
  }

  .stats-section {
    padding: 80px 0;
  }

  .contact-section {
    padding: 80px 0;
  }

  .skill-category {
    text-align: center;
    margin-bottom: 2rem;
  }

  .course-card {
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
    text-align: center;
  }

  .section-subtitle {
    font-size: 1rem;
    text-align: center;
  }

  .hero-section {
    height: 85vh;
    padding: 2rem 0;
  }

  .hero-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 1rem;
  }

  .hero-greeting {
    font-size: 0.7em;
    margin-bottom: 0.25rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0 1rem;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    min-height: 50px;
    justify-content: center;
  }

  .scroll-indicator {
    bottom: 1.5rem;
  }

  /* About Section */
  .about-section {
    padding: 60px 0;
  }

  .about-content {
    padding-left: 0;
    margin-top: 2rem;
    text-align: center;
  }

  .about-image {
    text-align: center;
    margin-bottom: 2rem;
  }

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

  .highlight-item {
    justify-content: center;
    margin-bottom: 1rem;
  }

  /* Skills Section */
  .skills-section {
    padding: 60px 0;
  }

  .skill-category {
    text-align: center;
    margin-bottom: 2rem;
  }

  .skill-category h3 {
    font-size: 1.25rem;
  }

  /* Courses Section */
  .courses-section {
    padding: 60px 0;
  }

  .course-card {
    margin-bottom: 2rem;
  }

  .course-title {
    font-size: 1.1rem;
  }

  .course-description {
    font-size: 0.9rem;
  }

  /* Stats Section */
  .stats-section {
    padding: 60px 0;
  }

  .stat-card {
    margin-bottom: 2rem;
  }

  .stat-card h2 {
    font-size: 2rem;
  }

  .stat-card h3 {
    font-size: 1rem;
  }

  /* Contact Section */
  .contact-section {
    padding: 60px 0;
  }

  .cta-card {
    margin: 0 1rem;
  }

  .cta-content h2 {
    font-size: 1.5rem;
  }

  .cta-content h3 {
    font-size: 1rem;
  }

  .social-links {
    justify-content: center;
    margin-top: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }

  /* Footer */
  .footer-section {
    padding: 40px 0 20px;
  }

  .footer-content {
    text-align: center;
    margin-bottom: 2rem;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.75rem;
    line-height: 1.3;
  }

  .section-subtitle {
    font-size: 0.95rem;
    padding: 0 1rem;
  }

  .hero-section {
    height: 80vh;
    padding: 1.5rem 0;
  }

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

  .hero-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    line-height: 1.2;
    margin-bottom: 0.75rem;
  }

  .hero-greeting {
    font-size: 0.65em;
    margin-bottom: 0.25rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.25rem;
    padding: 0 0.5rem;
  }

  .hero-buttons {
    padding: 0 1rem;
    gap: 0.5rem;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 260px;
    padding: 0.8rem 1.25rem;
    font-size: 0.95rem;
    min-height: 48px;
  }

  .scroll-indicator {
    bottom: 1rem;
    font-size: 1.25rem;
  }

  /* About Section */
  .about-section {
    padding: 40px 0;
  }

  .about-content {
    padding: 0 1rem;
  }

  .about-text p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }

  .highlight-item {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }

  /* Skills Section */
  .skills-section {
    padding: 40px 0;
  }

  .skill-category {
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
  }

  .skill-category h3 {
    font-size: 1.1rem;
  }

  .skill-tag {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    margin: 0.25rem;
  }

  /* Courses Section */
  .courses-section {
    padding: 40px 0;
  }

  .course-card {
    margin-bottom: 1.5rem;
  }

  .course-title {
    font-size: 1rem;
    line-height: 1.3;
  }

  .course-description {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .course-price {
    font-size: 0.9rem;
  }

  /* Stats Section */
  .stats-section {
    padding: 40px 0;
  }

  .stat-card {
    margin-bottom: 1.5rem;
    padding: 1.5rem 1rem;
  }

  .stat-card h2 {
    font-size: 1.75rem;
  }

  .stat-card h3 {
    font-size: 0.95rem;
  }

  /* Contact Section */
  .contact-section {
    padding: 40px 0;
  }

  .cta-card {
    margin: 0 1rem;
    padding: 2rem 1.5rem;
  }

  .cta-content h2 {
    font-size: 1.25rem;
    line-height: 1.3;
  }

  .cta-content p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  /* Footer */
  .footer-section {
    padding: 30px 0 15px;
  }

  .footer-brand {
    font-size: 1.25rem;
  }

  .footer-text {
    font-size: 0.9rem;
  }

  .social-link {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .section-subtitle {
    font-size: 0.9rem;
    padding: 0 1rem;
  }

  .hero-section {
    height: 75vh;
    min-height: 600px;
  }

  .hero-title {
    font-size: clamp(1.3rem, 7vw, 2rem);
    margin-bottom: 0.5rem;
  }

  .hero-greeting {
    font-size: 0.6em;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .hero-buttons .btn {
    max-width: 240px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    min-height: 46px;
  }

  /* Enhanced mobile styles */
  .about-section,
  .skills-section,
  .courses-section,
  .stats-section,
  .contact-section {
    padding: 30px 0;
  }

  .skill-category {
    padding: 1.25rem 0.75rem;
  }

  .course-card {
    margin-bottom: 1.25rem;
  }

  .course-content {
    padding: 1rem;
  }

  .stat-card {
    padding: 1.25rem 0.75rem;
  }

  .cta-card {
    margin: 0 0.75rem;
    padding: 1.5rem 1rem;
  }

  .nav-link {
    font-size: 0.9rem;
  }
}

@media (max-width: 380px) {
  .section-title {
    font-size: 1.3rem;
    line-height: 1.3;
  }

  .section-subtitle {
    font-size: 0.85rem;
    padding: 0 0.75rem;
  }

  .hero-section {
    height: 70vh;
    min-height: 550px;
  }

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

  .hero-title {
    font-size: clamp(1.2rem, 8vw, 1.8rem);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  }

  .hero-subtitle {
    font-size: 0.85rem;
    padding: 0 0.25rem;
  }

  .hero-buttons .btn {
    max-width: 220px;
    padding: 0.7rem 0.875rem;
    font-size: 0.85rem;
    min-height: 44px;
  }

  /* Very small screen optimizations */
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .about-section,
  .skills-section,
  .courses-section,
  .stats-section,
  .contact-section {
    padding: 25px 0;
  }

  .skill-category {
    padding: 1rem 0.5rem;
    margin-bottom: 1rem;
  }

  .skill-category h3 {
    font-size: 1rem;
  }

  .course-card {
    margin-bottom: 1rem;
  }

  .course-title {
    font-size: 0.95rem;
  }

  .course-description {
    font-size: 0.8rem;
  }

  .stat-card {
    padding: 1rem 0.5rem;
    margin-bottom: 1rem;
  }

  .stat-card h2 {
    font-size: 1.5rem;
  }

  .stat-card h3 {
    font-size: 0.85rem;
  }

  .cta-card {
    margin: 0 0.5rem;
    padding: 1.25rem 0.75rem;
  }

  .cta-content h2 {
    font-size: 1.1rem;
  }

  .cta-content h3 {
    font-size: 0.9rem;
  }

  .footer-section {
    padding: 20px 0 10px;
  }

  .social-link {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

/* Loading Animation */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader .inner {
  width: 60px;
  height: 60px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Smooth scrolling offset for fixed navbar */
section {
  scroll-margin-top: 80px;
}

/* Additional mobile-first improvements */
@media (max-width: 992px) {
  .navbar-nav {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
  }

  .navbar-nav .nav-link:hover {
    background: rgba(37, 99, 235, 0.1);
  }
}

/* Touch improvements for mobile */
@media (hover: none) and (pointer: coarse) {
  .course-card:hover {
    transform: none;
  }

  .skill-category:hover {
    transform: none;
  }

  .stat-card:hover {
    transform: none;
  }

  /* Make touch targets larger */
  .nav-link {
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .social-link {
    min-width: 48px;
    min-height: 48px;
  }
}

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}
