:root {
  --primary-color: #06b6d4; /* Teal */
  --secondary-color: #3b82f6; /* Blue */
  --accent-color: #06b6d4; /* Teal accent */
  --text-primary: #ffffff;
  --text-secondary: #e5e7eb;
  --text-muted: #9ca3af;
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: #1e293b;
  --border-color: #334155;
  --gradient-primary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
}

[data-theme="light"] {
  --text-primary: #111827;
  --text-secondary: #374151;
  --text-muted: #6b7280;
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-card: #ffffff;
  --border-color: #e5e7eb;
  --gradient-primary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  transition: all 0.3s ease;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

[data-theme="light"] .header {
  background: rgba(255, 255, 255, 0.95);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.logo:hover {
  opacity: 0.9;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .logo-icon {
  border-color: rgba(0, 0, 0, 0.1);
}

.logo:hover .logo-icon {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: var(--accent-color);
}

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

.nav-menu a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-menu a:hover {
  color: var(--primary-color);
  background: rgba(139, 92, 246, 0.1);
}

.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.theme-toggle:hover {
  background: rgba(139, 92, 246, 0.1);
  color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section - Fixed colors for both themes */
.hero {
  min-height: 100vh;
  background: linear-gradient(rgba(15, 23, 42, 0.3), rgba(15, 23, 42, 0.5)),
    url("../img/banner.jpg") center/cover;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: white;
  position: relative;
  overflow: hidden;
  padding: 80px 1.5rem 2rem;
  box-sizing: border-box;
}

/* Keep hero background and text consistent in light mode */
[data-theme="light"] .hero {
  background: linear-gradient(rgba(15, 23, 42, 0.3), rgba(15, 23, 42, 0.5)),
    url("../img/banner.jpg") center/cover;
  color: #ffffff;
}

.hero-content {
  max-width: 640px;
  width: auto;
  z-index: 2;
  padding: 1.5rem 2rem;
  text-align: left;
  animation: fadeInUp 1s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
  position: relative;
  margin-left: 10%;
}

.hero-greeting {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: rgba(6, 182, 212, 0.1);
  border-radius: 20px;
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: var(--accent-color);
}

/* Keep hero greeting consistent in both themes */
[data-theme="light"] .hero-greeting {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.3);
  color: #06b6d4;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 1.2rem 0 1.5rem 0;
  color: #ffffff; /* Fixed white color for both themes */
  line-height: 1.2;
  max-width: 90%;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.9vw, 1.3rem);
  margin: 0 0 2.2rem 0;
  opacity: 0.95;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95); /* Fixed white color for both themes */
  line-height: 1.6;
  max-width: 100%;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hero {
    padding: 80px 1.25rem 2.5rem;
    justify-content: center;
    text-align: center;
    align-items: center;
  }

  .hero-content {
    padding: 1.25rem 0;
    margin: 0 auto;
    text-align: center;
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero h1 {
    font-size: 1.9rem;
    margin: 0.8rem 0 1.2rem;
    text-align: center;
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    margin: 0 auto 2rem;
    max-width: 100%;
    text-align: center;
    line-height: 1.5;
    padding: 0 0.5rem;
  }

  .hero-buttons {
    justify-content: center;
    gap: 1rem;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 0.5rem;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 220px;
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
    text-align: center;
    display: inline-flex;
    justify-content: center;
    align-items: center;
  }

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

/* Small mobile devices */
@media (max-width: 480px) {
  .hero {
    padding: 70px 1rem 2rem;
  }

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

  .hero h1 {
    font-size: 1.75rem;
    margin: 0.7rem 0 1rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1.05rem;
    margin: 0 0 1.75rem;
    line-height: 1.5;
    padding: 0 0.25rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
  }
  
  .btn-primary,
  .btn-secondary {
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    margin: 0.2rem 0;
    text-align: center;
  }
}

.btn-primary {
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  color: white;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(6, 182, 212, 0.5);
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(6, 182, 212, 0.4);
}

.btn-secondary {
  background: transparent;
  color: white;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(0);
}

.social-links {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding: 0;
  list-style: none;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.2rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link i {
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.3);
}

/* Platform-specific colors on hover */
.social-link[title="Facebook"]:hover {
  background: #1877f2;
  border-color: #1877f2;
}

.social-link[title="Instagram"]:hover {
  background: linear-gradient(
    45deg,
    #f09433,
    #e6683c,
    #dc2743,
    #cc2366,
    #bc1888
  );
  border-color: transparent;
}

.social-link[title="LinkedIn"]:hover {
  background: #0a66c2;
  border-color: #0a66c2;
}

.social-link[title="WhatsApp"]:hover {
  background: #25d366;
  border-color: #25d366;
}

/* Stats Section */
.stats {
  background: var(--bg-secondary);
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.02) 0%,
    rgba(59, 130, 246, 0.02) 100%
  );
  z-index: 1;
}

.stats-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  position: relative;
  z-index: 2;
}

