* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    overflow-y: auto; /* Main scrollbar for vertical scrolling */
}

body {
    line-height: 1.6;
    color: #333;
    background: #f9fbfd;
}

/* Utility Classes */
.bg-purple-gradient {
    background: linear-gradient(135deg, #6b46c1, #8e5cff);
}

.bg-black {
    background: #1a1a1a;
}

.text-purple {
    color: #6b46c1;
}

.text-orange {
    color: #f28c38;
}

/* Header Styles */
.header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
}

.header:hover {
    background: linear-gradient(135deg, #5a36a4, #7a4de6);
}

.navbar-brand .logo-text {
    font-family: 'Pacifico', cursive;
    font-size: 1.8rem;
    color: #f28c38;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.nav-link {
    color: #fff !important;
    font-weight: 600;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-link:hover {
    color: #f28c38 !important;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(15, 15, 15, 0.7), rgba(15, 15, 15, 0.8)), url('assets/img/dashboard2.jpg') no-repeat center center/cover;
    min-height: 70vh;
    height: auto; /* Allow height to adjust based on content */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
    position: relative;
    width: 100%;
    max-width: 100vw;
}

.hero .glass-panel {
    backdrop-filter: blur(2px);
    border-radius: 20px;
    padding: 40px;
    max-width: 800px;
    width: 100%;
    animation: heroFadeIn 2s ease-in-out;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero .highlight {
    color: #ff9a9e;
    background: linear-gradient(to right, #ff9a9e, #fad0c4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.hero .contact-info {
    margin: 1.5rem 0;
    font-size: 1rem;
}

.hero .contact-info span {
    margin: 0 1rem;
    display: inline-block;
}

.hero .contact-info i {
    margin-right: 6px;
    color: #ffd1dc;
}

.hero .buttons {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero .btn {
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 10px;
    display: block;
    width: 100%;
    max-width: 250px;
    opacity: 1;
    visibility: visible;
}

.hero .btn.orange {
    background: linear-gradient(to right, #ff512f, #dd2476);
    color: white;
}

.hero .btn.orange:hover {
    box-shadow: 0 0 15px #ff6f61;
    transform: scale(1.05);
}

.hero .btn.purple {
    background: linear-gradient(to right, #6a11cb, #2575fc);
    color: white;
}

.hero .btn.purple:hover {
    box-shadow: 0 0 15px #6a11cb;
    transform: scale(1.05);
}

/* General Button Styles */
.btn-purple {
    background: linear-gradient(135deg, #6b46c1, #8e5cff);
    color: #fff;
    padding: 12px 25px;
    border-radius: 25px;
    border: none;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.btn-purple:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(107, 70, 193, 0.5);
    color: #fff;
}

.btn-orange {
    background: #f28c38;
    color: #fff;
    padding: 12px 25px;
    border-radius: 25px;
    border: none;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.btn-orange:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(242, 140, 56, 0.5);
    color: #fff;
}

/* Slider Section */
.slider {
    width: 100%;
    max-width: 100vw;
}

.slider .carousel-inner img {
    height: clamp(300px, 50vh, 450px);
    width: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Features Section */
.features .feature-card {
    border: none;
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
    cursor: pointer;
    width: 100%;
    max-width: 100%;
}

.features .feature-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 30px rgba(107, 70, 193, 0.3);
    background: #f28c38;
}

.features .feature-card .feature-icon {
    transition: transform 0.4s ease, color 0.4s ease;
}

.features .feature-card:hover .feature-icon {
    transform: rotate(360deg);
    color: #fff;
}

/* Gallery Section */
.gallery .gallery-card {
    border: none;
    overflow: hidden;
    border-radius: 15px;
    transition: transform 0.4s ease, background 0.4s ease;
    width: 100%;
    max-width: 100%;
}

.gallery .gallery-card:hover {
    transform: scale(1.03);
    background: #f28c38;
}

.gallery .gallery-card img {
    height: clamp(200px, 30vh, 300px);
    width: 100%;
    max-width: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease;
}

.gallery .gallery-card:hover img {
    opacity: 0.8;
}

.gallery .gallery-card .gallery-icon {
    transition: transform 0.4s ease, color 0.4s ease;
}

.gallery .gallery-card:hover .gallery-icon {
    transform: rotate(360deg);
    color: #fff;
}

/* Client Carousel */
.es-client-carousel {
    background: linear-gradient(135deg, #6b46c1, #8e5cff);
    padding: 40px 0;
    width: 100%;
    max-width: 100vw;
}

.owl-carousel .item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.owl-carousel img {
    max-height: 50px;
    width: auto;
    filter: brightness(1);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.owl-carousel img:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

/* ERP Section */
.erp-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #6b46c1, #8e5cff);
    color: white;
    text-align: center;
    width: 100%;
    max-width: 100vw;
}

.erp-container {
    max-width: 1140px;
    margin: auto;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

.erp-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.erp-subtitle {
    font-size: 1.15rem;
    margin-bottom: 35px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.erp-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.erp-tab {
    padding: 12px 24px;
    background: white;
    color: orangered;
    font-weight: 500;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.erp-tab:hover,
.erp-tab.erp-active {
    background: orangered;
    color: white;
    transform: scale(1.05);
}

.erp-modules {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    width: 100%;
    max-width: 100%;
}

.erp-card {
    background: #ffffff;
    color: #2e2e2e;
    border-radius: 20px;
    padding: 25px;
    flex: 1 1 260px;
    max-width: 260px;
    text-align: left;
    transition: all 0.4s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
}

.erp-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.erp-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.erp-card p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.erp-hidden {
    display: none;
}

/* ERP Dashboard Section */
.erp-dashboard-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #6b46c1, #8e5cff);
    text-align: center;
    width: 100%;
    max-width: 100vw;
}

.erp-heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 10px;
}

.erp-subheading {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 40px;
}

.erp-cards-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    justify-items: center;
    align-items: center;
}

.erp-role-card {
    background: white;
    border-radius: 100%;
    padding: 15px;
    width: 160px;
    height: 160px;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 2px dashed #facc15;
}

.erp-role-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.erp-role-card h4 {
    margin-top: 22px;
    font-size: 0.9rem;
    color: #d97706;
    font-weight: bold;
}

.erp-role-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

/* Separate Portals Section */
.sp-portal-section {
    background-color: #0c1f57;
    padding: 60px 20px;
    text-align: center;
    min-height: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 100vw;
}

.sp-role-btn {
    background-color: #2e6bff;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 1rem;
    margin-bottom: 30px;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(46, 107, 255, 0.3);
    transition: background 0.3s ease;
}

.sp-role-btn:hover {
    background-color: #1c4ed8;
}

.sp-title {
    color: #ddd;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.sp-description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #d1d5db;
    line-height: 1.6;
}

.sp-characters {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
}

.sp-char {
    width: 50%;
    height: auto;
    transform-origin: bottom;
    max-width: 100%;
}

/* ES Hero Section */
.es-hero {
    position: relative;
    background: linear-gradient(to bottom, #071b45, #1a4bff);
    padding: 80px 20px;
    text-align: center;
    width: 100%;
    max-width: 100vw;
}

.es-header-buttons {
    margin-bottom: 20px;
}

.es-btn-primary,
.es-btn-secondary {
    padding: 12px 24px;
    font-size: 1rem;
    margin: 5px;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.es-btn-primary {
    background-color: #2e6bff;
    color: white;
    border: none;
}

.es-btn-secondary {
    background-color: white;
    color: #1a4bff;
    border: none;
}

.es-btn-primary:hover,
.es-btn-secondary:hover {
    transform: scale(1.05);
}

.es-subtext {
    color: #d1d5db;
    margin: 15px 0 40px;
    font-size: 1rem;
}

.es-devices {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.es-laptop {
    width: 100%;
    max-width: 550px;
    z-index: 2;
}

.es-icon {
    position: absolute;
    width: 60px;
}

.es-chart {
    left: -50px;
    top: 20%;
}

.es-task {
    right: 0;
    bottom: 10%;
}

.es-shapes div {
    position: absolute;
    opacity: 0.4;
}

.es-shape-circle {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    left: 10%;
    top: 40%;
}

.es-shape-triangle {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 18px solid white;
    right: 15%;
    top: 25%;
}

.es-shape-square {
    width: 14px;
    height: 14px;
    border: 2px solid white;
    transform: rotate(45deg);
    top: 10%;
    right: 10%;
}

.es-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 140px;
    background: url('https://svgshare.com/i/11Sp.svg') repeat-x;
    background-size: cover;
}

/* Enquiry Section */
.enquiry .card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 25px;
    width: 100%;
    max-width: 100%;
}

/* Contact Section */
.contact .contact-card {
    border: none;
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    width: 100%;
    max-width: 100%;
}

.contact .contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(107, 70, 193, 0.3);
}

/* Form Styles */
.form-control,
.form-select {
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #ddd;
    transition: border-color 0.3s ease;
    width: 100%;
    max-width: 100%;
}

.form-control:focus,
.form-select:focus {
    border-color: #6b46c1;
    box-shadow: 0 0 5px rgba(107, 70, 193, 0.3);
    outline: none;
}

/* Floating Buttons */
.whatsapp-btn,
.enquiry-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25d366;
    color: #fff;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    z-index: 1000;
}

.enquiry-btn {
    bottom: 80px;
    background: #f28c38;
}

.whatsapp-btn:hover,
.enquiry-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 140px;
    right: 20px;
    display: none;
    z-index: 1000;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    transition: opacity 0.4s ease;
}

.back-to-top:hover {
    opacity: 0.8;
}

/* Footer */
.footer a {
    color: #f28c38;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Modal Styles */
#successModal .modal-content,
#enquiryPopupModal .modal-content {
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

#successModal .modal-header,
#enquiryPopupModal .modal-header {
    background: linear-gradient(135deg, #6b46c1, #8e5cff);
    color: #fff;
    border-bottom: none;
    border-radius: 15px 15px 0 0;
}

#successModal .modal-body,
#enquiryPopupModal .modal-body {
    font-size: 1.1rem;
    text-align: center;
    padding: 20px;
    color: #333;
}

#successModal .modal-footer,
#enquiryPopupModal .modal-footer {
    border-top: none;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Hero Section */
    .hero {
        min-height: 60vh;
        padding: 40px 10px;
    }

    .hero .glass-panel {
        padding: 20px;
        width: 95%;
    }

    .hero h1 {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }

    .hero p {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    }

    .hero .contact-info span {
        display: block;
        margin: 10px 0;
        font-size: clamp(0.85rem, 2vw, 1rem);
    }

    .hero .btn {
        width: 85%;
        padding: 12px;
        font-size: clamp(0.9rem, 2.5vw, 1rem);
    }

    /* Slider Section */
    .slider .carousel-inner img {
        height: clamp(200px, 40vh, 300px);
    }

    /* Gallery Section */
    .gallery .gallery-card img {
        height: clamp(150px, 25vh, 200px);
    }

    /* Navbar */
    .navbar-brand .logo-text {
        font-size: clamp(1.2rem, 3vw, 1.5rem);
    }

    .nav-link {
        padding: 8px 10px;
        font-size: 0.9rem;
    }

    /* Floating Buttons */
    .whatsapp-btn,
    .enquiry-btn {
        bottom: 15px;
        right: 15px;
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .enquiry-btn {
        bottom: 70px;
    }

    .back-to-top {
        bottom: 130px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
        right: 15px;
    }

    /* Client Carousel */
    .es-client-carousel {
        padding: 30px 0;
    }

    .owl-carousel img {
        max-height: 40px;
    }

    /* ERP Section */
    .erp-section {
        padding: 40px 10px;
    }

    .erp-tabs {
        gap: 8px;
    }

    .erp-card {
        flex: 1 1 100%;
        max-width: 100%;
        padding: 15px;
    }

    /* ERP Dashboard Section */
    .erp-dashboard-section {
        padding: 40px 10px;
    }

    .erp-role-card {
        width: 120px;
        height: 120px;
        padding: 8px;
    }

    .erp-role-card h4 {
        font-size: 0.8rem;
        margin-top: 6px;
    }

    /* Separate Portals Section */
    .sp-portal-section {
        padding: 40px 10px;
    }

    .sp-char {
        width: 90%;
    }

    /* ES Hero Section */
    .es-hero {
        padding: 60px 10px;
    }

    .es-laptop {
        max-width: 450px;
    }

    .es-icon {
        width: 40px;
    }
}

@media (max-width: 576px) {
    /* Hero Section */
    .hero {
        min-height: 50vh;
        padding: 30px 5px;
    }

    .hero .glass-panel {
        padding: 15px;
        width: 98%;
    }

    .hero h1 {
        font-size: clamp(1.2rem, 5vw, 2rem);
    }

    .hero p {
        font-size: clamp(0.8rem, 2vw, 0.9rem);
    }

    .hero .contact-info span {
        font-size: clamp(0.75rem, 1.8vw, 0.85rem);
        margin: 8px 0;
    }

    .hero .btn {
        width: 90%;
        padding: 10px;
        font-size: clamp(0.8rem, 2vw, 0.9rem);
    }

    /* Slider Section */
    .slider .carousel-inner img {
        height: clamp(150px, 35vh, 250px);
    }

    /* Gallery Section */
    .gallery .gallery-card img {
        height: clamp(120px, 20vh, 180px);
    }

    /* Navbar */
    .navbar-brand .logo-text {
        font-size: clamp(1rem, 2.5vw, 1.2rem);
    }

    .nav-link {
        font-size: 0.85rem;
    }

    /* Floating Buttons */
    .whatsapp-btn,
    .enquiry-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
        right: 10px;
    }

    .enquiry-btn {
        bottom: 60px;
    }

    .back-to-top {
        bottom: 110px;
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
        right: 10px;
    }

    /* Client Carousel */
    .es-client-carousel {
        padding: 20px 0;
    }

    .owl-carousel img {
        max-height: 30px;
    }

    /* ERP Section */
    .erp-section {
        padding: 30px 5px;
    }

    .erp-tabs {
        gap: 6px;
    }

    .erp-card {
        padding: 12px;
    }

    /* ERP Dashboard Section */
    .erp-dashboard-section {
        padding: 30px 5px;
    }

    .erp-role-card {
        width: 100px;
        height: 100px;
    }

    .erp-role-card h4 {
        font-size: clamp(0.7rem, 1.8vw, 0.8rem);
    }

    /* Separate Portals Section */
    .sp-portal-section {
        padding: 30px 5px;
    }

    .sp-char {
        width: 85%;
    }

    /* ES Hero Section */
    .es-hero {
        padding: 40px 5px;
    }

    .es-laptop {
        max-width: 350px;
    }

    .es-icon {
        width: 30px;
    }
}