/* Custom Properties*/
:root {
    /* Colors */
    --primary-color: #800020;
    --secondary-color: #800020;
    --secondary-color-child:#ffffff;
    --accent-color: #FFD700;
    --dark-color: #000000;
    --light-color: #ffffff;
    --success-color: #28a745;
    --error-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    
    /* Text Colors */
    --text-primary: #000000;
    --text-secondary: #333333;
    --text-muted: #6c757d;
    --text-light: rgba(255, 255, 255, 0.9);
    
    /* Typography */
    --font-main: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Lora', Georgia, serif;
    --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
    
    /* Font Sizes - Fluid Typography */
    --fs-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --fs-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --fs-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --fs-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
    --fs-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --fs-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
    --fs-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 3rem);
    --fs-4xl: clamp(2.25rem, 1.8rem + 2.25vw, 4rem);
    
    /* Spacing - Consistent Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Layout */
    --container-max-width: 1200px;
    --container-padding: clamp(1rem, 5vw, 2rem);
    --navbar-height: 70px;
    --navbar-height-mobile: 60px;
    
    /* Transitions & Animations */
    --transition-fast: 0.15s ease;
    --transition-default: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 15px 35px rgba(0, 0, 0, 0.15);
    --shadow-colored: 0 8px 25px rgba(0, 34, 68, 0.2);
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, #003366 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, #aa0030 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, #ffed4a 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.5) 80%);
    
    /* Z-index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* Reset and Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-height);
}

body {
    font-family: var(--font-main);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--light-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--primary-color);
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-base); }

p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

/* Utility Classes */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Section Titles */
.section-title {
    position: relative;
    margin-bottom: var(--space-2xl);
    color: var(--primary-color);
    text-align: center;
    font-weight: 700;
    font-size: var(--fs-3xl);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-accent);
    margin: var(--space-md) auto 0;
    border-radius: var(--radius-full);
    transform: scaleX(0);
    transition: transform var(--transition-bounce);
}

.section-title.visible::after {
    transform: scaleX(1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-main);
    font-size: var(--fs-base);
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    text-align: center;
    letter-spacing: 0.025em;
    cursor: pointer;
    transition: all var(--transition-default);
    position: relative;
    overflow: hidden;
    z-index: 1;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    z-index: -1;
    transition: width var(--transition-slow);
}

.btn:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--light-color);
    box-shadow: var(--shadow-colored);
}

.btn-primary::before {
    background: var(--gradient-secondary);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-primary:hover:not(:disabled)::before {
    width: 100%;
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: var(--light-color);
    box-shadow: 0 4px 15px rgba(128, 0, 32, 0.3);
}

.btn-secondary::before {
    background: var(--gradient-primary);
}

.btn-secondary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(128, 0, 32, 0.4);
}

.btn-secondary:hover:not(:disabled)::before {
    width: 100%;
}

.btn-outline-light {
    background: transparent;
    color: var(--light-color);
    border: 2px solid var(--light-color);
}

.btn-outline-light::before {
    background: var(--light-color);
}

.btn-outline-light:hover:not(:disabled) {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline-light:hover:not(:disabled)::before {
    width: 100%;
}

.btn-sm {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--fs-sm);
}

.btn-lg {
    padding: var(--space-lg) var(--space-2xl);
    font-size: var(--fs-lg);
}


/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 0.9; }
}

@keyframes slideUpFade {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes fadePulse {
    0%, 100% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Loader */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: var(--z-modal);
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loader-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

.modern-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0;
}

.dot1 { animation: fadePulse 1.5s infinite ease-in-out 0s; }
.dot2 { animation: fadePulse 1.5s infinite ease-in-out 0.3s; }
.dot3 { animation: fadePulse 1.5s infinite ease-in-out 0.6s; }

/* Footer */
footer {
    background: var(--gradient-primary);
    color: var(--light-color);
    padding: var(--space-4xl) 0 var(--space-2xl);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    animation: scaleX 1.5s var(--transition-bounce) 0.5s forwards;
}

footer a {
    color: var(--text-light);
    text-decoration: none;
    transition: color var(--transition-default);
    position: relative;
}

footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: aliceblue;
    transition: width var(--transition-default);
}

footer a:hover {
    color: var(--accent-color);
}

footer a:hover::after {
    width: 100%;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    margin-right: var(--space-md);
    transition: all var(--transition-bounce);
    color: var(--accent-color);
    position: relative;
    overflow: hidden;
}

.social-icons a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-color);
    border-radius: var(--radius-full);
    transform: scale(0);
    transition: transform var(--transition-bounce);
    z-index: -1;
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: translateY(-3px) scale(1.1);
}

.social-icons a:hover::before {
    transform: scale(1);
}

/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    box-shadow: var(--shadow-md);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-default);
    z-index: var(--z-fixed);
}

