:root {
  --color-primary: #424343;
  --color-accent-light: #a39396;
  --color-accent-medium: #7e6d73;
  --color-accent-dark: #61505a;

  --background: #ffffff;
  --foreground: var(--color-primary);
  --background-secondary: #fdfdfd;

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

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

body {
  font-family: var(--font-body);
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  /* Hide default cursor to use our custom one */
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 15px;
  height: 15px;
  background-color: var(--color-primary);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
  mix-blend-mode: difference;
}

.custom-cursor.hover {
  width: 60px;
  height: 60px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 70%);
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 3px 6px rgba(255, 255, 255, 0.3), inset 0 -2px 4px rgba(0, 0, 0, 0.02), 0 4px 10px rgba(0, 0, 0, 0.05);
  mix-blend-mode: normal;
}

h1,
h2,
h3,
h4,
h5,
h6,
.title,
.nav a {
  font-family: var(--font-heading);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-accent-medium);
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background-color: transparent;
  transition: all 0.3s ease;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1rem 5%;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  height: 55px;
  width: auto;
  object-fit: contain;
  display: block;
}

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

.nav a.active {
  font-weight: 600;
  color: var(--color-accent-dark);
  border-bottom: 2px solid var(--color-accent-medium);
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8%;
  min-height: 100vh;
  padding: 100px 5% 0;
  /* Offset for fixed header */
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  position: relative;
  z-index: 20;
}

.title {
  font-size: clamp(3rem, 4vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

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

.subtitle {
  font-size: 1.2rem;
  color: var(--color-accent-dark);
  margin-bottom: 2.5rem;
}

.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  background-color: var(--color-accent-medium);
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, background 0.3s;
}

.btn:hover {
  background-color: var(--color-accent-dark);
  transform: translateY(-2px);
  color: #fff;
}

.outline-btn {
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  border: 2px solid var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.outline-btn:hover {
  background: var(--color-primary);
  color: var(--background);
}

.hero-image {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 5;
}

.hero-logo {
  max-width: 500px;
  width: 100%;
  position: relative;
  z-index: 10;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
}

#particle-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  z-index: 0;
  will-change: transform, opacity;
}

.particle {
  position: absolute;
  background-color: var(--color-accent-light);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-accent-medium);
  animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.2;
  }

  50% {
    transform: scale(1.5);
    opacity: 0.8;
  }

  100% {
    transform: scale(1);
    opacity: 0.2;
  }
}



.services {
  padding: 6rem 5%;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--color-primary);
}

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

.card {
  background: var(--background-secondary);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, margin-bottom 0.3s;
  margin-bottom: 2rem;
}

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

.about-card {
  background: var(--background);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(163, 147, 150, 0.15) 0%, rgba(126, 109, 115, 0.0) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.about-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(163, 147, 150, 0.3);
}

.about-card:hover::before {
  opacity: 1;
}

.about-card h3,
.about-card p {
  position: relative;
  z-index: 2;
}

.portfolio-slider-section {
  padding: 4rem 0;
  overflow: hidden;
  background-color: transparent;
}

.slider-track {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  width: max-content;
  will-change: transform;
}

.slide-rect {
  width: 350px;
  height: 250px;
  background-color: #f1f1f1;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #999;
  font-size: 1.2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.slide-rect:hover {
  transform: scale(1.03);
}

.poster-rect {
  width: 280px;
  height: 350px;
  background-color: #f1f1f1;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #999;
  font-size: 1.2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.poster-rect:hover {
  transform: scale(1.03);
}

.story-rect {
  width: 225px;
  height: 400px;
  background-color: #f1f1f1;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #999;
  font-size: 1.2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.story-rect:hover {
  transform: scale(1.03);
}

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

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* Contact Section */
.contact-section {
  padding: 6rem 5%;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 10;
  background: linear-gradient(135deg, rgba(163, 147, 150, 0.15) 0%, rgba(126, 109, 115, 0.35) 100%);
}

.contact-glass-container {
  width: 100%;
  max-width: 600px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.8), 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 24px;
  padding: 3rem 2.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form .input-group input {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.8);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-primary);
  outline: none;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
  cursor: none;
  /* keep custom cursor */
}

.contact-form .input-group input:focus {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--color-accent-medium);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5), inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

/* Glass Popup */
.glass-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10001;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.glass-popup.hidden {
  opacity: 0;
  visibility: hidden;
}

.glass-popup .popup-content {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border-radius: 24px;
  padding: 3rem;
  text-align: center;
  max-width: 400px;
  width: 90%;
  transform: scale(1);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-popup.hidden .popup-content {
  transform: scale(0.8);
}

.glass-popup h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-primary);
  margin: 1rem 0 0.5rem;
}

