/* Base Styles & Reset */
:root {
  --primary-color: #6c63ff;
  --secondary-color: #ff6584;
  --dark-color: #2d2d39;
  --light-color: #f9f9ff;
  --text-color: #555;
  --heading-color: #333;
  --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 62.5%;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  background-color: #fff;
  overflow-x: hidden;
  line-height: 1.6;
  font-size: 1.6rem;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-weight: 700;
  line-height: 1.3;
}

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

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

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

.btn {
  display: inline-block;
  padding: 1.2rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.5rem;
  text-transform: capitalize;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-gradient {
  background: var(--gradient);
  color: white;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
}

.btn-gradient:hover::before {
  opacity: 1;
}

.pulse-btn {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.section-header {
  text-align: center;
  margin-bottom: 6rem;
  position: relative;
}

.section-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.6rem;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
}

.section-divider {
  height: 4px;
  width: 80px;
  background: var(--gradient);
  margin: 0 auto;
  border-radius: 2px;
}

.highlight-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.loader-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 5px solid transparent;
  border-top-color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  animation: spin 1s linear infinite;
  margin-bottom: 2rem;
}

.loader-text {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--dark-color);
  letter-spacing: 2px;
}

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

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 0;
  z-index: 999;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  padding: 1.5rem 0;
}

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

.logo {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--dark-color);
}

.logo span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 3rem;
}

.nav-link {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--dark-color);
  position: relative;
  padding: 0.5rem 0;
}

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

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

.hamburger {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1000;
}

.hamburger .line {
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--dark-color);
  transition: var(--transition);
}

.hamburger .line1 {
  top: 0;
}

.hamburger .line2 {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger .line3 {
  bottom: 0;
}

.hamburger.active .line1 {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active .line2 {
  opacity: 0;
}

.hamburger.active .line3 {
  transform: translateY(-9px) rotate(-45deg);
}

.nav-highlight {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--gradient);
  transition: all 0.3s ease;
  z-index: -1;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 8rem;
  position: relative;
  overflow: hidden;
}

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

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 5rem;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.8rem;
  margin-bottom: 3rem;
  color: var(--text-color);
}

.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 3rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(108, 99, 255, 0.1);
  color: var(--primary-color);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--gradient);
  color: white;
  transform: translateY(-3px);
}

.hero-image {
  position: relative;
}

.image-wrapper {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.hero-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  opacity: 0.2;
  z-index: 1;
}

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

.mouse {
  width: 25px;
  height: 40px;
  border: 2px solid var(--dark-color);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 5px;
}

