/* ===========================
   General Styles
   =========================== */
body {
    font-family: 'Open Sans', sans-serif; /* Default font */
    background-color: #121212; /* Dark background */
    color: #ffffff; /* Light text for contrast */
    margin: 0;
    padding: 0;
}

h1, h2, h3, .main-header {
    font-family: 'Poppins', sans-serif; /* Header font */
    font-weight: 900; /* Bold headers */
    color: white; 
}

/* ===========================
   Navbar Styling
   =========================== */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) rotateX(90deg); /* Start flipped */
    z-index: 1000;
    width: 75%;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform-origin: top;
    opacity: 0; /* Hidden initially */
}

.navbar-logo img {
    width: 200px;
    height: auto;
}

.nav .nav-item {
    margin: 0 10px;
}

.nav .nav-link {
    font-size: 1.1rem;
    padding: 10px 15px;
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav .nav-link:hover {
    color: #FFD700;
}

/* Navbar Dropdown Styling */
.navbar .dropdown-menu {
    background-color: #1e1e1e;
    border: 1px solid #00b3b3;
    border-radius: 8px;
    padding: 0;
    margin-top: 10px;
    min-width: 220px;
}

.navbar .dropdown-item {
    color: white;
    padding: 10px 20px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    transition: background-color 0.3s ease;
}

.navbar .dropdown-item:hover {
    background-color: #00b3b3;
    color: #1e1e1e;
}


/* ===========================
   Common Section Styling
   =========================== */
section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.section:nth-child(odd) {
    background-color: #1e1e1e; /* Slightly lighter dark background */
}

.section:nth-child(even) {
    background-color: #121212; /* Dark background */
}

#smooth-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#smooth-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
}

/* ===========================
   Section 1: Chat Interface
   =========================== */
.chat-interface {
    text-align: center;
    width: 80%;
    margin: 0 auto;
    padding: 20px;
    color: #ffffff; /* Light text */
    background: #1e1e1e; /* Slightly lighter dark background */
}

.prompt-input {
    width: 100%; 
    font-size: 1.2rem;
    padding: 10px 15px;
    margin: 0 auto;
    background-color: #121212; /* Dark input background */
    color: #ffffff; /* Light text */
    border: 1px solid #008080; /* Teal border */
}

.btn-teal {
    background-color: #008080;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-teal:hover {
    background-color: #005959;
}

.flipping-text {
    display: inline-block;
    font-weight: bold;
    font-size: 2.5em;
    background: linear-gradient(to right, #008080, #00b3b3, #00e6e6, #66ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===========================
   Sample Questions Animation
   =========================== */
.sample-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    opacity: 0;
    margin-top: 20px;
}

.sample-question {
    font-size: 1rem;
    background: #eeeeee;
    color: #1d1d1d;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    opacity: 0;
    transform: translateX(-50px);
}

.sample-question:hover {
    background-color: #008080;
    color: #fff;
}

/* ===========================
   Section 2: Animation
   =========================== */
#section2 {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background-color: #111;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.animation-wrapper {
    position: relative;
    height: 60%;
    width: 100%;
    overflow: hidden;
}

.background-layer {
    position: absolute;
    bottom: 0;
    width: 300%;
    height: auto;
}

.citybg-1 img,
.citybg-2 img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.citybg-1 {z-index: 1;}
.citybg-2 {z-index: 3;}

.car {
    position: absolute;
    bottom: 10%;
    left: 10%;
    width: 200px;
    z-index: 10;
}

.car-old {
    position: absolute;
    bottom:10%;
    width: 100%
    height: auto;
    opacity: 1; /* Start visible */
    z-index: 1; /* Behind the new car */
    transition: opacity 0.5s ease; /* Smooth fade */
}

.car-new {
    position: absolute;
    bottom:10%;
    width: 100%;
    height: auto;
    opacity: 0; /* Start hidden */
    z-index: 2; /* On top of the old car */
    transition: opacity 0.5s ease; /* Smooth fade */
}

