/* 
   Code Pilot Hub - Premium Tech Agency UI
   Design System & Global Styles
*/

:root {
    --primary-color: #0a192f;
    --secondary-color: #112240;
    --tertiary-color: #233554;
    --accent-color: #00d4ff;
    --accent-glow: rgba(0, 212, 255, 0.3);
    --text-main: #ccd6f6;
    --text-dim: #8892b0;
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--primary-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

/* Header & Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 20px 0;
}

header.sticky {
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 10px var(--accent-glow);
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.btn-cta {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-cta:hover {
    background: var(--accent-glow);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 50% 50%, rgba(17, 34, 64, 1) 0%, rgba(10, 25, 47, 1) 100%);
    position: relative;
    overflow: hidden;
}

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

.hero-subtitle {
    color: var(--accent-color);
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: block;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

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

/* Section Common */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--accent-color);
    margin: 20px auto 0;
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--secondary-color);
    padding: 40px;
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 30px -15px rgba(2, 12, 27, 0.7);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-dim);
}

/* Contact Form */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 15px;
    background: var(--secondary-color);
    border: 1px solid var(--tertiary-color);
    color: var(--text-main);
    border-radius: 4px;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--accent-color);
}

.checkbox-group {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.checkbox-group input {
    margin-top: 5px;
}

.checkbox-group label {
    font-size: 0.9rem;
    color: var(--text-dim);
}

.btn-submit {
    width: 100%;
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    padding: 15px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: #00b8e6;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: #020c1b;
    padding: 80px 0 30px;
    border-top: 1px solid var(--tertiary-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-dim);
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--tertiary-color);
    padding-top: 30px;
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}
