/* ==========================================================================
   Opticore Professional Dark Tech Redesign
   ========================================================================== */
:root {
    --primary: #007bff; /* Opticore Blue */
    --primary-glow: rgba(0, 123, 255, 0.4);
    --secondary: #65B621; /* Opticore Green */
    --secondary-glow: rgba(101, 182, 33, 0.4);
    
    --bg-black: #000000;
    --bg-dark: #000000; /* Matched to Pure Black for seamless logo integration */
    --bg-glass: rgba(255, 255, 255, 0.02);
    --bg-glass-heavy: rgba(255, 255, 255, 0.05);
    
    --text-white: #ffffff;
    --text-grey: #b0b0b0;
    --text-muted: #777777;
    
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Poppins', sans-serif;
    
    --transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    --border-glass: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Global Reset & Patterns
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-black);
    color: var(--text-grey);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Futuristic Coordinate Grid Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-white);
    font-weight: 700;
    letter-spacing: -0.01em;
}

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

ul { list-style: none; }

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

.section { padding: 100px 0; }

.text-center { text-align: center; }

/* ==========================================================================
   Typography & Accents
   ========================================================================== */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-tag {
    color: var(--secondary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    display: block;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: var(--border-glass);
    padding: 0.75rem 0;
}

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

.header-logo img {
    height: 105px;
    width: auto;
    object-fit: contain;
}

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

.nav-link {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--text-grey);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--text-white);
    cursor: pointer;
}

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

.hero-bg {
    position: absolute;
    top: 50%;
    right: -15%;
    transform: translateY(-50%);
    width: 65%;
    z-index: -1;
    opacity: 0.7;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 3rem;
    color: var(--text-grey);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 2.8rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 35px var(--primary-glow);
}

.btn-glass {
    background: var(--bg-glass-heavy);
    color: var(--text-white);
    border: var(--border-glass);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

/* ==========================================================================
   Services Grid
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-glass);
    border: var(--border-glass);
    padding: 3.5rem 2.5rem;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    background: var(--bg-glass-heavy);
    border-color: var(--primary);
}

.service-icon {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 2rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-grey);
}

/* ==========================================================================
   Page Headers
   ========================================================================== */
.page-header {
    background: var(--bg-dark);
    padding: 180px 0 80px;
    border-bottom: var(--border-glass);
    text-align: center;
}

.page-header h1 { font-size: 4rem; margin-bottom: 1rem; }

/* ==========================================================================
   Form Elements
   ========================================================================== */
input, textarea, select {
    width: 100%;
    background: var(--bg-glass);
    border: var(--border-glass);
    padding: 1.25rem;
    color: var(--text-white);
    border-radius: 4px;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

option {
    background-color: #1a1a1a;
    color: #ffffff;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--primary);
    background: var(--bg-glass-heavy);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--bg-black); /* Pure Black to match Logo background */
    padding: 100px 0 40px;
    border-top: var(--border-glass);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 60px;
}

.footer h4 {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    color: var(--secondary);
}

.footer-links li { margin-bottom: 1rem; }
.footer-links a:hover { color: var(--text-white); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
}

/* ==========================================================================
   Contact & Form Layout
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
    align-items: flex-start;
}

.contact-form-wrapper {
    background: var(--bg-dark);
    padding: 4rem;
    border-radius: 4px;
    border: var(--border-glass);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.mobile-menu-brand {
    display: none;
}

/* ==========================================================================
   Responsive & Mobile Friendly
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-bg { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-content { text-align: center; margin: 0 auto; }
    .hero-desc { margin: 0 auto 3rem; }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        z-index: 999;
        gap: 2.5rem;
    }

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

    .mobile-menu-brand {
        display: block;
        text-align: center;
        margin-bottom: 2rem;
    }
    .mobile-menu-brand h2 {
        font-size: 2.5rem;
        margin-bottom: 0.25rem;
    }
    .mobile-menu-brand p {
        font-size: 0.85rem;
        color: var(--text-grey);
        text-transform: uppercase;
        letter-spacing: 0.1em;
    }

    .header-logo { z-index: 1001; order: 1; margin-right: auto; }
    .header-logo img { height: 100px; }
    
    .header .btn {
        z-index: 1001;
        order: 2;
        width: auto !important;
        padding: 0.6rem 1.2rem !important;
        font-size: 0.75rem !important;
        margin-right: 1rem;
    }
    
    .menu-toggle { z-index: 1001; order: 3; }
    .nav { order: 4; position: absolute; }

    .hero-title { font-size: 2.8rem; }
    .hero-desc { font-size: 1rem; }
    
    .section { padding: 60px 0; }
    .page-header { padding: 180px 0 60px; }
    .page-header h1 { font-size: 2.5rem; }
    
    .container { padding: 0 1.5rem; }
    
    .services-grid, .footer-grid { grid-template-columns: 1fr !important; }
    
    div[style*="grid-template-columns: 1fr 1fr"],
    section[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
        text-align: center !important;
    }
    
    ul[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    div[style*="display: flex; gap: 1.5rem"],
    div[style*="display: flex; gap: 2rem"] {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }
    
    .contact-form-wrapper {
        padding: 2rem !important;
    }
    
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .btn { width: 100%; justify-content: center; }
}

/* Footer Logo Adjustment */
.footer-logo {
    height: 160px !important;
    width: auto;
    background: transparent !important;
    display: block;
    margin-bottom: 2rem !important;
}
