/* ==========================================================================
   CSS Design Tokens & Core Styling
   ========================================================================== */

:root {
  /* Colors */
  --bg-color: #0a0909;
  --bg-card: #121010;
  --bg-card-glass: rgba(18, 16, 16, 0.7);
  --text-primary: #f5f5f7;
  --text-secondary: #8e8e93;
  --text-muted: #515154;
  --accent: #ff5c00;
  --accent-glow: rgba(255, 92, 0, 0.15);
  
  /* Fonts */
  --font-heading: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Layout */
  --container-max-width: 1200px;
  --header-height: 80px;
  
  /* Timing */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: auto; /* Required for Lenis smooth scrolling */
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: #252424;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-secondary);
}

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

/* Custom Cursor */
.custom-cursor {
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  transition: width 0.3s, height 0.3s, background-color 0.3s;
  mix-blend-mode: difference;
}

.custom-cursor-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
}

.custom-cursor.hovered {
  width: 60px;
  height: 60px;
  background-color: var(--accent);
  border-color: transparent;
  opacity: 0.15;
}

/* Layout Utilities */
.container {
  width: 90%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 80px 0;
}

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

.accent {
  color: var(--accent);
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--bg-card);
  border: 1px solid #252424;
  margin-bottom: 20px;
}

.badge-accent {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
}

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

.btn-primary:hover {
  background-color: var(--accent);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px var(--accent-glow);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border-color: #252424;
}

.btn-secondary:hover {
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-small {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-full {
  width: 100%;
}

.btn-large {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  z-index: 1000;
  background-color: rgba(10, 9, 9, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.05em;
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  position: relative;
  padding: 5px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent);
  transition: var(--transition-smooth);
}

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

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

.btn-nav {
  padding: 8px 20px;
  font-size: 0.85rem;
  background: var(--bg-card);
  border-color: #252424;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 0;
}

.hero-label {
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  margin-bottom: 30px;
  max-width: 1100px;
}

/* Split text effect styling */
.text-reveal span {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  filter: blur(5px);
}

.hero-desc {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  max-width: 700px;
  margin-bottom: 50px;
}

.hero-stats {
  display: flex;
  gap: 60px;
  margin-bottom: 50px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--text-primary);
  font-weight: 800;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.hero-cta {
  display: flex;
  gap: 20px;
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about-section {
  background-color: var(--bg-card);
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 20px;
}

.lead-text {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 30px;
}

.body-text {
  font-size: 1.05rem;
}

/* ==========================================================================
   Experience Section (Timeline Scroll)
   ========================================================================== */

.experience-section {
  position: relative;
  width: 100%;
  background-color: var(--bg-color);
}

/* Sticky Container that holds both the heading and timeline track */
.timeline-sticky-wrapper {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.timeline-header {
  padding-bottom: 20px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-top: 10px;
}

/* Horizontal Track scrollable container */
.timeline-track-container {
  width: 100%;
  overflow: hidden;
}

.timeline-track {
  display: flex;
  gap: 40px;
  padding: 40px 10%;
  width: max-content; /* Dynamically grows with child elements */
  will-change: transform;
}

.timeline-card {
  width: 380px;
  background-color: var(--bg-card);
  border: 1px solid #1a1919;
  border-radius: 16px;
  padding: 40px;
  flex-shrink: 0;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 320px;
}

.timeline-card:hover {
  border-color: var(--accent);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  transform: translateY(-8px);
}

.card-year {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--accent);
  font-weight: 800;
}

.card-content h3 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-top: 15px;
  margin-bottom: 5px;
}

.card-content h4 {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 15px;
}

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

/* ==========================================================================
   Works/Projects Section (Stacking Scroll)
   ========================================================================== */

.projects-section {
  position: relative;
  background-color: var(--bg-color);
  padding-bottom: 100px;
}

.stacking-cards-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 80px;
}

.project-card {
  position: sticky;
  top: 15vh; /* Card stick point on scroll */
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: #121010;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  overflow: hidden;
  height: 70vh; /* Set standard height for cards */
  box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.6);
  transform-origin: center top;
  will-change: transform, filter;
}

.project-info {
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.project-name {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
}

.project-desc {
  margin-bottom: 30px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.project-tags span {
  padding: 6px 14px;
  background-color: #1c1a1a;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.project-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 40px;
}

/* Decorative gradients for project preview backgrounds */
.preview-gradient-1 {
  background: linear-gradient(135deg, #1e0b04 0%, #ff5c00 100%);
}
.preview-gradient-2 {
  background: linear-gradient(135deg, #0b1a1c 0%, #00d2ff 100%);
}
.preview-gradient-3 {
  background: linear-gradient(135deg, #170d1e 0%, #bd00ff 100%);
}

/* Visual website screenshots styling */
.project-img {
  width: 90%;
  height: 80%;
  object-fit: cover;
  object-position: top;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
  transition: var(--transition-smooth);
}

.project-card:hover .project-img {
  transform: scale(1.03) translateY(-10px);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   Testimonials Slider Section
   ========================================================================== */

.testimonials-section {
  background-color: var(--bg-color);
  border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.testimonials-slider-container {
  max-width: 800px;
  margin: 60px auto 0;
  position: relative;
  overflow: hidden;
}

.testimonials-slider {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.testimonial-slide {
  width: 100%;
  flex-shrink: 0;
  text-align: center;
  padding: 0 40px;
}

.testimonial-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 40px;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.author-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.author-title {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 5px;
}

.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 50px;
}

.slider-btn {
  background: none;
  border: 1px solid #252424;
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition-smooth);
}

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

.slider-dots {
  display: flex;
  gap: 10px;
}

.slider-dots .dot {
  width: 8px;
  height: 8px;
  background-color: #252424;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.slider-dots .dot.active {
  background-color: var(--accent);
  width: 24px;
  border-radius: 4px;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact-section {
  background-color: var(--bg-card);
  border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.contact-card {
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--bg-color);
  border: 1px solid #1a1919;
  border-radius: 30px;
  padding: 80px 40px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.contact-title {
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 20px;
}

.contact-desc {
  max-width: 600px;
  margin: 0 auto 50px;
  font-size: 1.1rem;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.email-copy-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  background-color: var(--bg-card);
  padding: 8px 8px 8px 24px;
  border-radius: 40px;
  border: 1px solid #1a1919;
}

.email-text {
  font-weight: 500;
  font-size: 1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  padding: 40px 0;
  background-color: var(--bg-color);
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.footer-links {
  display: flex;
  gap: 20px;
}

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

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

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .grid-2col {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .project-card {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
    position: relative; /* Disable sticky stacking for smaller mobile/tablet screens for better usability */
    top: 0;
  }
  
  .project-info {
    padding: 40px;
  }
  
  .project-preview {
    height: 350px;
    padding: 20px;
  }

  .project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 0 20px;
  }
  
  .nav-menu {
    display: none; /* Mobile menu defaults */
  }
  
  .hero-stats {
    flex-wrap: wrap;
    gap: 30px;
  }
  
  .contact-card {
    padding: 50px 20px;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}
