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

:root {
    --brand-primary: #1294d2;
    --brand-heading: #054d7e;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    -webkit-text-size-adjust: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

section[id] {
    scroll-margin-top: 110px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary) 100%);
    color: white;
    padding: 120px 0 80px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-image {
    flex-shrink: 0;
}

.hero-image img {
    width: 280px;
    height: 280px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    opacity: 0.95;
    line-height: 1.4;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: var(--brand-heading);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* About Section */
.about {
    padding: 80px 0;
    background: #f8f9fa;
}

.about h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--brand-heading);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 4px solid #1294d2 !important;
}

.about-content p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #444;
}

.about-text {
    max-width: 900px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #333;
}

.about-text h3 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1.5rem;
    color: var(--brand-heading);
}

.values-list {
    list-style: none;
    padding: 0;
}

.values-list li {
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 1.05rem;
}

.values-list li:last-child {
    border-bottom: none;
}

.values-list strong {
    color: var(--brand-heading);
    display: block;
    margin-bottom: 0.3rem;
}

/* Expertise Section */
.expertise {
    padding: 80px 0;
}

.expertise h2 {
    color: var(--brand-heading);
}

.expertise-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto auto !important;
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.expertise-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.expertise-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--brand-heading);
}

.expertise-card p {
    line-height: 1.7;
    color: #666;
}

/* Experience Section */
.experience {
    padding: 80px 0;
    background: #f8f9fa;
}

.experience h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--brand-heading);
}

.experience-summary {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 4px solid var(--brand-primary);
}

.experience-summary p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #444;
}

.experience-summary strong {
    color: var(--brand-heading);
}

.experience-item {
    background: white;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.experience-item.featured {
    border-left: 4px solid var(--brand-primary);
}

.company-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.company-header h3 {
    font-size: 1.8rem;
    color: var(--brand-heading);
    margin: 0;
}

.period {
    color: #666;
    font-weight: 600;
}

.experience-item h4 {
    font-size: 1.3rem;
    color: var(--brand-heading);
    margin-bottom: 1rem;
}

.project-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #555;
}

.achievements {
    margin: 2rem 0;
}

.achievements h5 {
    font-size: 1.1rem;
    color: var(--brand-heading);
    margin-bottom: 1rem;
}

.achievements ul {
    list-style: none;
    padding-left: 0;
}

.achievements li {
    padding: 0.7rem 0 0.7rem 2rem;
    position: relative;
    line-height: 1.6;
}

.achievements li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--brand-primary);
    font-weight: bold;
}

.impact {
    margin-top: 1.5rem;
    padding: 1.2rem;
    background: #dbeafe;
    border-left: 3px solid var(--brand-primary);
    border-radius: 5px;
    font-size: 1.05rem;
}

.more-experience {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 10px;
}

.more-experience p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

/* Approach Section */
.approach {
    padding: 80px 0;
}

.approach h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--brand-heading);
}

.approach-content {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 4px solid #1294d2 !important;
}

.approach-content p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #444;
}

.approach-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
}

.step h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--brand-heading);
}

.step p {
    line-height: 1.7;
    color: #666;
}

.approach-principles {
    max-width: 800px;
    margin: 0 auto;
    padding: 2.5rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.approach-principles h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: var(--brand-heading);
    text-align: center;
}

.approach-principles ul {
    list-style: none;
    padding: 0;
}

.approach-principles li {
    padding: 0.8rem 0;
    font-size: 1.05rem;
    color: var(--brand-heading);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary) 100%);
    color: white;
    text-align: center;
}

.contact h2 {
    color: white;
    margin-bottom: 1rem;
}

.contact > p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-item strong {
    font-size: 0.9rem;
    opacity: 0.8;
}

.contact-item a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
    overflow-wrap: anywhere;
}

.contact-item a:hover {
    border-bottom-color: white;
}

footer {
    background: white;
    padding: 1rem 0;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

footer p {
    margin: 0;
}

.footer-legal-link {
    color: #d98080;
    text-decoration: none;
    font-weight: 500;
}

.footer-legal-link:hover {
    text-decoration: underline;
}

/* Story Section */
.story {
    margin: 1.5rem 0;
}

.story p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #444;
    text-align: justify;
}

.story p:last-child {
    margin-bottom: 0;
}

