@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800;900&display=swap');

:root {
    --accent-red: #e31e24;
    --accent-red-hover: #ff2b32;
    --bg-dark: #0f0f12;
    --bg-card: #1a1a1f;
    --bg-glass: rgba(26, 26, 31, 0.8);
    --text-main: #ffffff;
    --text-dim: #a1a1aa;
    --glow-red: rgba(227, 30, 36, 0.3);
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --border-glass: rgba(255, 255, 255, 0.05);
    --container-padding: 4rem;
}

/* Light Mode Overrides */
[data-theme="light"] {
    --bg-dark: #f8f9fa;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --text-main: #0a0a0a;
    --text-dim: #52525b;
    --border-glass: rgba(0, 0, 0, 0.08);
    --glow-red: rgba(227, 30, 36, 0.15);
}
@media (max-width: 1024px) {
    :root { --container-padding: 2.5rem; }
}
@media (max-width: 600px) {
    :root { --container-padding: 1.5rem; }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
    cursor: default;
}

/* Custom Selection */
::selection {
    background: var(--accent-red);
    color: white;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: var(--transition-smooth);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Glassmorphism Effect */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 90px;
    transition: var(--transition-smooth);
}

nav.scrolled {
    height: 70px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    z-index: 1001;
}

.logo img {
    height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.1) rotate(-5deg);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -1px;
    text-transform: uppercase;
}

.logo-text span {
    color: var(--accent-red);
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-red);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
    color: var(--accent-red);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 90px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--glow-red) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    filter: blur(100px);
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    animation: fadeUp 1s ease-out forwards;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 2rem;
    letter-spacing: -2px;
    text-transform: uppercase;
}

.hero h1 span {
    display: block;
    background: linear-gradient(90deg, var(--text-main) 0%, var(--accent-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-dim);
    margin-bottom: 3rem;
    max-width: 600px;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-logo-container {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(227, 30, 36, 0.1) 0%, transparent 70%);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    animation: pulse 4s infinite ease-in-out;
}

.main-logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 30px var(--glow-red));
}

/* Business Units Grid */
.units-section {
    padding: 10rem 0;
    background: linear-gradient(to bottom, transparent, #09090b);
}

.section-title {
    margin-bottom: 5rem;
    text-align: center;
}

.section-title h2 {
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.section-title .subtitle {
    color: var(--accent-red);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1rem;
}

.units-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
}

.unit-card {
    background: var(--bg-card);
    padding: 3rem 2rem;
    border-radius: 2rem;
    border: 1px solid var(--border-glass);
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.unit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, var(--glow-red), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
}

.unit-card:hover {
    transform: translateY(-15px);
    border-color: var(--accent-red);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.unit-card:hover::before {
    opacity: 1;
}

.unit-logo {
    height: 80px;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.unit-logo img {
    height: 100%;
    width: auto;
    filter: brightness(0.9);
    transition: var(--transition-smooth);
}

.unit-card:hover .unit-logo img {
    filter: brightness(1.1);
    transform: scale(1.1);
}

.unit-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.unit-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* Visi Misi Section */
.visi-misi {
    padding: 10rem 0;
    position: relative;
}

.visi-misi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.vision-card, .mission-card {
    background: var(--bg-card);
    padding: 4rem;
    border-radius: 3rem;
    border: 1px solid var(--border-glass);
}

.visi-misi h3 {
    color: var(--accent-red);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
}

.visi-list {
    list-style: none;
}

.visi-list li {
    margin-bottom: 2rem;
    position: relative;
    padding-left: 2rem;
    font-size: 1.15rem;
}

.visi-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 12px;
    height: 2px;
    background: var(--accent-red);
}

/* Social Connect */
.social-section {
    padding: 10rem 0;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
}

.social-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-btn:hover {
    background: var(--accent-red);
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 0 30px var(--glow-red);
}

/* Footer */
footer {
    padding: 5rem 0;
    border-top: 1px solid var(--border-glass);
    text-align: center;
}

.footer-logo {
    margin-bottom: 2rem;
}

.copyright {
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

/* Navigation Transitions and Mobile */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1100;
}

.nav-toggle span {
    width: 30px;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

@media (max-width: 1024px) {
    .nav-toggle { display: flex; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--bg-card);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: var(--transition-smooth);
        box-shadow: -20px 0 60px rgba(0,0,0,0.5);
        z-index: 1005;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(8px, 8px); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(8px, -8px); }

    .hero .container {
        grid-template-columns: 1fr;
        padding-top: 4rem;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-visual {
        order: 1;
        margin-bottom: 3rem;
    }

    .main-logo-container {
        width: 250px;
        height: 250px;
    }

    .section-title h2 {
        font-size: clamp(2rem, 5vw, 3rem);
    }
}

.units-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-visual {
        order: -1;
    }
    .visi-misi-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .units-grid {
        grid-template-columns: 1fr;
    }
    .vision-card, .mission-card {
        padding: 2.5rem;
    }
    .social-links {
        gap: 1.5rem;
    }
    .social-btn {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}