/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #fb8225; /* Orange from Logo */
    --primary-dark: #e06910;
    --secondary-color: #0a192f; /* Deep Navy Blue */
    --secondary-light: #172a46;
    --accent-color: #fb8225;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --hero-bg-start: #0a192f;
    --hero-bg-end: #112240;
}

body {
    line-height: 1.6;
    color: var(--text-color);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

/* Top Bar */
.top-bar {
    background-color: var(--secondary-color);
    color: rgba(255,255,255,0.85);
    padding: 8px 0;
    font-size: 0.8rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contact {
    display: flex;
    gap: 20px;
}

.top-contact span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-contact i, .top-social i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.top-social {
    display: flex;
    gap: 15px;
}

.top-social a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s, transform 0.3s;
}

.top-social a:hover {
    color: var(--white);
    transform: translateY(-2px);
}

/* Header & Navbar */
header {
    background-color: var(--white);
    box-shadow: none; /* Removed initial shadow */
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

header.scrolled {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    transition: height 0.4s;
}

header.scrolled .navbar {
    height: 70px; /* Shrink on scroll */
}

.logo img {
    height: 55px;
    width: auto;
    transition: all 0.3s;
}

header.scrolled .logo img {
    height: 45px; /* Shrink logo */
}

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

.nav-link {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    text-transform: capitalize; /* Changed from uppercase for softer look */
    letter-spacing: 0.3px;
    position: relative;
    padding: 5px 0;
}

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

/* Animated Underline */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    transition: width 0.3s ease;
    border-radius: 2px;
}

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

/* Login Button */
.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff5e00 100%);
    color: var(--white) !important;
    padding: 10px 30px;
    border-radius: 50px;
    margin-left: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(251, 130, 37, 0.25);
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(251, 130, 37, 0.4);
    background: linear-gradient(135deg, #ff5e00 0%, var(--primary-color) 100%);
}

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

/* Dropdown Menu */
.dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.dropdown > .nav-link i {
    font-size: 0.75rem;
    margin-left: 4px;
    transition: transform 0.3s;
}

.dropdown:hover > .nav-link i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%; /* Center alignment attempt */
    transform: translateX(-50%) translateY(20px); /* Center align */
    background-color: var(--white);
    min-width: 240px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1001;
    border-radius: 8px;
    padding: 10px 0;
    border: none; /* Removed top border for cleaner look */
    border-top: 4px solid var(--primary-color); /* Kept distinctive top border */
}

/* Adjust dropdown position for better alignment */
.dropdown-menu {
    left: 0;
    transform: translateY(20px);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    padding: 12px 25px;
    color: #555;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    background-color: #fff8f3;
    color: var(--primary-color);
    padding-left: 30px;
    border-left-color: var(--primary-color);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 25px;
    position: relative;
    z-index: 1002;
}

.menu-toggle .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--hero-bg-start) 0%, var(--hero-bg-end) 100%);
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,140,0,0.1) 0%, rgba(0,0,0,0) 70%);
    z-index: 0;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
}

.hero-text h4 {
    color: #aaa;
    margin-bottom: 10px;
    font-weight: 400;
    letter-spacing: 1px;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
    font-weight: 700;
}

.hero-text h1 span {
    color: var(--primary-color);
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.8;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
}

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

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

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
}

