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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Animation classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
}

/* Staggered animation for manifesto components */
.manifesto-component {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.manifesto-component.visible {
    opacity: 1;
    transform: translateY(0);
}

.manifesto-component:nth-child(1) { transition-delay: 0.1s; }
.manifesto-component:nth-child(2) { transition-delay: 0.2s; }
.manifesto-component:nth-child(3) { transition-delay: 0.3s; }
.manifesto-component:nth-child(4) { transition-delay: 0.4s; }
.manifesto-component:nth-child(5) { transition-delay: 0.5s; }
.manifesto-component:nth-child(6) { transition-delay: 0.6s; }


/* Hero layout animation */

.hero-left.visible {
    opacity: 1;
}

.hero-right.visible {
    opacity: 1;
}

/* Typewriter effect */
.typewriter {
    position: relative;
    display: inline-block;
}

.typewriter-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid #1A5FFF;
    animation: typing 2s steps(13, end), blink-cursor 1s infinite;
    animation-delay: 0.8s;
    animation-fill-mode: both;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-cursor {
    0%, 50% { border-color: #1A5FFF; }
    51%, 100% { border-color: transparent; }
}

/* Staggered animation for portfolio rows */
.portfolio-row {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.portfolio-row.visible {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-row:nth-child(1) { transition-delay: 0.1s; }
.portfolio-row:nth-child(2) { transition-delay: 0.2s; }
.portfolio-row:nth-child(3) { transition-delay: 0.3s; }
.portfolio-row:nth-child(4) { transition-delay: 0.4s; }
.portfolio-row:nth-child(5) { transition-delay: 0.5s; }
.portfolio-row:nth-child(6) { transition-delay: 0.6s; }
.portfolio-row:nth-child(7) { transition-delay: 0.7s; }
.portfolio-row:nth-child(8) { transition-delay: 0.8s; }
.portfolio-row:nth-child(9) { transition-delay: 0.9s; }
.portfolio-row:nth-child(10) { transition-delay: 1.0s; }
.portfolio-row:nth-child(11) { transition-delay: 1.1s; }
.portfolio-row:nth-child(12) { transition-delay: 1.2s; }
.portfolio-row:nth-child(13) { transition-delay: 1.3s; }
.portfolio-row:nth-child(14) { transition-delay: 1.4s; }
.portfolio-row:nth-child(15) { transition-delay: 1.5s; }
.portfolio-row:nth-child(16) { transition-delay: 1.6s; }
.portfolio-row:nth-child(17) { transition-delay: 1.7s; }
.portfolio-row:nth-child(18) { transition-delay: 1.8s; }
.portfolio-row:nth-child(19) { transition-delay: 1.9s; }

/* Portfolio hover effects */
.portfolio-row {
    transition: color 0.3s ease;
    cursor: auto;
}


.portfolio-row:hover .portfolio-name span {
    color: #1A5FFF;
}

.container {
    width: 100%;
    padding: 0 40px;
    box-sizing: border-box;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    z-index: 1000;
    height: 54px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}

.nav-container {
    width: 100%;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 100%;
}

.logo-img {
    height: 28px;
    width: auto;
    display: block;
    vertical-align: middle;
    filter: brightness(0);
}

.logo a,
.footer-logo a {
    text-decoration: none;
    display: inline-block;
}

.nav-links {
    display: flex;
    gap: 40px;
    flex-shrink: 0;
}

.nav-links a {
    text-decoration: none;
    color: #000;
    font-weight: 400;
    font-size: 18px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #1A5FFF;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    position: relative;
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background-color: #000;
    margin: 2px 0;
    border-radius: 1px;
}

.mobile-menu-toggle .close-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    visibility: hidden;
}

.mobile-menu-toggle.active span {
    opacity: 0;
    visibility: hidden;
}

.mobile-menu-toggle.active .close-icon {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Mask */
.mobile-menu-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-mask.active {
    opacity: 1;
    visibility: visible;
}

/* Hero and Company Container */
.hero-company-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Hero Section */
.hero {
    height: 40vh;
    padding: 20px 0 20px;
    background-color: #fff;
    margin-top: 54px;
    display: flex;
    align-items: stretch;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 60px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 0 40px;
}

.hero-left {
    flex: 0 0 auto;
    max-width: 652px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    opacity: 0;
    transition: opacity 0.6s ease-out;
    transition-delay: 0.2s;
}

.hero-title {
    font-size: 48px;
    font-weight: 400;
    line-height: 1.15;
    color: #000;
    letter-spacing: -0.01em;
}

.hero-right {
    flex: 0 0 auto;
    text-align: right;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.6s ease-out;
    transition-delay: 0.4s;
}

.hero-subtitle {
    font-size: 48px;
    font-weight: 400;
    line-height: 1.15;
    color: #000;
    letter-spacing: -0.01em;
}

/* Company Introduction Section */
.company-intro {
    height: 60vh;
    background-color: #FAFAFA;
    color: #000;
    display: flex;
    align-items: flex-end;
}

.company-intro .container {
    width: 100%;
    padding: 0 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 40px;
    box-sizing: border-box;
}

.company-quote {
    font-size: 48px;
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.01em;
    text-align: left;
    max-width: 800px;
    margin: 0 0 40px 0;
}

.company-name {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
}

.company-name::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -20px;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
}

.company-name h2 {
    font-size: 32px;
    font-weight: 300;
    line-height: 1.1;
    color: #000;
    letter-spacing: -0.01em;
}

.company-name p {
    font-size: 32px;
    font-weight: 300;
    line-height: 1.1;
    color: rgba(0, 0, 0, 0.4);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

/* Pronunciation container */
.pronunciation-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pronunciation-container p {
    margin: 0;
}

/* Speaker button */
.speaker-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: rgba(0, 0, 0, 0.4);
}

.speaker-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #1A5FFF;
}

.speaker-button:active {
    background-color: rgba(0, 0, 0, 0.1);
}

.speaker-icon {
    transition: color 0.3s ease;
}

/* Manifesto Section */
.manifesto {
    padding: 100px 0;
    background-color: #fff;
}

.manifesto .section-title {
    position: sticky;
    top: 74px;
    margin-bottom: 0;
    padding-top: 20px;
}

.manifesto-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

.section-title {
    font-size: 36px;
    font-weight: 400;
    line-height: 1.2;
    text-align: left;
    margin-bottom: 40px;
    color: #000;
    letter-spacing: -0.01em;
}

.portfolio .section-title {
    position: sticky;
    top: 74px;
    margin-bottom: 0;
    padding-top: 20px;
}

.manifesto-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
}

.manifesto-component {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 0 40px 0;
    border-bottom: 1px solid #e5e5e5;
}


.manifesto-number {
    font-size: 32px;
    font-weight: 300;
    color: rgba(0, 0, 0, 0.1);
    letter-spacing: -0.01em;
    margin-bottom: 0px;
}

.manifesto-content {
    margin-bottom: 0px;
}

.manifesto-title {
    font-size: 26px;
    font-weight: 300;
    margin-bottom: 0px;
    color: #000;
    line-height: 1.3;
}

.manifesto-description {
    font-size: 18px;
    font-weight: 300;
    color: #666;
    line-height: 1.5;
}


/* Portfolio Section */
.portfolio {
    padding: 60px 0 100px;
}

.portfolio-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

.portfolio-table {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.portfolio-row {
    padding: 20px 0 40px 0;
    border-bottom: 1px solid #e5e5e5;
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.portfolio-row:hover {
    text-decoration: none;
}

.portfolio-row:last-child {
    border-bottom: none;
}

.portfolio-name {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 18px;
    font-weight: 300;
    color: #000;
    width: 100%;
    box-sizing: border-box;
}

.portfolio-name-content {
    display: flex;
    flex-direction: column;
    gap: 0px;
    flex: 1;
    min-width: 0;
}

.portfolio-name-content span {
    font-size: 18px;
    font-weight: 400;
}

.portfolio-members-description {
    display: flex;
    flex-direction: column;
    gap: 0px;
}


.portfolio-icon-img {
    width: 90px;
    height: 90px;
    border-radius: 18px;
    object-fit: cover;
    flex-shrink: 0;
}



.portfolio-icon {
    width: 24px;
    height: 24px;
    background-color: #1A5FFF;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
}

.portfolio-members {
    font-size: 18px;
    font-weight: 300;
    color: #666;
}

.portfolio-description {
    font-size: 18px;
    font-weight: 300;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Footer */
.footer {
    padding: 40px 0 40px;
    background-color: #fff;
    position: relative;
    border-top: 1px solid #e5e5e5;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

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

.footer-bottom {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
}

.footer-bottom p {
    font-size: 18px;
    font-weight: 300;
    color: #999;
}

.social-media {
    display: flex;
    gap: 20px;
    align-items: center;
}

.social-link {
    color: #999;
    text-decoration: none;
    font-size: 18px;
    font-weight: 300;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #1A5FFF;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 4px;
    color: #666;
    line-height: 1.4;
}

.footer-link {
    font-size: 18px;
    font-weight: 300;
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #1A5FFF;
}


.footer-email {
    font-size: 18px;
    color: #000;
    text-decoration: none;
    font-weight: 300;
    transition: color 0.3s ease;
}

.footer-email:hover {
    color: #1A5FFF;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .portfolio-table {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .manifesto-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .manifesto-items {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .nav-container {
        padding: 0 30px;
    }
    
    .manifesto-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px 30px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
        grid-column: 1;
    }
    
    .footer-bottom {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Mobile Navigation */
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-container {
        position: relative;
    }
    
    .nav-links.mobile-active {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        flex-direction: column;
        padding: 30px 20px;
        z-index: 1000;
        border-top: 1px solid #e5e5e5;
    }
    
    .nav-links.mobile-active a {
        padding: 6px 0;
        border-bottom: 1px solid #e5e5e5;
        text-align: left;
        font-size: 30px;
        font-weight: 300;
        color: #000;
        text-decoration: none;
    }
    
    .nav-links.mobile-active a:last-child {
        border-bottom: none;
    }
    
    .nav-links.mobile-active a:hover {
        color: #1A5FFF;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .nav-links a {
        font-size: 14px;
    }
    
    .hero {
        height: 40vh;
        padding: 20px 0 20px;
        margin-top: 54px;
    }
    
    .company-intro {
        height: 60vh;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 30px;
        align-items: flex-start;
        justify-content: space-between;
        padding: 0 15px;
    }
    
    .hero-left {
        max-width: 100%;
        align-items: flex-start;
    }
    
    .hero-right {
        text-align: left;
        align-items: flex-end;
    }
    
    .hero-title,
    .hero-subtitle {
        font-size: 36px;
    }
    
    .company-intro {
        height: 400px;
    }
    
    .company-intro .container {
        padding: 0 15px;
        padding-bottom: 30px;
    }
    
    .company-quote {
        font-size: 36px;
        margin: 0 0 30px 0;
    }
    
    .company-name h2,
    .company-name p {
        font-size: 24px;
        line-height: 1.1;
    }
    
    .pronunciation-container {
        gap: 8px;
    }
    
    .speaker-button {
        padding: 6px;
    }
    
    .speaker-icon {
        width: 16px;
        height: 16px;
    }
    
    .company-name p {
        margin-bottom: 0;
    }
    
    .company-name {
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }
    
    .company-name::before {
        top: -10px;
    }
    
    .manifesto {
        padding: 40px 0;
    }
    
    .manifesto .section-title {
        position: static;
        margin-bottom: 0;
        padding-top: 0;
    }
    
    .section-title {
        font-size: 28px;
        line-height: 1.2;
    }
    
    .manifesto-items {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .manifesto-component {
        padding: 15px 0 30px 0;
    }
    
    .manifesto-number {
        font-size: 36px;
    }
    
    .manifesto-title {
        font-size: 28px;
    }
    
    .manifesto-description {
        font-size: 16px;
    }
    
    
    
    
    .manifesto-content {
        margin-bottom: 15px;
    }
    
    .portfolio {
        padding: 40px 0;
    }
    
    .portfolio .section-title {
        position: static;
        margin-bottom: 20px;
        padding-top: 0;
    }
    
    .portfolio-content {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .portfolio-table {
        width: 100%;
        box-sizing: border-box;
    }
    
    .portfolio-row {
        display: block;
        text-align: left;
        padding: 0 0 20px 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .portfolio-name {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .portfolio-name-content {
        display: flex;
        flex-direction: column;
        gap: 5px;
        flex: 1;
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
    }
    
    .portfolio-name-content span {
        width: 100%;
        min-width: 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .portfolio-members-description {
        width: 100%;
        min-width: 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .portfolio-details {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .portfolio-name,
    .portfolio-members,
    .portfolio-description {
        font-size: 16px;
    }

    .portfolio-description {
        white-space: normal;
        line-height: 1.2;
    }

    .portfolio-members {
        padding-top: 4px;
    }
    
    .footer {
        padding: 30px 0 30px;
    }
    
    .footer-content {
        gap: 60px;
    }
    
    .footer-top {
        text-align: left;
    }
    
    .footer-main {
        text-align: left;
    }
    
    .footer-bottom {
        text-align: left;
    }
    
    .footer-bottom p {
        text-align: left;
        order: 2;
    }
    
    .social-media {
        justify-content: flex-start;
        order: 1;
    }
    
    .footer-section h3 {
        text-align: left;
        font-size: 16px;
    }
    
    .footer-link {
        text-align: left;
        font-size: 16px;
    }
    
    .footer-email {
        text-align: left;
        font-size: 16px;
    }
    
    .footer-bottom p {
        text-align: left;
        font-size: 16px;
    }
    
    .social-media {
        justify-content: flex-start;
    }
    
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .nav-links a {
        font-size: 13px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .logo-icon {
        font-size: 18px;
    }
    
    .hero-content {
        gap: 20px;
        padding: 0 15px;
    }
    
    .hero-title,
    .hero-subtitle {
        font-size: 28px;
        line-height: 1.2;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}