/* Custom Properties*/
:root {
    /* Colors */
    --primary-color: #800020;
    --primary-child-color:#800020;
    --secondary-color: #ffffff;
    --accent-color: #FFD700;
    --dark-color: #000000;
    --light-color: #ffffff;
    --success-color: #28a745;
    --error-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
     /* Gold accent */
  --text-dark: #343a40;
  --text-light: #6c757d;
  --white: #ffffff;
  --transition-slow: 0.5s;
  --transition-medium: 0.3s;
  --transition-fast: 0.2s;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.15);
    


    /* 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-child-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);
}


.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; }


.btn {
    transition: var(--transition-default);
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-default);
}




/* ===== Hero/Page Header ===== */
.page-header {
    position: relative;
    background: url('../images/Building2.jpg') no-repeat center center;
    background-size: cover;
    height: 85vh;
    max-height: 500px;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    color: #ffffff;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 34, 68, 0.7);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 3.5rem;
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.page-header p {
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
    transform: translateY(20px);
}

/* ===== Service Cards ===== */
.service-card {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--box-shadow-default);
    transition: var(--transition-default);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    animation-play-state: paused;
}

.service-card.animate__fadeInUp {
    animation-play-state: running;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.2);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--secondary-color);
    transition: height 0.5s ease;
}

.service-card:hover::before {
    height: 100%;
}

.service-icon-large {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 34, 68, 0.1);
    border-radius: 50%;
    transition: var(--transition-default);
}

.service-card:hover .service-icon-large {
    background-color: var(--primary-color);
    transform: rotate(10deg);
}

.service-icon-large i {
    color: var(--primary-color);
    transition: var(--transition-default);
}

.service-card:hover .service-icon-large i {
    color: var(--light-color);
}

.service-title {
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.service-card:hover .service-title::after {
    width: 80px;
}

.service-details {
    border-top: 3px solid var(--primary-color);
}

.service-details h5 {
    color: var(--secondary-color);
    margin-top: 1rem;
}

.collapse.show {
    animation: expandDetails 0.5s ease forwards;
}
/* ===== CTA Section ===== */
.cta {
    position: relative;
    background: var(--gradient-primary);
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    top: -100px;
    right: -50px;
    animation: floatBubble 8s infinite alternate ease-in-out;
}

.cta::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    bottom: -50px;
    left: -50px;
    animation: floatBubble 12s infinite alternate-reverse ease-in-out;
}

.cta .btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
    z-index: -1;
}

.cta .btn:hover::before {
    left: 100%;
}

 
/* Loader Animation */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader {
  width: 80px;
  height: 80px;
  position: relative;
}

.loader:before,
.loader:after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 5px solid transparent;
  border-top-color: var(--primary-color);
}

.loader:before {
  width: 100%;
  height: 100%;
  animation: spin 1.5s infinite ease;
}

.loader:after {
  width: 80%;
  height: 80%;
  top: 10%;
  left: 10%;
  border-top-color: var(--accent-color);
  animation: spin 2s infinite ease;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loader-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Modern Loader Animation */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  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;
}

/* 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; }

.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(--primary-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;
}


/* 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%;
}
