/* 
  Core Variables & Theming 
*/
:root {
  --bg-color: #050505;
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --accent-base: #6200ea; /* vibrant purple */
  --accent-alt: #00e5ff; /* electric blue */
  --surface-dark: rgba(20, 20, 25, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-smooth: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 
  Resets 
*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* 
  Global Background Gradients 
*/
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(30, 0, 70, 0.15) 0%, rgba(5, 5, 5, 1) 60%),
              radial-gradient(circle at 80% 20%, rgba(0, 229, 255, 0.05) 0%, transparent 40%);
  z-index: -1;
  pointer-events: none;
}

/* 
  Typography 
*/
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  margin-bottom: 10px;
}

p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.text-gradient {
  background: linear-gradient(90deg, var(--accent-alt), var(--accent-base));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 
  Layout & Containers 
*/
.main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: 120px 0;
}

.section-header {
  margin-bottom: 60px;
}

.section-header .line {
  height: 3px;
  width: 60px;
  background: linear-gradient(90deg, var(--accent-alt), var(--accent-base));
  border-radius: 2px;
  margin-top: 15px;
}

.glass-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0) 100%);
  border-top: 1px solid var(--glass-border);
  padding: 100px 40px;
  border-radius: 30px;
  margin: 60px 0;
  backdrop-filter: blur(10px);
}

/* 
  Buttons & Badges 
*/
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-smooth);
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-base), #9000ff);
  color: #fff;
  box-shadow: 0 10px 30px rgba(98, 0, 234, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(98, 0, 234, 0.5);
  filter: brightness(1.1);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(5px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
}

/* 
  Navigation
*/
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0;
  position: relative;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.profile-logo {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-base);
  transition: var(--transition-smooth);
}

.profile-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px var(--accent-base);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--accent-alt);
}

/* 
  Hero Section
*/
#hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 10;
}

.tagline {
  display: inline-block;
  color: var(--accent-alt);
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 20px;
  padding: 8px 16px;
  background: rgba(0, 229, 255, 0.1);
  border-radius: 50px;
  border: 1px solid rgba(0, 229, 255, 0.2);
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 40px 0;
}

.stat-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-dark);
  padding: 10px 20px;
  border-radius: 30px;
  border: 1px solid var(--glass-border);
  font-weight: 500;
  font-size: 0.95rem;
  backdrop-filter: blur(10px);
}

.stat-badge i {
  color: #ffb400;
  font-size: 1.2rem;
}

.hero-cta {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  /* Blend video edges into background color */
  box-shadow: inset 0 0 15px 15px var(--bg-color), inset 0 0 50px var(--bg-color);
}

.hero-background::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  /* Additional dark overlay to make text pop */
  background: radial-gradient(circle at center, transparent 30%, var(--bg-color) 90%);
  pointer-events: none;
}

.hero-bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  opacity: 0.25; /* Slightly reduced opacity */
  object-fit: cover;
  /* Fade edges of the video natively */
  -webkit-mask-image: radial-gradient(ellipse at center, black 60%, transparent 100%);
  mask-image: radial-gradient(ellipse at center, black 60%, transparent 100%);
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

/* 
  About & Services Grid 
*/
.about-grid, .services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.about-card, .service-card {
  background: var(--surface-dark);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 40px 30px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.about-card:hover, .service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(30, 30, 35, 0.8);
}

.about-card i, .service-icon i {
  font-size: 2.5rem;
  color: var(--accent-alt);
  margin-bottom: 20px;
  display: inline-block;
}

.about-card h3, .service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

/* 
  Portfolio Showcase (Videos/Images)
*/
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.project-card {
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface-dark);
  border: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.media-container {
  position: relative;
  width: 100%;
  padding-top: 60%; /* Aspect Ratio 16:9 approx */
  overflow: hidden;
  background: #111;
}

.project-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-card:hover .project-media {
  transform: scale(1.05);
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.8);
  opacity: 0;
  transition: var(--transition-smooth);
  pointer-events: none;
}

.project-card:hover .play-overlay {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.project-info {
  padding: 25px;
}

.project-info h3 {
  font-size: 1.4rem;
  margin-bottom: 5px;
}

.project-info p {
  font-size: 0.9rem;
  color: var(--accent-alt);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* 
  Client Project Showcase 
*/
#client-showcase {
  padding-top: 60px;
}

.client-showcase-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  overflow: hidden;
}

@media (min-width: 900px) {
  .client-showcase-container {
    flex-direction: row;
    align-items: center;
  }
}

.client-showcase-content {
  flex: 1;
  padding: 40px;
}