.exhaust-wrapper {
    position: absolute;
    bottom: -20%; /* Slightly above the bottom of the car */
    left: -20%; /* Offset to align with the car's exhaust */
    width: 50px; /* Adjust width based on car size */
    height: 50px; /* Adjust height based on car size */
    z-index: 0; /* Below the car images */
    pointer-events: none; /* Prevent interactions */
}

.exhaust-cloud {
    position: absolute;
    width: 50px; /* Cloud size */
    height: 50px;
    background: url('../images/gas-cloud.png') no-repeat center;
    background-size: cover;
    opacity: 0; /* Hidden by default */
    transform-origin: center;
    pointer-events: none;
}

@keyframes exhaust-float {
    0% {opacity: 1;transform: translateY(0) scale(0.8);}
    50% {opacity: 0.8; transform: translateY(-20px) scale(1.1);}
    100% {opacity: 0; transform: translateY(-40px) scale(1.3);}
}

.city-lights img {
    width: 100%; /* Matches the width of citybg-2 */
    height: auto;
    opacity: 0; /* Start fully transparent */
    pointer-events: none; /* Prevent any interactions */
    animation: none; /* Initially no glow */
    object-fit: cover; /* Ensures the image stretches properly */
    z-index: 4; /* Higher than citybg-2 */
}

.city-lights {z-index: 4;}

@keyframes glow {
    0% {filter: brightness(1);}
    50% {filter: brightness(1.5);}
    100% {filter: brightness(1);}
}

.wind-turbine-wrapper {
    position: absolute;
    bottom: 10%;
    width: 100%;
    height: 50%;
    z-index: 2; /* Above citybg-1 */
    pointer-events: none; 
}

.wind-turbine {
    position: absolute;
    bottom: 0;
    width: 200px; 
    height: auto;
    transform-origin: bottom center; 
    opacity: 0; /* Hidden by default */
    transform: scale(0.5); /* Start small */
}

.percentage-counter {
    position: absolute;
    top: -50px; /* Counter above the car */
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    z-index: 15; /* Above other elements */
}

.percentage-counter .percentage {
    font-size: 3rem; /* Bold large number */
    font-weight: 900;
    line-height: 0.8em;
}

.percentage-counter .description {
    font-size: 1.2rem; /* Smaller text */
    line-height: 0.8em;
    font-weight: 500;
    overflow-x: auto;
}


/* Stars */
.star-wrapper {
    position: absolute;
    top: 10%;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1; /* Above city lights */
}

.star {
    position: absolute;
    background-color: #fff;
    border-radius: 50%;
    opacity: 0.6;
    animation: twinkle 2s infinite ease-in-out;
}