.back-to-top-btn:hover {
    transform: translateY(-3px);
    background-color: var(--secondary-color);
    box-shadow: var(--shadow-lg);
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top-btn.show:hover {
    animation: pulse 1.5s infinite;
}

/* Gradient Text and Buttons */
.gradient-text {
  background: linear-gradient(90deg, #800020 40%, #FFD700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-gradient {
  background: linear-gradient(90deg, #800020 60%, #FFD700 100%);
  color: #fff !important;
  border: none;
  transition: box-shadow 0.2s, background 0.2s;
}
.btn-gradient:hover {
  background: linear-gradient(90deg, #FFD700 10%, #800020 90%);
  color: #fff !important;
  box-shadow: 0 4px 24px rgba(128,0,32,0.15);
}

/* Hero Image Styles */
.hero-img-advanced {
  border-radius: 2rem;
  box-shadow: 0 8px 32px rgba(128,0,32,0.10);
  position: relative;
  overflow: hidden;
}
.hero-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(128,0,32,0.08) 60%, rgba(255,215,0,0.12) 100%);
  pointer-events: none;
}
.hero-img-badge {
  position: absolute;
  bottom: 18px;
  left: 18px;
  background: #fff;
  color: #800020;
  padding: 0.5rem 1.2rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(128,0,32,0.10);
}
.hero-img-glass {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(2px);
  pointer-events: none;
}

/* Feature Chip */
.feature-chip {
  background: #fff;
  border-radius: 2rem;
  padding: 0.4rem 1.1rem;
  font-weight: 500;
  color: #800020;
  box-shadow: 0 2px 8px rgba(128,0,32,0.06);
  display: inline-flex;
  align-items: center;
  font-size: 1rem;
}

/* Glassmorphism Card */
.glass-card {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  border-radius: 1.5rem;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.glass-card:hover {
  box-shadow: 0 8px 32px rgba(128,0,32,0.13);
  transform: translateY(-6px) scale(1.03);
}

/* Card Image Top Wrapper */
.card-img-top-wrapper {
  position: relative;
}
.img-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #FFD700;
  color: #800020;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(128,0,32,0.10);
}

/* Timeline Styles */
.timeline-advanced {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 2rem;
}
.timeline-step-adv {
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 2px 12px rgba(128,0,32,0.07);
  padding: 1.5rem 1rem;
  flex: 1 1 180px;
  min-width: 180px;
  max-width: 260px;
  text-align: center;
  position: relative;
  margin-bottom: 1.5rem;
  z-index: 1;
}
.timeline-dot-adv {
  width: 48px;
  height: 48px;
  background: linear-gradient(120deg, #FFD700 60%, #800020 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 0.7rem auto;
  box-shadow: 0 2px 8px rgba(128,0,32,0.10);
}
.timeline-connector {
  width: 40px;
  height: 4px;
  background: linear-gradient(90deg, #FFD700 0%, #800020 100%);
  align-self: center;
  border-radius: 2px;
  margin: 0 0.5rem;
  z-index: 0;
}
.timeline-content-adv h5 {
  font-weight: 700;
  color: #800020;
  margin-bottom: 0.3rem;
}

/* Icon List Styles */
.icon-list li {
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
}

/* Why Choose Us Image Styles */
.why-img-advanced {
  border-radius: 2rem;
  box-shadow: 0 8px 32px rgba(128,0,32,0.10);
  position: relative;
  overflow: hidden;
}
.why-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,215,0,0.10) 60%, rgba(128,0,32,0.10) 100%);
  pointer-events: none;
}
.why-img-glass {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(2px);
  pointer-events: none;
}

/* Modern Accordion Styles */
.modern-accordion .accordion-button {
  background: #fff;
  color: #800020;
  font-weight: 600;
  font-size: 1.1rem;
  border: none;
  box-shadow: none;
  transition: background 0.2s, color 0.2s;
  border-radius: 1.2rem 1.2rem 0 0;
}
.modern-accordion .accordion-button:not(.collapsed) {
  background: #f9f4ee;
  color: #FFD700;
}
.modern-accordion .accordion-item {
  border-radius: 1.2rem;
  margin-bottom: 1rem;
  border: 1px solid #eee;
  overflow: hidden;
}
.modern-accordion .accordion-body {
  background: #fff;
  color: #333;
  font-size: 1.05rem;
  border-radius: 0 0 1.2rem 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --navbar-height: var(--navbar-height-mobile);
        --container-padding: var(--space-md);
    }
    
    .hero-text {
        padding: var(--space-xl) var(--space-lg);
    }
    
    .hero-text h1 {
        font-size: var(--fs-3xl);
    }
    
    .hero-text p {
        font-size: var(--fs-lg);
    }
    
    .btn {
        padding: var(--space-md) var(--space-lg);
    }

    .count-box {
        padding: var(--space-lg);
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 100vh;
        min-height: 500px;
    }
    
    .hero-text {
        padding: var(--space-lg) var(--space-md);
    }
    
    .card-body {
        padding: var(--space-lg);
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }

    .count-box {
        padding: var(--space-md);
    }
}


/* Responsive adjustments */
@media (max-width: 991.98px) {
  .timeline-advanced {
    flex-direction: column;
    align-items: stretch;
  }
  .timeline-step-adv {
    max-width: 100%;
    margin-bottom: 1.5rem;
  }
  .timeline-connector {
    display: none;
  }
  .hero-img-advanced, .why-img-advanced {
    margin-bottom: 2rem;
  }
}
@media (max-width: 767.98px) {
  .interior-main-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  .glass-card {
    border-radius: 1rem;
  }
  .timeline-step-adv {
    padding: 1rem 0.5rem;
  }
}
@media (max-width: 575.98px) {
  .timeline-step-adv {
    min-width: 140px;
    padding: 0.7rem 0.3rem;
  }
  .feature-chip {
    font-size: 0.95rem;
    padding: 0.3rem 0.7rem;
  }
}

/* Sharper images for cards and hero */
.card-img-top,
.hero-img-advanced img,
.why-img-advanced img {
  width: 100%;
  height: 320px;
  min-height: 220px;
  object-fit: cover;
  image-rendering: auto;
  border-radius: 1.5rem 1.5rem 0 0;
}

@media (max-width: 767.98px) {
  .card-img-top,
  .hero-img-advanced img,
  .why-img-advanced img {
    height: 180px;
    min-height: 120px;
  }
}