/* ==========================================================================
   BRANDING SECTION - PROJECT-STYLE TYPOGRAPHY (OUTFIT)
   ========================================================================== */

:root {
    --brand-font-main: 'Outfit', sans-serif; /* Matched to Projects Section */
    --brand-color: rgba(255, 255, 255, 0.2);
    --brand-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.15);
    --liquid-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

.branding-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: clamp(80px, 15vh, 140px) 0;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.85)), 
                      url('/assets/brandhomebg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow-x: hidden;
    width: 100%;
    font-family: var(--brand-font-main);
}

/* --- HEADER MATCHED TO PROJECTS --- */
.branding-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: clamp(60px, 12vh, 80px); 
    padding: 0 5%;
    z-index: 10;
}

.branding-title {
    /* EXACT PROJECT STYLE */
    font-size: clamp(2.2rem, 5.5vw, 4.2rem); 
    font-weight: 300; 
    text-transform: uppercase;
    letter-spacing: 5px; 
    line-height: 1.1;
    margin-bottom: 20px; 
    
    /* GRADIENT TEXT EFFECT */
    background: linear-gradient(to bottom, #fff, #777);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    max-width: 1100px;
}

.text-highlight {
    /* Keeping highlight consistent with gradient theme */
    background: linear-gradient(to bottom, #ffffff 100%, rgba(255,255,255,0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 400; 
}

.branding-subtitle {
    /* EXACT PROJECT TAGLINE STYLE */
    font-size: clamp(0.9rem, 1.1vw, 1.1rem);
    font-weight: 300; 
    color: rgba(255, 255, 255, 0.5);
    max-width: 700px;
    line-height: 1.6;
    margin: 0 auto;
    letter-spacing: 1px;
}

/* --- SLIDER CORE (PRESERVED) --- */
/* Update these specific parts in your existing branding.css */

.slider-viewport {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden; /* Changed to hidden to prevent scrollbars during loop */
    padding: 60px 0;
    cursor: grab;
}

.slider-track {
    display: flex;
    align-items: center;
    transition: transform 0.8s var(--liquid-ease);
    will-change: transform;
    padding-left: 0; /* Important for math */
}

.glass-card {
    border-radius: 24px;
    width: clamp(260px, 25vw, 340px); /* Responsive width */
    height: 190px;
    flex-shrink: 0;
    margin: 0 20px; /* Consistent spacing */
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.2;
    transform: scale(0.85);
    transition: all 0.6s var(--liquid-ease);
    overflow: hidden;
}

.glass-card.active {
    opacity: 1;
    transform: scale(1.1); /* Slightly bigger for focus */
    border: 1.5px solid var(--brand-color);
    background: var(--brand-bg);
    box-shadow: 0 25px 50px rgba(0,0,0,0.6);
}
.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) brightness(0.6);
    transition: 0.5s ease;
}

.glass-card.active .brand-logo {
    filter: grayscale(0) brightness(1);
}

/* --- NAVIGATION --- */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: 0.3s ease;
}

.nav-btn:hover { 
    background: rgba(255, 255, 255, 0.12); 
    border-color: rgba(255,255,255,0.4);
}
.nav-btn.prev { left: 4%; }
.nav-btn.next { right: 4%; }

/* --- INFO BOX --- */
.info-box-container { width: 100%; display: flex; justify-content: center; }
.info-box {
    margin-top: 40px;
    padding: 25px;
    width: 90%;
    max-width: 520px;
    background: var(--brand-bg);
    border: 1px solid var(--brand-color);
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(25px);
}

#infoTitle { 
    font-size: 24px; 
    margin-bottom: 8px; 
    font-weight: 300; /* Clean light weight like project style */
    letter-spacing: 2px;
    color: #fff; 
}
#infoDesc { 
    color: rgba(255,255,255,0.5); 
    font-weight: 300; 
    font-size: 15px;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .nav-btn { display: none; }
    .branding-title { font-size: 1.8rem; letter-spacing: 3px; }
    .branding-header { margin-bottom: 40px; }
}