/* AIVLEX - Universal Master Style Sheet 
    Theme: Obsidian, Cyan, and Hyper Violet
    Updated: High-Res Logo Support & Full Mobile Fluidity
*/

:root {
    /* Color Palette */
    --bg-main: #050505;
    --bg-card: #0f1115;
    --border-color: #1f2937;
    --cyan-glow: #00f2ff;
    --purple-glow: #7000ff;
    --text-primary: #f4f4f5;
    --text-muted: #a1a1aa;
    
    /* Gradients */
    --accent-gradient: linear-gradient(135deg, var(--cyan-glow), var(--purple-glow));
    --surface-gradient: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
}

* { 
    box-sizing: border-box; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    /* Crucial fix for mobile scrolling */
    overflow-x: hidden; 
    -webkit-overflow-scrolling: touch;
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
}

/* --- Navigation & Logo --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo {
    height: auto;
    max-height: 55px; /* Optimizes your 1979x690 logo for desktop */
    width: auto;
    display: block;
}

.yt-link a {
    color: var(--cyan-glow);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 20px;
    border: 1px solid var(--cyan-glow);
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.yt-link a:hover {
    background: var(--cyan-glow);
    color: var(--bg-main);
    box-shadow: 0 0 25px rgba(0, 242, 255, 0.4);
}

/* --- Hero Section --- */
header {
    padding: 8rem 5% 5rem 5%;
    text-align: center;
    background: radial-gradient(circle at 50% -20%, #1a1a2e 0%, var(--bg-main) 75%);
}

.hero h1 {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    margin-bottom: 1rem;
    font-weight: 700;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-muted);
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 700px;
    margin: 0 auto;
}

/* --- Candidate Grid Layout --- */
.candidates { 
    padding: 4rem 5%; 
    max-width: 1300px; 
    margin: 0 auto; 
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.card-link { 
    text-decoration: none; 
    color: inherit; 
    display: block; 
}

.card {
    background: var(--bg-card);
    background-image: var(--surface-gradient);
    border: 1px solid var(--border-color);
    padding: 3rem 2rem;
    border-radius: 28px;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--cyan-glow);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.badge {
    display: inline-block;
    background: rgba(0, 242, 255, 0.1);
    color: var(--cyan-glow);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

/* --- Directory CTA Box --- */
.directory-cta-container {
    display: flex;
    justify-content: center;
    padding: 4rem 5%;
}

.directory-box {
    background: var(--bg-card);
    border: 1px solid var(--cyan-glow);
    padding: 1.8rem 4rem;
    border-radius: 24px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.1);
}

.directory-box:hover {
    background: var(--cyan-glow);
    color: var(--bg-main);
    box-shadow: 0 0 50px rgba(0, 242, 255, 0.5);
}

/* --- About AIVLEX Section --- */
.about-section {
    padding: 8rem 5%;
    border-top: 1px solid var(--border-color);
    background: linear-gradient(180deg, var(--bg-main) 0%, #0a0a0f 100%);
}

.about-container {
    display: flex;
    align-items: center;
    gap: 5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text { flex: 1.2; }
.about-image { flex: 0.8; display: flex; justify-content: center; }

.founder-img {
    width: 100%;
    max-width: 420px;
    border-radius: 40px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(112, 0, 255, 0.15);
}

/* --- Directory Table View (Directory.php) --- */
.directory-list {
    max-width: 1100px;
    margin: 4rem auto;
    padding: 0 5%;
}

.talent-row {
    display: grid;
    grid-template-columns: 1.5fr 2fr 1fr 1.5fr;
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    background: rgba(255,255,255,0.01);
}

.talent-row:hover { 
    background: rgba(0, 242, 255, 0.04); 
}

/* --- Contact Form Section --- */
.contact-section { padding: 8rem 5%; background: var(--bg-main); }

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 4rem;
    border-radius: 40px;
    border: 1px solid var(--border-color);
}

input, textarea {
    width: 100%;
    padding: 16px;
    margin-bottom: 1.2rem;
    background: #050505;
    border: 1px solid var(--border-color);
    color: white;
    border-radius: 14px;
    font-family: inherit;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--cyan-glow);
}

.cta-btn {
    width: 100%;
    padding: 20px;
    background: var(--accent-gradient);
    border: none;
    color: white;
    font-weight: 800;
    cursor: pointer;
    border-radius: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Mobile & Tablet Responsive Engine --- */

@media (max-width: 1024px) {
    .about-container { gap: 3rem; }
}

@media (max-width: 992px) {
    .about-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    nav { padding: 0.8rem 5%; }
    .nav-logo { max-height: 38px; } /* Scales logo for mobile height */
    
    header { padding: 5rem 5% 3rem 5%; }
    .hero h1 { font-size: 2.5rem; }
    
    .grid { grid-template-columns: 1fr; }
    
    .talent-row {
        grid-template-columns: 1fr; 
        gap: 15px;
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .directory-box { width: 100%; padding: 1.5rem; }
    .form-container { padding: 2.5rem 1.5rem; }
}