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

:root {
    --primary-bg: #0A192F;
    --secondary-bg: #112240;
    --accent-gold: #D4AF37;
    --accent-gold-light: #F1D279;
    --text-white: #E6F1FF;
    --text-gray: #8892B0;
    --transition-smooth: all 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: 1px;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--primary-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 10px;
}

/* --- Navigation --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
    background: transparent;
}

header.scrolled {
    background: rgba(10, 25, 47, 0.95);
    padding: 10px 50px;
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
    backdrop-filter: blur(10px);
}

.logo img {
    height: 120px;
    width: auto;
    transition: var(--transition-smooth);
}

header.scrolled .logo img {
    height: 80px;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-white);
    transition: var(--transition-smooth);
}

.mobile-menu-btn:hover {
    color: var(--accent-gold);
}

nav ul {
    display: flex;
    gap: 35px;
}

nav ul li a {
    font-weight: 400;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

nav ul li a:hover {
    color: var(--accent-gold);
}

.cta-btn {
    padding: 12px 25px;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    background: transparent;
    transition: var(--transition-smooth);
}

.cta-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-3px);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    width: 100%;
    background: linear-gradient(rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.8)), url('../img/hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    font-size: clamp(40px, 8vw, 80px);
    margin-bottom: 20px;
    color: var(--text-white);
}

.hero h1 span {
    color: var(--accent-gold);
}

.hero p {
    font-size: clamp(16px, 2vw, 22px);
    max-width: 700px;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    width: 2px;
    height: 50px;
    background: linear-gradient(to bottom, var(--accent-gold), transparent);
    animation: scrollMove 2s infinite;
}

@keyframes scrollMove {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* --- Sections --- */
section {
    padding: 100px 10vw;
}

.section-title {
    font-size: 32px;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    inset-inline-start: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-gold);
}

/* --- Timeline --- */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--secondary-bg);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--accent-gold);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px var(--accent-gold);
}

.left { left: 0; }
.right { left: 50%; }

.right::after { left: -10px; }

.timeline-content {
    padding: 20px 30px;
    background: var(--secondary-bg);
    border-radius: 6px;
    border-inline-start: 4px solid var(--accent-gold);
}

.timeline-content h3 {
    color: var(--accent-gold);
    margin-bottom: 5px;
}

/* --- Products --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.product-card {
    background: var(--secondary-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition-smooth);
    border-bottom: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-gold);
    box-shadow: 0 20px 40px rgba(2, 12, 27, 0.7);
}

.product-img {
    height: 200px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-info {
    padding: 30px;
}

.product-info h3 {
    margin-bottom: 15px;
    color: var(--accent-gold);
}

.product-info ul {
    font-size: 14px;
    color: var(--text-gray);
}

.product-info ul li {
    margin-bottom: 5px;
}

/* --- Divisions (Masterbatch) --- */
.division-section {
    display: flex;
    align-items: center;
    gap: 50px;
    background: var(--secondary-bg);
    padding: 50px;
    border-radius: 20px;
}

.division-content { flex: 1; }
.division-visual { flex: 1; }

.division-visual img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 20px 20px 0 var(--accent-gold);
}

/* --- Contact Section --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info-list {
    margin-top: 30px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-info-item i {
    font-size: 24px;
    color: var(--accent-gold);
    width: 40px;
}

.map-container {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
}

iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(1) invert(0.92) contrast(1.2);
}

/* --- Scroll to Top --- */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--accent-gold);
    color: var(--primary-bg);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    background: var(--accent-gold-light);
}

/* --- Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 1.2s all cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* --- Responsive --- */
@media (max-width: 992px) {
    header { padding: 20px; }
    
    .mobile-menu-btn {
        display: block;
    }
    
    header > .cta-btn {
        display: none;
    }
    
    nav {
        position: absolute;
        top: 100%;
        inset-inline-start: 0;
        width: 100%;
        background: rgba(10, 25, 47, 0.98);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
    }
    
    nav.active {
        max-height: 400px;
        padding: 20px 0;
    }
    
    nav ul { 
        display: flex; 
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .contact-container { grid-template-columns: 1fr; }
    .division-section { flex-direction: column; }
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-item::after { left: 21px; }
    .right { left: 0; }
}
