@import url('services-styles.css');

:root {
    --primary-blue: #009bf6;
    --primary-green: #00c680;
    --primary-yellow: #ffd85e;
    --dark-text: #333333;
    --light-text: #f4f4f4;
    --white: #ffffff;
    --light-bg: #f9f9f9;
    --footer-bg: #1a1a1a;
    --transition: all 0.3s ease;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--white);
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

ul {
    list-style: none;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-blue), var(--primary-green));
    margin: 0 auto 20px;
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-green);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 198, 128, 0.4);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-blue);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Navbar */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 60px; /* Adjust based on actual logo aspect ratio */
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-weight: 600;
    color: var(--dark-text);
    position: relative;
    font-family: var(--font-heading);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-link.active {
    color: var(--primary-blue);
    font-weight: 600;
}
.nav-link.active::after {
    width: 100%;
}

.btn-contact {
    background-color: var(--primary-green);
    color: var(--white) !important;
    padding: 10px 25px;
    border-radius: 50px;
}

.btn-contact:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-contact::after {
    display: none;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: var(--transition);
    background-color: var(--dark-text);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/hero-water.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px; /* Offset for fixed navbar */
    position: relative;
}

/* Fallback/gradient background if no image is desired or to overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 155, 246, 0.4) 0%, rgba(0, 198, 128, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* History Section */
.history-section {
    background-color: var(--white);
}

.history-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
}

.history-text {
    flex: 1;
    min-width: 300px;
}

.history-text h3 {
    font-size: 1.8rem;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.history-text p {
    margin-bottom: 15px;
    color: #555;
}

.stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-yellow);
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #777;
}

.history-image {
    flex: 1;
    min-width: 300px;
    height: 400px; /* Or auto if you prefer full image ratio */
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.history-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.history-image:hover img {
    transform: scale(1.05);
}

/* Products Section (Carousel) */
.products-section {
    background-color: var(--light-bg);
}

.carousel-container {
    position: relative;
    height: 500px;
    width: 95%; /* Wider container */
    margin: 0 auto;
    overflow: hidden;
}

.carousel-track-container {
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
    height: 100%;
    /* Transition will be handled in JS */
}

.carousel-slide {
    min-width: 33.333%; /* 3 items visible */
    padding: 10px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.card {
    background-color: var(--white);
    padding: 0; /* Remove padding to let image fill */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 100%;
    text-align: center;
    transition: var(--transition);
    border-bottom: 4px solid var(--primary-blue);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end; /* Align text to bottom */
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-bottom-color: var(--primary-green);
}

.card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0));
    width: 100%;
    padding: 30px 20px;
    color: var(--white);
    text-align: left;
}

.card h3 {
    margin-bottom: 0;
    font-size: 1.2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    text-transform: uppercase;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 10;
    color: var(--primary-blue);
    transition: var(--transition);
}

.carousel-btn:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.carousel-indicator {
    border: none;
    width: 12px;
    height: 12px;
    background: #ccc;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
}

.carousel-indicator.current-slide {
    background: var(--primary-blue);
}

/* Success Section */
.success-section {
    background-color: var(--white);
}

.success-content {
    display: flex;
    justify-content: center;
}

.success-card {
    display: flex;
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    max-width: 1000px;
    width: 100%;
}

.success-image {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    position: relative;
    overflow: hidden;
}

.success-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: transform 0.5s ease;
}

.success-card:hover .success-image img {
    transform: scale(1.1);
}

.success-info {
    flex: 1.5;
    padding: 50px;
}

.category {
    display: inline-block;
    background-color: rgba(0, 155, 246, 0.1);
    color: var(--primary-blue);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.success-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark-text);
}

.success-highlight {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
    padding: 20px;
    background-color: rgba(255, 216, 94, 0.2);
    border-left: 5px solid var(--primary-yellow);
    border-radius: 5px;
}

.success-highlight i {
    font-size: 2rem;
    color: #e6c200; /* Darker yellow for icon */
}

.highlight-text {
    display: flex;
    flex-direction: column;
}