/* Pulsating animation for stars */
@keyframes twinkle {
    0% {
        opacity: 0.5;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.text-wrapper {
    position: absolute;
    top: 15%;
    width: 100%;
    text-align: center;
    z-index: 5;
}

.text-group {
    display: flex;
    flex-direction: column; 
    align-items: center; 
    justify-content: flex-start; 
    position: absolute;
    width: 100%;
}

.text {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 3rem;
    color: #fff;
    opacity: 0;
    width: 100%;
    text-align: center; 
    transition: opacity 0.3s ease-in-out;
}

.text span.match-gradient {
    background: linear-gradient(to right, #008080, #00b3b3, #00e6e6, #66ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-description {
    font-size: 1.5rem;
    color: #fff;
    opacity: 0;
    width: 80%;
    text-align: center;
    transition: opacity 0.3s ease-in-out;
    margin-top: 0.5rem;
}


/* ===========================
   Section 3: Services Animation
   =========================== */
#section3 {
    background-color: #1e1e1e;
    color: white;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.section3-animation-column {
    position: relative;
    height: 100%;
}

.section3-animation-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    margin-top:75%;
}

.section3-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: 100%;
    width: 90%;
    padding: 20px;
}

.section3-block {
    position: absolute;
    width: 300px;
    left: 50%;
    transform: translateX(-50%) translateY(-300%);
    opacity: 0;
}

/* Section 3 Title and Description Styling */
/* Default Text */
.section3-default {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 4em;
    text-align: left;
    opacity: 1;
    transform: translateY(0); /* Visible by default */
    transition: opacity 0.5s ease, transform 0.5s ease;
    min-height: 80px;
}

/* Section 3 Title and Description */
.section3-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    opacity: 0; /* Hidden by default */
    transform: translateY(20px); /* Slight offset */
    transition: opacity 0.5s ease, transform 0.5s ease;
    background: linear-gradient(to right, #008080, #00b3b3, #00e6e6, #66ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section3-description {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1.2rem;
    line-height: 1.5;
    opacity: 0; /* Hidden by default */
    transform: translateY(20px); /* Slight offset */
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Final Summary Text */
.section3-summary {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1.5;
    text-align: left;
    opacity: 0; /* Hidden by default */
    transform: translateY(20px); /* Slight offset */
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.section3-block-1 {z-index: 1;}
.section3-block-2 {z-index: 2;}
.section3-block-3 {z-index: 3;}
.section3-block-4 {z-index: 4;}
.section3-block-5 {z-index: 5;}

/* ===========================
   Section 4: Match Animation
   =========================== */

#section4 {
    background-color: #121212;
    color: #ffffff;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 0 20px;
}

.section4-flash-text-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
}

.section4-flash-text {
    font-family: 'Poppins', sans-serif;
    font-size: 8em;
    font-weight: 900;
    color: white;
    text-align: center;
    text-transform: uppercase;
}

.section4-flash-text span.match-gradient {
    background: linear-gradient(to right, #008080, #00b3b3, #00e6e6, #66ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section4-panel-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
    transform: translateY(50px);
}

.section4-panel {
    background-color: #1e1e1e;
    border: 2px solid;
    border-image-source: linear-gradient(to right, #008080, #00b3b3, #00e6e6, #66ffff);
    border-image-slice: 1;
    border-radius: 15px;
    width: 300px;
    height: 400px;
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
    transform-origin: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.section4-panel:hover {
    transform: translateY(-10px) rotate3d(1, 1, 0, 10deg);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.5);
}

.section4-panel h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: white;
}

.section4-panel p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    margin: 0;
    color: #ffffff;
    line-height: 1.5;
}

.section4-final-text {
    opacity: 0;
    text-align: center;
    vertical-align: top;
    font-size: 1.5rem;
    font-family: 'Open Sans', sans-serif;
    color: #ffffff;
    width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-top:50px;
    transition: opacity 1s ease-in-out;
}

/* ===========================
   Section 5: Comparison Chart
   =========================== */
#section5 {
    background-color: #1e1e1e;
    color: white;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 40px 20px;
    text-align: center;
}

/* Section Header */
.section5-header {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 10px;
    color: #ffffff;
}

.section5-subheader {
    font-size: 1.2rem;
    color: #eeeeee;
    margin-bottom: 30px;
    max-width: 1000px;
} 

/* Comparison Table */
.section5-table-wrapper {
    width: 80%;
    max-width: 1000px;
    margin-top: 20px;
}

.section5-comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background: #121212;
    border: 2px solid #00b3b3;
}

.section5-comparison-table th,
.section5-comparison-table td {
    padding: 15px;
    border-bottom: 1px solid #00b3b3;
}

.section5-comparison-table th {
    background: #008080;
    color: white;
    font-weight: bold;
}

.section5-comparison-table td {
    color: #ffffff;
}

.section5-comparison-table tr:last-child td {
    border-bottom: none;
}

