/* --- Custom Variables & Base Styles --- */
:root {
    --primary-dark: #0B0B0B;
    --accent-gold: #D4AF37;
    --text-dark: #333333;
    --light-bg: #f8f9fa;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: #FFFFFF;
}
h1, h2, h3, .navbar-brand {
    font-family: 'Cinzel', serif;
}

/* --- Text & Background Utility Classes --- */
.text-accent { color: var(--accent-gold) !important; }
.bg-accent { background-color: var(--accent-gold) !important; }
.text-primary-dark { color: var(--primary-dark) !important; }
.bg-primary-dark { background-color: var(--primary-dark) !important; }
.border-accent { border-color: var(--accent-gold) !important; }

/* --- Custom Heading Underline Animation (2D Effect) --- */
.animated-heading {
    display: inline-block;
    position: relative;
    padding-bottom: 0.25rem; /* Space for the line */
}
.animated-heading::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    left: 0;
    bottom: 0;
    background-color: var(--accent-gold);
    transition: width 0.4s ease-out, background-color 0.4s;
}
.animated-heading:hover::after {
    width: 100%;
}

/* Applying the style to all major headings */
h1, h2, h3 {
    transition: color 0.3s ease;
}
h2.display-4, h3 {
     /* Ensure H2 and H3 are the animated headings */
    display: inline-block;
    position: relative;
    padding-bottom: 0.25rem;
}
h2.display-4::after, h3::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    left: 50%; /* Start in the middle */
    transform: translateX(-50%); /* Center the line */
    bottom: 0;
    background-color: var(--accent-gold);
    transition: width 0.5s cubic-bezier(0.23, 1, 0.32, 1); /* Smoother animation */
}
/* Full width line on hover for H2/H3 */
h2.display-4:hover::after, h3:hover::after {
    width: 100%;
}

/* --- Hero Section Specific Styling --- */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a1a1a 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
/* Custom Pattern Overlay for Hero (2D effect) */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    z-index: 0;
    background-image: radial-gradient(var(--accent-gold) 1px, transparent 1px), radial-gradient(var(--accent-gold) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}

/* --- Navbar Customization --- */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    background: linear-gradient(-45deg, #0B0B0B, #1e293b, #D4AF37, #0B0B0B);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    transition: all 0.3s ease;
}
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
.navbar.scrolled {
    background: linear-gradient(-45deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95), rgba(212, 175, 55, 0.1), rgba(255, 255, 255, 0.95));
    background-size: 400% 400%;
    animation: gradientShiftWhite 20s ease infinite;
    opacity: 0.98;
}
@keyframes gradientShiftWhite {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
.navbar .navbar-brand {
    color: white !important;
}
.navbar .navbar-brand .text-accent {
    color: #D4AF37 !important;
}
.navbar .nav-link {
    background: linear-gradient(-45deg, #FFFFFF, #f8fafc, #D4AF37, #FFFFFF);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShiftText 20s ease infinite;
    color: white;
    transition: color 0.3s ease;
}
@keyframes gradientShiftText {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
.navbar.scrolled .navbar-brand {
    color: #0B0B0B !important;
}
.navbar.scrolled .navbar-brand .text-accent {
    color: #D4AF37 !important;
}
.navbar.scrolled .nav-link {
    background: linear-gradient(-45deg, #0B0B0B, #1e293b, #D4AF37, #0B0B0B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShiftTextDark 20s ease infinite;
    color: #0B0B0B;
}
@keyframes gradientShiftTextDark {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
.nav-link:hover {
    -webkit-text-fill-color: #D4AF37 !important;
    background: none !important;
    animation: none !important;
}
.navbar.scrolled .nav-link:hover {
    -webkit-text-fill-color: #D4AF37 !important;
    background: none !important;
    animation: none !important;
}
.cta-button {
    transition: all 0.3s ease;
}
.cta-button:hover {
    background-color: var(--primary-dark) !important;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

/* --- Card and List Enhancements --- */
.card-service:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}
.card-service {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 5px solid var(--accent-gold);
}

.detail-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
    transition: all 0.2s ease;
}
.detail-list li:hover {
    color: var(--primary-dark);
    font-weight: 500;
}
.detail-list li::before {
    content: "\f00c"; /* Font Awesome Check Mark */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.1rem;
    color: var(--accent-gold);
    font-size: 1rem;
}

/* --- Contact Details Styling --- */
.contact-detail-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}
.contact-detail-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-gold);
    transform: translateY(-3px);
}

/* --- ACCORDION STYLING (NEW UNIQUE LOOK) --- */
.custom-accordion .accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}
.custom-accordion .accordion-button {
    background-color: var(--primary-dark);
    color: white;
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    padding: 1.5rem;
    border-radius: 0.75rem 0.75rem 0 0 !important;
    transition: background-color 0.4s, color 0.4s, box-shadow 0.4s;
    position: relative;
    border: none;
}
/* Style for Accordion Header on open/active state */
.custom-accordion .accordion-button:not(.collapsed) {
    background-color: var(--accent-gold) !important;
    color: var(--primary-dark) !important;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.6);
    /* Remove default focus border */
    outline: 0;
    border: none;
}
.custom-accordion .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.3) !important;
    border: none;
}