/* Legal Terms Page */
.legal-page {
    background: #f8f9fa;
    min-height: calc(100vh - 160px);
    padding: 56px 0 72px;
}

.legal-document {
    max-width: 980px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.legal-document h1 {
    color: var(--brand-heading);
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 1.75rem;
}

.legal-document h2 {
    color: var(--brand-heading);
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.85rem;
    padding-top: 0.5rem;
    border-top: 1px solid #dbe4ea;
}

.legal-document p,
.legal-document li {
    color: #333;
    font-size: 1rem;
    line-height: 1.75;
}

.legal-document p {
    margin-bottom: 0.75rem;
}

.legal-document ol {
    margin: 0.25rem 0 1rem 1.2rem;
}

.legal-document li {
    margin-bottom: 0.45rem;
}

/* Header & Navigation */
header {
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 90px !important;
    max-height: 90px;
    width: auto !important;
    display: block;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--brand-heading);
    margin: 0;
}

.logo p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--brand-heading);
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0.25rem;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    background: #333;
    border-radius: 2px;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.language-switcher a {
    display: inline-flex;
    align-items: center;
    font-size: 1.5rem;
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.language-switcher .flag-icon {
    width: 0.8em;
    height: 0.55em;
    display: block;
}

.language-switcher a:hover {
    opacity: 1;
    transform: scale(1.1);
}

.language-switcher a.active {
    opacity: 1;
}

.language-switcher .divider {
    display: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    nav {
        align-items: flex-start;
        gap: 1rem;
    }

    nav ul {
        gap: 1.25rem;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .hero {
        padding: 96px 0 64px;
    }

    .hero-content {
        gap: 2.5rem;
    }

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

    .hero-content h2 {
        font-size: 1.6rem;
    }

    .about,
    .expertise,
    .approach,
    .contact {
        padding: 64px 0;
    }

    .about-content,
    .approach-content {
        padding: 2rem;
    }

    .expertise-grid {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    header {
        padding: 0.75rem 0;
    }

    nav {
        flex-wrap: wrap;
        align-items: center;
        gap: 0.5rem;
    }

    .logo {
        text-align: left;
    }

    .menu-toggle {
        display: inline-block;
        margin-left: auto;
    }

    .logo img {
        height: 72px !important;
        max-height: 72px;
    }

    .logo p {
        font-size: 0.8rem;
    }

    nav ul {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0.1rem;
        padding-top: 0.25rem;
    }

    nav ul.menu-open {
        display: flex;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        display: block;
        font-size: 0.95rem;
        padding: 0.45rem 0;
    }

    nav ul li {
        white-space: nowrap;
    }

    .language-switcher {
        width: auto;
        gap: 0.55rem;
    }

    .language-switcher a {
        font-size: 1.25rem;
    }

    .hero {
        padding: 72px 0 48px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-image img {
        width: 200px;
        height: 200px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }

    .cta-button {
        width: 100%;
        max-width: 320px;
        text-align: center;
        padding: 12px 24px;
    }

    .about,
    .expertise,
    .approach,
    .contact {
        padding: 48px 0;
    }

    .legal-page {
        padding: 40px 0 56px;
    }

    .legal-document {
        padding: 1.25rem;
    }

    .legal-document h1 {
        font-size: 1.5rem;
    }

    .legal-document h2 {
        font-size: 1.12rem;
    }

    .expertise-grid,
    .approach-steps {
        grid-template-columns: 1fr;
    }

    .expertise-grid {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
    }

    .about-content,
    .approach-content,
    .expertise-card {
        padding: 1.25rem;
    }

    .about-content p,
    .approach-content p {
        font-size: 1rem;
        line-height: 1.75;
    }

    .expertise-card h3 {
        font-size: 1.2rem;
    }

    .expertise-card p,
    .expertise-card li {
        overflow-wrap: anywhere;
    }

    .contact > p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 1.25rem;
        align-items: center;
    }

    .contact-item {
        width: 100%;
        max-width: 320px;
    }

    footer {
        text-align: left;
    }

    footer .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .footer-legal-link {
        align-self: flex-end;
    }
}

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

    .hero-content h2 {
        font-size: 1.15rem;
    }

    nav ul {
        gap: 0;
    }

    nav ul li a {
        font-size: 0.9rem;
    }

    section[id] {
        scroll-margin-top: 140px;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
    }
}