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

:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f8f8f8;
    --bg-alt: #f0f0f0;
    --accent-color: #0066cc;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Montserrat', 'Futura', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--secondary-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 500;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    opacity: 0.7;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--secondary-color);
    box-shadow: none;
    border: none;
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.logo:hover .logo-img {
    opacity: 0.8;
}

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

.nav-menu a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 6rem 2rem 4rem 2rem;
    background: #ffffff;
    text-align: left;
    border-bottom: none;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.hero-subtitle {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    line-height: 1.1;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.hero-title-line {
    display: block;
}

/* Typing Animation */
.hero-subtitle.typing .hero-title-line {
    opacity: 0;
}

.hero-subtitle.typing .hero-title-line.typed {
    opacity: 1;
    animation: fadeIn 0.3s ease;
}

.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: var(--primary-color);
    margin-left: 2px;
    animation: blink 1s infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 2rem;
    max-width: 1200px;
    font-weight: 500;
    text-align: left;
}

.hero-contact {
    display: flex;
    justify-content: flex-start;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    padding: 0;
    border: none;
    border-radius: 0;
    transition: var(--transition);
    display: inline-block;
    text-decoration: underline;
}

.hero-link:hover {
    background-color: transparent;
    color: var(--primary-color);
    opacity: 0.7;
}

.video-container {
    margin-top: 2rem;
    max-width: 100%;
    width: 100%;
}

.video-container iframe {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* Sections */
.section {
    padding: 5rem 2rem;
}

.section-alt {
    background-color: var(--bg-light);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 2rem;
    letter-spacing: -1px;
}

.section-text {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.section-text:last-child {
    margin-bottom: 0;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.team-member {
    padding: 2rem;
    background-color: var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.team-photo {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.team-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.team-social {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.team-social a {
    font-size: 0.9rem;
    color: var(--accent-color);
}

.team-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.team-experience {
    font-size: 0.95rem;
    color: var(--text-light);
    font-style: italic;
}

/* Engagement List */
.engagement-list {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.engagement-list li {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

/* Collapsible Sections */
.collapsible-trigger {
    cursor: pointer;
    text-decoration: underline;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.collapsible-trigger:hover {
    opacity: 0.7;
}

.collapsible-trigger::after {
    content: '▼';
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.collapsible-trigger.active::after {
    transform: rotate(-180deg);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin-top 0.4s ease;
    margin-top: 0;
}

.collapsible-content.active {
    max-height: 5000px;
    margin-top: 1.5rem;
}

.partner-list,
.project-list {
    list-style: none;
    padding-left: 0;
}

.partner-list li,
.project-list li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1rem;
    padding-left: 0;
    font-weight: 500;
}

.partner-list li strong {
    font-weight: 600;
}

.project-section {
    margin-bottom: 2rem;
}

.project-section h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: #FFD93D;
    color: var(--primary-color);
    padding: 4rem 2rem 2rem;
}

.footer-logo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
}

.footer-logo-img {
    height: 40px;
    width: auto;
}

.footer-linkedin-icon {
    color: var(--primary-color);
    transition: var(--transition);
}

.footer-linkedin-icon:hover {
    opacity: 0.7;
}

/* Lighthouse with rotating light */
.lighthouse-container {
    position: relative;
    cursor: pointer;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lighthouse-icon {
    height: 60px;
    width: 40px;
    position: relative;
    z-index: 2;
    filter: brightness(1);
    transition: filter 0.3s ease;
}

.lighthouse-container:hover .lighthouse-icon {
    filter: brightness(1.2);
}

.lighthouse-light {
    position: absolute;
    width: 100%;
    height: 500px;
    background: 
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.7) 0%,
            rgba(255, 255, 255, 0.5) 15%,
            rgba(255, 255, 255, 0.3) 30%,
            rgba(255, 255, 255, 0.15) 50%,
            rgba(255, 255, 255, 0.05) 70%,
            transparent 100%
        );
    top: 0;
    left: 50%;
    width: 150px;
    clip-path: polygon(45% 0%, 55% 0%, 100% 100%, 0% 100%);
    transform: translateX(-50%);
    transform-origin: 50% 0%;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    pointer-events: none;
    filter: blur(8px);
    mix-blend-mode: overlay;
}

.lighthouse-container.active .lighthouse-light {
    opacity: 1;
    animation: sweepFooter 6s ease-in-out infinite;
}

.lighthouse-container.active .lighthouse-icon {
    filter: brightness(1.5) drop-shadow(0 0 10px rgba(255, 217, 61, 0.8));
}

@keyframes sweepFooter {
    0% { transform: rotate(-30deg); }
    50% { transform: rotate(30deg); }
    100% { transform: rotate(-30deg); }
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h3,
.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-section a:hover {
    opacity: 0.7;
}

.footer-social {
    margin-top: 1rem;
}

.footer-social a {
    display: inline-block;
    padding: 0.5rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--secondary-color);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .logo-img {
        height: 40px;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu a {
        padding: 0.75rem 0;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero {
        padding: 4rem 1.5rem;
        margin-top: 70px;
    }

    .hero-subtitle {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-contact {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .hero-link {
        width: auto;
        min-width: 200px;
    }

    .video-container iframe {
        height: 400px;
    }

    .section {
        padding: 3rem 1.5rem;
    }

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

    .section-text {
        font-size: 1.05rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .hero-subtitle {
        font-size: 2rem;
        line-height: 1.1;
    }

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

    .section-title {
        font-size: 1.75rem;
        font-weight: 800;
    }

    .section-text {
        font-size: 1rem;
    }

    .video-container iframe {
        height: 300px;
    }
}

/* Smooth Scrolling Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Print Styles */
@media print {
    .navbar,
    .menu-toggle,
    .hero-contact {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    .section {
        page-break-inside: avoid;
    }
}
