/* assets/style.css */

/* --- 1. ROOT VARIABLES & BASE --- */
:root {
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --text-main: #f0f0f0;
    --text-muted: #999;
    --accent: #00e5ff;
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* --- 2. TOP UTILITY BAR --- */
.top-bar {
    background-color: #050505;
    border-bottom: 1px solid #1a1a1a;
    padding: 0.5rem 5%;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.contact-info span {
    margin-right: 1.5rem;
}

.contact-info i {
    color: var(--accent);
    margin-right: 0.5rem;
}

.top-bar-social a {
    color: var(--text-muted);
    margin-left: 1rem;
    transition: 0.3s;
}

.top-bar-social a:hover {
    color: var(--accent);
}

/* --- 3. MAIN HEADER & NAVIGATION --- */
.site-header {
    background-color: rgba(10, 10, 10, 0.98);
    padding: 1.25rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #222;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-main);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.main-nav a {
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-nav a:hover {
    color: var(--accent);
}

.btn-nav {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-nav:hover {
    background: var(--accent);
    color: #111;
}

/* --- 4. HERO SECTION --- */
.hero {
    padding: 10rem 5%;
    text-align: center;
    background-color: var(--bg-dark);
    /* Glowing tech grid background */
    background-image: 
        linear-gradient(rgba(0, 229, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center center;
    border-bottom: 1px solid #222;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.hero span {
    color: var(--accent);
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* --- 5. SERVICES GRID --- */
.services {
    padding: 5rem 5%;
}

.services h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background-color: var(--bg-card);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid #222;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-muted);
}

/* --- 6. FAT FOOTER --- */
.site-footer {
    background-color: #080808;
    border-top: 1px solid #222;
    padding-top: 5rem;
    margin-top: auto; 
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding: 0 5% 4rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-col h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.footer-col h4 {
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-col p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--text-muted);
    transition: 0.3s;
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--accent);
    padding-left: 5px; 
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
}

.newsletter-form input {
    background: #111;
    border: 1px solid #333;
    padding: 0.8rem 1rem;
    color: var(--text-main);
    border-radius: 4px 0 0 4px;
    outline: none;
    width: 100%;
}

.newsletter-form input:focus {
    border-color: var(--accent);
}

.newsletter-form button {
    background: var(--accent);
    color: #111;
    border: none;
    padding: 0 1.2rem;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: 0.3s;
}

.newsletter-form button:hover {
    background: #00b3cc;
}

/* Footer Bottom */
.footer-bottom {
    background-color: #050505;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #1a1a1a;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-legal a {
    color: var(--text-muted);
    margin-left: 1rem;
}

.footer-legal a:hover {
    color: var(--accent);
}

/* --- 7. RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 900px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
    .top-bar-content {
        flex-direction: column;
        gap: 0.5rem;
    }
    .site-header {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    .footer-top {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}