/* Base Styles - Light Mode Only */
:root {
  --bg-light: #f0f2fa;
  --bg-card-light: #ffffff;
  --text-primary-light: #1a202c;
  --text-secondary-light: #4a5568;
  --accent-color: #6c63ff;
  --accent-hover: #574dbf;
  --card-shadow-light: 0 8px 30px rgba(0, 0, 0, 0.1);
  --transition-speed: 0.3s;
}

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

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  min-height: 100vh;
  margin: 0;
  line-height: 1.6;
  background-color: var(--bg-light);
  color: var(--text-primary-light);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(108, 99, 255, 0.05) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(108, 99, 255, 0.05) 0%, transparent 20%);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(108, 99, 255, 0.03) 2px, rgba(108, 99, 255, 0.03) 4px);
  pointer-events: none;
}

.hero-content {
  z-index: 1;
  max-width: 1400px;
  padding: 0 20px;
}

h1.glitch-text {
  font-size: 4.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -1px;
  position: relative;
  animation: colorCycle 8s infinite;
}

@keyframes colorCycle {
  0%, 100% { color: var(--text-primary-light); }
  25% { color: #6c63ff; }
  50% { color: #3b82f6; }
  75% { color: #8b5cf6; }
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.glitch-text::before {
  left: 2px;
  text-shadow: -1px 0 #ff63c7;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-text::after {
  left: -2px;
  text-shadow: -1px 0 #63c7ff;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% { clip: rect(31px, 9999px, 94px, 0); }
  5% { clip: rect(70px, 9999px, 71px, 0); }
  10% { clip: rect(29px, 9999px, 43px, 0); }
  15% { clip: rect(54px, 9999px, 73px, 0); }
  20% { clip: rect(58px, 9999px, 33px, 0); }
  25% { clip: rect(47px, 9999px, 29px, 0); }
  30% { clip: rect(86px, 9999px, 73px, 0); }
  35% { clip: rect(92px, 9999px, 25px, 0); }
  40% { clip: rect(66px, 9999px, 93px, 0); }
  45% { clip: rect(87px, 9999px, 67px, 0); }
  50% { clip: rect(32px, 9999px, 12px, 0); }
  55% { clip: rect(69px, 9999px, 86px, 0); }
  60% { clip: rect(65px, 9999px, 85px, 0); }
  65% { clip: rect(54px, 9999px, 13px, 0); }
  70% { clip: rect(65px, 9999px, 15px, 0); }
  75% { clip: rect(40px, 9999px, 78px, 0); }
  80% { clip: rect(87px, 9999px, 40px, 0); }
  85% { clip: rect(5px, 9999px, 73px, 0); }
  90% { clip: rect(28px, 9999px, 59px, 0); }
  95% { clip: rect(29px, 9999px, 44px, 0); }
  100% { clip: rect(44px, 9999px, 66px, 0); }
}

@keyframes glitch-anim2 {
  0% { clip: rect(18px, 9999px, 97px, 0); }
  5% { clip: rect(74px, 9999px, 42px, 0); }
  10% { clip: rect(96px, 9999px, 64px, 0); }
  15% { clip: rect(101px, 9999px, 33px, 0); }
  20% { clip: rect(7px, 9999px, 78px, 0); }
  25% { clip: rect(25px, 9999px, 63px, 0); }
  30% { clip: rect(47px, 9999px, 25px, 0); }
  35% { clip: rect(54px, 9999px, 26px, 0); }
  40% { clip: rect(23px, 9999px, 75px, 0); }
  45% { clip: rect(38px, 9999px, 27px, 0); }
  50% { clip: rect(23px, 9999px, 86px, 0); }
  55% { clip: rect(47px, 9999px, 95px, 0); }
  60% { clip: rect(22px, 9999px, 5px, 0); }
  65% { clip: rect(54px, 9999px, 62px, 0); }
  70% { clip: rect(54px, 9999px, 47px, 0); }
  75% { clip: rect(82px, 9999px, 33px, 0); }
  80% { clip: rect(79px, 9999px, 5px, 0); }
  85% { clip: rect(17px, 9999px, 30px, 0); }
  90% { clip: rect(36px, 9999px, 50px, 0); }
  95% { clip: rect(88px, 9999px, 24px, 0); }
  100% { clip: rect(32px, 9999px, 15px, 0); }
}

.subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary-light);
  margin-bottom: 3rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--transition-speed) ease;
}

.scroll-indicator:hover {
  opacity: 1;
}

.scroll-indicator span {
  margin-bottom: 10px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.arrow-down {
  animation: bounce 2s infinite;
}

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

/* Testimonials Carousel */
.testimonials-carousel {
  margin: 30px auto 1px;
  max-width: 1400;
  width: 1400;
  overflow: hidden;
  position: relative;
  padding: 0 20px;
}

.testimonials-track {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: scroll 30s linear infinite;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.testimonial-card {
  width: 400px;
  min-width: 400px;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.08);
  padding: 20px 25px;
  border-radius: 12px;
  border: 1px solid rgba(108, 99, 255, 0.2);
  flex-shrink: 0;
  box-sizing: border-box;
}

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 10px;
  font-style: italic;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.testimonial-author {
  font-size: 0.85rem;
  color: var(--text-secondary-light);
  opacity: 0.7;
  text-align: right;
}

@keyframes scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-3010px, 0, 0);
  }
}


.testimonial-carousel:hover .testimonials-track {
  animation-play-state: paused;
}


/* Projects Section */
.projects-section {
  padding: 100px 20px;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  font-weight: 700;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-color);
  border-radius: 2px;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.project-card {
  height: 100%;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  background: var(--bg-card-light);
  box-shadow: var(--card-shadow-light);
  transition: transform var(--transition-speed) ease, 
              box-shadow var(--transition-speed) ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.project-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-image-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
}

.project-image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

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

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

.project-link {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--accent-color);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: background-color var(--transition-speed) ease,
              transform var(--transition-speed) ease;
}

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

.project-info {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-info h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--text-primary-light);
}

.project-info p {
  color: var(--text-secondary-light);
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 5px 12px;
  background-color: rgba(108, 99, 255, 0.1);
  color: var(--accent-color);
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Footer */
footer {
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.social-links {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 20px;
}

.social-icon {
  color: var(--text-secondary-light);
  transition: color var(--transition-speed) ease,
              transform var(--transition-speed) ease;
}

.social-icon:hover {
  color: var(--accent-color);
  transform: translateY(-3px);
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .projects-container {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  h1.glitch-text {
    font-size: 3rem;
  }
  
  .subtitle {
    font-size: 1.2rem;
  }
  
  .projects-container {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  h1.glitch-text {
    font-size: 2.5rem;
  }
  
  .projects-container {
    grid-template-columns: 1fr;
  }
}