/*
Theme Name: RCM Digital Media
Theme URI: https://rcmdigitalmedia.net
Author: RCM Digital Media
Author URI: https://rcmdigitalmedia.net
Description: Enterprise-grade AI automation agency theme. Direct, Results-Oriented, Honest. Trust is the Weapon.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rcm-theme
Tags: one-column, custom-menu, featured-images, full-width-template, custom-logo
*/

/* ============================================
   CSS VARIABLES & RESET
   ============================================ */
:root {
    --rcm-navy: #0a1628;
    --rcm-navy-light: #1e3a5f;
    --rcm-plasma: #00d4ff;
    --rcm-plasma-glow: rgba(0, 212, 255, 0.3);
    --rcm-white: #ffffff;
    --rcm-gray: #a0aec0;
    --rcm-dark: #050d18;
    --rcm-gradient: linear-gradient(135deg, var(--rcm-navy) 0%, var(--rcm-dark) 100%);
    --rcm-gradient-accent: linear-gradient(135deg, var(--rcm-plasma) 0%, #0099cc 100%);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Inter', sans-serif;
    --transition-fast: 0.2s ease;
    --transition-med: 0.4s ease;
    --transition-slow: 0.6s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--rcm-navy);
    color: var(--rcm-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--rcm-plasma);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--rcm-white);
}

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

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 1.25rem;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    margin-bottom: 0.75rem;
}

p {
    font-size: 1.125rem;
    color: var(--rcm-gray);
    margin-bottom: 1rem;
}

.text-plasma {
    color: var(--rcm-plasma);
}

.text-gradient {
    background: var(--rcm-gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   LAYOUT & CONTAINERS
   ============================================ */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-narrow {
    max-width: 900px;
}

.section {
    padding: 6rem 0;
    position: relative;
}

.section-dark {
    background: var(--rcm-dark);
}

.section-gradient {
    background: var(--rcm-gradient);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition-med);
    background: transparent;
}

.site-header.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-logo img {
    height: 50px;
    width: auto;
}

.site-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--rcm-white);
    letter-spacing: -0.02em;
}

.site-logo-text span {
    color: var(--rcm-plasma);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--rcm-white);
    font-weight: 500;
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--rcm-plasma);
    transition: var(--transition-fast);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--rcm-white);
    transition: var(--transition-fast);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0.5rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-med);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--rcm-plasma);
    color: var(--rcm-navy);
    border-color: var(--rcm-plasma);
}

.btn-primary:hover {
    background: transparent;
    color: var(--rcm-plasma);
    box-shadow: 0 0 30px var(--rcm-plasma-glow);
}

.btn-outline {
    background: transparent;
    color: var(--rcm-plasma);
    border: 2px dashed var(--rcm-plasma);
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--rcm-plasma);
    transition: var(--transition-med);
    z-index: -1;
}

.btn-outline:hover {
    color: var(--rcm-navy);
    border-style: solid;
}

.btn-outline:hover::before {
    left: 0;
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--rcm-gradient);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, var(--rcm-plasma-glow) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(30, 58, 95, 0.5) 0%, transparent 50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--rcm-plasma);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--rcm-plasma);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--rcm-plasma);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero h1 {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-tagline {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: var(--rcm-gray);
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.8s ease 0.8s forwards;
    opacity: 0;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--rcm-plasma);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--rcm-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.25rem;
}

/* Floating Elements */
.hero-shapes {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: 20%;
    right: 10%;
    background: radial-gradient(circle, var(--rcm-plasma-glow) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 30%;
    background: radial-gradient(circle, rgba(30, 58, 95, 0.5) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite reverse;
}

.shape-3 {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 40%;
    border: 2px solid var(--rcm-plasma);
    animation: spin 20s linear infinite;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    background: rgba(30, 58, 95, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 2.5rem;
    transition: var(--transition-med);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--rcm-gradient-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-med);
}

.service-card:hover {
    background: rgba(30, 58, 95, 0.4);
    border-color: var(--rcm-plasma);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rcm-plasma-glow);
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.service-card h3 {
    color: var(--rcm-white);
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.service-list {
    list-style: none;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    color: var(--rcm-gray);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list li::before {
    content: '→';
    color: var(--rcm-plasma);
    font-weight: 700;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content {
    position: relative;
}

.about-quote {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--rcm-white);
    line-height: 1.5;
    margin-bottom: 2rem;
    position: relative;
    padding-left: 2rem;
}

.about-quote::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--rcm-gradient-accent);
    border-radius: 2px;
}

.value-cards {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.value-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(30, 58, 95, 0.2);
    border-radius: 0.75rem;
    border-left: 3px solid var(--rcm-plasma);
}

.value-card strong {
    color: var(--rcm-plasma);
    display: block;
    margin-bottom: 0.25rem;
}

.value-card span {
    color: var(--rcm-gray);
    font-size: 0.9375rem;
}

/* Team Cards */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.team-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: rgba(30, 58, 95, 0.2);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-med);
}

.team-card:hover {
    border-color: var(--rcm-plasma);
    transform: translateY(-5px);
}

.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--rcm-gradient-accent);
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--rcm-navy);
}

.team-card h4 {
    color: var(--rcm-white);
    margin-bottom: 0.25rem;
}

.team-role {
    color: var(--rcm-plasma);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.team-card p {
    font-size: 0.9375rem;
}

/* ============================================
   TERRITORY SECTION
   ============================================ */
.territory-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.territory-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(30, 58, 95, 0.3);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 3rem;
    font-weight: 500;
    color: var(--rcm-white);
    transition: var(--transition-fast);
}

.territory-badge:hover {
    background: var(--rcm-plasma);
    color: var(--rcm-navy);
    border-color: var(--rcm-plasma);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    text-align: center;
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--rcm-plasma-glow) 0%, transparent 60%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--rcm-dark);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    margin-top: 1rem;
    font-size: 0.9375rem;
}

.footer-heading {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--rcm-plasma);
    margin-bottom: 1.5rem;
}

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

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

.footer-links a {
    color: var(--rcm-gray);
    font-size: 0.9375rem;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.875rem;
    color: var(--rcm-gray);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 58, 95, 0.3);
    border-radius: 50%;
    color: var(--rcm-white);
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--rcm-plasma);
    color: var(--rcm-navy);
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-shapes {
        display: none;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--rcm-navy);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition-med);
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .nav-menu a {
        font-size: 1.25rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding-top: 100px;
    }
    
    .territory-badges {
        flex-direction: column;
        align-items: center;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
