/* Global Styles */
:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #333333;
}

body {
    font-family: "Manrope", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    line-height: 1.6;
    color: var(--primary-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: "DM Serif Text", serif;
}

/* Navigation */
.navbar {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    transition: all 0.3s ease;
}

/* Center mobile menu items */
@media (max-width: 991.98px) {
    .navbar-collapse {
        text-align: center;
        padding-top: 1rem;
    }
    
    .navbar-nav {
        margin: 0 auto;
    }
    
    .nav-item {
        margin: 0.5rem 0;
    }
}

/* Hamburger menu styles */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23000000' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    transition: all 0.3s ease;
}

/* White hamburger on home page */
.home-page .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Black hamburger when scrolled on home page */
.home-page .navbar.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23000000' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Link Styles */
.nav-link, footer a {
    font-weight: 500;
    color: var(--primary-color) !important;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    border-radius: 50px;
    text-decoration: none;
}

/* Only apply white text on home page */
.home-page .nav-link {
    color: var(--secondary-color) !important;
}

.home-page .navbar.scrolled .nav-link {
    color: var(--primary-color) !important;
}

/* Hover effects for nav links */
.nav-link:hover {
    opacity: 1;
    background-color: var(--primary-color);
    color: var(--secondary-color) !important;
}

.home-page .nav-link:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color) !important;
}

.home-page .navbar.scrolled .nav-link:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color) !important;
}

/* Footer specific link styles */
footer .nav-link, 
footer a:not(.social-links a) {
    padding: 0.5rem 1rem !important;
}

/* Footer link hover effects */
footer .nav-link:hover, 
footer a:not(.social-links a):hover {
    background-color: var(--secondary-color);
    color: var(--primary-color) !important;
    opacity: 1;
}

/* Social links in footer */
.social-links a, 
footer .social-links a {
    padding: 0 !important;
    margin: 0 0.25rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    position: relative;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color) !important;
    opacity: 1;
}

.social-links a i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Active link state */
.nav-link.active {
    font-weight: 600;
}

.nav-link.active:hover {
    opacity: 1;
}

/* Hero Section */
#hero {
    position: relative;
    overflow: hidden;
    background-color: var(--secondary-color);
}

#hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

#hero .lead {
    font-size: 1.5rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

.cursor {
    opacity: 1;
    animation: blink 1.2s infinite;
    color: white;
}

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

.btn-outline-light {
    border-width: 2px;
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-shadow: none;
    border-radius: 50px;
}

.btn-outline-light:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Work Section */
.work-section {
    width: 100%;
}

.work-panel-section {
    display: flex;
    width: 100%;
    height: 50vh;
}

.work-panel {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    width: 50%;
    height: 100%;
}

.work-panel-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 2rem 8rem;
}

.work-panel-content img {
    position: relative;
    z-index: 1;
    transition: filter 0.25s ease, opacity 0.25s ease;
}

.work-logo {
    max-height: 120px;
    width: auto;
    z-index: 1;
}

.work-panel::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 45%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0));
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    z-index: 2;
}

.work-overlay-dark {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "title ."
        "text button";
    column-gap: 1rem;
    align-items: end;
    opacity: 0;
    transform: translateY(18px);
    transition: transform 0.25s ease, opacity 0.25s ease;
    padding: 0 1.5rem 1.5rem;
    text-align: left;
    color: var(--secondary-color);
    pointer-events: none;
}

.work-overlay-light {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "title ."
        "text button";
    column-gap: 1rem;
    align-items: end;
    opacity: 0;
    transform: translateY(18px);
    transition: transform 0.25s ease, opacity 0.25s ease;
    padding: 0 1.5rem 1.5rem;
    text-align: left;
    color: var(--primary-color);
    pointer-events: none;
}

.work-panel:hover::after,
.work-panel:focus-within::after {
    opacity: 1;
}

