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

:root {
    --primary-color: #003366;
    --secondary-color: #204274;
    --accent-color: #00457A;
    --text-light: #ffffff;
    --text-dark: #1f2a58;
    --text-gray: #666666;
    --bg-light: #f7f9fc;
}

body {
    font-family: 'Manrope', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Skip to content link (accessibility) */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--secondary-color);
    color: white;
    padding: 10px 20px;
    z-index: 10000;
    font-size: 0.9rem;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* Navigation Header */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transform: translateY(-100%);
    transition: transform 0.4s ease-in-out;
}

#main-header.show {
    transform: translateY(0);
}

.header-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.header-logo a {
    display: block;
    line-height: 0;
}

#header-logo-img {
    height: 43px;
    width: auto;
    transition: all 0.4s ease-in-out;
}

#main-header.scrolled #header-logo-img {
    height: 35px;
}

.header-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.header-nav li {
    margin: 0;
}

.header-nav a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.header-nav a:hover {
    color: #2EA3F2;
}

/* Parallax Sections */
.parallax-section {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(180deg, rgba(0,0,0,0) 1%, rgba(0,0,0,0.31) 100%);
    color: var(--text-light);
    text-align: left;
    padding: 120px 20px 80px;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
}

.hero .parallax-bg {
    background-image: url('../images/hero-bg.jpg');
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    padding-left: 0;
}

.hero-logo {
    max-width: 380px;
    width: 100%;
    height: auto;
    margin-bottom: 35px;
    display: block;
}

.hero-title {
    font-size: 2.75rem;
    line-height: 1.25;
    margin-bottom: 35px;
    font-weight: 700;
    max-width: 520px;
    color: var(--primary-color);
    animation: slideBottom 800ms ease-in-out both;
}

.cta-button {
    display: inline-block;
    padding: 16px 32px;
    background: #2c4a7c;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: none;
    animation: slideBottom 1000ms ease-in-out 600ms both;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(32, 66, 116, 0.5);
    background: var(--text-light);
    color: var(--secondary-color);
}

/* Principles Section */
.principles-section {
    padding: 120px 20px;
    background: var(--bg-light);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-dark);
    font-weight: 800;
    opacity: 0;
    animation: slideBottom 800ms ease-in-out forwards;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.8;
    opacity: 0;
    animation: slideBottom 800ms ease-in-out 200ms forwards;
}

.about-intro {
    max-width: 900px;
    margin: 0 auto 60px;
    padding: 0;
    border: none;
    text-align: center;
    opacity: 0;
    animation: slideBottom 800ms ease-in-out 200ms forwards;
}

.about-intro p {
    font-size: 1.05rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

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

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.principle-card {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    transition: none;
    text-align: center;
    opacity: 0;
}

.principle-card.in-view {
    animation: slideBottom 800ms ease-in-out forwards;
}

.principle-card:nth-child(1).in-view { animation-delay: 0ms; }
.principle-card:nth-child(2).in-view { animation-delay: 100ms; }
.principle-card:nth-child(3).in-view { animation-delay: 200ms; }
.principle-card:nth-child(4).in-view { animation-delay: 300ms; }
.principle-card:nth-child(5).in-view { animation-delay: 400ms; }
.principle-card:nth-child(6).in-view { animation-delay: 500ms; }

.principle-icon {
    width: 46px;
    height: 46px;
    margin: 0 auto 20px;
    display: block;
}

.principle-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-dark);
    font-weight: 700;
    text-align: center;
}

.principle-card p {
    color: var(--text-gray);
    line-height: 1.8;
    text-align: center;
    font-size: 1rem;
}

/* Parallax Dividers */
.parallax-divider {
    min-height: 365px;
    height: 365px;
}

.parallax-1 {
    background-image: url('../images/parallax-1.jpg');
}

.parallax-2 {
    background-image: url('../images/parallax-2.jpg');
}

/* Portfolio Section */
.portfolio-section {
    background: white;
    padding: 80px 20px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 60px;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 980px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

.portfolio-card {
    position: relative;
    background: white;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #00457A;
    opacity: 0;
}

.portfolio-card.in-view {
    animation: slideBottom 800ms ease-in-out forwards;
}

.portfolio-card:nth-child(1).in-view { animation-delay: 0ms; }
.portfolio-card:nth-child(2).in-view { animation-delay: 100ms; }
.portfolio-card:nth-child(3).in-view { animation-delay: 200ms; }
.portfolio-card:nth-child(4).in-view { animation-delay: 300ms; }
.portfolio-card:nth-child(5).in-view { animation-delay: 400ms; }
.portfolio-card:nth-child(6).in-view { animation-delay: 500ms; }
.portfolio-card:nth-child(7).in-view { animation-delay: 600ms; }
.portfolio-card:nth-child(8).in-view { animation-delay: 700ms; }
.portfolio-card:nth-child(9).in-view { animation-delay: 800ms; }
.portfolio-card:nth-child(10).in-view { animation-delay: 900ms; }
.portfolio-card:nth-child(11).in-view { animation-delay: 1000ms; }
.portfolio-card:nth-child(12).in-view { animation-delay: 1100ms; }

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    transition: opacity 0.3s ease;
}