.btn-secondary:hover {
    background-color: var(--secondary-light);
    transform: translateY(-2px);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.float-btn {
    display: flex;
    align-items: center;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s;
    box-shadow: -2px 2px 10px rgba(0,0,0,0.2);
}

.float-btn.review {
    background-color: #2e3192; /* Blue */
}

.float-btn:hover {
    transform: translateX(-5px);
}

.float-btn i {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Page Header (Inner Pages) */
.page-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #4a2b70 100%);
    padding: 80px 0;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
    color: #ddd;
}

.breadcrumb a {
    color: var(--primary-color);
}

.breadcrumb span {
    color: #bbb;
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-img {
    flex: 1;
}

.about-img img {
    width: 100%;
    border-radius: 10px;
}

.about-text {
    flex: 1;
}

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

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

.feature-list li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.feature-list i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* Stats Section */
.stats-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0;
}

.stats-section .container {
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap;
    gap: 20px;
}

.stat-item h3 {
    font-size: 3rem;
    margin-bottom: 5px;
}

/* Contact Section */
.contact-wrapper {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

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

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

.contact-form {
    flex: 1;
    background: var(--white);
    padding: 30px;
    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;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
}

.contact-form button {
    width: 100%;
}

/* Footer */
footer {
    background-color: #050e1b; /* Darker Navy */
    color: #a0aebf; /* Soft gray-blue text */
    padding-top: 80px;
    font-size: 0.95rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr; /* 4 Columns */
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 20px;
    background: #fff;
    padding: 5px 10px;
    border-radius: 5px;
}

.footer-about p {
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-links h4, .footer-contact h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after, .footer-contact h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

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

.footer-links a {
    color: #a0aebf;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a i {
    font-size: 0.8rem;
    color: var(--primary-color);
    transition: transform 0.3s;
}

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

.footer-contact ul li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.footer-contact i {
    color: var(--primary-color);
    margin-top: 4px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.05);
    border-radius: 5px;
    color: var(--white);
    transition: all 0.3s;
}

.social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 25px 0;
    font-size: 0.9rem;
}

.footer-bottom .row {
    display: flex;
    justify-content: center; /* Centered copyright */
    align-items: center;
}

.footer-bottom p {
    margin: 0;
}

/* Responsive Footer */
@media (max-width: 991px) {
    .footer-content {
        grid-template-columns: 1fr 1fr; /* 2 Columns on Tablet */
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr; /* 1 Column on Mobile */
        gap: 30px;
    }
    
    .footer-bottom .row {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* Responsive Design */
@media (max-width: 991px) {
    .menu-toggle {
        display: block !important;
    }

    .top-bar {
        display: none !important; /* Hide Top Bar on mobile */
    }

    .navbar {
        height: 70px; /* Reduce navbar height */
        padding: 0 15px;
    }

    .logo img {
        height: 45px; /* Reduce logo size */
    }

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

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

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

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px; /* Match new navbar height */
        gap: 0;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: left; /* Align text left */
        transition: 0.3s;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        height: calc(100vh - 70px); /* Full height */
        overflow-y: auto; /* Scrollable */
        padding-bottom: 50px;
    }

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

    .nav-menu li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .nav-link {
        display: block;
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .nav-link::after {
        display: none; /* Remove underline effect */
    }

    /* Mobile Dropdown */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        width: 100%;
        background-color: #f9f9f9;
        display: none; /* Hidden by default */
        padding-left: 20px;
        border-top: none;
    }

    .dropdown.active .dropdown-menu {
        display: block; /* Show when active */
    }

    .dropdown-menu a {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .nav-link i {
        float: right;
        transition: transform 0.3s;
    }

    .dropdown.active .nav-link i {
        transform: rotate(180deg);
    }

    .btn-login {
        margin: 20px;
        text-align: center;
        width: calc(100% - 40px);
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-content {
        flex-direction: column;
    }
    
    .contact-wrapper {
        flex-direction: column;
    }
}

/* --- New Homepage Styles --- */

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.animate-fade-up {
    animation: fadeUp 1s ease-out forwards;
}

.animate-fade-left {
    animation: fadeLeft 1s ease-out forwards;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border-bottom: 3px solid transparent;
}

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

.icon-box {
    width: 70px;
    height: 70px;
    background: rgba(192, 32, 38, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: all 0.3s;
}

.feature-card:hover .icon-box {
    background: var(--primary-color);
    color: var(--white);
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
}

.quote-icon {
    font-size: 2rem;
    color: rgba(192, 32, 38, 0.1);
    margin-bottom: 20px;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.client-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.client-info h4 {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-bottom: 2px;
}

.client-info span {
    font-size: 0.85rem;
    color: #777;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #a01a1f 100%);
    padding: 80px 0;
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    padding: 0 20px;
}

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

.btn-light:hover {
    background: #f4f4f4;
    transform: translateY(-2px);
}

/* Improved Stats Styling */
.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    gap: 10px;
}