.highlight-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-text);
    line-height: 1;
}

.highlight-desc {
    font-size: 0.9rem;
    font-weight: 600;
}

.success-detail {
    color: #666;
    font-style: italic;
}

/* Contact Section */
.contact-section {
    background-color: #f4f7f6;
    position: relative;
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-right: 20px;
    margin-top: 5px;
    width: 30px;
    text-align: center;
}

.info-item h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-form-container {
    flex: 1;
    min-width: 300px;
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 5px rgba(0, 155, 246, 0.2);
}

/* Page Header (Internal Pages) */
.page-header {
    height: 40vh;
    min-height: 300px;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/hero-water.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
    position: relative;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Equipment Grid */
.equipment-section {
    padding-bottom: 100px;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.equipment-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: var(--transition);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.equipment-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.equipment-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.equipment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.equipment-card:hover .equipment-image img {
    transform: scale(1.1);
}

.equipment-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.equipment-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-blue);
}

.equipment-info p {
    color: #666;
    margin-bottom: 25px;
    flex-grow: 1;
}

.btn-secondary {
    background-color: var(--primary-green);
    color: var(--white);
    text-align: center;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    align-self: flex-start;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
}

.btn-secondary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    color: #bbb;
    padding: 70px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-logo-col {
    flex: 1.5;
}

.footer-logo {
    max-width: 200px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1); /* Make logo white if possible or adjust */
}

.footer-contact-details p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.footer h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.2rem;
    position: relative;
    display: inline-block;
}

.footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background-color: var(--primary-green);
}

.footer ul li {
    margin-bottom: 12px;
}

.footer ul li a {
    transition: var(--transition);
}

.footer ul li a:hover {
    color: var(--primary-blue);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .carousel-slide {
        min-width: 50%; /* 2 items */
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        gap: 0;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        height: 100vh; /* Changed to 100vh to cover screen */
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        padding-top: 80px;
        justify-content: flex-start;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 20px 0;
    }
    
    .history-content {
        flex-direction: column;
    }
    
    .history-image {
        width: 100%;
    }
    
    .success-card {
        flex-direction: column;
    }
    
    .success-image {
        min-height: 200px;
    }
    
    .carousel-slide {
        min-width: 100%; /* 1 item */
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Dropdown Styles */
.nav-item.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 0 0 10px 10px;
    min-width: 250px;
    z-index: 1100;
    padding: 10px 0;
    text-align: left;
}

.nav-item.dropdown:hover > .dropdown-menu {
    display: block;
    animation: fadeIn 0.3s ease;
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: var(--dark-text);
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
}

.dropdown-item:hover {
    background-color: rgba(0, 155, 246, 0.05);
    color: var(--primary-blue);
    padding-left: 25px;
}

.dropdown-item.active {
    color: var(--primary-blue);
    background-color: rgba(0, 155, 246, 0.05);
    font-weight: 700;
}

/* Submenu */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    border-radius: 0 10px 10px 10px;
    margin-top: -10px;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

.dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-toggle > i {
    font-size: 0.8em;
    margin-left: 10px;
}

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

/* Mobile Dropdown Adjustments */
@media (max-width: 768px) {
    .nav-item.dropdown:hover > .dropdown-menu {
        display: none;
    }
    
    .nav-item.dropdown {
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        display: block;
        box-shadow: none;
        width: 100%;
        background-color: #f9f9f9;
        padding-left: 0;
        border-radius: 0;
    }
    
    .dropdown-item {
        text-align: center;
        padding: 15px;
        border-bottom: 1px solid #eee;
    }

    .dropdown-submenu .dropdown-menu {
        position: static;
        margin-top: 0;
        border-radius: 0;
        background-color: #f0f0f0;
    }
    
    .nav-link {
        width: 100%;
        display: block;
        padding: 15px;
    }
    
    .dropdown-toggle {
        justify-content: center;
    }
    
    .dropdown-toggle > i {
        display: none;
    }
}

.intro-text {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
    font-size: 1.1rem;
    color: #555;
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.model-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.model-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 155, 246, 0.15);
    border-color: rgba(0, 155, 246, 0.3);
}

