/* 
    RV QUANTUM TECHNOLOGIES - Official Flagship Website
    Design System & Global Styles
    "Engineering Africa's Digital Future"
*/

:root {
    /* Color Palette derived from Logo */
    --color-primary: #0066FF; /* Vibrant Tech Blue */
    --color-primary-dark: #0044CC;
    --color-accent: #00D1FF; /* Cyan Highlight */
    --color-silver: #E0E0E0;
    --color-metallic: #A0A0A0;
    --color-bg-dark: #050505; /* Deep Space Black */
    --color-bg-card: #121212;
    --color-text-main: #FFFFFF;
    --color-text-muted: #B0B0B0;
    --color-border: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Orbitron', sans-serif; /* Futuristic feel */
    
    /* Spacing */
    --section-padding: 100px 5%;
    --container-width: 1200px;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography Utility */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Layout Components */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding);
}

.flex {
    display: flex;
    gap: 2rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    padding: 15px 0;
}

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

.logo img {
    height: 50px;
}

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

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../images/tech-hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .hero {
        background-attachment: scroll;
        background-position: center 30%;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 80vh;
        background-position: center 40%;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 70vh;
        background-position: center 50%;
    }
}

.hero-content {
    max-width: 800px;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, var(--color-metallic));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--color-silver);
}

/* Cards */
.card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    padding: 40px;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.card:hover {
    border-color: var(--color-primary);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 5%;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .grid {
        grid-template-columns: 1fr !important;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .card {
        padding: 25px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .confirmation-card {
        padding: 40px 25px;
        margin: 20px;
    }
}

/* Custom Utilities */
.text-gradient {
    background: linear-gradient(45deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

/* Additional Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.card:nth-child(1) {
    animation: slideInLeft 0.6s ease-out;
}

.card:nth-child(2) {
    animation: slideInLeft 0.8s ease-out;
}

.card:nth-child(3) {
    animation: slideInLeft 1s ease-out;
}

/* Form Enhancements */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.2);
}

/* Footer Enhancement */
footer {
    background: linear-gradient(180deg, rgba(0,0,0,0.8), rgba(5,5,5,0.95));
    border-top: 1px solid var(--color-border);
    padding: 60px 5% 40px;
}

footer a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

footer a:hover {
    color: var(--color-primary);
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--color-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    display: block;
    padding: 5px 0;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* Confirmation Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.modal-overlay.active {
    display: flex;
}

.confirmation-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 50px 40px;
    max-width: 500px;
    text-align: center;
    animation: slideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.confirmation-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 3rem;
    animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.confirmation-card h2 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.confirmation-card p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
}

.confirmation-card .btn {
    margin-top: 2rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Service Cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,102,255,0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

/* Success Animation */
@keyframes checkmark {
    0% {
        stroke-dashoffset: 50;
    }
    100% {
        stroke-dashoffset: 0;
    }
}