.card-front {
    opacity: 1;
    z-index: 1;
}

.card-back {
    opacity: 0;
    z-index: 2;
    background: white;
}

.portfolio-card:hover .card-front,
.portfolio-card:focus-within .card-front,
.portfolio-card.tapped .card-front {
    opacity: 0;
}

.portfolio-card:hover .card-back,
.portfolio-card:focus-within .card-back,
.portfolio-card.tapped .card-back {
    opacity: 1;
}

.card-front img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
}

.back-logo {
    max-width: 50%;
    max-height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
}

.card-back h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 15px;
    text-align: center;
    letter-spacing: 0.5px;
}

.card-back p {
    font-size: 0.85rem;
    color: var(--text-gray);
    text-align: center;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.investment-status {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(0, 69, 122, 0.1);
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    color: var(--accent-color);
}

.investment-status.former {
    background: rgba(102, 102, 102, 0.1);
    color: var(--text-gray);
}

.card-link {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    padding: 8px 20px;
    border: 2px solid var(--accent-color);
    border-radius: 25px;
}

.card-link:hover {
    background: var(--accent-color);
    color: white;
}

/* Team Section / About Us */
.team-section {
    padding: 80px 20px;
    background: white;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    margin-top: 60px;
}

@media (max-width: 980px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

.team-member {
    text-align: left;
    opacity: 0;
}

.team-member.in-view {
    animation: slideBottom 800ms ease-in-out forwards;
}

.team-member:nth-child(1).in-view { animation-delay: 200ms; }
.team-member:nth-child(2).in-view { animation-delay: 400ms; }

.team-member h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #1e3a5f;
    text-align: center;
    font-weight: 700;
    opacity: 0;
}

.team-member.in-view h3 {
    animation: slideBottom 800ms ease-in-out 200ms forwards;
}

.team-divider {
    width: 100%;
    height: 1px;
    background: #1e3a5f;
    margin-bottom: 15px;
}

.team-member h4 {
    font-size: 1rem;
    color: #1e3a5f;
    margin-bottom: 25px;
    font-weight: 600;
    text-align: center;
    opacity: 0;
}

.team-member.in-view h4 {
    animation: slideBottom 800ms ease-in-out 600ms forwards;
}

.team-member p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: center;
}

.linkedin-link {
    display: inline-block;
    margin: 20px auto 0;
    color: white;
    background: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 12px 30px;
    opacity: 0;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0);
    text-align: center;
    width: fit-content;
}

.team-member.in-view .linkedin-link {
    animation: slideBottom 1000ms ease-in-out 600ms forwards;
}

.linkedin-link:hover {
    background: white;
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* Contact Section */
.contact-section {
    background: white;
    padding: 80px 20px;
    text-align: left;
}

.contact-content {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 40px;
    align-items: center;
    background: linear-gradient(135deg, #2c4a7c 0%, #1e3a5f 100%);
    padding: 60px 80px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

@media (max-width: 980px) {
    .contact-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 30px;
    }
}

.contact-left {
    opacity: 0;
}

.contact-left.in-view {
    animation: slideBottom 800ms ease-in-out forwards;
}

.contact-logo {
    max-width: 280px;
    width: 100%;
    margin-bottom: 30px;
    filter: brightness(0) invert(1);
}

.contact-section h2 {
    font-size: 2.5rem;
    margin-bottom: 0;
    font-weight: 700;
    color: white;
    opacity: 0;
}

.contact-left.in-view h2 {
    animation: slideBottom 800ms ease-in-out 200ms forwards;
}

.contact-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    opacity: 0;
}

.contact-right.in-view {
    animation: slideBottom 1000ms ease-in-out 600ms forwards;
}

@media (max-width: 980px) {
    .contact-right {
        justify-content: center;
    }
}

.contact-section .cta-button {
    background: white;
    color: #2c4a7c;
    font-size: 1rem;
    padding: 18px 50px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: none;
}

.contact-section .cta-button:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #2c4a7c;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 255, 255, 0.3);
}

/* Footer */
.footer {
    background: #0d0d0d;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 40px 20px;
}

.footer p {
    font-size: 0.9rem;
}

@keyframes slideBottom {
    0% {
        opacity: 0;
        transform: translateY(50%);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-logo {
        max-width: 300px;
    }

    .section-title {
        font-size: 2rem;
    }

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

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

    .parallax-divider {
        min-height: 200px;
        height: 200px;
    }
}

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

    .section-title {
        font-size: 1.5rem;
    }

    .cta-button {
        padding: 15px 35px;
        font-size: 0.9rem;
    }

}
