/* Erudition Software - Landing Page Styles */
/* Material Design with Corporate Colors */

:root {
    /* Primary Colors - Based on Erudition Logo */
    --primary-color: #00D4C3; /* Turquoise - Logo main color */
    --primary-light: #4AEADE;
    --primary-dark: #00A89A;
    --secondary-color: #4CC9E5; /* Cyan Blue - Logo secondary */
    --secondary-light: #7FDCF0;
    --secondary-dark: #2BA3C4;
    --accent-color: #0EA5E9; /* Bright Blue accent */
    --dark-bg: #0F172A; /* Professional dark background */
    --gradient-start: #00D4C3;
    --gradient-end: #4CC9E5;

    /* Neutral Colors */
    --background-color: #F8FAFC;
    --surface-color: #ffffff;
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    --divider-color: #E2E8F0;

    /* Shadows with cyan tint */
    --shadow-1: 0 2px 4px rgba(0, 212, 195, 0.1);
    --shadow-2: 0 4px 8px rgba(0, 212, 195, 0.12);
    --shadow-3: 0 8px 16px rgba(0, 212, 195, 0.15);
    --shadow-4: 0 16px 32px rgba(0, 212, 195, 0.2);
    --shadow-glow: 0 0 20px rgba(0, 212, 195, 0.3);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    margin-bottom: 60px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

/* Navigation */
.navbar {
    background-color: var(--surface-color);
    box-shadow: var(--shadow-2);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    box-shadow: var(--shadow-3);
}

.navbar-brand {
    color: var(--primary-color) !important;
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-brand img {
    height: 45px;
    width: auto;
    transition: transform var(--transition-normal);
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: all var(--transition-fast);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.navbar-toggler {
    border: 2px solid var(--primary-color);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    background-color: transparent;
    transition: all var(--transition-fast);
}

.navbar-toggler:hover {
    background-color: rgba(0, 212, 195, 0.1);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 212, 195, 0.25);
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2300D4C3' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.5em;
    height: 1.5em;
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background: none;
    border: 1px solid var(--divider-color);
    color: var(--text-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 500;
}

.lang-btn:hover, .lang-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1E293B 50%, #334155 100%);
    color: white;
    padding: 120px 0 80px 0;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 195, 0.1) 0%, rgba(76, 201, 229, 0.1) 100%);
    pointer-events: none;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,149.3C960,160,1056,160,1152,138.7C1248,117,1344,75,1392,53.3L1440,32L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease;
}

.hero-cta {
    animation: fadeInUp 1.2s ease;
}

/* Buttons */
.btn-primary {
    background-color: var(--secondary-color) !important;
    border: none !important;
    color: white !important;
    padding: 12px 32px;
    border-radius: 24px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-2);
}

.btn-primary:hover {
    background-color: var(--secondary-dark) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-3);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 12px 32px;
    border-radius: 24px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-normal);
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary-color);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--primary-color);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
}

/* Cards */
.card {
    background-color: var(--surface-color);
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-2);
    transition: all var(--transition-normal);
    height: 100%;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-4);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    color: white;
    font-size: 2rem;
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-secondary);
}

/* About Section */
.about-section {
    background-color: var(--surface-color);
}

.value-item {
    text-align: center;
    padding: 2rem;
    transition: all var(--transition-normal);
}

.value-item:hover {
    transform: scale(1.05);
}

.value-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.value-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Services Section */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

.tech-badge {
    display: inline-block;
    background-color: var(--primary-light);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
    font-size: 0.875rem;
    margin: 0.25rem;
    transition: all var(--transition-fast);
}

.tech-badge:hover {
    background-color: var(--primary-color);
    transform: scale(1.05);
}

/* Contact Form */
.contact-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: white;
}

.contact-form {
    background-color: var(--surface-color);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-4);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--divider-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all var(--transition-fast);
    background-color: var(--surface-color);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 195, 0.2);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--text-secondary);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 3rem 0 1rem 0;
    border-top: 2px solid var(--primary-color);
}

