:root {
    /* Light Mode Variables (Default) */
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --bg-color: #ffffff;
    --text-color: #4a4a4a;
    --header-bg: rgba(255, 255, 255, 0.95);
    --header-text: #333333;
    --card-bg: #ffffff;
    --border-color: #e9ecef;
    --section-bg-alt: #f8f9fa;
    /* Alternating section color */

    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* Dark Mode Variables */
body.dark-mode {
    --primary-color: #3b82f6;
    /* Lighter blue for dark mode */
    --secondary-color: #a0aec0;
    --bg-color: #111111;
    --text-color: #e2e8f0;
    --header-bg: #0a0a0a;
    --header-text: #ffffff;
    --card-bg: #1a1a1a;
    --border-color: #2d3748;
    --section-bg-alt: #0f0f0f;

    --shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    --hover-shadow: 0 10px 20px rgba(0, 0, 0, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    /* Smooth theme switch */
}

body {
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

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

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--header-text);
    /* Use header text color for headings */
    margin-bottom: 20px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--secondary-color);
}

/* Common Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* Header */
.header {
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
    /* Let nav items define height */
}

.head.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    z-index: 1;
    max-width: 100%;
    /* Ensure it doesn't overflow */
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    /* Fixed height for header */
}

.logo-text img {
    margin-top: 13px;
    width: 212px;
    height: auto;
}


/* Header Actions (Theme Toggle & Mobile Menu) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Theme Toggle Button */
.theme-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--header-text);
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

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

/* Logic to show/hide sun/moon */
body.dark-mode .moon-icon {
    display: none;
}

body.dark-mode .sun-icon {
    display: block;
}

body:not(.dark-mode) .moon-icon {
    display: block;
}

body:not(.dark-mode) .sun-icon {
    display: none;
}


/* Nav Items */
.nav-list {
    display: flex;
    gap: 0;
    align-items: center;
    height: 100%;
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-item>a {
    color: var(--header-text);
    font-weight: 500;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.nav-item:hover>a {
    background-color: rgba(125, 125, 125, 0.1);
    color: var(--primary-color);
}

.arrow {
    font-size: 0.7rem;
    transition: transform 0.3s;
}

.nav-item:hover .arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--card-bg);
    min-width: 220px;
    border-top: 2px solid var(--primary-color);
    box-shadow: var(--hover-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    padding: 10px 0;
    border-radius: 0 0 5px 5px;
}

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

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 25px;
    color: var(--text-color);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.dropdown-menu a:hover {
    background-color: rgba(125, 125, 125, 0.1);
    color: var(--primary-color);
    padding-left: 30px;
}

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

.dropdown-submenu .submenu {
    top: 0;
    left: 100%;
    margin-left: 0;
    border-top: none;
    border-left: 2px solid var(--primary-color);
    border-radius: 0 5px 5px 5px;
}

.arrow-right {
    font-size: 0.8rem;
}

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


/* Mobile Nav Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--header-text);
    transition: 0.3s;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background-color: var(--card-bg);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.mobile-nav-overlay.active {
    width: 300px;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-header .logo-text {
    font-size: 1.2rem;
}

.mobile-nav-list {
    padding: 0;
    overflow-y: auto;
    max-height: calc(100vh - 70px);
}

.mobile-nav-item {
    border-bottom: 1px solid var(--border-color);
    position: relative;
    display: flex;
    flex-wrap: wrap;
}

.mobile-nav-item>a {
    flex: 1;
    padding: 15px 20px;
    color: var(--text-color);
    font-weight: 500;
}

.mobile-dropdown-toggle {
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-left: 1px solid var(--border-color);
    font-size: 1.2rem;
    color: var(--secondary-color);
    transition: all 0.3s;
}

.mobile-dropdown-toggle.active {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: rotate(180deg);
}

/* Mobile Dropdown Menu */
.mobile-dropdown-menu {
    width: 100%;
    display: none;
    background-color: rgba(0, 0, 0, 0.03);
    /* Slight dim for nesting */
    padding: 0;
}

body.dark-mode .mobile-dropdown-menu {
    background-color: rgba(255, 255, 255, 0.03);
}

.mobile-dropdown-menu.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.mobile-dropdown-menu li a {
    padding: 12px 20px 12px 40px;
    font-size: 0.9rem;
    color: var(--text-color);
    display: block;
    border-bottom: 1px solid var(--border-color);
    opacity: 0.8;
}

.mobile-dropdown-menu li a:hover {
    color: var(--primary-color);
    background-color: rgba(125, 125, 125, 0.05);
}

.close-mobile-nav {
    border: none;
    background: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--header-text);
}


/* Hero */
.hero {
    padding-top:50px;
    background-color: var(--bg-color);
    /* Fallback */
    /* Dynamic Gradient based on theme */
    background: linear-gradient(135deg, var(--section-bg-alt) 0%, var(--bg-color) 100%);
    display: flex;
    align-items: center;
    position: relative;
}

.container.hero-container{
    display: flex;
    

}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--header-text);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--secondary-color);
    max-width: 500px;
}

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

.hero-image img {
    width: 800px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

/* Float Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

.float-animation {
    animation: float 4s ease-in-out infinite;
}

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

.feature-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
    border-color: var(--primary-color);
}

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    display: inline-block;
    transition: transform 0.3s ease;
}

.feature-card:hover .icon {
    transform: scale(1.1);
}

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

/* Stats */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    color: #ffffff;
    padding: 80px 0;
}

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

.stat-item h3 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.stat-item p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Work Process Section */
.process-section {
    background-color: var(--section-bg-alt);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    position: relative;
}

.step {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h3 {
    margin-bottom: 10px;
    color: var(--header-text);
}

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

.solution-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    border-color: var(--border-color);
}

.solution-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.solution-card:hover img {
    transform: scale(1.05);
}

.solution-content {
    padding: 25px;
}

.solution-content h3 {
    margin-bottom: 10px;
    color: var(--header-text);
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    font-weight: 600;
}

.read-more:hover {
    text-decoration: underline;
}

/* Contact */
.contact-section {
    background-color: var(--section-bg-alt);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.contact-item {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--header-text);
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    /* Always dark footer */
    color: #ccc;
    padding: 80px 0 20px;
}

.footer-col h3 {
    color: #ffffff;
    margin-bottom: 25px;
}

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

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

.newsletter-form {
    display: flex;
    margin-top: 20px;
}

.newsletter-form input {
    padding: 12px;
    border: none;
    border-radius: 5px 0 0 5px;
    flex: 1;
    outline: none;
    background-color: #f8f9fa;
    color: #333;
}

.newsletter-form button {
    padding: 12px 25px;
    background-color: var(--primary-color);
    border: none;
    color: #ffffff;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-weight: 600;
}

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

/* Back to Top Button */
#backToTop {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--primary-color);
    color: #ffffff;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

#backToTop:hover {
    background-color: #0056b3;
    transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 992px) {
    .nav {
        display: none;
        /* Hide nav on tablet/mobile */
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    /* Tablet Responsiveness */
    .hero-container {
        grid-template-columns: 1fr;
        /* Stack on smaller laptops/tablets */
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        order: 1;
        margin-bottom: 20px;
    }

    .hero-image {
        order: 2;
        width: 100%;
        margin-top: 0;
        z-index: 1;
    }

    .hero-buttons {
        justify-content: center;
        margin-bottom: 0;
    }

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

    .stats-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .hero {
    padding-top:0px;
     }
    .container.hero-container {
        flex-direction: column;
        text-align: center;
    }
   .newsletter-form {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
        box-sizing: border-box;
        border-radius: 4px;
    }
}



