:root {
  --color-primary: #1F2544;
  --color-secondary: #474F7A;
  --color-accent: #81689D;
  --color-highlight: #FFD0EC;
  --color-white: #ffffff;
  --color-light: #f8f9fa;
  --color-text: #2c3e50;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;

  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 2rem;

  --shadow-sm: 0 2px 8px rgba(31, 37, 68, 0.08);
  --shadow-md: 0 4px 16px rgba(31, 37, 68, 0.12);
  --shadow-lg: 0 8px 32px rgba(31, 37, 68, 0.16);

  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.6s ease;

  --font-display: 'Playfair Display', serif;
  --font-body: 'Nunito', sans-serif;

  --max-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text);
  background: linear-gradient(135deg, var(--color-light) 0%, var(--color-white) 100%);
  overflow-x: hidden;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

h1 {
  font-size: 2.2rem;
  color: var(--color-primary);
}

h2 {
  font-size: 1.8rem;
  color: var(--color-primary);
}

h3 {
  font-size: 1.4rem;
  color: var(--color-secondary);
}

p {
  margin-bottom: var(--space-sm);
  font-size: 0.9rem;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: var(--transition-base);
}

a:hover {
  color: var(--color-secondary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  padding: var(--space-md) 0;
  position: relative;
  z-index: 100;
  transform-origin: top;
  transition: transform var(--transition-base);
}

.header.scrolled {
  transform: translateY(-100%);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 4rem;
  position: relative;
  z-index: 20;
}

.logo img {
  display: inline-block;
  transform: rotate(-5deg);
  transition: transform var(--transition-normal);
}

.logo:hover img {
  transform: rotate(0);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .logo img {
    width: 3rem;
    position: relative;
    z-index: 20;
  }
}

@media (max-width: 768px) {
  .logo img {
    width: 3rem;
    position: relative;
    z-index: 20;
  }
}

@media (max-width: 576px) {
  .logo img {
    width: 2rem;
    position: relative;
    z-index: 20;
  }
}

@media (max-width: 400px) {
  .logo img {
    width: 2rem;
    position: relative;
    z-index: 20;
  }
}

.nav {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.nav a {
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: var(--transition-base);
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-highlight);
  transform: translateX(-50%);
  transition: var(--transition-base);
}

.nav a:hover::after {
  width: 80%;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  cursor: pointer;
  padding: var(--space-xs);
  z-index: 101;
}

.burger span {
  width: 1.5rem;
  height: 2px;
  background: var(--color-white);
  transition: var(--transition-base);
  border-radius: 2px;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(0.4rem, 0.4rem);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(0.4rem, -0.4rem);
}

.hero {
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(129, 104, 157, 0.1) 0%, rgba(255, 208, 236, 0.2) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 40%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 208, 236, 0.3) 0%, transparent 70%);
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  font-size: 1rem;
  color: var(--color-secondary);
  margin-bottom: var(--space-lg);
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
  color: var(--color-white);
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition-base);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

.section {
  padding: var(--space-xl) 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
  position: relative;
}

.section-header::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-highlight));
  margin: var(--space-sm) auto 0;
  border-radius: 2px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-highlight));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-base);
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  font-size: 2rem;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
}

.card p {
  font-size: 0.85rem;
  color: var(--color-text);
  margin-bottom: 0;
}

.product-card {
  text-align: center;
}

.product-image {
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-highlight) 100%);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-image i {
  font-size: 4rem;
  color: var(--color-white);
  opacity: 0.7;
}

.product-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-accent);
  margin: var(--space-sm) 0;
}

.transformation-section {
  background: var(--color-primary);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.transformation-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(255, 208, 236, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.transformation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
  position: relative;
  z-index: 1;
}

.transformation-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-base);
}

.transformation-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.02);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-md);
}

.portfolio-item {
  position: relative;
  height: 350px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
}

.portfolio-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(31, 37, 68, 0.7);
  opacity: 0;
  transition: var(--transition-base);
  z-index: 1;
}

.portfolio-item:hover::before {
  opacity: 1;
}

.portfolio-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--space-md);
  color: var(--color-white);
  transform: translateY(100%);
  transition: var(--transition-base);
  z-index: 2;
}

.portfolio-item:hover .portfolio-content {
  transform: translateY(0);
}

.contact-section {
  background: linear-gradient(135deg, rgba(129, 104, 157, 0.05) 0%, rgba(255, 208, 236, 0.1) 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.contact-info {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
}

.contact-item {
  display: flex;
  align-items: start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.contact-item i {
  font-size: 1.2rem;
  color: var(--color-accent);
  margin-top: 0.2rem;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-secondary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem;
  border: 2px solid rgba(129, 104, 157, 0.2);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition-base);
  background: var(--color-white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(129, 104, 157, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox-group {
  display: flex;
  align-items: start;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 0.2rem;
}

.checkbox-group label {
  font-size: 0.8rem;
  margin-bottom: 0;
}

.map-container {
  width: 100%;
  height: 350px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: var(--space-lg);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-md) 0;
  margin-top: var(--space-xl);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-links a {
  color: var(--color-highlight);
  font-size: 0.8rem;
}

.footer-links a:hover {
  color: var(--color-white);
}

.privacy-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-md);
  box-shadow: var(--shadow-lg);
  transform: translateY(100%);
  transition: var(--transition-base);
  z-index: 1000;
  opacity: 0;
}

.privacy-popup.show {
  transform: translateY(0);
  opacity: 1;
}

.privacy-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.privacy-text {
  flex: 1;
  font-size: 0.85rem;
}

.privacy-buttons {
  display: flex;
  gap: var(--space-sm);
}

.privacy-buttons .btn {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-content h1 {
  font-size: 5rem;
  background: linear-gradient(135deg, var(--color-accent), var(--color-highlight));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-sm);
}

.thankyou-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.thankyou-content {
  max-width: 600px;
}

.thankyou-icon {
  font-size: 4rem;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
  animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.policy-section {
  max-width: 900px;
  margin: 0 auto;
}

.policy-section h2 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.policy-section h3 {
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}

.policy-section ul {
  margin-left: var(--space-md);
  margin-bottom: var(--space-sm);
}

.policy-section li {
  margin-bottom: var(--space-xs);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: var(--color-primary);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-xl) var(--space-md);
    gap: var(--space-sm);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
  }

  .nav.active {
    opacity: 1;
    pointer-events: all;
  }

  .burger {
    display: flex;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .hero {
    padding: var(--space-lg) 0;
  }

  .section {
    padding: var(--space-lg) 0;
  }

  .hero-text h1 {
    font-size: 1.6rem;
  }
}