/* 
    Fibra Expert - Premium Industrial Design System
    Palette: Gold / Industrial Yellow & Carbon Grey
*/

:root {
    --primary: #FBCD29; /* Gold / Safety Yellow */
    --primary-glow: rgba(251, 205, 41, 0.4);
    --secondary: #211D1E; /* Carbon Grey */
    --accent: #E5B210;
    --text-main: #FFFFFF;
    --text-muted: #A0A0A0;
    --bg-deep: #0D0D0D;
    --bg-card: #1A1A1A;
    --glass: rgba(255, 255, 255, 0.05);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Layout --- */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 100px 0;
}

/* --- Navigation --- */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass);
    padding: 1rem 0;
}

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

.logo img {
    height: 85px;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

/* --- Hero Section --- */

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to right, var(--bg-deep) 30%, rgba(13, 13, 13, 0.4) 50%, transparent);
}

.hero .container {
    max-width: 100%;
    margin: 0;
    padding-left: 8%;
}

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

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

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

.hero p {
    font-size: 1.25rem;
    color: var(--text-main);
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 500px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-bg {
    position: absolute;
    right: 0;
    top: 0;
    width: 60%;
    height: 100%;
    object-fit: cover;
    mask-image: linear-gradient(to left, black 70%, transparent);
}

/* --- Buttons --- */

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--secondary);
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-5px);
    background-color: #fff;
}

/* --- Services Grid --- */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 8px;
    border-top: 3px solid var(--glass);
    transition: var(--transition);
}

.service-card:hover {
    border-top-color: var(--primary);
    transform: translateY(-10px);
}

.index-num {
    font-size: 3rem;
    font-weight: 900;
    color: var(--glass);
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

/* --- Gallery --- */

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

.gallery-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 4px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    filter: grayscale(40%);
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

/* --- Floating WhatsApp --- */

.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    z-index: 2000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float svg {
    width: 30px;
    fill: white;
}

/* --- Contact Grid --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* --- Responsiveness --- */

@media (max-width: 992px) {
    .nav-links { gap: 1rem; }
    .nav-links a { font-size: 0.8rem; }
    .hero h1 { font-size: 3.5rem; }
    .hero { height: auto; padding: 12rem 0 8rem; }
    .hero-bg { width: 100%; opacity: 0.2; }
}

@media (max-width: 768px) {
    nav { padding: 0.5rem 0; }
    nav .container { flex-direction: column; gap: 0.5rem; padding: 0.5rem; }
    .nav-links { gap: 1rem; flex-wrap: wrap; justify-content: center; }
    .logo img { height: 45px; max-width: 100%; } /* Sized for better mobile fit */
    
    .hero { text-align: center; padding: 6rem 0 3rem; min-height: 80vh; }
    .hero-content { margin: 0 auto; padding: 0 1rem; }
    .hero h1 { font-size: 2.2rem; transform: none; }
    .hero p { margin: 0 auto 2rem; font-size: 1rem; }
    
    .services-grid { 
        grid-template-columns: 1fr; 
        gap: 1rem;
    }
    .service-card { padding: 1.5rem; }
    
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    
    .authority-section { padding: 3rem 0; }
    .authority-grid { padding: 1.5rem; border-radius: 12px; }
    .stat-num { font-size: 2.5rem; }
}

/* --- Authority Section (Premium Box) --- */
.authority-section {
    padding: 8rem 0;
    background: radial-gradient(circle at top right, rgba(251, 205, 41, 0.05), transparent 40%);
}

.authority-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    background: rgba(18, 18, 18, 0.6);
    backdrop-filter: blur(20px);
    padding: 4rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.7);
    position: relative;
    overflow: hidden;
}

.authority-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), transparent);
}

.standards-list {
    list-style: none;
    margin-top: 2.5rem;
}

.standards-list li {
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.standards-list li strong {
    color: var(--primary);
    margin-bottom: 0.3rem;
    letter-spacing: 0.5px;
}

.authority-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.stat-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-width: 220px;
    transition: var(--transition);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-5px);
}

.stat-num {
    display: block;
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    text-shadow: 0 0 30px rgba(251, 205, 41, 0.3);
}

.stat-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

@media (max-width: 992px) {
    .authority-grid {
        grid-template-columns: 1fr;
        padding: 3rem 2rem;
    }
    .authority-stats {
        flex-direction: column;
    }
    .stat-card {
        min-width: auto;
    }
}