.work-panel:hover .work-overlay-dark,
.work-panel:hover .work-overlay-light,
.work-panel:focus-within .work-overlay-dark,
.work-panel:focus-within .work-overlay-light {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.work-panel:hover .work-logo,
.work-panel:focus-within .work-logo {
    filter: none;
    opacity: 0.85;
}

.work-overlay-dark h3,
.work-overlay-light h3 {
    grid-area: title;
    font-size: 1.7rem;
    margin-bottom: 0.35rem;
}

.work-overlay-dark p,
.work-overlay-light p {
    grid-area: text;
    font-size: 1rem;
    margin-bottom: 0;
    opacity: 0.95;
}

.work-overlay-dark .btn,
.work-overlay-light .btn {
    grid-area: button;
    justify-self: end;
    align-self: center;
    position: relative;
    z-index: 4;
    transition: all 0.25s ease;
    border-width: 2px;
    padding: 0.45rem 1.25rem;
    font-weight: 500;
    border-radius: 50px;
    background-color: transparent;
    margin: 0;
}

.work-overlay-dark .btn {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.work-overlay-light .btn {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.work-overlay-dark .btn:hover,
.work-overlay-light .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.work-overlay-dark .btn:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.work-overlay-light .btn:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
}

footer h5 {
    font-weight: 600;
    margin-bottom: 1.5rem;
}

footer ul li {
    margin-bottom: 0.75rem;
}

footer a {
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.5rem;
    }
    
    #hero .lead {
        font-size: 1.25rem;
    }
    
    .work-panel-section {
        flex-direction: column;
        height: 100vh;
    }

    .work-panel {
        width: 100%;
        height: 50vh;
    }

    .work-logo.square {
        max-height: 160px;
        max-width: 160px;
    }

    .work-logo.rectangle {
        max-height: 80px;
    }

    .work-panel-content {
        padding: 1.5rem 1.25rem 7rem;
    }

    .work-overlay-dark,
    .work-overlay-light {
        padding: 0 1rem 1rem;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "title ."
            "text button";
        column-gap: 0.75rem;
    }

    .work-overlay-dark h3,
    .work-overlay-light h3 {
        font-size: 1.25rem;
    }

    .work-overlay-dark p,
    .work-overlay-light p {
        font-size: 0.95rem;
        margin-bottom: 0.7rem;
    }
}

/* Client Carousel Styles */
.client-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
}

.client-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.client-track {
    display: flex;
    gap: 6rem;
    animation: scroll 60s linear infinite;
    padding: 0 4rem;
    width: fit-content;
    will-change: transform;
}

.client-track:hover {
    animation-play-state: paused;
}

.client-logo {
    max-height: 100px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Enhanced fade effect on edges */
.client-carousel::before,
.client-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    width: 200px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.client-carousel::before {
    left: 0;
    background: linear-gradient(to right, 
        rgba(248, 249, 250, 1) 0%,
        rgba(248, 249, 250, 0.9) 20%,
        rgba(248, 249, 250, 0.7) 40%,
        rgba(248, 249, 250, 0.4) 60%,
        rgba(248, 249, 250, 0.2) 80%,
        rgba(248, 249, 250, 0) 100%
    );
}

.client-carousel::after {
    right: 0;
    background: linear-gradient(to left, 
        rgba(248, 249, 250, 1) 0%,
        rgba(248, 249, 250, 0.9) 20%,
        rgba(248, 249, 250, 0.7) 40%,
        rgba(248, 249, 250, 0.4) 60%,
        rgba(248, 249, 250, 0.2) 80%,
        rgba(248, 249, 250, 0) 100%
    );
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 3rem));
    }
}

@media (max-width: 768px) {
    .client-track {
        gap: 3rem;
        padding: 0 1.5rem;
        animation-duration: 45s;
    }

    .client-carousel::before,
    .client-carousel::after {
        width: 100px;
    }
}

/* Add a faster animation for mobile */
@media (max-width: 768px) {
    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-50% - 1.5rem));
        }
    }
}

