/* Opening Animation */
.opening-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 1s ease-out;
}

.opening-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.opening-text {
    font-size: 3rem;
    color: #ffffff;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    animation: openingTextAnimation 2s ease forwards;
}

@keyframes openingTextAnimation {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    50% {
        opacity: 1;
        transform: translateY(0);
    }
    90% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

/* Hide content initially */
.content-wrapper {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.content-wrapper.visible {
    opacity: 1;
}

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

@keyframes slideIn {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes rotateArrow {
    0% {
        transform: rotate(0deg);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    100% {
        transform: rotate(360deg);
        opacity: 1;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in {
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate {
    opacity: 1;
    transform: none;
}

[class*="-in"].animate {
    opacity: 1;
    transform: none;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.2;
    color: #ffffff;
    background-color: #121212;
}

/* Navigation */
nav {
    background-color: transparent;
    padding: 1.5rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-right {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin-left: auto;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 0.1rem 0rem;
    border-radius: 100px;
    position: relative;
}

.nav-right::before {
    content: '';
    position: absolute;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    width: var(--hover-width, 0);
    height: 32px;
    left: var(--hover-left, 0);
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.63rem;
    padding: 0.5rem 0.75rem;
    border-radius: 100px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: transparent;
    white-space: nowrap;
    position: relative;
}

nav a[aria-current='page'] {
    background-color: transparent;
}

nav a:not(.nav-left) {
    background-color: transparent !important;
}

.nav-left {
    font-weight: 500;
    padding-left: 0;
    font-size: 0.77rem;
    pointer-events: none;
}

/* Home styles */
.home {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 4rem);
}

.roles-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.first-line {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.role {
    font-size: 5vw;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.italic {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 2vw;
}

.comma {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    margin-left: 0.2em;
    font-size: 2vw;
}

.arrows {
    display: flex;
    gap: 0.5rem;
}

.arrow {
    width: 3rem;
    height: 3rem;
    border: 1px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    animation: rotateArrow 1.5s forwards;
}

.arrows .arrow:nth-child(2) {
    animation-delay: 0.2s;
}

.arrows .arrow:nth-child(3) {
    animation-delay: 0.4s;
}

.social-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.social-button {
    color: #ffffff;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.63rem;
    padding: 0.5rem 0.75rem;
    border-radius: 100px;
    transition: all 0.3s ease;
    background-color: transparent;
    border: 1px solid #ffffff;
    white-space: nowrap;
}

.social-button:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Logo Gallery */
.logo-gallery {
    background-color: #ffffff;
    padding: 2rem 1rem;
    margin-top: 2rem;
}

.logo-title {
    text-align: center;
    color: #121212;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.logo-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.logo-item {
    flex: 0 1 120px;
    text-align: center;
    padding: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.logo-item.animate {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(0.1s * var(--i, 0));
}

.logo-item img {
    max-width: 100%;
    height: auto;
    max-height: 45px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.logo-item:hover img {
    opacity: 0.7;
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* About Section */
.about-section {
    background-color: #121212;
    padding: 6rem 2rem;
}

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

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.about-heading {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.about-text {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
}


/* Partner Section Styles */
.partner-section {
    padding: 6rem 12rem;
    background-color: #121212;
}

.section-title {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 4rem;
    text-align: left;
    letter-spacing: -0.02em;
}

.section-title span {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    color: #d4af37;
}

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

.partner-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.partner-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-10px);
    border-color: #d4af37;
}

.card-icon {
    width: 50px;
    height: 50px;
    color: #d4af37;
}

.partner-card h3 {
    font-size: 1.25rem;
    font-weight: 500;
    color: #ffffff;
}

.partner-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
}

/* Delaying animations for a staggered entrance */
.partner-card.animate:nth-child(1) { transition-delay: 0.1s; }
.partner-card.animate:nth-child(2) { transition-delay: 0.2s; }
.partner-card.animate:nth-child(3) { transition-delay: 0.3s; }
.partner-card.animate:nth-child(4) { transition-delay: 0.4s; }

@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
    }
    .partner-card {
        padding: 1.5rem;
    }
}



/* Portfolio Section */
.portfolio-container {
    padding: 8rem 2rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-heading {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2fr, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.portfolio-item {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
   background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    
}

.portfolio-item.animate {
    opacity: 1;
    transform: scale(1);
    transition-delay: calc(0.1s * var(--i, 0));
}

.portfolio-item img {
    width: 90%;
    height: 90%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #ffffff;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

/* Contact Section */
.contact-section {
    padding: 4rem 4rem;
    background-color: #121212;
    margin-top: 2rem;
}

.contact-info {
    margin-left: 100px;
}

.contact-flex {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info h2 {
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.contact-link:hover {
    opacity: 0.7;
    transform: translateX(5px);
}

.contact-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #121212;
    transition: all 0.3s ease;
    margin-right: 100px;
}

.contact-circle:hover {
    transform: scale(1.1) rotate(45deg);
    background-color: #891B1A;
}

.contact-circle svg {
    width: 32px;
    height: 32px;
}

/* Footer Styles */
.footer {
    background-color: #ffffff;
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    align-items: start;
}

.footer-logo .logo {
    max-width: 120px;
    height: auto;
}

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

.footer-links a {
    color: #121212;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.7;
    transform: translateX(5px);
}

.footer-address {
    color: #121212;
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.social-icon {
    color: #121212;
    transition: all 0.3s ease;
}

.social-icon:hover {
    opacity: 0.7;
    transform: scale(1.2);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: left;
    color: rgba(0, 0, 0, 0.7);
    font-size: 0.8rem;
}

.footer-bottom a {
    color: #121212;
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .first-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .role {
        font-size: 8vw;
    }
    
    .arrow {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.2rem;
    }

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

    .nav-right {
        width: 100%;
        max-width: 100%;
        justify-content: flex-start;
    }

    .logo-container {
        gap: 1rem;
    }

    .logo-item {
        flex: 0 1 100px;
    }

    .logo-item img {
        max-height: 35px;
    }

    .about-heading {
        font-size: 2.5rem;
    }

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

    .stat-item {
        text-align: center;
    }

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

    .contact-flex {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }

    .contact-info {
        margin-left: 0;
    }

    .contact-info h2 {
        font-size: 2.5rem;
    }

    .contact-circle {
        width: 80px;
        height: 80px;
        margin-right: 0;
    }

    .contact-circle svg {
        width: 24px;
        height: 24px;
    }

    .opening-text {
        font-size: 2rem;
    }
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }

    .footer-social {
        justify-content: flex-start;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-logo {
        display: flex;
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        text-align: center;
    }
}