.custom-accordion .accordion-body {
    background-color: var(--light-bg);
    padding: 2rem;
    border-top: 2px solid var(--accent-gold);
}

.accordion-icon {
    transition: transform 0.3s ease;
    font-size: 1.5rem;
    margin-right: 1rem;
}
/* Rotate icon on collapse (2D animation) */
.accordion-button:not(.collapsed) .accordion-icon {
    transform: rotate(90deg) scale(1.1);
    color: var(--primary-dark) !important;
}

/* Ensure spacing and coloring is correct in collapsed state */
.custom-accordion .accordion-button::after {
    filter: invert(100%); /* Make default arrow white */
}
.custom-accordion .accordion-button:not(.collapsed)::after {
    filter: none; /* Keep default arrow dark in open state */
}

/* --- FOOTER STYLING --- */
footer {
    position: relative;
    overflow: hidden;
}

/* Animated gradient background for footer */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, #0B0B0B, #1a1a1a, #2d2d2d, #0B0B0B);
    background-size: 400% 400%;
    animation: gradientShiftFooter 15s ease infinite;
    z-index: 0;
    opacity: 0.95;
}

@keyframes gradientShiftFooter {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Ensure footer content is above the animated background */
footer .container {
    position: relative;
    z-index: 1;
}

/* Footer heading styling */
footer h3, footer h4 {
    font-family: 'Cinzel', serif;
    position: relative;
    transition: color 0.3s ease;
}

footer h3:hover, footer h4:hover {
    color: var(--accent-gold) !important;
}

/* Animated underline for footer headings */
footer h4 {
    display: inline-block;
    position: relative;
    padding-bottom: 0.5rem;
}

footer h4::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    left: 0;
    bottom: 0;
    background-color: var(--accent-gold);
    transition: width 0.4s ease;
}

footer h4:hover::after {
    width: 100%;
}

/* Footer links styling */
footer a {
    position: relative;
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--accent-gold) !important;
    transform: translateX(5px);
}

/* Social media icons hover effect */
footer .d-flex a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(212, 175, 55, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

footer .d-flex a:hover {
    background-color: var(--accent-gold);
    color: var(--primary-dark) !important;
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}

footer .d-flex a i {
    transition: transform 0.3s ease;
}

footer .d-flex a:hover i {
    transform: scale(1.2);
}

/* Footer contact list items */
footer ul li {
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    padding-left: 0.5rem;
}

footer ul li:hover {
    border-left-color: var(--accent-gold);
    padding-left: 1rem;
}

/* Footer bottom border animation */
footer .border-bottom {
    position: relative;
}

footer .border-bottom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    animation: borderGrow 3s ease-in-out infinite;
}

@keyframes borderGrow {
    0%, 100% {
        width: 0;
    }
    50% {
        width: 100%;
    }
}

/* Copyright text styling */
footer .text-center.small {
    position: relative;
    padding-top: 1rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

footer .text-center.small:hover {
    opacity: 1;
}

/* Decorative dots pattern overlay for footer */
footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    z-index: 0;
    background-image: radial-gradient(var(--accent-gold) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

/* Utility class for footer hover effects */
.hover-text-accent:hover {
    color: var(--accent-gold) !important;
}

/* --- Responsive Adjustments (Bootstrap handles most of this) --- */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: 60vh;
    }
    h1 {
        font-size: 2.5rem !important;
    }
    .navbar-nav .nav-link {
        text-align: center;
        margin-bottom: 0.5rem;
    }
    .custom-accordion .accordion-button {
        font-size: 1rem;
    }
    
    /* Footer responsive adjustments */
    footer h3 {
        font-size: 1.75rem !important;
    }
    
    footer .d-flex a {
        width: 40px;
        height: 40px;
    }
    
    footer ul li {
        font-size: 0.875rem;
    }
}

@media (max-width: 767.98px) {
    footer .col-6 {
        margin-bottom: 2rem;
    }
    
    footer .d-flex {
        justify-content: center !important;
        margin-top: 1rem;
    }
}