.stat-item {
  padding: 1.5rem 1rem;
  background: var(--bg-card);
  border-radius: 14px;
  border: 1px solid var(--border-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.03);
}

.stat-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.2);
}

.stat-item:hover::before {
  transform: scaleX(1);
}

.stat-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.08);
  transition: all 0.25s ease;
}

.stat-item:hover .stat-icon {
  background: var(--gradient-primary);
  color: white;
  transform: rotateY(360deg);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0.3rem 0;
  line-height: 1.2;
  display: block;
  transition: all 0.2s ease;
}

.stat-item:hover .stat-number {
  transform: scale(1.03);
}

.stat-label {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  margin: 0.3rem 0 0;
  display: block;
  transition: all 0.2s ease;
  opacity: 0.9;
}

.stat-divider {
  height: 2px;
  width: 40px;
  background: var(--gradient-primary);
  margin: 0.9rem auto 0;
  opacity: 0.6;
  transition: all 0.25s ease;
}

.stat-item:hover .stat-divider {
  width: 50px;
  opacity: 0.9;
}

@media (max-width: 992px) {
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 600px;
  }

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

  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 600px) {
  .stats {
    padding: 2.5rem 0;
  }

  .stats-container {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 320px;
  }

  .stat-item {
    padding: 1.25rem 1rem;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .stat-label {
    font-size: 0.9rem;
  }

  .stat-icon {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

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

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

.profile-image {
  width: 100%;
  max-width: 350px;
  aspect-ratio: 1;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.profile-image:hover {
  transform: scale(1.05);
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.about-text p {
  margin-bottom: 1.5rem;
}

/* Skills Section */
#skills {
  background: linear-gradient(
    135deg,
    var(--bg-primary) 0%,
    var(--bg-secondary) 100%
  );
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

#skills::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 30%,
      rgba(139, 92, 246, 0.08) 0%,
      transparent 25%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(59, 130, 246, 0.08) 0%,
      transparent 25%
    );
  z-index: 1;
}

#skills .container {
  position: relative;
  z-index: 2;
}

#skills .section-title {
  color: var(--text-primary);
  position: relative;
  display: inline-block;
  margin: 0 auto 3rem;
  left: 50%;
  transform: translateX(-50%);
}

#skills .section-title::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 3px;
  transition: all 0.3s ease;
}

#skills .section-title:hover::after {
  width: 120px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

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

.skill-item {
  background: var(--bg-card);
  padding: 2rem 1.5rem;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.skill-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.skill-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.2);
}

.skill-item:hover::before {
  transform: scaleX(1);
}

.skill-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1.25rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.08);
  margin: 0 auto 1.25rem;
  transition: all 0.3s ease;
}

.skill-item:hover .skill-icon {
  background: var(--gradient-primary);
  color: white;
  transform: translateY(-3px);
}

.skill-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.skill-level {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.3s ease;
}

.skill-item:hover .skill-name {
  color: var(--primary-color);
}

.skill-item:hover .skill-level {
  color: var(--text-primary);
}

@media (max-width: 992px) {
  #skills {
    padding: 4rem 0;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 600px) {
  #skills {
    padding: 3rem 0;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 2rem auto 0;
  }

  .skill-item {
    padding: 1.75rem 1.25rem;
  }

  .skill-icon {
    width: 60px;
    height: 60px;
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  #skills .section-title {
    font-size: 2rem;
  }

  .skill-name {
    font-size: 1rem;
  }

  .skill-level {
    font-size: 0.85rem;
  }
}

