/* =========================================
   common.css - Global Styles & Variables
   ========================================= */

/* --- 1. Reset and Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #FF6B35;
    --primary-glow: rgba(255, 107, 53, 0.3);
    --secondary: #2563eb;
    --text: #1e293b; /* Softer dark blue-grey */
    --text-light: #64748b;
    --bg-light: #F8FAFC;
    --white: #FFFFFF;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- 2. Header Styles (Default: White) --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text);
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.5px;
    transition: var(--transition);
    gap: 12px;
    z-index: 1002;
}

.header-logo { height: 40px; width: auto; }

/* Desktop Nav */
.nav-menu ul {
    display: flex;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu li { margin-left: 32px; }

.nav-menu a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    opacity: 0.8;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
    opacity: 1;
}

.contact-btn {
    background-color: var(--primary);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600 !important;
    opacity: 1 !important;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px var(--primary-glow);
}

/* --- 3. Mobile Menu Button (Hamburger) --- */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1003;
}

.mobile-menu-btn .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text);
    border-radius: 3px;
    transition: var(--transition);
}
/* =========================================
   7. REDESIGNED FOOTER (Deep Tech Style)
   ========================================= */
footer {
    position: relative;
    background-color: var(--dark-bg);
    color: white;
    padding: 6rem 0 2rem;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Background Effects --- */
.footer-bg-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
    z-index: 0;
}

/* A glowing orange horizon line at the top */
.footer-glow-top {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    box-shadow: 0 0 20px var(--primary);
    opacity: 0.5;
    z-index: 1;
}

.relative-z { position: relative; z-index: 2; }

/* --- Layout Grid --- */
.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr; /* 4 Columns */
    gap: 4rem;
    margin-bottom: 5rem;
}

/* --- Branding Column --- */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.footer-logo-img {
    height: 36px;
    filter: brightness(0) invert(1); /* Ensures logo is white */
}
.footer-logo span {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: white;
}
.footer-description {
    color: var(--text-inverted-muted);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    max-width: 320px;
}

/* Social Icons (Minimalist Squares) */
.social-placeholder { display: flex; gap: 0.75rem; }
.social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 700;
    transition: var(--transition);
}
.social-icon:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* --- Navigation & Links --- */
.footer-heading {
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.footer-links li { margin-bottom: 0.75rem; }
.footer-links a {
    color: var(--text-inverted-muted);
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-block;
}

/* Hover Effect: Slide right + Light up */
.footer-links a:hover {
    color: white;
    transform: translateX(4px);
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

/* --- Contact & CTA --- */
.contact-details { margin-bottom: 2rem; }
.contact-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}
.contact-item .label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}
.contact-item .value {
    color: #e2e8f0;
    font-size: 0.95rem;
}
.contact-item .link:hover {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: rgba(249, 115, 22, 0.5);
}

.footer-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, #ea580c 100%);
    color: white;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
}

.footer-cta-btn .arrow { transition: transform 0.3s ease; }

.footer-cta-btn:hover {
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
    transform: translateY(-2px);
}
.footer-cta-btn:hover .arrow { transform: translateX(4px); }

/* --- Bottom Bar --- */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: #64748b;
    font-size: 0.85rem;
}

.footer-tagline {
    font-family: 'Courier New', monospace; /* Tech mono look */
    opacity: 0.5;
    display: none; /* Hidden on mobile, shown on desktop */
}

/* --- Responsive Adjustments --- */
@media (min-width: 768px) {
    .footer-tagline { display: block; }
}

@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 640px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .footer-cta-btn { width: auto; display: inline-flex; }
}
/* --- 5. MOBILE RESPONSIVE LOGIC --- */
@media (max-width: 968px) {
    .footer-container { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        padding: 100px 30px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        display: block;
    }

    .nav-menu.active { right: 0; }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        width: 100%;
    }

    .nav-menu li { margin: 0; width: 100%; }
    
    .nav-menu a {
        font-size: 1.1rem;
        color: var(--text);
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
        width: 100%;
    }

    .contact-btn {
        margin-top: 10px;
        text-align: center;
        background-color: var(--primary);
        color: white !important;
    }

    /* Hamburger Animation */
    .mobile-menu-btn.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .mobile-menu-btn.active .bar:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    .footer-container { grid-template-columns: 1fr; }
}