/* Header Styles */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: background-color var(--transition-normal), padding var(--transition-normal);
    padding: var(--space-md) 0;
}

.site-header.is-scrolled {
    position: fixed;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: var(--space-sm) 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.container--header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: var(--space-md);
    margin: 0;
    padding: 0;
}

.main-navigation a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-gray-800);
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-foundern-blue);
    transition: width var(--transition-fast);
}

.main-navigation a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--color-gray-100) 0%, var(--color-white) 100%);
    padding-top: 80px;
    /* Offset for header */
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: var(--space-md);
    color: var(--color-black);
}

.hero-title span {
    background: linear-gradient(90deg, var(--color-foundern-blue), var(--color-global-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--color-gray-800);
    margin-bottom: var(--space-lg);
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* Background Shapes for Hero */
.hero-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.5;
    animation: float 20s infinite ease-in-out alternate;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background-color: rgba(0, 86, 179, 0.15);
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background-color: rgba(236, 72, 153, 0.1);
    bottom: -200px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}


/* --- Brand Sections Common --- */
.brand-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: var(--space-xl) 0;
    position: relative;
}

.brand-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.brand-content h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: var(--space-sm);
}

.brand-content p {
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
    color: var(--color-gray-800);
}

.brand-features {
    list-style: none;
    margin-bottom: var(--space-md);
}

.brand-features li {
    margin-bottom: var(--space-xs);
    display: flex;
    align-items: center;
    font-weight: 500;
}

.brand-features li::before {
    content: '✓';
    margin-right: var(--space-sm);
    font-weight: bold;
}

.brand-visual {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: transform var(--transition-normal);
}

.brand-visual:hover {
    transform: translateY(-10px);
}

.brand-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.brand-visual:hover img {
    transform: scale(1.05);
}


/* --- Specific Brands --- */

/* FounderN (Media) */
#foundern {
    background-color: var(--color-white);
}

#foundern .brand-features li::before {
    color: var(--color-foundern-blue);
}

.btn-foundern {
    background-color: var(--color-foundern-blue);
    color: var(--color-white);
}

.btn-foundern:hover {
    background-color: #004494;
}

/* FounderN Studio */
#studio {
    background-color: var(--color-studio-dark);
    color: var(--color-white);
}

#studio .brand-content p {
    color: var(--color-gray-200);
}

#studio .brand-features li::before {
    color: var(--color-studio-accent);
}

#studio .brand-visual {
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.1);
}

.btn-studio {
    background-color: transparent;
    border: 1px solid var(--color-studio-accent);
    color: var(--color-studio-accent);
}

.btn-studio:hover {
    background-color: var(--color-studio-accent);
    color: var(--color-studio-dark);
}

/* Glassmorphism card for studio */
.studio-glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-md);
    border-radius: 12px;
    margin-top: var(--space-md);
}

/* FounderN Global */
#global {
    background: linear-gradient(135deg, #1e1b4b 0%, var(--color-global-primary) 100%);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

#global::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    z-index: 0;
}

#global .container {
    position: relative;
    z-index: 1;
}

#global .brand-content p {
    color: var(--color-gray-100);
}

#global .brand-features li::before {
    color: var(--color-global-secondary);
}

.btn-global {
    background: linear-gradient(90deg, var(--color-global-primary), var(--color-global-secondary));
    color: var(--color-white);
    border: none;
}

.btn-global:hover {
    opacity: 0.9;
    box-shadow: 0 10px 20px rgba(236, 72, 153, 0.3);
}


/* --- Footer --- */
.site-footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: var(--space-xl) 0 var(--space-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-logo {
    font-size: 2rem;
    margin-bottom: var(--space-xs);
}

.footer-tagline {
    color: var(--color-gray-200);
    font-size: 1.1rem;
}

.footer-heading {
    font-size: 1.2rem;
    margin-bottom: var(--space-sm);
    color: var(--color-gray-200);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--color-gray-200);
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-white);
}

.site-info {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-md);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}


/* --- Responsive --- */
@media (max-width: 900px) {
    .brand-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .brand-grid>div:first-child {
        order: 2;
        /* Content below image on mobile usually looks better, or vice versa depending on design logic. Let's keep content first for narratives */
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        z-index: 1001;
        color: var(--color-black);
    }

    .hamburger-icon,
    .hamburger-icon::before,
    .hamburger-icon::after {
        display: block;
        width: 25px;
        height: 3px;
        background-color: currentColor;
        position: relative;
        transition: all 0.3s;
    }

    .hamburger-icon::before,
    .hamburger-icon::after {
        content: '';
        position: absolute;
    }

    .hamburger-icon::before {
        top: -8px;
    }

    .hamburger-icon::after {
        bottom: -8px;
    }

    .main-navigation ul {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--color-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left var(--transition-normal);
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .main-navigation.toggled ul {
        left: 0;
    }
}

/* --- Added for Logos --- */
.brand-logo-container {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background-color: var(--color-gray-100);
    padding: var(--space-xl) !important;
    box-shadow: none !important;
}

.brand-logo-container img {
    width: auto !important;
    max-width: 80%;
    height: auto !important;
    object-fit: contain !important;
}

/* --- FounderN Campus --- */
#campus {
    background-color: var(--color-white);
    border-top: 1px solid var(--color-gray-200);
}

#campus .brand-features li::before {
    color: #f97316;
    /* Campus Orange */
}

.btn-campus {
    background-color: #f97316;
    color: var(--color-white);
}

.btn-campus:hover {
    background-color: #ea580c;
}

/* --- Ecosystem Section --- */
.ecosystem-section {
    background-color: var(--color-gray-100);
    padding: var(--space-xl) 0;
}

.ecosystem-subtitle {
    font-size: 1.25rem;
    color: var(--color-gray-800);
}

.ecosystem-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.eco-card {
    background: var(--color-white);
    padding: var(--space-md);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-normal);
}

.eco-card:hover {
    transform: translateY(-5px);
}

.eco-foundern {
    border-top: 4px solid var(--color-foundern-blue);
}

.eco-studio {
    border-top: 4px solid var(--color-studio-dark);
}

.eco-global {
    border-top: 4px solid var(--color-global-secondary);
}

.eco-campus {
    border-top: 44px solid #f97316;
}

.eco-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
}

.eco-card p {
    color: var(--color-gray-800);
    font-size: 0.95rem;
}

.ecosystem-conclusion {
    margin-top: var(--space-lg);
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.4;
}

.ecosystem-conclusion strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: var(--space-xs);
}