:root {
    --primary-color: #0078d7;
    --secondary-color: #005bb5;
    --background-gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --text-color: #333;
    --white: #fff;
}

/* Main Navigation Container */
.main-navigation {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

/* Navigation Links Container */
.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Individual Navigation Link */
.nav-link {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    padding: 8px 12px;
    transition: all 0.3s ease;
    position: relative;
}

    .nav-link:hover {
        color: #4285f4;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background-color: #4285f4;
        transition: width 0.3s ease;
    }

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

    .nav-link.active {
        color: #4285f4;
    }

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

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

html {
    scroll-behavior: smooth;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    background: linear-gradient(135deg, #f4f4f4, #e0e0e0);
    display: flex;
    flex-direction: column;
}

body {
    flex-grow: 1;
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
}

/* Header Styles */
header {
    background: var(--background-gradient);
    color: var(--white);
    padding: 20px 40px;
    text-align: center;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 20px 20px;
    background: var(--background-gradient);
    color: var(--white);
    width: 100%;
}

    .hero .hero-logo {
        height: 150px;
        margin-bottom: 20px;
        background: var(--white);
        padding: 10px;
        border-radius: 10px;
        transform: scale(1.05) rotate(5deg);
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

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

    .hero p {
        font-size: 1.5rem;
        margin: 10px 0 20px;
    }

    .hero h1:focus {
        outline: none;
        box-shadow: none;
    }

    .hero:focus {
        outline: none;
        box-shadow: none;
    }

/* Container Styles */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex-grow: 1;
    width: 100%;
}

    .container h1 {
        color: #0078d7;
        text-align: center;
        margin-bottom: 40px;
    }

/* Services Section */
.service-image {
    width: 500px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

    .service-image:hover {
        transform: scale(1.02);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    }

.services {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 20px auto;
    width: 100%;
}

    .services h2 {
        color: var(--primary-color);
        width: 100%;
        text-align: center;
        font-size: 2rem;
        font-weight: bold;
        margin-bottom: 20px;
    }

.service-item {
    width: 100%;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .service-item h3 {
        color: #333;
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

    .service-item p {
        color: #666;
        margin-bottom: 20px;
        line-height: 1.6;
    }

.service-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .service-list div {
        color: #555;
    }

/* Applications Section */
.applications {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

    .applications h2 {
        color: var(--primary-color);
        font-size: 2rem;
        margin-bottom: 20px;
        margin: 0;
    }

.applications-buttons {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    width: 100%;
    max-width: 800px;
}

.learn-more {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

    .learn-more:hover {
        background-color: #0056b3;
    }

/* App Cards */
.app-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    width: 100%;
    margin-top: 20px;
}

.app-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .app-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    }

.app-card-featured {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 32px;
}

    .app-card-featured .app-card-description {
        flex: 1;
        margin: 0;
    }

    .app-card-featured .app-card-btn {
        white-space: nowrap;
    }

.app-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.app-card-icon {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.app-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 6px;
}

.app-badge-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.app-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

.badge-web {
    background: #e3f0fb;
    color: #0060b0;
}

.badge-windows {
    background: #e6f4ea;
    color: #1a7f3c;
}

.badge-free {
    background: #fff3e0;
    color: #c45e00;
}

.app-card-description {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
    margin: 0;
}

.app-card-btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    align-self: flex-start;
}

    .app-card-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

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

.btn-download {
    background: linear-gradient(135deg, #1a7f3c, #145f2e);
    color: var(--white);
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #0078d7, #005bb5);
    color: white;
    padding: 20px;
    text-align: center;
    width: 100%;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-links {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

    .footer-links a {
        color: white;
        text-decoration: none;
        font-size: 0.9rem;
        transition: opacity 0.3s ease;
    }

        .footer-links a:hover {
            opacity: 0.8;
        }

/* Contact Form Styles */
.contact-form {
    margin-top: 40px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}

    .contact-form h2 {
        color: var(--primary-color);
        font-size: 2rem;
        margin-bottom: 20px;
        text-align: center;
    }

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

    .form-group label {
        display: block;
        font-size: 1rem;
        font-weight: 500;
        margin-bottom: 5px;
        color: var(--text-color);
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 10px;
        font-size: 1rem;
        border: 1px solid #ccc;
        border-radius: 5px;
        transition: border-color 0.3s ease, box-shadow 0.3s ease;
    }

        .form-group input:focus,
        .form-group textarea:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 8px rgba(0, 120, 215, 0.3);
            outline: none;
        }

.submit-button {
    display: inline-block;
    padding: 10px 20px;
    background: var(--background-gradient);
    color: var(--white);
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .submit-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    .submit-button:active {
        transform: translateY(0);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }

    .submit-button:disabled {
        opacity: 0.7;
        cursor: not-allowed;
        transform: none;
    }

/* Style for invalid fields */
.is-invalid {
    border-color: #dc3545 !important;
    background-color: #fff3f3;
}

/* Style for validation error messages */
.validation-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.char-counter {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-top: 4px;
    text-align: right;
}

.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Spinner styles */
.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: text-bottom;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

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

/* Media Queries for Mobile Responsiveness */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
        flex-direction: column;
    }

    .hero {
        padding: 15px 15px;
    }

        .hero .hero-logo {
            height: 80px;
        }

        .hero h1 {
            font-size: 2rem;
        }

        .hero p {
            font-size: 1.2rem;
        }

    .container {
        padding: 20px;
    }

    .nav-link {
        font-size: .85rem;
        padding: 4px 6px;
    }

    .services {
        flex-direction: column;
    }

    .applications-buttons {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 300px;
    }

    .app-cards {
        grid-template-columns: 1fr;
    }

    .app-card-featured {
        flex-direction: column;
        align-items: flex-start;
    }

    .service-image {
        width: 300px;
        height: auto;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .contact-form {
        padding: 15px;
    }

        .contact-form h2 {
            font-size: 1.5rem;
        }

    .form-group input,
    .form-group textarea {
        font-size: 0.9rem;
    }

    .submit-button {
        width: 100%;
        padding: 12px;
        font-size: 0.9rem;
    }
}
