/* ==========================================================================
   ASHIANA CREATIONS - Luxury Architectural & Vastu Consultancy Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800;900&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette */
  --bg-dark: #090e17;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(26, 38, 66, 0.85);
  --bg-card-light: #162032;
  
  --primary-gold: #d4af37;
  --primary-gold-hover: #f3c846;
  --gold-glow: rgba(212, 175, 55, 0.25);
  --gold-gradient: linear-gradient(135deg, #bf953f 0%, #fcf6ba 25%, #b38728 50%, #fbf5b7 75%, #aa771c 100%);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-gold: #e2c057;
  
  --vastu-north: #0284c7; /* Water - Blue */
  --vastu-east: #16a34a;  /* Air/Sun - Green */
  --vastu-south: #dc2626; /* Fire - Red */
  --vastu-west: #d97706;  /* Earth/Metal - Orange */
  
  --border-subtle: rgba(212, 175, 55, 0.18);
  --border-active: rgba(212, 175, 55, 0.6);
  
  --shadow-lux: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
  --shadow-gold: 0 10px 30px -10px rgba(212, 175, 55, 0.3);
  
  --font-serif: 'Cinzel', serif;
  --font-sans: 'Outfit', sans-serif;

  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(212, 175, 55, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(2, 132, 199, 0.05) 0%, transparent 45%);
  background-attachment: fixed;
}

h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  letter-spacing: 0.5px;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(9, 14, 23, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-fast);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 84px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--primary-gold);
  object-fit: cover;
  box-shadow: 0 0 15px var(--gold-glow);
}

.brand-text h1 {
  font-size: 1.4rem;
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.brand-text span {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  list-style: none;
}

.nav-item {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  padding: 8px 12px;
  border-radius: 6px;
  position: relative;
  cursor: pointer;
}

.nav-item:hover, .nav-item.active {
  color: var(--text-main);
  background: rgba(212, 175, 55, 0.08);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--primary-gold);
  border-radius: 2px;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #090e17;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-gold);
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 12px 25px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  border-color: var(--primary-gold);
  background: rgba(212, 175, 55, 0.1);
  color: var(--primary-gold);
}

/* Page Section Switching */
.page-tab {
  display: none;
  padding-top: 110px;
  padding-bottom: 80px;
  min-height: calc(100vh - 100px);
}

.page-tab.active-tab {
  display: block;
  animation: fadeIn 0.4s ease-out forwards;
}

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

/* Hero Section */
.hero {
  position: relative;
  padding: 40px 0 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--border-subtle);
  padding: 6px 16px;
  border-radius: 20px;
  color: var(--text-gold);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3.2rem;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text-main);
}

.hero-title span {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
}

.stat-item h3 {
  font-size: 1.8rem;
  color: var(--primary-gold);
  font-weight: 700;
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.hero-image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lux);
}

.hero-image-wrapper img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.hero-image-wrapper:hover img {
  transform: scale(1.03);
}

.domain-float-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(9, 14, 23, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-active);
  padding: 12px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.domain-float-badge span {
  font-family: monospace;
  color: var(--primary-gold);
  font-size: 0.95rem;
  font-weight: 600;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.section-subtitle {
  color: var(--primary-gold);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.3rem;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 80px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 32px 24px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-active);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-gold);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--primary-gold);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* About Us Page */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 80px;
}

.about-text h2 {
  font-size: 2.6rem;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.about-image {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lux);
}

.about-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 80px;
}

.phil-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 32px;
  border-radius: 16px;
}

.phil-card h3 {
  color: var(--primary-gold);
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.phil-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Drawing & Blueprint Studio */
.drawing-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
  background: var(--bg-card);
  padding: 16px 24px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
}

.filter-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tag-btn {
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.tag-btn.active, .tag-btn:hover {
  background: var(--primary-gold);
  color: #090e17;
  font-weight: 600;
}

.drawings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
  margin-bottom: 80px;
}

.drawing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.drawing-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-gold);
}