.core-concepts {
    width: 100%;
    height: 70vh;
    background: #1a1a1a;
    color: var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.core-concept-panel {
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.core-concept-content {
    text-align: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.letter-container-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
}

.letter-container-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: flex-end;
}

.letter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.letter-group span {
    font-family: "Outfit", sans-serif;
    margin: 0;
    font-size: 4.5rem;
    color: var(--secondary-color);
    transition: font-size 0.5s ease;
    display: block;
    margin-bottom: 0.5rem;
    transition-delay: 0s; /* No delay on hover in */
}

/* Core Concepts Animation Styles */
.letter-group.active span {
    font-size: 1.75rem;
}

/* Add transition delay for size increase */
.letter-group:not(.active) span {
    transition-delay: 5s; /* 5 second delay before size increase */
}

.letter-group p {
    font-size: 4.5rem;
    margin: 0;
    color: var(--secondary-color);
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s ease;
    min-height: 1.5em; /* Reserve space for the text */
    transition-delay: 0s; /* No delay on hover in */
}

.letter-group.active p {
    opacity: 1;
    transform: translateX(0);
}

/* Add transition delay for fade out */
.letter-group:not(.active) p {
    transition-delay: 5s; /* 5 second delay before fade out */
}

/* Add a new class for when typing is complete */
.letter-group.typing-complete p {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0s;
}

/* Add fade-out animation class */
.letter-group.fade-out span {
    font-size: 4.5rem;
    transition-delay: 0s;
}

.letter-group.fade-out p {
    opacity: 0;
    transform: translateX(-20px);
    transition-delay: 0s;
}

/* Add hover cursor style */
.core-concepts {
    cursor: pointer;
}

@media (max-width: 768px) {
    .core-concepts {
        height: auto;
    }

    .core-concept-panel {
        height: 40vh;
        padding: 1.5rem;
    }

    /* Mobile-specific styles for core concepts */
    .letter-container-right,
    .letter-container-left {
        align-items: flex-start !important;
        justify-content: space-between !important;
        height: 100% !important;
        gap: 0 !important;
    }

    .letter-group {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .letter-group span {
        font-size: 1.25rem !important;
    }

    .letter-group p {
        font-size: 3.5rem !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    /* Disable all animations on mobile */
    .letter-group.active span,
    .letter-group:not(.active) span,
    .letter-group.active p,
    .letter-group:not(.active) p,
    .letter-group.typing-complete p,
    .letter-group.fade-out span,
    .letter-group.fade-out p {
        transition: none !important;
        transition-delay: 0s !important;
    }
}

/* Work Logo Specific Sizes */
#grype-logo {
    max-height: 90px;
}
#meatshack-logo {
    max-height: 100px;
}
#akimbo-logo {
    max-height: 220px;
}
#bellryan-logo {
    max-height: 120px;
}
#namerie-logo {
    max-height: 70px;
}
#citc-logo {
    max-height: 100px;
}
#itm-logo {
    max-height: 180px;
}
#studious-logo {
    max-height: 120px;
}
#deluxo-logo {
    max-height: 100px;
}

@media (max-width: 768px) {
    #grype-logo {
        max-height: 60px;
    }
    #meatshack-logo {
        max-height: 70px;
    }
    #akimbo-logo {
        max-height: 140px;
    }
    #bellryan-logo {
        max-height: 80px;
    }
    #namerie-logo {
        max-height: 40px;
    }
    #citc-logo {
        max-height: 70px;
    }
    #itm-logo {
        max-height: 130px;
    }
    #studious-logo {
        max-height: 90px;
    }
    #deluxo-logo {
        max-height: 70px;
    }
}

/* Carousel Logo Specific Styles */
#carousel-grype {
    width: 130px !important;
    padding-top: 5px;
}
#carousel-meatshack {
    width: 200px !important;
    padding-bottom: 10px;
}
#carousel-akimbo {
    width: 80px !important;
    padding-bottom: 15px;
}
#carousel-bellryan {
    width: 180px !important;
    padding-top: 10px;
}
#carousel-namerie {
    width: 200px !important;
}
#carousel-itm {
    width: 80px !important;
    padding-bottom: 10px;
}
#carousel-citc {
    width: 200px !important;
}
#carousel-studious {
    width: 180px !important;
    padding-bottom: 20px;
}
#carousel-deluxo {
    width: 160px !important;
    padding-bottom: 10px;
}

@media (max-width: 768px) {
    .client-logo {
        max-height: 100px;
    }

    #carousel-grype {
        width: 90px !important;
        padding-top: 3px;
    }

    #carousel-meatshack {
        width: 140px !important;
        padding-bottom: 7px;
    }

    #carousel-akimbo {
        width: 50px !important;
        padding-bottom: 10px;
    }

    #carousel-bellryan {
        width: 120px !important;
        padding-top: 7px;
    }

    #carousel-namerie {
        width: 140px !important;
    }

    #carousel-itm {
        width: 55px !important;
        padding-bottom: 5px;
    }

    #carousel-citc {
        width: 140px !important;
    }

    #carousel-studious {
        width: 130px !important;
        padding-bottom: 7px;
    }

    #carousel-deluxo {
        width: 140px !important;
        padding-bottom: 7px;
    }
} 