.model-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    padding: 20px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.model-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 50%);
    opacity: 1;
}

.model-title {
    font-size: 1.8rem;
    margin: 0;
    font-weight: 700;
}

.model-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

.model-body {
    padding: 30px;
    flex-grow: 1;
}

.model-specs {
    list-style: none;
    margin-bottom: 25px;
}

.model-specs li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: #555;
    font-size: 0.95rem;
}

.model-specs li i {
    color: var(--primary-green);
    width: 25px;
    margin-right: 10px;
    text-align: center;
}

/* Recommender Modal & Button */
.recommender-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    font-weight: 700;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    animation: float 3s ease-in-out infinite;
}

.recommender-float-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--white);
    width: 90%;
    max-width: 600px;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: all 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--dark-text);
}

.modal-header-text {
    text-align: center;
    margin-bottom: 30px;
}

.modal-header-text h2 {
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.form-step {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-text);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: var(--primary-blue);
    outline: none;
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    accent-color: var(--primary-blue);
    width: 18px;
    height: 18px;
}

.hidden {
    display: none;
}

.recommendation-result {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, rgba(0, 155, 246, 0.1), rgba(0, 198, 128, 0.1));
    border-radius: 15px;
    margin-top: 20px;
    border: 2px solid var(--primary-blue);
}

.rec-model-name {
    font-size: 2rem;
    color: var(--primary-blue);
    font-weight: 800;
    margin: 15px 0;
}

.btn-submit {
    background: var(--primary-blue);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.btn-submit:hover {
    background: var(--primary-green);
}

.model-actions {
    padding: 20px 30px;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-model {
    flex: 1;
    text-align: center;
    background: var(--primary-blue);
    color: white;
    padding: 10px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-model:hover {
    background: var(--primary-green);
    transform: translateY(-2px);
}

.btn-share {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    color: #777;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-share:hover {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: rotate(15deg);
}

/* Comparison Table Styles */
.comparison-section {
    background-color: #f8f9fa;
    padding: 80px 0;
    border-radius: 30px;
    margin-bottom: 80px;
}

.table-responsive {
    overflow-x: auto;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    background: white;
}

.tech-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.tech-table th, .tech-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.tech-table th {
    background-color: var(--primary-blue);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.tech-table th:first-child {
    border-top-left-radius: 15px;
}
.tech-table th:last-child {
    border-top-right-radius: 15px;
}

.tech-table tr:hover {
    background-color: #f0f7ff;
}

.tech-table td strong {
    color: var(--primary-blue);
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-auto {
    background-color: rgba(0, 198, 128, 0.15);
    color: var(--primary-green);
}

.badge-semi {
    background-color: rgba(255, 216, 94, 0.2);
    color: #dcb000;
}

/* Recommender Modal Styles */
.recommender-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%); 
    /* Or a more corporate gradient: */
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    font-weight: 700;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.recommender-float-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: white;
    width: 90%;
    max-width: 600px;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #333;
}

.modal-header-text {
    text-align: center;
    margin-bottom: 30px;
}

.modal-header-text h2 {
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.form-step {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 155, 246, 0.1);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.radio-option:hover {
    background-color: #f9f9f9;
    border-color: #ccc;
}

.radio-option input[type="radio"] {
    margin-right: 12px;
    accent-color: var(--primary-blue);
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 20px;
}

.btn-submit:hover {
    background: var(--primary-green);
}

.hidden {
    display: none;
}

.recommendation-result {
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.result-card {
    background: linear-gradient(135deg, #f0f9ff, #e6fff2);
    padding: 30px;
    border-radius: 15px;
    margin: 20px 0;
    border: 1px solid rgba(0, 155, 246, 0.2);
}

.result-model-name {
    font-size: 2rem;
    color: var(--primary-blue);
    font-weight: 800;
    margin: 10px 0;
}

.disclaimer {
    font-size: 0.8rem;
    color: #888;
    margin-top: 20px;
    font-style: italic;
}
