/* --- UNIVERSAL RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --bg-dark: #0a0a0c;
    --bg-black: #050505;
    --bg-gray: #0f0f11;
    --text-light: #f4f4f5;
    --text-dim: #a0a0a0;
    --gold-accent: #d4af37;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img, video {
    max-width: 100%;
    height: auto;
}

/* --- HERO SECTION (TIGHT & CONTENT-HUGGING) --- */
.hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Removed min-height so it wraps the text closely */
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -2;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.95) 10%, rgba(0, 0, 0, 0.5) 100%);
    z-index: -1;
}

/* --- NAVBAR & NEW TEXT LOGO --- */
.navbar {
    width: 100%;
    padding: 2rem 5%;
    z-index: 10;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    text-decoration: none;
}

.text-logo {
    font-family: var(--font-body);
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.text-logo .iq {
    color: var(--gold-accent);
}

/* --- HERO CONTENT ALIGNMENT --- */
.hero-content-wrapper {
    display: flex;
    align-items: center;
    padding: 60px 8% 100px; /* Precise gap top and bottom */
    z-index: 5;
}

.hero-text {
    max-width: 900px;
}

.hero-text h2 {
    font-family: var(--font-heading);
    font-size: 4.2rem;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    color: #fff;
}

.highlight {
    color: var(--gold-accent);
}

.hero-text p {
    font-size: 1.3rem;
    color: #bbb;
    margin-bottom: 2rem;
    max-width: 650px;
    font-weight: 300;
}

/* --- BUTTONS --- */
.cta-btn-main {
    padding: 18px 40px;
    background: var(--gold-accent);
    color: #000;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    transition: 0.3s;
    display: inline-block;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.cta-btn-main:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.cta-btn-small {
    padding: 12px 25px;
    border: 1px solid var(--gold-accent);
    color: var(--gold-accent);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    background: rgba(0,0,0,0.5);
    text-align: center;
}

.cta-btn-small:hover {
    background: var(--gold-accent);
    color: #000;
}

/* --- SECTIONS --- */
.section-dark { padding: 100px 5%; background: #050505; }
.section-gray { padding: 100px 5%; background: var(--bg-gray); }
.container { max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-family: var(--font-heading); font-size: 3.5rem; color: var(--gold-accent); line-height: 1.2; }
.section-title p { color: #888; font-size: 1.1rem; }

/* --- GRIDS --- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card { background: #0a0a0c; border: 1px solid #1a1a1a; padding: 40px; border-radius: 12px; }
.card-number { font-size: 2.5rem; color: rgba(212, 175, 55, 0.2); font-family: var(--font-heading); margin-bottom: 15px;}
.card h3 { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 10px; }
.card p { color: #888; }

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 30px; }
.portfolio-item { position: relative; height: 450px; overflow: hidden; border-radius: 10px; border: 1px solid #222;}
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; transition: 0.4s; }
.portfolio-item:hover img { opacity: 0.3; transform: scale(1.05); }

.portfolio-info { position: absolute; bottom: 30px; left: 30px; right: 30px; }
.portfolio-info h3 { font-family: var(--font-heading); font-size: 1.8rem; margin-bottom: 5px;}
.view-demo { color: var(--gold-accent); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; margin-top: 15px;}

/* --- BADGES --- */
.badges-section { text-align: center; padding: 80px 5%; background: #000; border-top: 1px solid #111; }
.badge-row { display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; margin-bottom: 20px;}
.badge-img { height: 120px; filter: drop-shadow(0 0 10px rgba(212,175,55,0.1)); }
.badges-section p { color: var(--gold-accent); text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; }

/* --- FOUNDERS --- */
.founders-section { padding: 80px 5%; }
.founders-card { background: #0f0f11; padding: 60px; border-radius: 15px; text-align: center; border: 1px solid #222; }
.founders-names { display: flex; justify-content: center; gap: 80px; margin: 30px 0; }
.signature { font-family: var(--font-heading); font-size: 3rem; color: var(--gold-accent); display: block; margin-bottom: 5px;}
.founders-quote { font-style: italic; font-size: 1.5rem; margin-top: 30px; border-top: 1px solid #333; padding-top: 30px; color: #eee; }

.footer { padding: 30px; text-align: center; color: #555; font-size: 0.9rem; background: #050505; border-top: 1px solid #111;}


/* ========================================= */
/* --- HIGH-END MOBILE OPTIMIZATION --- */
/* ========================================= */

@media (max-width: 992px) {
    .hero-text h2 { font-size: 3.2rem; }
    .section-title h2 { font-size: 3rem; }
    .portfolio-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}

@media (max-width: 768px) {
    .navbar { padding: 1.5rem 5%; }
    .nav-container { flex-direction: row; gap: 10px; }
    
    /* Mobile Logo Tweaks */
    .text-logo { font-size: 1.3rem; } /* Size reduced to prevent button overlap */
    
    /* Button Tweaks */
    .cta-btn-small { 
        padding: 8px 10px; 
        font-size: 0.75rem; 
        white-space: nowrap;
    }

    /* TIGHT MOBILE HERO */
    .hero-content-wrapper { padding: 30px 5% 60px; } /* Gap reduced heavily */
    .hero-text h2 { font-size: 2.1rem; margin-bottom: 1rem; }
    .hero-text p { font-size: 1rem; margin-bottom: 1.5rem; }
    
    .cta-btn-main { 
        width: 100%; 
        padding: 15px 20px; 
        font-size: 1rem; 
    }

    /* Keep remaining sections tight */
    .section-dark, .section-gray, .badges-section, .founders-section { padding: 50px 5%; }
    .section-title { margin-bottom: 40px; }
    .section-title h2 { font-size: 2rem; }
    
    .cards-grid { grid-template-columns: 1fr; gap: 20px; }
    .card { padding: 30px 20px; }
    .card-number { font-size: 2rem; }
    
    .portfolio-grid { grid-template-columns: 1fr; }
    .portfolio-item { height: 380px; }
    .portfolio-info { bottom: 20px; left: 20px; right: 20px; }
    .portfolio-info h3 { font-size: 1.4rem; }
    
    .badge-img { height: 80px; }
    .badge-row { gap: 20px; }
    
    .founders-card { padding: 40px 20px; }
    .founders-names { flex-direction: column; gap: 30px; margin: 20px 0; }
    .signature { font-size: 2.2rem; }
    .founders-quote { font-size: 1.2rem; padding-top: 20px; }
}

@media (max-width: 400px) {
    .text-logo { font-size