/* 
   Theme: IGNIS
   Colors: Dark Grey, Black, Flame Red, White
*/

:root {
    --primary-color: #FF3D00;
    /* Flame Red */
    --primary-glow: rgba(255, 61, 0, 0.5);
    --secondary-color: #1a1a1a;
    --bg-dark: #0a0a0a;
    --bg-card: #121212;
    --text-main: #ffffff;
    --text-muted: #b3b3b3;

    --font-main: 'Outfit', sans-serif;

    --max-width: 1200px;
    --header-height: 80px;
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

ul {
    list-style: none;
}

/* Text Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-text {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-fade {
    opacity: 0;
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Staggered animation delays for list items */
.animate-text:nth-child(1) {
    animation-delay: 0.1s;
}

.animate-text:nth-child(2) {
    animation-delay: 0.2s;
}

.animate-text:nth-child(3) {
    animation-delay: 0.3s;
}

.animate-text:nth-child(4) {
    animation-delay: 0.4s;
}

.animate-text:nth-child(5) {
    animation-delay: 0.5s;
}

.animate-text:nth-child(6) {
    animation-delay: 0.6s;
}

/* Scroll-triggered animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Animations */
@keyframes heroSlideInLeft {
    from {
        opacity: 0;
        transform: translate(-70px, -90px) translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translate(-70px, -90px) translateX(0);
    }
}

@keyframes heroSlideInRight {
    from {
        opacity: 0;
        transform: translateX(250px);
    }
    to {
        opacity: 1;
        transform: translateX(180px);
    }
}

@keyframes heroImageGentleFloat {
    0%, 100% {
        transform: translateX(180px) translateY(0px);
    }
    50% {
        transform: translateX(180px) translateY(-12px);
    }
}

/* CTA Animations */
@keyframes fadeInBounce {
    0% {
        opacity: 0;
        transform: translateY(100px);
    }

    70% {
        opacity: 1;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gentleFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* BG Section Animations */
@keyframes bgImageSlideIn {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bgListSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(80px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

@keyframes bgListItemSlideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bgFloatingAnimation {
    0%, 100% {
        transform: translateY(-50%) translateX(0px) translateY(0px);
    }
    50% {
        transform: translateY(-50%) translateX(0px) translateY(-15px);
    }
}

/* Final Section Animations */
@keyframes slideUpAnimation {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation Animations */
@keyframes navSlideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gallery Animations */
@keyframes galleryZoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* CTA Button Styles with Animations */
.whatsapp-cta-image-btn {
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: fadeInBounce 0.8s ease-out forwards, gentleFloat 3s ease-in-out 1s infinite;
    cursor: pointer;
}

.whatsapp-cta-image-btn:hover {
    transform: translateY(-10px) scale(1.08);
    filter: brightness(1.1);
    animation: gentleFloat 3s ease-in-out infinite;
}

.whatsapp-cta-image-btn img {
    display: block;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
    transition: all 0.4s ease;
}

.whatsapp-cta-image-btn:hover img {
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.4));
}

/* CTA Phrase Animation */
.cta-phrase {
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInBounce 0.8s ease-out 0.2s forwards;
}

.cta-phrase:hover {
    transform: translateY(-3px);
}

/* CTA Combined Box Animation */
.cta-combined-box {
    transition: transform 0.3s ease;
}

.cta-combined-box:hover .whatsapp-cta-image-btn {
    transform: translateY(-12px) scale(1.1);
}



.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
}

/* Header */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    /* Adjusted height */
    z-index: 1000;
    background-color: #000000;
    /* Solid black as per image */
    border-bottom: none;
    transition: top 0.3s ease-in-out;
}

#main-header.header-hidden {
    top: -90px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px; /* Add some padding */
    width: 100%;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    /* Slightly larger */
    width: auto;
}

/* Navigation */
.main-nav {
    /* No margin needed */
}

.main-nav ul {
    display: flex;
    gap: 40px;
}

.main-nav a {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    /* Extra Bold */
    color: #ffffff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
    animation: navSlideDown 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
}

.main-nav a:nth-child(1) { animation-delay: 0.1s; }
.main-nav a:nth-child(2) { animation-delay: 0.2s; }
.main-nav a:nth-child(3) { animation-delay: 0.3s; }
.main-nav a:nth-child(4) { animation-delay: 0.4s; }

.main-nav a:hover {
    color: #ff9d00;
    /* Orange hover */
}

.main-nav a.active {
    color: #ff9d00;
    /* Orange active - matches HOME in image */
}

/* Remove underline effect, keep it clean like image */
.main-nav a::after {
    display: none;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-5px);
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('img/1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 90px;
    height: calc(100vh - 0px);
    overflow: hidden;
    position: relative;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    /* Align worker to bottom */
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-image {
    width: 45%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 100%;
    position: relative;
    z-index: 1;
}

.hero-image img {
    max-height: 60vh;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
    transform: translateX(180px);
    /* Significant right shift for overlap */
    /* Move worker right to overlap background */
    animation: heroSlideInRight 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Add subtle floating animation on hover */
.hero-image:hover img {
    animation: heroImageGentleFloat 3s ease-in-out infinite;
}

/* Hero Text Typography & Layout */
.hero-text {
    width: 55%;
    /* Give slightly more space */
    padding-left: 0;
    padding-right: 0;
    /* Remove tight constraint */
    color: #000000;
    z-index: 2;
    margin-bottom: 20px;
    align-self: center;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Ensure left alignment */
    transform: translate(-70px, -90px);
    /* Shift slightly right and up significantly */
    margin-right: -50px;
    /* Slight visual overlap if needed, but cleaner */
    animation: heroSlideInLeft 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.hero-logo img {
    max-width: 850px;
    width: 100%;
    margin-bottom: 10px;
    display: block;
    margin-left: 0;
}

.hero-description-img {
    max-width: 1000px;
    /* Match text width */
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: -40px;
    margin-left: 20px;
    margin-top: 40px;
    /* Added margin-top to lower it */
}

.hero-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.15;
    text-transform: uppercase;
    color: #000000;
    max-width: 950px;
    text-align: justify;
    margin-top: 40px;
    margin-left: 160px;
    letter-spacing: 1.2px;
    hyphens: none;
}

.hero-description strong {
    font-weight: 900;
}

.hero-certifications {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 60px;
    margin-left: 175px;
}

.hero-certifications img {
    height: 50px;
    /* Decreased height */
    width: auto;
    object-fit: contain;
}

.crea-logo {
    height: 42px !important;
    /* Decreased size */
}

.bombeiros-logo {
    height: 65px !important;
    /* Decreased size */
}

@media (max-width: 1200px) {
    .hero-text {
        transform: translate(0, -50px);
        width: 60%;
    }

    .hero-image img {
        transform: translateX(100px);
    }

    .hero-description,
    .hero-certifications {
        margin-left: 50px;
    }
}

@media (max-width: 900px) {
    .hero {
        background-position: center;
        height: auto;
        min-height: 100vh;
        padding: 70px 15px 40px;
        background-image: none;
        background-color: #f7b600;
        display: flex;
        align-items: center;
    }

    .hero-content {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 20px 0;
        gap: 30px;
        max-width: 100%;
    }

    .hero-image {
        width: 100%;
        height: auto;
        order: 2;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero-image img {
        transform: none !important;
        max-height: 250px;
        width: 100%;
        max-width: 300px;
        object-fit: contain;
        filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
    }

    .hero-text {
        width: 100%;
        padding: 0;
        transform: none !important;
        margin: 0 !important;
        order: 1;
        align-items: center;
        text-align: center;
        color: #000;
    }

    .hero-logo {
        max-width: 250px;
        margin: 0 auto 20px;
        text-align: center;
    }

    .hero-logo img {
        max-width: 100%;
        width: 100%;
        height: auto;
    }

    .hero-description-img {
        max-width: 100%;
        margin: 15px auto;
        height: auto;
        display: block;
    }

    .hero-description {
        margin: 20px 0 !important;
        text-align: center;
        font-size: 0.9rem;
        line-height: 1.4;
        color: #000;
        max-width: 100%;
        padding: 0 10px;
    }

    .hero-certifications {
        margin: 30px 0 0 0 !important;
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
        align-items: center;
    }

    .hero-certifications img {
        height: 35px;
        width: auto;
        max-width: 80px;
        object-fit: contain;
    }

    .crea-logo {
        height: 30px !important;
    }

    .bombeiros-logo {
        height: 45px !important;
    }
}

/* Responsive */
@media (max-width: 768px) {

    /* General mobile optimizations */
    body {
        font-size: 16px;
        -webkit-text-size-adjust: 100%;
        -webkit-tap-highlight-color: rgba(238, 151, 27, 0.3);
    }

    .container {
        width: 95%;
        padding: 0 10px;
    }

    /* Better touch targets */
    a, button {
        min-height: 44px;
        min-width: 44px;
    }

    /* Smooth scrolling for mobile */
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    #main-header {
        height: 70px;
        display: flex;
        align-items: center;
        background-color: #000;
        border-bottom: 2px solid #ee971b;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
    }

    .header-content {
        width: 100%;
        padding: 0 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        height: 70px;
        max-width: 100%;
    }

    .logo {
        position: static;
        left: auto;
        margin: 0;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        z-index: 1002;
    }

    .logo img {
        height: 40px;
        width: auto;
        max-width: 120px;
        object-fit: contain;
    }

    .main-nav {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
        flex-direction: column;
        padding: 30px 20px;
        gap: 0;
        z-index: 998;
        margin: 0;
        border: none;
        width: 100%;
        height: calc(100vh - 70px);
        overflow-y: auto;
        animation: fadeIn 0.3s ease-out forwards;
    }

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

    .main-nav.active {
        display: flex !important;
    }

    .main-nav ul {
        display: flex;
        flex-direction: column;
        gap: 0;
        list-style: none;
        padding: 0;
        margin: 0;
        width: 100%;
    }

    .main-nav li {
        border: none;
        margin: 0;
    }

    .main-nav li:first-child a {
        border-top: 1px solid rgba(255, 165, 0, 0.2);
    }

    .main-nav a {
        font-size: 1.1rem;
        padding: 20px 25px;
        display: block;
        border-bottom: 1px solid rgba(255, 165, 0, 0.2);
        color: #ffffff;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: all 0.3s ease;
        position: relative;
        text-align: center;
    }

    .main-nav a::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: #ee971b;
        transform: scaleY(0);
        transform-origin: top;
        transition: transform 0.3s ease;
    }

    .main-nav a:hover {
        background: rgba(238, 151, 27, 0.15);
        color: #ee971b;
        padding-left: 35px;
    }

    .main-nav a:hover::before {
        transform: scaleY(1);
    }

    .main-nav a.active {
        color: #ee971b;
        background: rgba(238, 151, 27, 0.1);
    }

    .header-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: flex !important;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1003;
        padding: 8px;
    }

    .mobile-menu-btn span {
        width: 22px;
        height: 3px;
        background-color: #ffffff;
        transition: all 0.3s ease;
    }

    .hero {
        padding-top: 70px;
        min-height: auto;
        height: auto;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Info Section */
.info-section {
    width: 100%;
    position: relative;
    z-index: 999;
    margin-top: -35px;
    background-color: #000;
    border-top: 8px solid #ee971b;
}

.info-bg-image {
    width: 100%;
    display: block;
    height: auto;
}

.info-content-overlay {
    position: absolute;
    top: 50%;
    left: 47%;
    transform: translateY(-50%);
    width: 50%;
    text-align: left;
    z-index: 1000;
}

.info-orange-text {
    font-family: 'Outfit', sans-serif;
    color: #ee971b;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: -1px;
}

/* Animated headline: per-character reveal + subtle flame glow */
.info-orange-text {
    position: relative;
    overflow: visible;
    -webkit-font-smoothing: antialiased;
    will-change: transform, opacity, text-shadow;
    animation: flameGlow 2.2s ease-in-out infinite alternate;
}

.info-orange-text .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(14px) rotateX(6deg);
    animation: headlineReveal 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-play-state: paused;
}

@keyframes headlineReveal {
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

@keyframes flameGlow {
    0% {
        text-shadow: 0 0 6px rgba(238,151,27,0.08), 0 0 18px rgba(255,61,0,0.02);
    }
    100% {
        text-shadow: 0 0 12px rgba(238,151,27,0.35), 0 0 40px rgba(255,61,0,0.12);
    }
}

/* Ensure line-breaks (<br>) keep spacing and words don't collapse */
.info-orange-text .char.space {
    width: 0.35ch;
}

/* Start per-character animation only after the parent is revealed (via existing scroll observer) */
.info-orange-text.revealed .char,
.scroll-reveal.revealed .info-orange-text .char {
    animation-play-state: running;
}

@media (max-width: 768px) {
    .info-section {
        margin-top: 0;
        border-top: 4px solid #ee971b;
    }

    .info-bg-image {
        display: none;
    }

    .info-content-overlay {
        position: relative;
        top: 0;
        right: 0;
        transform: none;
        width: 100%;
        padding: 30px 20px;
        background-color: #ee971b;
        text-align: center;
    }

    .info-orange-text {
        font-size: 1.3rem;
        text-align: center;
        color: #000;
        line-height: 1.3;
        letter-spacing: -0.5px;
    }
}

/* CTA Section */
.cta-section {
    width: 100%;
    margin-top: -5px;
    position: relative;
    background-color: #000;
}

.cta-bg-image {
    width: 100%;
    display: block;
    height: auto;
}

.cta-overlay {
    position: absolute;
    top: 45px;
    /* Better vertical alignment with the bar */
    left: 6%;
    width: 55%;
    /* Estimated width of the black bar in the image */
    text-align: center;
    z-index: 10;
}

.cta-title {
    font-family: 'Outfit', sans-serif;
    color: #ee971b;
    font-size: 2.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 8px;
    /* Stretched effect */
}

.cta-services-list {
    list-style: none;
    margin-top: 100px;
    padding: 0;
    text-align: left;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.final-text-overlay h2 {
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    animation: fadeInUp 1s ease-out;
}

.final-text-overlay h2:hover {
    transform: scale(1.05);
}

.cta-services-list li {
    color: #000;
    font-family: 'Outfit', sans-serif;
    font-size: 1.85rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 22px;
    position: relative;
    padding-left: 40px;
    line-height: 1.15;
}

.cta-services-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: -5px;
    font-size: 2.7rem;
    color: #000;
}

/* WhatsApp Image Button Base Styles */
.whatsapp-cta-image-btn {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 20;
}

.whatsapp-cta-image-btn:hover {
    transform: scale(1.08);
}

.whatsapp-cta-image-btn img {
    height: 160px;
    width: auto;
    display: block;
}

@media (max-width: 1024px) {
    .whatsapp-cta-image-btn {
        left: 60%;
    }
}

@media (max-width: 768px) {
    .whatsapp-cta-image-btn {
        position: relative;
        bottom: 0;
        left: 0;
        margin: 20px auto;
        justify-content: center;
        display: flex;
        align-items: center;
    }

    .whatsapp-cta-image-btn img {
        height: 80px;
        width: auto;
        max-width: 200px;
        object-fit: contain;
    }

    .whatsapp-cta-image-btn:active {
        transform: scale(0.95);
    }
}

@media (max-width: 768px) {
    .cta-section {
        position: relative;
        margin-top: 0;
    }

    .cta-bg-image {
        display: none;
    }

    .cta-overlay {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        padding: 30px 20px;
        background-color: #000;
        text-align: center;
    }

    .cta-title {
        font-size: 1.6rem;
        letter-spacing: 1px;
        margin-bottom: 25px;
        line-height: 1.2;
    }

    .cta-services-list {
        margin-top: 25px;
        max-width: 100%;
        padding: 0;
        text-align: left;
    }

    .cta-services-list li {
        font-size: 0.95rem;
        padding-left: 25px;
        margin-bottom: 15px;
        text-align: left;
        line-height: 1.3;
    }

    .cta-services-list li::before {
        font-size: 1.5rem;
        top: -3px;
    }
}

/* Photos Gallery Section */
.photos-gallery-section {
    display: flex;
    width: 100%;
    background-color: #ee971b;
    border-top: 10px solid #ffffff;
    border-bottom: 10px solid #ffffff;
    overflow: hidden;
    margin-top: -2px;
}

.gallery-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-right: 10px solid #ffffff;
    height: 420px;
    position: relative;
}

.gallery-item:last-child {
    border-right: none;
}

.gallery-item img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

@media (max-width: 768px) {
    .photos-gallery-section {
        flex-direction: column;
        border-top: 5px solid #ffffff;
        border-bottom: 5px solid #ffffff;
    }

    .gallery-item {
        border-right: none;
        border-bottom: 3px solid #ffffff;
        height: 250px;
        padding: 15px;
    }

    .gallery-item:last-child {
        border-bottom: none;
    }

    .gallery-item img {
        max-width: 90%;
        max-height: 90%;
        object-fit: contain;
    }
}

/* BG Section */
.bg-image-section {
    width: 100%;
    position: relative;
    background-color: #000;
    margin-top: -2px;
    /* Pull it slightly up to avoid any black gaps */
}

.full-bg-image {
    width: 100%;
    display: block;
    height: auto;
}

.bg-overlay {
    position: absolute;
    top: 45%;
    right: 5%;
    transform: translateY(-50%);
    width: 50%;
    z-index: 5;
}

.bg-services-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bg-services-list li {
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
    line-height: 1.2;
    position: relative;
    padding-left: 25px;
}

/* Scroll-triggered animations for BG section */
.bg-scroll-reveal {
    opacity: 0;
    transform: translateY(-50%) translateX(80px);
    transition: opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bg-scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    animation: bgFloatingAnimation 4s ease-in-out 0.8s infinite;
}

.bg-list-item-reveal {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bg-list-item-reveal.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Final Section Scroll Reveal */
.final-slide-up {
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.final-slide-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Gallery Scroll Reveal */
.gallery-scroll-reveal {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery-scroll-reveal.revealed {
    opacity: 1;
    transform: scale(1);
}

.bg-services-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: inherit;
}

.bg-services-list li.orange {
    color: #ee971b;
}

@media (max-width: 1024px) {
    .bg-services-list li {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
}

@media (max-width: 768px) {
    .bg-image-section {
        margin-top: 0;
    }

    .full-bg-image {
        display: none;
    }

    .bg-overlay {
        position: relative;
        top: 0;
        right: 0;
        transform: none;
        width: 100%;
        padding: 30px 20px;
        background-color: #000;
        text-align: center;
    }

    .bg-services-list {
        padding: 0;
        text-align: left;
        max-width: 100%;
    }

    .bg-services-list li {
        font-size: 0.9rem;
        margin-bottom: 12px;
        padding-left: 20px;
        line-height: 1.3;
        text-align: left;
    }

    .bg-services-list li::before {
        font-size: 1rem;
    }
}

/* Final Section */
.final-section {
    width: 100%;
    position: relative;
    background-color: #000;
    margin-top: -60px;
}

.final-top {
    position: relative;
    width: 100%;
}

.final-flame {
    position: absolute;
    top: 25%;
    left: 45%;
    /* Adjusted to match the separator position */
    height: 60%;
    /* Reduced height to prevent overlap */
    width: auto;
    z-index: 3;
    /* Lower z-index to prevent overlap */
    transform: translate(-50%, -40%);
    /* Adjusted transform */
    pointer-events: none;
    max-height: 1999px;
    /* Added max height constraint */
}

.final-bg {
    width: 100%;
    display: block;
    height: auto;
}

.final-text-overlay {
    position: absolute;
    top: 28%;
    right: 2%;
    transform: translateY(-50%);
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    z-index: 15;
    /* Higher z-index to ensure text is above flame */
}

.final-text-overlay h2 {
    font-family: 'Outfit', sans-serif;
    color: #000;
    /* Black color as per the reference image */
    font-size: 4.2rem;
    font-weight: 650;
    /* Slightly refined weight */
    line-height: 1.1;
    /* Adjusted for better readability */
    text-transform: none;
    letter-spacing: -1px;
    margin: 0;
}

.cta-combined-box {
    position: absolute;
    bottom: 40px;
    left: 15%;
    display: flex;
    align-items: center;
    gap: 30px;
    z-index: 100;
}

.cta-phrase {
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    text-transform: none;
    letter-spacing: 2px;
    text-align: right;
    animation: gentleFloat 3s ease-in-out infinite;
}

.final-text-overlay .whatsapp-cta-btn {
    position: relative;
    bottom: auto;
    left: auto;
    transform: scale(0.8);
    transform-origin: left center;
}

.final-text-overlay .whatsapp-cta-btn:hover {
    transform: scale(0.85);
}

.final-bottom {
    background-color: transparent;
    padding: 10px 10px 10px 30px;
    margin-top: -200px;
    position: relative;
    z-index: 30;
}

.final-bottom-container {
    max-width: 1200px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    /* Space between button and logo */
}

.final-logo img {
    height: 220px;
    /* Decreased size */
    width: auto;
    display: block;
    animation: gentleFloat 3s ease-in-out infinite;
}

.final-bottom-container .whatsapp-cta-image-btn {
    position: relative;
    transform: scale(0.9);
    transform-origin: center;
}

.ignis-logo img {
    height: 100px;
    width: auto;
}

@media (max-width: 1200px) {
    .cta-combined-box {
        left: 5%;
        gap: 20px;
    }

    .final-text-overlay {
        right: 2%;
    }

    .final-flame {
        left: 45%;
    }
}

@media (max-width: 768px) {
    .final-top {
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color: #ee971b;
        padding-bottom: 30px;
    }

    .final-bg {
        width: 100%;
        order: 1;
    }

    .final-flame {
        position: relative;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        height: 100px;
        /* Smaller height for mobile */
        order: 2;
        margin: -20px 0;
        /* Reduced margin */
        z-index: 10;
        max-width: 80px;
        /* Added max width constraint */
        object-fit: contain;
    }

    .final-text-overlay {
        position: relative;
        top: 0;
        right: 0;
        transform: none;
        padding: 20px;
        text-align: center;
        align-items: center;
        order: 3;
    }

    .final-text-overlay h2 {
        font-size: 2rem;
        letter-spacing: -0.5px;
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .cta-combined-box {
        position: relative;
        bottom: 0;
        left: 0;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 30px 20px;
        background-color: #ee971b;
        z-index: 10;
        margin: 0;
        text-align: center;
    }

    .cta-phrase {
        padding: 0 20px;
        font-size: 1.5rem;
        text-align: center;
        line-height: 1.2;
        margin-bottom: 10px;
    }

    .final-bottom {
        padding: 30px 20px;
        margin-top: 0;
        background-color: #000;
        text-align: center;
    }

    .final-bottom-container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
    }

    .final-logo img {
        height: 60px;
        width: auto;
        max-width: 150px;
        object-fit: contain;
    }

    .final-bottom-container .whatsapp-cta-image-btn {
        transform: scale(1);
    }

    .final-bottom-container .whatsapp-cta-image-btn:active {
        transform: scale(0.95);
    }
}

@media (max-width: 768px) {
    :root {
        --mobile-header-height: 70px;
        --mobile-padding: 16px;
        --mobile-radius: 14px;
    }

    html {
        scroll-padding-top: var(--mobile-header-height);
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 var(--mobile-padding);
    }

    #main-header {
        height: var(--mobile-header-height);
        background-color: #000;
        border-bottom: 2px solid #ee971b;
    }

    .hero {
        background-image: url('img/1.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-color: #f7b600;
        padding-top: var(--mobile-header-height);
        min-height: 100vh;
    }

    .hero-content {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
    }

    .hero-text {
        width: 100%;
        transform: none !important;
        margin: 0 !important;
        padding: 18px 14px;
        border-radius: var(--mobile-radius);
        background: rgba(247, 182, 0, 0.88);
        backdrop-filter: blur(6px);
        color: #000;
        text-align: center;
    }

    .hero-description {
        margin: 12px 0 !important;
        padding: 0;
        letter-spacing: -1.1px;
    }

    .hero-certifications {
        margin: 18px 0 0 0 !important;
    }

    .hero-image {
        width: 100%;
        order: 2;
    }

    .hero-image img {
        max-width: 320px;
        width: 100%;
        max-height: 280px;
        transform: none !important;
    }

    .info-section {
        background-image: url('img/Rectangle 17 copy 2.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        border-top: 4px solid #ee971b;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding: 0;
        min-height: 160px;
    }

    .info-bg-image {
        display: none;
    }

    .info-content-overlay {
        position: relative;
        top: 0;
        left: 0;
        right: 0;
        transform: none;
        width: 58%;
        margin: 0;
        padding: 14px 14px;
        background: transparent;
        border-radius: 0;
        text-align: left;
    }

    .info-orange-text {
        color: #ee971b;
        font-size: 0.9rem;
        line-height: 1.2;
        letter-spacing: -0.2px;
    }

    .cta-section {
        background-image: url('img/3.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .cta-bg-image {
        display: none;
    }

    .cta-overlay {
        position: relative;
        top: 0;
        left: 0;
        width: auto;
        background: rgba(247, 182, 0, 0.92);
        border-radius: var(--mobile-radius);
        padding: 22px 16px;
        margin: 16px;
    }

    .cta-title {
        display: inline-block;
        background: #000;
        color: #ee971b;
        padding: 12px 18px;
        border-radius: 999px;
        letter-spacing: 2px;
        font-size: 1.4rem;
        margin-bottom: 18px;
    }

    .cta-services-list {
        margin-top: 18px;
        max-width: 100%;
    }

    .cta-services-list li {
        color: #000;
        font-size: 0.95rem;
        line-height: 1.35;
        padding-left: 26px;
    }

    .cta-services-list li::before {
        color: #000;
        font-size: 1.5rem;
        top: -3px;
    }

    .cta-combined-box {
        position: relative;
        left: 0;
        bottom: 0;
        width: calc(100% - 32px);
        margin: 0 16px 18px;
        padding: 18px 14px;
        border-radius: var(--mobile-radius);
        background: rgba(0, 0, 0, 0.65);
        backdrop-filter: blur(6px);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .cta-phrase {
        font-size: 1.4rem;
        line-height: 1.1;
        text-align: center;
    }

    .photos-gallery-section {
        flex-direction: column;
    }

    .gallery-item {
        height: 240px;
        border-right: none;
        border-bottom: 3px solid #ffffff;
    }

    .gallery-item:last-child {
        border-bottom: none;
    }

    .bg-image-section {
        position: relative;
        background-image: url('img/BG.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        min-height: 100vh;
        display: flex;
        align-items: flex-end;
        padding: 0;
    }

    .bg-image-section::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0) 35%,
            rgba(0, 0, 0, 0.75) 70%,
            rgba(0, 0, 0, 0.92) 100%
        );
        pointer-events: none;
    }

    .full-bg-image {
        display: none;
    }

    .bg-overlay {
        position: relative;
        top: 0;
        right: 0;
        transform: none;
        width: 100%;
        background: rgba(0, 0, 0, 0.78);
        border-radius: var(--mobile-radius);
        margin: 0 16px 16px;
        padding: 22px 16px;
        max-height: 65vh;
        overflow: auto;
        z-index: 1;
    }

    .bg-services-list li {
        font-size: 0.95rem;
        line-height: 1.35;
        margin-bottom: 12px;
    }

    .final-section {
        background-image: url('img/final.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .final-bg {
        display: none;
    }

    .final-top {
        background-color: transparent;
    }

    .final-text-overlay {
        position: relative;
        top: 0;
        right: 0;
        transform: none;
        background: rgba(247, 182, 0, 0.92);
        border-radius: var(--mobile-radius);
        padding: 18px 14px;
        margin: 0 16px;
    }

    .final-bottom {

    }
}