:root {
    --main-color: #3949fd;
    --accent-color: #ff6b6b;
    --third-color: #4ecdc4;
    --text-color: #333;
    --bg-color: #f0f4f8;
    --gradient-bg: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--gradient-bg);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--main-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links .home-link { color: var(--main-color); }
.nav-links .promo-link { color: var(--accent-color); }
.nav-links .login-link { color: var(--third-color); }

.nav-links a:hover {
    opacity: 0.8;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: -1;
}

.hero-content, .hero-image {
    flex-basis: 100%; /* Ensure full width usage on mobile */
    max-width: 100%; /* Prevent any element from extending beyond container */
}

.hero-content {
    flex: 1;
    padding-right: 40px; /* Desktop padding */
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--main-color);
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #4a5568;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    max-height: 40px;
    width: auto;
}

a {
    color: var(--main-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--main-color);
    color: #fff;
    box-shadow: 0 4px 6px rgba(57, 73, 253, 0.25);
}

.btn-primary:hover {
    background-color: #2c3ad3;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(57, 73, 253, 0.3);
}

.btn-secondary {
    background-color: #fff;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background-color: var(--main-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(57, 73, 253, 0.3);
}

.hero-image {
    flex: 1;
    text-align: right;
    position: relative;
    max-width: 50%; /* Restore normal size on desktop */
    height: auto;
    margin-top: 0; /* Remove any extra margin */
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

.hero-image::after {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 70%;
    height: 70%;
}

.services {
    display: flex;
    justify-content: space-between;
    margin: 80px 0;
}

.service-box {
    flex: 1;
    padding: 30px;
    margin: 0 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.service-box:nth-child(1) {
    border-top: 5px solid var(--main-color);
}

.service-box:nth-child(2) {
    border-top: 5px solid var(--accent-color);
}

.service-box:nth-child(3) {
    border-top: 5px solid var(--third-color);
}

.service-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.service-box h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.cta {
    background: linear-gradient(135deg, var(--main-color) 0%, #2c3ad3 100%);
    color: #fff;
    text-align: center;
    padding: 80px 0;
    margin: 80px 0;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(57, 73, 253, 0.3);
}

.cta h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta p {
    margin-bottom: 30px;
}

.cta-btn {
    display: inline-block;
    background-color: #fff;
    color: var(--main-color);
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-btn:hover {
    background-color: var(--accent-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(255, 107, 107, 0.3);
}

.contact-info {
    display: flex;
    justify-content: space-between;
    margin: 80px 0;
}

.contact-box {
    flex: 1;
    padding: 30px;
    margin: 0 15px;
    border-radius: 10px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.contact-box h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.contact-box p {
    word-wrap: break-word; /* Ensures long words like email addresses wrap */
    word-break: break-all;  /* Forcing the text to break to prevent overflow */
    overflow-wrap: break-word; /* Ensures compatibility across browsers */
}

.contact-box a {
    word-wrap: break-word; /* Same for links */
    word-break: break-all;
    overflow-wrap: break-word;
    color: var(--main-color);
    text-decoration: none;
}

.contact-box a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

footer {
    background-color: #2d3748;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.footer-links {
    margin-top: 20px;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.table-wrapper {
    overflow-x: auto; /* Allows horizontal scrolling on smaller screens */
    margin: 40px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
}

/* Table Style */
table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

table thead {
    background-color: var(--main-color);
    color: #fff;
    font-weight: 600;
}

table thead th {
    padding: 12px 15px;
    text-align: left;
    font-size: 16px;
    text-transform: uppercase;
}

table tbody tr {
    border-bottom: 1px solid #e0e0e0;
}

table tbody tr:nth-child(even) {
    background-color: #f7f7f7;
}

table tbody td {
    padding: 12px 15px;
    color: var(--text-color);
    font-size: 14px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px; /* Reduce padding to allow more content space */
    }
	
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background-color: rgba(255, 255, 255, 0.95);
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.show {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .hero h1 {
        font-size: 32px; /* Reduce font size for better visibility */
        margin-bottom: 15px; /* Adjust space below the heading */
    }

    .hero p {
        font-size: 16px; /* Adjust font size for better readability */
        margin-bottom: 20px; /* Adjust space below the paragraph */
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap; /* Allow buttons to wrap if needed */
    }
	
    .hero-image {
        text-align: center;
        max-width: 100%; /* Ensure image takes full width on mobile */
        margin-top: 20px; /* Add some space above the image */
    }

    .hero-image img {
        max-width: 80%; /* Slightly reduce the image size on smaller screens */
    }
    
    .logo img {
        max-height: 30px;
    }

    .services, .contact-info {
        flex-direction: column;
    }

    .service-box, .contact-box {
        margin: 15px 0;
    }

    .service-box h3 {
        font-size: 20px;
    }

    .cta-btn {
        font-size: 16px;
        padding: 12px 24px;
    }
    
    .contact-box p, .contact-box a {
        font-size: 16px; /* Slightly reduce font size on smaller screens */
    }
	
    table {
        width: 100%;
        border-collapse: collapse;
    }

    /* Hide the actual table headers */
    table thead {
        display: none;
    }

    /* Each row should be displayed as a block */
    table tbody tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #e0e0e0;
        padding: 10px;
        border-radius: 8px;
    }

    /* Each cell will act like a row within the block */
    table tbody td {
        display: block;
        text-align: right;
        padding: 8px 0;
        position: relative;
        border-bottom: 1px solid #f1f1f1;
    }

    /* Add the header before the cell content using the `::before` pseudo-element */
    table tbody td::before {
        content: attr(data-label); /* Get the data-label attribute */
        position: absolute;
        left: 0;
        width: 50%;
        padding-left: 15px;
        font-weight: 600;
        color: var(--main-color);
        text-align: left;
    }

    /* Add some styling for the last row */
    table tbody td:last-child {
        border-bottom: none;
    }

    /* Adjust padding and margin for better readability */
    table tbody td {
        padding-left: 50%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px; /* Further reduce padding on very small screens */
    }
	
    .hero {
        padding: 20px 10px; /* Further reduce padding on very small screens */
    }

    .hero h1 {
        font-size: 28px; /* Reduce font size further for small screens */
        margin-bottom: 10px;
    }

    .hero p {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .hero-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px; /* Add space between stacked buttons */
    }
	
    .hero-image img {
        max-width: 100%; /* Ensure the image fits within the screen on very small devices */
        margin-top: 10px;
    }

    .service-box h3 {
        font-size: 18px;
    }

    .cta h2 {
        font-size: 28px;
    }

    .cta-btn {
        font-size: 14px;
        padding: 10px 20px;
    }
}