:root {
  /* Color Variables */
  --primary-color: #2563eb;
  --secondary-color: #1e40af;
  --text-color: #1f2937;
  --light-text: #f3f4f6;
  --background-light: #ffffff;
  --background-dark: #111827;
  --accent-color: #3b82f6;
  
  /* Font Variables */
  --heading-font: 'Poppins', sans-serif;
  --body-font: 'Inter', sans-serif;
  
  /* Spacing Variables */
  --section-padding: 5rem 2rem;
  --container-width: 1200px;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  overflow-x: hidden;
}

body {
  font-family: var(--body-font);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Container */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(17, 24, 39, 0.1);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.header.light-bg {
  background: rgba(17, 24, 39, 0.8);
}

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

.logo img {
  height: 50px;
  width: auto;
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-menu a {
  color: var(--light-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-menu a:hover {
  color: var(--primary-color);
}

.nav-menu a.active {
  color: var(--primary-color);
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
}

.bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--light-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 400px;
  height: 100vh;
  background: var(--background-dark);
  z-index: 2000;
  padding: 2rem;
  overflow-y: auto;
  transition: right 0.3s ease;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.mobile-menu.active {
  right: 0;
}

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

.mobile-menu-header .logo img {
  height: 40px;
}

.mobile-menu-close {
  background: transparent;
  border: none;
  color: var(--light-text);
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.mobile-nav a {
  color: var(--light-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.25rem;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--primary-color);
}

.mobile-contact {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-contact .contact-item {
  margin-bottom: 1rem;
}

.home-header {
  background: rgba(17, 24, 39, 0.1);
}

/* Hero Section */
.hero {
  height: 100vh;
  background-image: url('../media/stan@work.jpg');
  background-size: cover;
  background-position: center 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--light-text);
  text-align: center;
  width: 100%;
}

.hero h1 {
  font-family: var(--heading-font);
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.scroll-down {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--light-text);
  animation: bounce 2s infinite;
  cursor: pointer;
  z-index: 2;
  background: rgba(0, 0, 0, 0.5);
  padding: 1rem;
  border-radius: 50%;
  backdrop-filter: blur(4px);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.scroll-down:hover {
  background: var(--primary-color);
  transform: translateX(-50%) translateY(-5px);
}

.scroll-down.clicked {
  background: var(--secondary-color);
  transform: translateX(-50%) scale(0.9);
  box-shadow: 0 0 25px rgba(37, 99, 235, 0.5);
}

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

/* Services Section */
.services {
  padding: var(--section-padding);
  background: #f5f7fa;
  position: relative;
  overflow: hidden;
}

.services .container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 0;
  overflow: visible;
}

.services-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 2rem;
  padding: 2rem 2rem 2rem 0;
  margin-right: -2rem;
  width: calc(100vw - (50vw - var(--container-width)/2) + 2rem);
  max-width: 100vw;
  scrollbar-width: none;
  scroll-behavior: smooth;
  cursor: grab;
  user-select: none;
  position: relative;
}

.services-slider:active {
  cursor: grabbing;
  transform: scale(0.98);
  transition: transform 0.2s ease;
}

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

/* Remove shadow indicators */
.services-slider::before,
.services-slider::after {
  display: none;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  position: relative;
  z-index: 2;
}

.slider-btn {
  background: var(--background-dark);
  color: var(--light-text);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

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

.slider-dots {
  display: flex;
  gap: 0.5rem;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-color);
  opacity: 0.3;
  transition: all 0.3s ease;
}

.slider-dot.active {
  opacity: 1;
  background: var(--primary-color);
}

.service-card {
  overflow: visible;
  min-width: 300px;
  background: var(--background-dark);
  color: var(--light-text);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  scroll-snap-align: start;
  transition: transform 0.3s ease;
}

.service-card h3 {
  color: var(--light-text);
  margin-bottom: 1rem;
}

/* Projects Section */
.projects {
  padding: var(--section-padding);
  background: var(--background-dark);
  color: var(--light-text);
  overflow: hidden;
}

.projects .container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 0;
  overflow: visible;
}

.projects-container {
  position: relative;
  margin-top: 2rem;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.1);
  color: var(--light-text);
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
  background: var(--primary-color);
  color: var(--light-text);
}

.projects-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 2rem;
  padding: 2rem 2rem 2rem 0;
  margin-right: -2rem;
  width: calc(100vw - (50vw - var(--container-width)/2) + 2rem);
  max-width: 100vw;
  scrollbar-width: none;
  scroll-behavior: smooth;
  cursor: grab;
  user-select: none;
  position: relative;
}

.projects-grid:active {
  cursor: grabbing;
  transform: scale(0.98);
  transition: transform 0.2s ease;
}

.projects-grid::-webkit-scrollbar {
  display: none;
}

/* Remove shadow indicators */
.projects-grid::before,
.projects-grid::after {
  display: none;
}

.project-card {
  min-width: calc((100% - 4rem) / 3);
  background: var(--background-light);
  border-radius: 1rem;
  overflow: hidden;
  color: var(--text-color);
  position: relative;
  scroll-snap-align: start;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.project-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary-color);
  color: var(--light-text);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 10;
}

