/* Prevent horizontal scrolling on mobile */
html {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

/* ===== CSS RESET & VARIABLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  max-width: 100%;
}

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #8b5cf6;
  --accent: #ec4899;
  --dark: #0f172a;
  --dark-lighter: #1e293b;
  --gray: #64748b;
  --light: #f8fafc;
  --white: #ffffff;
  --gradient-1: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-2: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.2);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== BASE STYLES ===== */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--light);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

/* ===== NAVIGATION BAR ===== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  max-width: 100vw;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  padding: 1rem 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transform: translateY(-100%);
  animation: slideDown 0.5s ease forwards;
  animation-delay: 0.5s;
  transition: transform 0.3s ease;
}

@keyframes slideDown {
  to {
    transform: translateY(0);
  }
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-1);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ===== HERO SECTION ===== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 80px;
  background-image: linear-gradient(135deg, #c8cfef 0%, #d4bced 100%),
                    url(images/logo-site2.jpeg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
}

/* Mobile background fix */
@media (max-width: 768px) {
  #hero::before {
    background-size: cover;
    background-position: center center;
  }
}


.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--white);
  max-width: 900px;
  padding: 2rem;
  animation: fadeInUp 1s ease;
  width: 100%;
  box-sizing: border-box;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.2);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.highlight {
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: clamp(1rem, 3vw, 1.5rem);
  margin-bottom: 2.5rem;
  opacity: 0.95;
  font-weight: 300;
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero-btn {
  display: inline-block;
  padding: 1rem 3rem;
  background: var(--white);
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  border-radius: 50px;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
}

.hero-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

.hero-btn:hover::before {
  width: 300px;
  height: 300px;
}

.hero-btn.clicked {
  animation: pulse 0.3s ease;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.95); }
}

/* ===== FLOATING SHAPES ===== */
.floating-shape {
  position: absolute;
  opacity: 0.1;
  animation: float 20s infinite ease-in-out;
}

.shape1 {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.shape2 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  border-radius: 50%;
  top: 60%;
  right: 5%;
  animation-delay: 2s;
}

.shape3 {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
  bottom: 20%;
  left: 10%;
  animation-delay: 4s;
}

.shape4 {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  top: 30%;
  right: 20%;
  animation-delay: 6s;
}

.shape5 {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  border-radius: 50%;
  top: 80%;
  left: 50%;
  animation-delay: 8s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(30px, -30px) rotate(120deg);
  }
  66% {
    transform: translate(-20px, 20px) rotate(240deg);
  }
}

/* ===== PORTFOLIO SECTION ===== */
#portfolio {
  padding: 100px 2rem 5rem;
  max-width: 1400px;
  margin: 0 auto;
  display: none;
  animation: fadeIn 0.5s ease;
  width: 100%;
  overflow-x: hidden;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

#portfolio h2 {
  text-align: center;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 1rem;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.category-text {
  text-align: center;
  font-size: 1.2rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 3rem;
  min-height: 1.5rem;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== FILTER BUTTONS ===== */
.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.filter-buttons button {
  padding: 0.75rem 2rem;
  background: var(--white);
  color: var(--gray);
  border: 2px solid var(--light);
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.filter-buttons button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--gradient-1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

.filter-buttons button:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.filter-buttons button.active {
  background: var(--gradient-1);
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

/* ===== GALLERY ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 2rem;
  padding: 1rem;
  width: 100%;
  max-width: 100%;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  cursor: pointer;
  display: none;
  animation: scaleIn 0.5s ease;
}

.gallery-item.visible {
  display: block;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.7) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.gallery-item::after {
  content: 'View';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: 600;
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  pointer-events: none;
}

.gallery-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.gallery-item:hover::before,
.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.lightbox img {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: var(--white);
  font-size: 3rem;
  font-weight: 300;
  cursor: pointer;
  transition: var(--transition);
  z-index: 2001;
}

.close:hover {
  color: var(--accent);
  transform: rotate(90deg);
}

.download-btn {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.75rem 2rem;
  background: var(--gradient-1);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}

.download-btn:hover {
  transform: translateX(-50%) translateY(-3px);
  box-shadow: var(--shadow-xl);
}

/* ===== CONTACT SECTION ===== */
#contact {
  padding: 100px 2rem 5rem;
  background: linear-gradient(135deg, var(--light) 0%, rgba(99, 102, 241, 0.05) 100%);
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.03) 0%, transparent 70%);
  animation: rotate 30s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

#contact h2 {
  text-align: center;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 1rem;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--gray);
  margin-bottom: 4rem;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

