/* ===================================
   Jacobs Language Services
   Professional Translation Website
   =================================== */

/* CSS Variables for Design System */
:root {
    --bg-gradient-start: #D8DCE2;
    --bg-gradient-end: #C8CCD2;
    --card-gradient-start: #1E3FA6;
    --card-gradient-end: #7D7D7A;
    --accent-color: #D96F4D;
    --text-primary: #FFFFFF;
    --text-shadow: rgba(0, 0, 0, 0.3);
    --border-radius: 24px;
    --transition-speed: 0.3s;
    --max-width: 1200px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    background:
        radial-gradient(ellipse at 50% 15%, rgba(255, 248, 240, 0.85) 0%, transparent 35%),
        radial-gradient(ellipse at 50% 85%, rgba(210, 200, 185, 0.75) 0%, transparent 45%),
        linear-gradient(180deg, #E7E5E2 0%, #C9C5C0 100%);
    background-attachment: fixed;
    background-size: 100% 100vh;
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(180, 184, 190, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 1rem 2rem;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 75px;
    width: auto;
    transition: transform var(--transition-speed) ease;
    display: block;
    margin: -10px 0;
}

.logo:hover {
    transform: scale(1.05);
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    transition: all var(--transition-speed) ease;
    position: relative;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    background: var(--accent-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    margin: 2rem 0;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.3;
    color: #1E3FA6;
    text-shadow: none;
    animation: fadeInUp 0.8s ease;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #1E3FA6;
    text-shadow: none;
    animation: fadeInUp 1s ease;
}

.cta-button {
    background: var(--accent-color);
    color: var(--text-primary);
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1.2s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(217, 111, 77, 0.4);
    background: #e07f5d;
}

/* Cards */
.card {
    background: linear-gradient(135deg, var(--card-gradient-start) 0%, var(--card-gradient-end) 100%);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-speed) ease;
    animation: fadeIn 0.6s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.card p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Grid Layouts */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Client Logos Section */
.clients-section {
    margin: 4rem 0;
    text-align: center;
}

.clients-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #1E3FA6;
    text-shadow: none;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
    margin-top: 2rem;
}

.client-badge {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--card-gradient-start);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed) ease;
    width: 200px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.client-badge:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Services List */
.services-list {
    list-style: none;
    margin: 1.5rem 0;
}

.services-list li {
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
    transition: all var(--transition-speed) ease;
}

.services-list li:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.services-list li strong {
    color: var(--accent-color);
    font-size: 1.1rem;
}

/* Language Pairs */
.language-pair {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 1rem;
    margin: 1rem 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.language-pair .arrow {
    color: var(--accent-color);
    font-size: 2rem;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-speed) ease;
    color: #333;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(217, 111, 77, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-info {
    margin-top: 3rem;
    text-align: center;
}

.contact-info a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all var(--transition-speed) ease;
}

.contact-info a:hover {
    text-decoration: underline;
    color: #e07f5d;
}

.contact-info p {
    margin: 1rem 0;
    font-size: 1.1rem;
}

/* Project Examples */
.project-card {
    background: linear-gradient(135deg, var(--card-gradient-start) 0%, var(--card-gradient-end) 100%);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-speed) ease;
    border-left: 6px solid var(--accent-color);
}

.project-card:hover {
    transform: translateX(10px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.project-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-details {
    margin-top: 1rem;
}

.project-detail {
    display: flex;
    gap: 0.5rem;
    margin: 0.5rem 0;
    align-items: flex-start;
}

.project-detail strong {
    color: var(--accent-color);
    min-width: 120px;
}

/* Stats/Highlights */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--card-gradient-start) 0%, var(--card-gradient-end) 100%);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-speed) ease;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--card-gradient-start) 0%, var(--card-gradient-end) 100%);
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
    text-align: center;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer p {
    margin: 0.5rem 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-speed) ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

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

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

.fade-in {
    animation: fadeIn 0.6s ease;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin: 3rem 0 2rem;
}

.section-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #1E3FA6;
    text-shadow: none;
}

.section-header p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    color: #1E3FA6;
    text-shadow: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, var(--card-gradient-start) 0%, var(--card-gradient-end) 100%);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 0;
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 1rem;
        width: 100%;
        border-radius: 0;
    }

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

    .logo {
        height: 55px;
    }

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

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

    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 1.1rem;
    }

    .card {
        padding: 1.5rem;
    }

    .grid,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .clients-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1rem;
    }

    .client-badge {
        width: 180px;
    }

    .section-header h1 {
        font-size: 2.5rem;
    }

    .section-header p {
        font-size: 1.1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .container {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

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

    .brand-name {
        font-size: 1.2rem;
    }

    .logo {
        height: 63px;
    }

    .section-header h1 {
        font-size: 2rem;
    }

    .client-badge {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        width: 160px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}