.project-image-container {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.project-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.project-image-container.has-mockup {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  overflow: visible;
  position: relative;
}

.project-image-container.has-mockup .mockup-content {
  width: 76%;
  height: 74%;
  object-fit: cover;
  object-position: center top;
  position: absolute;
  top: 47%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  border-radius: 2px;
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.1);
}

/* Add a subtle reflection effect to the mockup */
.project-image-container.has-mockup::after {
  content: '';
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 10px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 70%);
  z-index: 1;
  border-radius: 50%;
  filter: blur(2px);
}

.mockup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  object-fit: contain;
  pointer-events: none;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.project-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-technologies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.tech-tag {
  background: var(--background-dark);
  color: var(--light-text);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.project-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color);
  opacity: 0.7;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.view-all-projects {
  display: block;
  width: fit-content;
  margin: 3rem auto 0;
  padding: 1rem 2rem;
  background: var(--primary-color);
  color: var(--light-text);
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.view-all-projects:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

/* About Section */
.about {
  padding: var(--section-padding);
  background: var(--background-light);
}

.about .container {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about-content {
  flex: 1;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  border-radius: 1rem;
}

/* Footer */
.footer {
  background: var(--background-dark);
  color: var(--light-text);
  padding: 4rem 0 2rem;
  position: relative;
  box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.footer-info img {
  height: 100px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 80px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-nav a {
  color: var(--light-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--accent-color);
}

.footer-contact h4, .footer-legal h4 {
  margin-bottom: 1.25rem;
  font-family: var(--heading-font);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.contact-item svg {
  flex-shrink: 0;
  color: var(--primary-color);
}

.contact-item p {
  margin: 0;
}

.contact-item a {
  color: var(--light-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .project-card {
    min-width: calc((100% - 2rem) / 2);
  }
}

@media (max-width: 768px) {
  .project-card {
    min-width: 100%;
  }
  
  .header {
    padding: 1rem;
  }
  
  .nav-menu {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .about .container {
    flex-direction: column;
  }
  
  .services-slider {
    padding: 1rem 0;
  }
  
  .service-card {
    min-width: 250px;
  }
}

/* Page Header */
.page-header {
  background: var(--background-dark);
  color: var(--light-text);
  padding: 8rem 0 4rem;
  text-align: center;
}

.page-header h1 {
  font-family: var(--heading-font);
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Projects Page */
.projects-page {
  padding: var(--section-padding);
  background: var(--background-dark);
  color: var(--light-text);
}

.projects-grid-full {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.no-projects {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  font-size: 1.2rem;
}

/* Contact Page */
.contact-page {
  padding: var(--section-padding);
  background: var(--background-light);
  color: var(--text-color);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 2rem;
}

.contact-info h2,
.contact-form-container h2 {
  font-family: var(--heading-font);
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.contact-info p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.contact-details {
  margin-bottom: 2.5rem;
}

.contact-details .contact-item {
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  width: 100%;
}

.contact-details .contact-item svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-right: 0.75rem;
}

.contact-details .contact-item p {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 40px);
}

.contact-details .contact-item a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.contact-details .contact-item a:hover {
  color: var(--primary-color);
}

.contact-image {
  margin: 2rem 0;
  text-align: center;
}

.contact-image img {
  max-width: 250px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-form-container {
  background: var(--background-dark);
  color: var(--light-text);
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--light-text);
  font-family: var(--body-font);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.1);
}

.submit-btn {
  grid-column: span 2;
  background: var(--primary-color);
  color: var(--light-text);
  border: none;
  padding: 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.submit-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

.form-success {
  text-align: center;
  padding: 2rem;
}

.form-success svg {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.form-success h3 {
  margin-bottom: 1rem;
  font-family: var(--heading-font);
}

@media (max-width: 768px) {
  .projects-grid-full {
    grid-template-columns: 1fr;
  }
  
  .page-header {
    padding: 7rem 0 3rem;
  }
  
  .page-header h1 {
    font-size: 2.5rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .contact-form {
    grid-template-columns: 1fr;
  }
  
  .form-group.full-width {
    grid-column: span 1;
  }
  
  .submit-btn {
    grid-column: span 1;
  }
  
  .contact-image img {
    max-width: 200px;
  }
}

.turnstile-container {
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
}

.turnstile-container iframe {
  margin: 0 auto;
}

@media (max-width: 768px) {
  .turnstile-container {
    transform: scale(0.9);
    transform-origin: left center;
  }
}

.form-error,
.turnstile-error {
  color: #ff4d4d;
  margin: 0.75rem 0;
  padding: 0.75rem;
  border-radius: 0.5rem;
  background-color: rgba(255, 77, 77, 0.1);
  border: 1px solid rgba(255, 77, 77, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  animation: fadeIn 0.3s ease-in-out;
}

.form-error svg,
.turnstile-error svg {
  margin-right: 0.5rem;
  flex-shrink: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