.client-profile {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--glass-border);
}

.client-portrait {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-base);
}

.client-name-bold {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.client-website-link {
  color: var(--accent-alt);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.client-website-link:hover {
  text-decoration: underline;
  color: #fff;
}

.project-details h4 {
  font-size: 1.8rem;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.project-details .subtitle {
  color: var(--accent-alt);
  font-weight: 500;
  margin-bottom: 20px;
}

.project-description {
  font-size: 1.05rem;
  margin-bottom: 30px;
  line-height: 1.7;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #ddd;
  display: flex;
  align-items: center;
  gap: 5px;
}

.tag i {
  color: var(--accent-alt);
}

.visit-btn {
  padding: 12px 25px;
  font-size: 1rem;
}

.client-showcase-media {
  flex: 1;
  position: relative;
  min-height: 400px;
  border-radius: 20px;
  overflow: hidden;
}

@media (min-width: 900px) {
  .client-showcase-media {
    min-height: 600px;
  }
}

.slideshow-link {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.auto-slideshow {
  width: 100%;
  height: 100%;
  position: relative;
}

.slideshow-track {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide.active {
  opacity: 1;
}

.click-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
  backdrop-filter: blur(2px);
}

.click-overlay span {
  background: var(--accent-base);
  color: white;
  padding: 15px 30px;
  border-radius: 30px;
  font-weight: 600;
  font-family: var(--font-heading);
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

.slideshow-link:hover .click-overlay {
  opacity: 1;
}

.slideshow-link:hover .click-overlay span {
  transform: translateY(0);
}

/* 
  Timeline / Experience
*/
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: var(--glass-border);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 40px;
}

.timeline-dot {
  position: absolute;
  left: 14px;
  top: 20px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-secondary);
  border: 3px solid var(--bg-color);
  z-index: 2;
  transition: var(--transition-smooth);
}

.highlight-dot {
  background: var(--accent-alt);
  box-shadow: 0 0 10px var(--accent-alt);
}

.timeline-content.glass-card {
  background: var(--surface-dark);
  border: 1px solid var(--glass-border);
  padding: 30px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.timeline-item:hover .timeline-dot {
  background: var(--accent-base);
  transform: scale(1.3);
}

.timeline-content .date {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--accent-alt);
  margin-bottom: 15px;
  border: 1px solid var(--glass-border);
}

.timeline-content h3 {
  font-size: 1.4rem;
  margin-bottom: 5px;
}

.timeline-content h4 {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 15px;
}

/* 
  Testimonials
*/
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  position: relative;
}

.testimonial-card i.ph-quotes {
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.05);
  position: absolute;
  top: 20px;
  right: 20px;
}

.testimonial-card p {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 30px;
  color: #fff;
  position: relative;
  z-index: 2;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.client-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-alt), var(--accent-base));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-heading);
}

.client-name {
  font-weight: 600;
  font-size: 1.1rem;
}

/* 
  Footer
*/
footer {
  border-top: 1px solid var(--glass-border);
  padding: 100px 0 30px;
  background: linear-gradient(0deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 80px;
}

.footer-left h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.footer-left p {
  margin-bottom: 30px;
  font-size: 1.2rem;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--surface-dark);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-size: 1.5rem;
  transition: var(--transition-smooth);
}

.social-links a:hover {
  background: var(--accent-base);
  transform: translateY(-5px);
  border-color: var(--accent-base);
}

.location {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.footer-bottom {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 30px;
}

/* 
  Responsive Design Let's adjust for screens
*/
@media (max-width: 900px) {
  .navbar {
    flex-direction: column;
    gap: 20px;
  }
  
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-content {
    text-align: center;
    margin: 0 auto;
  }

  .stats, .hero-cta {
    justify-content: center;
  }
  
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .footer-right {
    align-items: flex-start;
  }
}

/* Carousel Styles */
.carousel-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

.carousel-item {
  min-width: 100%;
  position: static;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-smooth);
  backdrop-filter: blur(5px);
}

.carousel-btn:hover {
  background: var(--accent-base);
  border-color: var(--accent-base);
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

.fullscreen-indicator {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.6);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transition: var(--transition-smooth);
  pointer-events: none;
  z-index: 5;
}

.project-card:hover .fullscreen-indicator {
  opacity: 1;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  width: 90%;
  max-width: 1000px;
  position: relative;
}

#modal-video {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0,0,0,0.8);
}

.close-modal {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  z-index: 1000;
}

.close-modal:hover {
  color: var(--accent-alt);
}