.drawing-thumb {
  position: relative;
  height: 240px;
  background: #0f172a;
  overflow: hidden;
}

.drawing-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.drawing-card:hover .drawing-thumb img {
  transform: scale(1.05);
}

.drawing-facing-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(9, 14, 23, 0.85);
  border: 1px solid var(--primary-gold);
  color: var(--primary-gold);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

.drawing-info {
  padding: 20px;
}

.drawing-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-gold);
  margin-bottom: 8px;
  font-weight: 600;
}

.drawing-info h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.drawing-info p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.drawing-actions {
  display: flex;
  gap: 10px;
}

/* Interactive Vastu Compass */
.compass-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 80px;
}

.compass-visual {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 0 auto;
  border-radius: 50%;
  border: 8px solid rgba(212, 175, 55, 0.2);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 4px;
  background: #070c14;
  padding: 4px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(212, 175, 55, 0.1);
}

.zone-cell {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 6px;
  text-align: center;
}

.zone-cell:hover, .zone-cell.active-zone {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--primary-gold);
  transform: scale(1.04);
}

.zone-cell .dir-code {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary-gold);
}

.zone-cell .dir-element {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.compass-center {
  background: var(--gold-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #090e17;
  font-weight: 900;
  font-size: 0.9rem;
}

.compass-details-panel {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px;
}

.zone-header-title {
  font-size: 1.6rem;
  color: var(--primary-gold);
  margin-bottom: 6px;
}

.zone-element-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.1);
}

.zone-section {
  margin-bottom: 16px;
}

.zone-section h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.zone-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-good {
  background: rgba(22, 163, 74, 0.2);
  border: 1px solid rgba(22, 163, 74, 0.5);
  color: #4ade80;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
}

.tag-bad {
  background: rgba(220, 38, 38, 0.2);
  border: 1px solid rgba(220, 38, 38, 0.5);
  color: #f87171;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
}

/* Vastu Score Calculator */
.calc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 40px;
  max-width: 760px;
  margin: 0 auto 80px;
}

.calc-step {
  display: none;
}

.calc-step.active-step {
  display: block;
  animation: fadeIn 0.3s ease;
}

.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}

.option-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  text-align: left;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.option-btn:hover, .option-btn.selected {
  border-color: var(--primary-gold);
  background: rgba(212, 175, 55, 0.1);
}

.score-display-box {
  text-align: center;
  padding: 32px;
}

.score-number {
  font-size: 4rem;
  font-weight: 800;
  color: var(--primary-gold);
  font-family: var(--font-serif);
}

/* Social Media Studio */
.social-hub {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 80px;
}

.social-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 32px;
}

.social-preview-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
}

.post-copy-box {
  background: #070c14;
  border: 1px dashed var(--border-subtle);
  border-radius: 10px;
  padding: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 12px;
  position: relative;
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary-gold);
  color: #090e17;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active-modal {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: #0d1524;
  border: 1px solid var(--border-active);
  border-radius: 20px;
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
  box-shadow: var(--shadow-lux);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
}

.modal-close:hover {
  color: var(--primary-gold);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  color: var(--text-gold);
  margin-bottom: 6px;
  font-weight: 600;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary-gold);
  background: rgba(212, 175, 55, 0.05);
}

/* Footer */
footer {
  background: #05080e;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  margin-top: 12px;
  font-size: 0.9rem;
  max-width: 320px;
}

.footer-title {
  color: var(--text-main);
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a:hover {
  color: var(--primary-gold);
}

.social-icons-row {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.social-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.social-icon-btn:hover {
  background: var(--primary-gold);
  color: #090e17;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  font-size: 0.85rem;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero, .about-hero, .compass-wrapper, .social-cards-grid {
    grid-template-columns: 1fr;
  }
  .philosophy-grid, .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-title {
    font-size: 2.4rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .options-grid {
    grid-template-columns: 1fr;
  }
  .philosophy-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
}