/* Contact Info */
.contact-info {
  display: grid;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 15px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.contact-icon {
  min-width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-1);
  border-radius: 12px;
  color: var(--white);
}

.contact-details h3 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.contact-details p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Contact Form */
.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.form-group {
  position: relative;
  margin-bottom: 2rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border: 2px solid var(--light);
  border-radius: 10px;
  background: var(--white);
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-group label {
  position: absolute;
  left: 1rem;
  top: 1rem;
  color: var(--gray);
  background: var(--white);
  padding: 0 0.5rem;
  transition: var(--transition);
  pointer-events: none;
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label,
.form-group select:focus ~ label,
.form-group select:valid ~ label {
  top: -0.5rem;
  left: 0.5rem;
  font-size: 0.85rem;
  color: var(--primary);
}

.form-group select {
  cursor: pointer;
}

.form-group select:valid ~ label {
  top: -0.5rem;
}

.submit-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: var(--gradient-1);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  margin: 0 auto;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.submit-btn:active {
  transform: translateY(-1px);
}

.success-message {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow-xl);
  text-align: center;
  animation: scaleIn 0.3s ease;
}

.success-message.show {
  display: block;
}

.success-message svg {
  width: 60px;
  height: 60px;
  color: #10b981;
  margin: 0 auto 1rem;
}

.success-message p {
  color: var(--dark);
  font-size: 1.1rem;
}

/* Quick Connect */
.quick-connect {
  text-align: center;
  padding: 3rem;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}

.quick-connect h3 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--dark);
}

.connect-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.connect-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.connect-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.connect-btn.whatsapp {
  background: #25d366;
  color: var(--white);
}

.connect-btn.call {
  background: var(--gradient-1);
  color: var(--white);
}

.connect-btn.email {
  background: var(--accent);
  color: var(--white);
}

/* Contact Responsive */
@media (max-width: 968px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .contact-info {
    order: 2;
  }
  
  .contact-form {
    order: 1;
  }
}

@media (max-width: 480px) {
  .contact-form {
    padding: 1.5rem;
  }
  
  .connect-buttons {
    flex-direction: column;
  }
  
  .connect-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--dark);
  color: var(--white);
  margin-top: 0;
}

.footer p {
  opacity: 0.8;
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 50%;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--gradient-1);
  transform: translateY(-3px);
}

.social-links svg {
  width: 20px;
  height: 20px;
}

/* Tablet and Mobile */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
    gap: 1.5rem;
    padding: 0 0.5rem;
    width: 100%;
  }
  
  .filter-buttons {
    gap: 0.5rem;
  }
  
  .filter-buttons button {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  #hero {
    background-size: cover;
    background-position: center center;
    background-attachment: scroll;
  }
  
  #hero::before {
    background-size: cover;
    background-position: center center;
  }
}

/* Mobile Only */
@media (max-width: 480px) {
  .gallery {
    grid-template-columns: 1fr 1fr;
gap: 1rem;
  }
  
  .close {
    top: 20px;
    right: 20px;
    font-size: 2rem;
  }
  
  #hero {
    min-height: 100vh;
    background-size: cover;
    background-position: center center;
    padding: 80px 1rem 2rem;
  }
  
  #hero::before {
    background-size: cover;
    background-position: center center;
  }
}
/* ===== LOADING ANIMATION ===== */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== UTILITY CLASSES ===== */
.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}