.glass-popup p {
  color: var(--text-medium);
  line-height: 1.6;
}

.footer {
  background: var(--background-secondary);
  padding: 4rem 5% 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

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

.footer-logo {
  height: 50px;
  margin-bottom: 0.5rem;
}

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

.bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.9rem;
  color: var(--color-accent-dark);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s, transform 0.8s;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s, transform 0.8s;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Loading Screen */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--background);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.loading-logo {
  width: 80px;
  height: 80px;
  animation: pulse-logo 1.5s infinite alternate ease-in-out;
}

.preloader-bar-bg {
  width: 150px;
  height: 2px;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.preloader-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent-medium), var(--color-accent-dark));
  border-radius: 4px;
  animation: preloaderWidth 1.5s forwards cubic-bezier(0.1, 0.8, 0.25, 1);
}

@keyframes pulse-logo {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.1);
    opacity: 1;
  }
}

@keyframes preloaderWidth {
  0% {
    width: 0%;
  }

  100% {
    width: 100%;
  }
}

/* Footer Gradient Links */
.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.5rem;
}

.footer-contact-link svg {
  transition: transform 0.3s ease;
}

.footer-contact-link:hover svg {
  transform: scale(1.1) rotate(-5deg);
}

.hover-gradient {
  position: relative;
  color: var(--text-dark);
  transition: color 0.3s ease;
}

.hover-gradient::before {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  background: linear-gradient(45deg, var(--color-primary), var(--color-accent-medium));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.footer-contact-link:hover .hover-gradient {
  color: transparent;
}

.footer-contact-link:hover .hover-gradient::before {
  opacity: 1;
}

.main-footer-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
}

.footer-logo-img {
  height: 120px;
  max-width: 100%;
  object-fit: contain;
}

.footer-contact-col {
  display: flex;
  gap: 3rem;
  align-items: center;
  flex-wrap: wrap;
  flex: 1 1 auto;
  justify-content: flex-end;
}

/* Services Section */
.services-section {
  padding: 6rem 0;
  background-color: var(--background);
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  padding: 0 5%;
}

.service-card {
  background: var(--background-secondary);
  padding: 1.2rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  text-align: left;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 80px;
}

.icon-wrapper {
  position: relative;
  width: 48px;
  height: 48px;
  margin-right: 12px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.service-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.icon-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-accent-medium) 100%);
  mix-blend-mode: color;
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border-color: var(--color-accent-light);
  background: linear-gradient(135deg, rgba(163, 147, 150, 0.05) 0%, rgba(126, 109, 115, 0.1) 100%);
}

.service-card:hover .icon-wrapper {
  transform: scale(1.1) rotate(-5deg);
}

.service-card h3 {
  font-size: 0.95rem;
  color: var(--color-primary);
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .header { padding: 1rem 5%; }
  .nav { flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
  .nav a { font-size: 0.85rem; }
  
  .hero { flex-direction: column; padding-top: 120px; text-align: center; gap: 2rem; }
  .hero-content { order: 2; }
  .hero-image { order: 1; margin-bottom: 2rem; }
  .hero-logo { max-width: 250px; }
  .title { font-size: 2.2rem; }
  .cta-group { justify-content: center; }
  
  .section-header h2 { font-size: 2rem !important; }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .service-card {
    padding: 0.8rem 0.5rem;
    min-height: 60px;
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
  
  .icon-wrapper {
    margin-right: 0;
    margin-bottom: 0.5rem;
    width: 32px;
    height: 32px;
  }
  
  .service-card h3 {
    font-size: 0.75rem;
    line-height: 1.2;
  }
  
  .about-section { padding: 2rem 5% !important; }
  .services-section { padding: 2rem 0 !important; }
  .portfolio-slider-section { 
    padding: 2rem 0 !important; 
    margin-top: 0 !important; 
  }
  
  .slider-container { padding: 1rem 0 !important; }
  .section-header { margin-bottom: 1.5rem !important; }
  
  .portfolio-grid { grid-template-columns: 1fr; }
  .main-footer-layout { flex-direction: column; justify-content: center; }
  .footer-contact-col { flex-direction: column; justify-content: center; gap: 1.5rem; }
  .footer-logo-img { height: auto; width: 90vw; max-width: 320px; }
  .footer-contact-link { font-size: 1.2rem; }
  
  .slide-rect { width: 140px; height: 100px; }
  .poster-rect { width: 100px; height: 125px; }
  .story-rect { width: 90px; height: 160px; }
  .slider-track { gap: 1rem; }
}