.footer-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.social-icon:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Loading Spinner */
.spinner {
    border: 3px solid var(--divider-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alert Messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    animation: fadeInUp 0.5s ease;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid var(--secondary-color);
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Responsive Design */

/* Large tablets and small desktops (up to 992px) */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.35rem;
    }

    .section {
        padding: 70px 0;
    }

    .card-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }

    .value-icon {
        font-size: 2.5rem;
    }

    .odoo-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }

    .odoo-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Tablets (up to 768px) */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .navbar-brand img {
        height: 35px;
    }

    .navbar-collapse {
        background-color: var(--surface-color);
        padding: 1rem;
        border-radius: 8px;
        margin-top: 1rem;
        box-shadow: var(--shadow-2);
    }

    .navbar-nav {
        gap: 0.5rem;
    }

    .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: 6px;
    }

    .nav-link:hover {
        background-color: rgba(0, 212, 195, 0.1);
    }

    .language-switcher {
        margin-top: 1rem;
        justify-content: center;
    }

    .hero-section {
        padding: 100px 0 60px 0;
        margin-top: 60px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-cta {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }

    .card {
        margin-bottom: 1.5rem;
    }

    .card-icon {
        width: 65px;
        height: 65px;
        font-size: 1.5rem;
    }

    .value-item {
        padding: 1.5rem 1rem;
    }

    .value-icon {
        font-size: 2rem;
    }

    .footer {
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    h4 { font-size: 1.25rem; }

    /* Odoo Section Responsive */
    .odoo-section::before {
        width: 100%;
        opacity: 0.3;
    }

    .odoo-badge {
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
        margin: 0.2rem;
    }

    .feature-list li {
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }

    .feature-list i {
        font-size: 1rem;
        flex-shrink: 0;
    }
}

/* Mobile devices (up to 576px) */
@media (max-width: 576px) {
    html {
        font-size: 14px;
    }

    .navbar {
        padding: 0.5rem 0;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .navbar-brand img {
        height: 30px;
    }

    .navbar-toggler {
        padding: 0.5rem;
        font-size: 1.2rem;
    }

    .hero-section {
        padding: 80px 0 40px 0;
        margin-top: 56px;
    }

    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .btn-primary,
    .btn-outline {
        padding: 10px 24px;
        font-size: 0.875rem;
    }

    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .section-title::after {
        width: 60px;
        height: 3px;
    }

    .card {
        margin-bottom: 1rem;
    }

    .card-icon {
        width: 55px;
        height: 55px;
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .card-title {
        font-size: 1.25rem;
    }

    .card-text {
        font-size: 0.9rem;
    }

    .value-item {
        padding: 1rem 0.5rem;
    }

    .value-icon {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .value-title {
        font-size: 1rem;
    }

    .contact-form {
        padding: 1.5rem 1rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-control {
        padding: 10px 14px;
        font-size: 0.9rem;
    }

    .tech-badge {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
        margin: 0.15rem;
    }

    .odoo-card {
        padding: 1.5rem !important;
    }

    .odoo-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .odoo-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
        margin: 0.15rem;
    }

    .feature-list li {
        padding: 0.4rem 0;
        font-size: 0.85rem;
        gap: 0.5rem;
    }

    .feature-list i {
        font-size: 0.9rem;
    }

    .scroll-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 0.9rem;
    }

    .footer {
        padding: 2rem 0 1rem 0;
    }

    .footer h5 {
        font-size: 1.1rem;
        margin-top: 1rem;
    }

    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.15rem; }
}

/* Extra small devices (up to 400px) */
@media (max-width: 400px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.35rem;
    }

    .btn-primary,
    .btn-outline {
        padding: 8px 20px;
        font-size: 0.8rem;
    }

    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }

    .navbar-brand img {
        height: 25px;
    }

    .contact-form {
        padding: 1rem 0.75rem;
    }
}

/* Landscape orientation adjustments for mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        padding: 60px 0 30px 0;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .section {
        padding: 30px 0;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .scroll-top,
    .hero-cta,
    .contact-form {
        display: none !important;
    }

    .hero-section {
        background: white !important;
        color: black !important;
        padding: 20px 0 !important;
    }

    .section {
        padding: 20px 0 !important;
        page-break-inside: avoid;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
}

.elevation-1 { box-shadow: var(--shadow-1); }
.elevation-2 { box-shadow: var(--shadow-2); }
.elevation-3 { box-shadow: var(--shadow-3); }
.elevation-4 { box-shadow: var(--shadow-4); }

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-3);
    transition: all var(--transition-normal);
    z-index: 999;
}

.scroll-top:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-3px);
}

.scroll-top.show {
    display: flex;
}

/* Odoo Integration Styles */
.odoo-section {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1E293B 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.odoo-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%2300D4C3" stroke-width="0.5" opacity="0.1"/></svg>');
    background-size: 100px 100px;
    opacity: 0.5;
}

.odoo-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 195, 0.2);
    transition: all var(--transition-normal);
}

.odoo-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
    transform: translateY(-5px);
}

.odoo-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    color: white;
    font-size: 2rem;
    box-shadow: var(--shadow-glow);
}

.odoo-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0.25rem;
    box-shadow: var(--shadow-2);
    transition: all var(--transition-fast);
}

.odoo-badge:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* Responsive tables (if any added in future) */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Touch-friendly interactive elements */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .nav-link,
    .lang-btn,
    .social-icon {
        min-height: 44px;
        min-width: 44px;
    }

    .card:hover {
        transform: none;
    }

    .card:active {
        transform: scale(0.98);
    }
}
