/* Variables & Reset */
:root {
  --primary-color: #2563eb; /* Royal Blue */
  --primary-dark: #1e40af;
  --primary-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  --accent-color: #f59e0b; /* Golden Amber */
  --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --text-dark: #0f172a;
  --text-light: #64748b;
  --bg-light: #f8fafc;
  --bg-card: #ffffff;
  --white: #ffffff;
  --max-width: 1280px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.15);
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.7;
  background-color: var(--bg-light);
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

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

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.2;
}

.section-title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  width: 100%;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 4rem;
  font-size: 1.1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px);
}

/* Header */
header {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.logo img {
  height: 45px;
  width: auto;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
}

nav ul {
  display: flex;
  gap: 2.5rem;
}

nav a {
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.95rem;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

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

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
  z-index: 101;
}

/* Hero Section - Stylized */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 4rem 0;
  overflow: hidden;
  background-color: #0f172a; /* Fallback */
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  filter: contrast(1.1) brightness(0.8);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.7) 50%, rgba(15, 23, 42, 0.3) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  color: var(--white);
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-text h1 {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-text p {
  font-size: 1.25rem;
  color: #cbd5e1;
  margin-bottom: 2.5rem;
  max-width: 600px;
  font-weight: 300;
}

.hero-shape-container {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-shape {
  width: 400px;
  height: 400px;
  background: var(--primary-gradient);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: morph 8s ease-in-out infinite;
  position: relative;
  z-index: 1;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(37, 99, 235, 0.3);
  border: 5px solid rgba(255,255,255,0.1);
}

.hero-shape img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.2);
}

/* Products Section */
.products {
  padding: 6rem 0;
  background-color: var(--white);
}

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

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  transition: all 0.4s ease;
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.product-image {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.product-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  justify-content: center;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.product-info {
  padding: 1.5rem;
  text-align: center;
}

.product-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.product-price {
  display: inline-block;
  padding: 0.25rem 1rem;
  background-color: #fffbeb;
  color: var(--accent-color);
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* Features Section */
.features {
  padding: 6rem 0;
  background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%);
}

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

.feature-item {
  background: var(--white);
  padding: 3rem 2rem;
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #bfdbfe;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: var(--primary-color);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  box-shadow: var(--shadow-glow);
}

/* Contact Section */
.contact {
  padding: 6rem 0;
  background-color: var(--white);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 0;
  background-color: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid #e2e8f0;
}

.contact-info {
  background: var(--primary-gradient);
  color: var(--white);
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.contact-info::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

.contact-info h3 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.info-icon {
  background: rgba(255,255,255,0.2);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.contact-form-wrapper {
  padding: 4rem 3rem;
  background: var(--white);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1.25rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  outline: none;
  transition: all 0.3s;
  font-family: var(--font-body);
  font-size: 1rem;
  background-color: #f8fafc;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Footer */
footer {
  background-color: #0f172a;
  color: #e2e8f0;
  padding: 5rem 0 2rem;
  font-size: 0.95rem;
}

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

.footer-col h3 {
  color: var(--white);
  font-family: var(--font-heading);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

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

.footer-links a {
  color: #94a3b8;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.newsletter input {
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #334155;
  width: 100%;
  margin-bottom: 0.75rem;
  background-color: #1e293b;
  color: var(--white);
}

.newsletter input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.newsletter button {
  width: 100%;
  padding: 1rem;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}

.newsletter button:hover {
  background: var(--primary-dark);
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #1e293b;
  color: #64748b;
}

/* Animation Keyframes */
@keyframes morph {
  0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
  50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
  75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
  100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

/* Responsive Design */

/* Tablet / Small Desktop */
@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-text {
    margin-bottom: 1rem;
    order: 1;
  }
  
  .hero-shape-container {
    order: 2;
  }
  
  .hero-text h1 {
    font-size: 3.5rem;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .contact-info::before {
    display: none;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  /* Mobile Navigation */
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    text-align: center;
    gap: 1.5rem;
    border-top: 1px solid #f1f5f9;
  }

  nav ul.active {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
  }

  /* Sections Padding */
  .hero, .products, .features, .contact {
    padding: 4rem 0;
  }

  .section-title {
    font-size: 2.25rem;
  }

  .section-subtitle {
    margin-bottom: 2.5rem;
  }

  /* Hero adjustments */
  .hero-text h1 {
    font-size: 2.75rem;
  }

  .hero-shape {
    width: 300px;
    height: 300px;
  }

  /* Contact Section */
  .contact-info, .contact-form-wrapper {
    padding: 2rem;
  }

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

/* Small Mobile */
@media (max-width: 480px) {
  .logo span {
    font-size: 1.2rem;
  }

  .hero-text h1 {
    font-size: 2.25rem;
  }
  
  .hero-shape {
    width: 250px;
    height: 250px;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .hero-text div {
    flex-direction: column;
    width: 100%;
  }

  .hero-text div a {
    margin: 0 !important;
  }

  .contact-info h3 {
    font-size: 1.75rem;
  }
}
