/* Global Font Settings */
body {
    font-family: 'Montserrat', 'Inter', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fcfcfc;
    /* Cleaner white background */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #1a1a1a;
}

/* === Hero Section === */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    /* Fallback */
    color: #fff;
}

/* Animated Gradient Background */
#animated-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, #E1AD01, transparent 50%),
        radial-gradient(circle at 70% 60%, #b8860b, transparent 50%),
        radial-gradient(circle at 50% 80%, #d4af37, transparent 50%);
    filter: blur(80px);
    opacity: 0.6;
    animation: moveBackground 20s infinite alternate ease-in-out;
    z-index: 1;
}

@keyframes moveBackground {
    0% {
        transform: translate(-5%, -5%) scale(1);
    }

    50% {
        transform: translate(5%, 5%) scale(1.1);
    }

    100% {
        transform: translate(-5%, -2%) scale(1);
    }
}

/* Hero Overlay for Readability */
.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Darkens the background slightly */
    z-index: 1;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    animation: fadeInDown 1.2s ease-out forwards;
}

.hero-content p {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: #f0f0f0;
    margin-bottom: 2.5rem;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1.4s ease-out forwards;
}

/* Hero Button */
.hero-btn {
    background: linear-gradient(135deg, #E1AD01, #d4af37);
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(225, 173, 1, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-block;
    animation: fadeInUp 1.6s ease-out forwards;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(225, 173, 1, 0.5);
    background: linear-gradient(135deg, #d4af37, #E1AD01);
    color: #fff;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Flip Card Section === */
.homesectors .section {
    padding: 60px 0;
    background-color: #FAFAFA;
    /* Slightly off-white for contrast */
}

.flip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.flip-card {
    perspective: 1500px;
    height: 340px;
    cursor: pointer;
}

.flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
    /* Smoother transition */
    transform-style: preserve-3d;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(252, 252, 252, 0.748);
    /* Soft shadow */
}

.flip-card:hover .flip-inner,
.flip-card.flipped .flip-inner {
    transform: rotateY(180deg);
    box-shadow: 0 20px 40px rgba(252, 252, 252, 0.748);
    /* Elevated shadow */
}

.flip-front,
.flip-back {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    border: 1px solid rgba(252, 252, 252, 0.748);
}

.flip-front {
    background: #fff;
}

.flip-front i {
    font-size: 3.5rem;
    color: #E1AD01;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.flip-card:hover .flip-front i {
    transform: scale(1.1);
}

.flip-front h3 {
    font-size: 1.4rem;
    margin: 0;
    color: #222;
}

.flip-back {
    background: linear-gradient(135deg, #636363, #c7c7c7);
    /* Dark elegant back */
    color: black;
    transform: rotateY(180deg);
}

.flip-back p {
    font-size: 1rem;
    line-height: 1.6;
    color: #fffbfb;
}

/* === Services Section (Targeting Elementor Classes) === */
.elementor-element-bddb2ec {
    background-color: #f8f8f8 !important;
    /* Soft grey instead of beige */
    border-top: 5px solid #E1AD01;
    /* Highlighting the section */
    padding: 80px 0 !important;
}

.elementor-heading-title {
    color: #111 !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.elementor-icon-list-item {
    padding: 10px 0;
    transition: transform 0.2s ease;
}

.elementor-icon-list-item:hover {
    transform: translateX(5px);
}

.elementor-icon-list-icon i {
    color: #E1AD01 !important;
    /* Gold icons */
}

.elementor-icon-list-text {
    color: black !important;
    font-weight: 500 !important;
    font-size: 1.05rem !important;
}

/* === Footer Styling (Overrides styles.css) === */
footer {
    background-color: beige !important;
    color: black !important;
    padding: 60px 0 30px;
    font-size: 0.95rem;
    border-top: 3px solid #E1AD01;
}

footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

footer h3 {
    color: #E1AD01 !important;
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

footer a {
    color: black !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #E1AD01 !important;
}

/* Specific overrides for styles.css IDs */
#ft,
#ft .block,
#ft .block2,
.menu-footer li {
    color: black !important;
}

footer .menu-footer {
    list-style: none;
    padding: 0;
}

footer .menu-footer li {
    margin-bottom: 12px;
}

footer .block,
footer .block2 {
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .flip-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    footer .container {
        flex-direction: column;
        text-align: center;
    }

    footer .menu-footer li {
        display: block;
    }
}