.scroller {
  width: 3px;
  height: 10px;
  background: var(--dark-color);
  border-radius: 3px;
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(10px);
    opacity: 0.5;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Services Section */
.services {
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.service-card {
  background: white;
  border-radius: 15px;
  padding: 3rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 2rem;
  position: relative;
}

.service-icon i {
  font-size: 3rem;
  color: white;
  position: relative;
  z-index: 2;
  line-height: 80px;
}

.icon-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  border-radius: 50%;
  z-index: 1;
}

.service-card h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.service-card p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.service-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.service-card:hover .service-wave {
  transform: scaleX(1);
}

.services-bg-shape {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(108, 99, 255, 0.05);
  z-index: -1;
}

/* Portfolio Section */
.portfolio {
  padding: 8rem 0;
  background: #f9f9ff;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
}

.filter-btn {
  padding: 0.8rem 2rem;
  border-radius: 50px;
  background: white;
  border: 1px solid #eee;
  font-size: 1.4rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn.active {
  background: var(--gradient);
  color: white;
  border-color: transparent;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 3rem;
}

.portfolio-item {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.portfolio-item-inner {
  position: relative;
  overflow: hidden;
}

.portfolio-item img, .portfolio-item video {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

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

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item:hover img, .portfolio-item:hover video {
  transform: scale(1.1);
}

.overlay-content {
  text-align: center;
  padding: 2rem;
  color: white;
  transform: translateY(20px);
  transition: var(--transition);
}

.portfolio-item:hover .overlay-content {
  transform: translateY(0);
}

.overlay-content h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.overlay-content p {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.view-btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  background: var(--gradient);
  color: white;
  border-radius: 50px;
  font-size: 1.4rem;
  font-weight: 500;
  transition: var(--transition);
}

.view-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.portfolio-cta {
  text-align: center;
  margin-top: 6rem;
}

.portfolio-cta p {
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

/* About Section */
.about {
  padding: 8rem 0;
  position: relative;
}

.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-image {
  position: relative;
}

.image-frame {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

.image-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.frame-decoration {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--primary-color);
  border-radius: 20px;
  z-index: -1;
}

.shape-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(108, 99, 255, 0.1);
}

.shape1 {
  width: 100px;
  height: 100px;
  top: -30px;
  right: -30px;
  animation: float 6s ease-in-out infinite;
}

.shape2 {
  width: 60px;
  height: 60px;
  bottom: -20px;
  left: -20px;
  animation: float 4s ease-in-out infinite reverse;
}

.shape3 {
  width: 40px;
  height: 40px;
  top: 50%;
  right: -20px;
  animation: float 5s ease-in-out infinite 1s;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0);
  }
}

.about-content p {
  font-size: 1.6rem;
  margin-bottom: 2rem;
}

.skills {
  margin: 3rem 0;
}

.skills h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.skill-tag {
  padding: 0.6rem 1.5rem;
  background: rgba(108, 99, 255, 0.1);
  color: var(--primary-color);
  border-radius: 50px;
  font-size: 1.4rem;
  font-weight: 500;
}

.experience {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
}

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

.exp-number {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.exp-text {
  font-size: 1.4rem;
  color: var(--text-color);
}

.about-bg-shape {
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(108, 99, 255, 0.05);
  z-index: -1;
}

/* Ventures Section */
.compact-ventures {
  padding: 8rem 0;
  background: #f9f9ff;
}

.compact-slider {
  display: flex;
  gap: 3rem;
  overflow-x: auto;
  padding: 2rem 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.compact-slider::-webkit-scrollbar {
  display: none;
}

.compact-slide {
  flex: 0 0 350px;
  scroll-snap-align: start;
}

.compact-card {
  background: white;
  border-radius: 15px;
  padding: 3rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  height: 100%;
  transition: var(--transition);
}

.compact-card:hover {
  transform: translateY(-10px);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.card-header img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.card-header h4 {
  font-size: 1.8rem;
}

.compact-card p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.compact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-weight: 500;
  font-size: 1.4rem;
  transition: var(--transition);
}

.compact-link:hover {
  color: var(--secondary-color);
  gap: 1rem;
}

.card-highlight {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.compact-card:hover .card-highlight {
  transform: scaleX(1);
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}

.slider-controls button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: 1px solid #eee;
  color: var(--primary-color);
  cursor: pointer;
  transition: var(--transition);
}

.slider-controls button:hover {
  background: var(--gradient);
  color: white;
  border-color: transparent;
}

/* Contact Section */
.contact {
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

.contact-info h3 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.contact-info p {
  font-size: 1.6rem;
  margin-bottom: 3rem;
}

.contact-methods {
  margin-bottom: 3rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-method i {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(108, 99, 255, 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.contact-social h4 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.contact-form .form-group {
  margin-bottom: 2rem;
  position: relative;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1.5rem;
  border: 1px solid #eee;
  border-radius: 10px;
  font-size: 1.5rem;
  font-family: inherit;
  transition: var(--transition);
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.input-highlight {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: var(--transition);
}

.contact-form input:focus ~ .input-highlight,
.contact-form textarea:focus ~ .input-highlight {
  width: 100%;
}

.contact-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%236c63ff"></path><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5" fill="%236c63ff"></path><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%236c63ff"></path></svg>');
  background-size: cover;
  background-repeat: no-repeat;
  z-index: -1;
}

/* Footer */
.footer {
  background: var(--dark-color);
  color: white;
  padding: 6rem 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-logo .logo {
  font-size: 2.4rem;
  color: white;
  margin-bottom: 1.5rem;
  display: block;
}

.footer-logo p {
  font-size: 1.5rem;
  opacity: 0.8;
  margin-bottom: 2rem;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--gradient);
}

.footer-links h3,
.footer-services h3,
.footer-contact h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: white;
}

.footer-links ul li,
.footer-services ul li {
  margin-bottom: 1rem;
}

.footer-links ul li a,
.footer-services ul li a {
  font-size: 1.5rem;
  opacity: 0.8;
  transition: var(--transition);
}

.footer-links ul li a:hover,
.footer-services ul li a:hover {
  opacity: 1;
  color: var(--primary-color);
}

.footer-contact ul li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.5rem;
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

.footer-bottom {
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 1.4rem;
  opacity: 0.7;
}

.back-to-top {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.back-to-top:hover {
  transform: translateY(-5px);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero .container,
  .about .container,
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .hero-content {
    order: 1;
    text-align: center;
  }
  
  .hero-image {
    order: 2;
    margin-top: 5rem;
  }
  
  .about-image {
    margin-bottom: 5rem;
  }
  
  .section-title {
    font-size: 3rem;
  }
  
  .hero-content h1 {
    font-size: 4rem;
  }
}

@media (max-width: 768px) {
  .navbar .container {
    position: relative;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: white;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    z-index: 999;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .hamburger {
    display: block;
    z-index: 1000;
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
  
  .experience {
    flex-direction: column;
    gap: 2rem;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .hero-content h1 {
    font-size: 3.5rem;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .btn {
    padding: 1rem 2rem;
    font-size: 1.4rem;
  }
  
  .service-card,
  .compact-card {
    padding: 2rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* Updated Responsive Styles */
@media (max-width: 1200px) {
  .container {
    max-width: 1000px;
  }
  
  .hero-content h1 {
    font-size: 4.5rem;
  }
}

@media (max-width: 992px) {
  .container {
    max-width: 800px;
  }
  
  .hero .container,
  .about .container,
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .hero-content {
    order: 1;
    text-align: center;
    margin-bottom: 4rem;
  }
  
  .hero-image {
    order: 2;
    margin: 0 auto;
    max-width: 600px;
  }
  
  .about-image {
    margin-bottom: 5rem;
  }
  
  .section-title {
    font-size: 3rem;
  }
  
  .compact-slider {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 3rem;
  }
  
  .navbar .container {
    position: relative;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: white;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    z-index: 999;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .hamburger {
    display: block;
    z-index: 1000;
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
  
  .experience {
    flex-direction: column;
    gap: 2rem;
  }
  
  .hero-content h1 {
    font-size: 3.5rem;
  }
  
  .compact-slider {
    grid-template-columns: 1fr;
  }
  
  .compact-slide {
    flex: 0 0 100%;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 2rem;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .btn {
    padding: 1rem 2rem;
    font-size: 1.4rem;
  }
  
  .service-card,
  .compact-card {
    padding: 2rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .filter-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .filter-btn {
    width: 100%;
    max-width: 200px;
    margin-bottom: 1rem;
  }
}

/* Updated Slider Styles */
.compact-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

.compact-slider::-webkit-scrollbar {
  display: none;
}

.compact-slide {
  scroll-snap-align: start;
  min-width: 300px;
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .compact-slider {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .compact-slide {
    min-width: 250px;
  }
}

/* Fix for mobile viewport units */
@supports (-webkit-touch-callout: none) {
  .hero {
    min-height: -webkit-fill-available;
  }
}

/* Video Hover Play Styles */
.portfolio-item video {
  transition: all 0.3s ease;
}

.portfolio-item:hover video {
  transform: scale(1.03);
}

/* Ensure videos don't autoplay on mobile */
@media (hover: hover) {
  .portfolio-item video {
    pointer-events: none; /* Let hover work on parent */
  }
  
  .portfolio-item:hover video {
    pointer-events: auto;
  }
}

/* Touch device fallback */
@media (hover: none) {
  .portfolio-item video {
    pointer-events: auto;
  }
  
  .portfolio-overlay {
    display: none !important; /* Hide overlay on touch devices */
  }
}