/* Registration Button */
.section5-register-btn {
    margin-top: 30px;
    padding: 15px 30px;
    font-size: 1.2rem;
    background: linear-gradient(to right, #008080, #00b3b3, #00e6e6);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.section5-register-btn:hover {
    transform: scale(1.1);
    box-shadow: 0px 5px 15px rgba(0, 227, 255, 0.5);
}


/* ===========================
   Section 6: Contact Us
   =========================== */
#section6 {
    background-color: #1e1e1e;
    color: white;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 40px 20px;
    text-align: center;
}

/* Section Header */
.section6-header {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 10px;
    color: #ffffff;
}

.section6-subheader {
    font-size: 1.5rem;
    color: #b3b3b3;
    margin-bottom: 30px;
}

/* Contact Boxes Grid - Ensuring Center Alignment */
.section6-box-wrapper {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 1fr)); /* 2 columns with equal width */
    gap: 15px;
    max-width: 900px; /* Ensures boxes are centered and responsive */
}

/* Individual Contact Boxes */
.section6-box {
    background-color: #121212;
    border: 2px solid;
    border-image-source: linear-gradient(to right, #008080, #00b3b3, #00e6e6, #66ffff);
    border-image-slice: 1;
    border-radius: 12px;
    width: 420px;
    height: 260px;
    text-align: left;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
    transform-origin: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

/* Hover Effect - Zoom */
.section6-box:hover {
    transform: scale(1.1);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.6);
}

/* Text Styling Inside Boxes */
.section6-box h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: white;
    text-align: left;
}

.section6-box p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.2rem;
    color: #ffffff;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    margin-top: auto;
    padding-top: 15px;
}

/* Arrow Animation */
.arrow {
    font-size: 1.2rem;
    color: #00e6e6;
    transition: transform 0.3s ease-in-out;
}

.section6-box:hover .arrow {
    transform: translateX(5px);
}

/* ===========================
   Contact Us Modal Styling (Only in Section 6)
   =========================== */
.section6-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Dark overlay only for Section 6 */
    display: none; /* Initially hidden */
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.section6-modal {
    background-color: #1e1e1e;
    color: white;
    border-radius: 12px;
    padding: 20px;
    width: 500px;
    max-width: 90%;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.5);
}

/* Modal Header Styling */
.modal-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 15px;
    text-align: center;
}

/* Ensure modal body content is visible */
.section6-modal .modal-body .form-label {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    text-align: left;
    display: block;
    margin-bottom: 5px;
}

.section6-modal .modal-body .form-control,
.section6-modal .modal-body .form-select {
    background-color: #2a2a2a;
    color: white;
    border: 1px solid #00b3b3;
    width: 100%;
    padding: 10px;
    border-radius: 5px;
}

.section6-modal .modal-body .form-control:focus,
.section6-modal .modal-body .form-select:focus {
    border-color: #00e6e6;
    box-shadow: 0px 0px 8px rgba(0, 227, 255, 0.5);
}

/* Phone Number Input Styles */
.iti {
    width: 100%;
}

.iti__selected-flag {
    background-color: #2a2a2a !important;
    color: white !important;
    border: 1px solid #00b3b3 !important;
}

.iti__dropdown-content {
    background-color: #2a2a2a !important;
    color: white !important;
}

/* Fix dropdown styling for phone number */
.iti__country-list {
    background: #2a2a2a !important;
    color: white !important;
}

/* Ensure Topic dropdown matches styling */
#topic {
    background-color: #2a2a2a;
    color: white;
    border: 1px solid #00b3b3;
}

/* Close Button */
.btn-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Button Styles */
.contact-submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(to right, #008080, #00b3b3, #00e6e6);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.contact-submit-btn:hover {
    transform: scale(1.05);
    box-shadow: 0px 5px 15px rgba(0, 227, 255, 0.5);
}

/* Show modal when active */
.section6-modal-overlay.show {
    display: flex;
}



/* ===========================
   Utilities and Animations
   =========================== */