.skill-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

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

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

.service-card {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.service-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.service-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Portfolio Section */
.portfolio {
  background: var(--bg-secondary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1200px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

.portfolio-card {
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.portfolio-image {
  height: 200px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  font-weight: bold;
}

.portfolio-content {
  padding: 2rem;
}

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

.portfolio-subtitle {
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.portfolio-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Enhanced Stories Section */
/* Stories Feed Design */
.stories-feed {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding: 0 1rem;
}

.story-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.story-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-primary);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
}

.story-item:hover {
  transform: translateX(8px);
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.2);
}

.story-item:hover::before {
  transform: scaleY(1);
}

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

.platform-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.platform-icon.instagram {
  background: linear-gradient(
    45deg,
    #f09433,
    #e6683c,
    #dc2743,
    #cc2366,
    #bc1888
  );
}

.platform-icon.linkedin {
  background: #0a66c2;
}

.platform-icon::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: rotate(45deg);
  transition: all 0.5s;
  opacity: 0;
}

.story-item:hover .platform-icon::after {
  animation: shine 0.5s ease-in-out;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
    opacity: 0;
  }
}

.story-meta {
  flex: 1;
}

.story-platform-name {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

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

.story-content {
  margin-bottom: 1.25rem;
}

.story-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.story-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.story-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.story-link {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.8rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(6, 182, 212, 0.2);
  line-height: 1.2;
}

.story-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.35);
}

.story-link i {
  transition: transform 0.2s ease;
  font-size: 0.7rem;
}

.story-link:hover i {
  transform: translateX(3px);
}

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

.story-tag {
  background: rgba(6, 182, 212, 0.1);
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(6, 182, 212, 0.2);
}

/* Story CTA */
.story-cta {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
  background: rgba(6, 182, 212, 0.05);
  border-radius: 20px;
  border: 1px solid rgba(6, 182, 212, 0.1);
}

.cta-text {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
}

/* Instagram CTA Text - Default (Desktop) */
.mobile-text {
  display: none;
}

/* Responsive Design */
@media (max-width: 992px) {
  .stories-feed {
    grid-template-columns: 1fr;
    max-width: 800px;
  }
}

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

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

  .story-item {
    padding: 1.25rem;
  }

  .story-item:hover {
    transform: translateY(-4px) translateX(0);
  }

  .story-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  /* Instagram CTA Text - Mobile */
  .mobile-text {
    display: inline;
  }
  
  .desktop-text {
    display: none;
  }

  .story-link {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .story-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .platform-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

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

/* Testimonials Section */
.testimonials {
  background: var(--bg-secondary);
}

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

.testimonial-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.testimonial-text {
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.testimonial-info h4 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

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

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

.contact-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-text {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  text-align: center;
  padding: 2rem;
}

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

.fade-in {
  animation: fadeInUp 0.6s ease-out;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    border-top: none;
  }

  .nav-menu.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero {
    background: linear-gradient(rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.6)),
      url("../img/banner.jpg") right center/cover;
  }

  .contact-buttons .btn {
    font-size: 0.9rem !important;
    padding: 0.7rem 1.5rem !important;
    white-space: nowrap;
    min-width: 200px;
    text-align: center;
    justify-content: center;
  }

  /* Keep hero consistent in light mode on mobile too */
  [data-theme="light"] .hero {
    background: linear-gradient(rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.6)),
      url("../img/banner.jpg") right center/cover;
    color: #ffffff;
  }

  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .section {
    padding: 3rem 0;
  }

  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stats-container {
    grid-template-columns: 1fr;
  }

  .hero {
    background: linear-gradient(rgba(15, 23, 42, 0.5), rgba(15, 23, 42, 0.5)),
      url("../img/banner.jpg") 75% center/cover;
    align-items: flex-end;
    padding-bottom: 3rem;
  }

  /* Keep hero consistent in light mode on small mobile too */
  [data-theme="light"] .hero {
    background: linear-gradient(rgba(15, 23, 42, 0.5), rgba(15, 23, 42, 0.5)),
      url("../img/banner.jpg") 75% center/cover;
    color: #ffffff;
  }
}
