/*
Theme Name: greylinetech
Theme URI: http://example.com/greylinetech
Author: Antigravity
Author URI: http://example.com
Description: A premium, trust-driven business technology services theme converted from the static design.
Version: 1.0
Text Domain: greylinetech
*/

/* =========================================
   CSS Resets & Variables
========================================= */
:root {
    --navy: #0A192F;
    --light-navy: #112240;
    --lightest-navy: #233554;
    --slate: #8892B0;
    --light-slate: #A8B2D1;
    --lightest-slate: #CCD6F6;
    --white: #E6F1FF;
    --cyan: #64FFDA;
    --cyan-tint: rgba(100, 255, 218, 0.1);
    
    --font-sans: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    --nav-height: 80px;
    
    --easing: cubic-bezier(0.645, 0.045, 0.355, 1);
}

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

html {
    scroll-behavior: smooth;
    font-family: var(--font-sans);
    background-color: var(--navy);
    color: var(--slate);
    line-height: 1.6;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

/* =========================================
   Typography & Base Styles
========================================= */
h1, h2, h3, h4, h5, h6 {
    color: var(--lightest-slate);
    font-weight: 700;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

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

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

ul {
    list-style: none;
}

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

.section-padding {
    padding: 100px 0;
}

.bg-alt {
    background-color: var(--light-navy);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--white);
}

.section-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    color: var(--light-slate);
}

/* =========================================
   Grid System
========================================= */
.grid {
    display: grid;
    gap: 30px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* =========================================
   Buttons
========================================= */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

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

.btn-primary:hover {
    background-color: transparent;
    color: var(--cyan);
    border-color: var(--cyan);
    box-shadow: 0 5px 15px var(--cyan-tint);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--cyan);
    border-color: var(--cyan);
}

.btn-secondary:hover {
    background-color: var(--cyan-tint);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* =========================================
   Background Animations
========================================= */
.bg-animations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--cyan-tint) 0%, rgba(10,25,47,0) 70%);
    top: -20%;
    left: -20%;
    border-radius: 50%;
    opacity: 0.5;
    animation: drift 20s infinite alternate;
}

.glow-orborb2 {
    position: absolute;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(17,34,64,0.8) 0%, rgba(10,25,47,0) 70%);
    bottom: -20%;
    right: -10%;
    border-radius: 50%;
    opacity: 0.5;
    animation: drift 25s infinite alternate-reverse;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 10%) scale(1.1); }
}

.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* =========================================
   Navigation
========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
    height: 70px;
    box-shadow: 0 10px 30px -10px rgba(2,12,27,0.7);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cyan);
    letter-spacing: -0.5px;
}

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

.nav-links a {
    color: var(--lightest-slate);
    font-size: 0.9rem;
    font-weight: 500;
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--cyan);
    border-radius: 2px;
    transition: var(--transition);
}

/* =========================================
   Hero Section
========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    position: relative;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    position: relative;
    z-index: 10;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--slate);
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-visual {
    flex: 1;
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.abstract-network {
    position: relative;
    width: 100%;
    height: 100%;
}

.central-node {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--light-navy);
    border: 1px solid var(--cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 0 30px var(--cyan-tint);
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--cyan);
    animation: pulse 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}

.device-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--lightest-navy);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
    box-shadow: 0 10px 30px -15px rgba(2,12,27,0.7);
    transition: transform 0.1s ease-out;
}

.device-icon.router { top: 15%; left: 15%; animation: float 6s ease-in-out infinite; }
.device-icon.camera { top: 20%; right: 15%; animation: float 7s ease-in-out infinite 1s; }
.device-icon.switch { bottom: 20%; left: 25%; animation: float 5s ease-in-out infinite 2s; }
.device-icon.handset { bottom: 25%; right: 20%; animation: float 8s ease-in-out infinite 0.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* =========================================
   Why Choose Us Section
========================================= */
.why-us-grid .card {
    background-color: var(--navy);
    padding: 40px 30px;
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid var(--lightest-navy);
    position: relative;
    overflow: hidden;
}

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

.why-us-grid .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--cyan);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--easing);
}

.why-us-grid .card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    color: var(--cyan);
    margin-bottom: 25px;
}

.why-us-grid h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--lightest-slate);
}

.why-us-grid p {
    font-size: 0.95rem;
    color: var(--slate);
    margin: 0;
}

/* =========================================
   How It Works (Timeline)
========================================= */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--lightest-navy);
}

.timeline-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--scroll-percent, 0%);
    background-color: var(--cyan);
    transition: height 0.1s ease-out;
}

.timeline-step {
    position: relative;
    padding-left: 120px;
    margin-bottom: 60px;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.step-number {
    position: absolute;
    left: 31px;
    top: 0;
    width: 40px;
    height: 40px;
    background-color: var(--navy);
    border: 2px solid var(--cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
    font-weight: 700;
    font-size: 1.2rem;
    z-index: 2;
    transition: var(--transition);
}

.timeline-step.active .step-number {
    background-color: var(--cyan);
    color: var(--navy);
    box-shadow: 0 0 15px var(--cyan-tint);
}

.step-content {
    background-color: var(--light-navy);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--lightest-navy);
    transition: var(--transition);
}

.step-content:hover {
    transform: translateX(10px);
    border-color: rgba(100, 255, 218, 0.2);
}

.step-content h3 {
    color: var(--white);
    margin-bottom: 15px;
}

/* =========================================
   Solutions Section
========================================= */
.solution-card {
    background-color: var(--navy);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--lightest-navy);
    transition: var(--transition);
}

.solution-card:hover {
    transform: translateY(-5px);
    border-color: rgba(100, 255, 218, 0.3);
    box-shadow: 0 10px 30px -15px rgba(2,12,27,0.7);
}

.solution-content {
    padding: 40px;
}

.solution-icon {
    width: 50px;
    height: 50px;
    background-color: var(--light-navy);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
    margin-bottom: 25px;
}

.solution-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--lightest-slate);
}

.text-link {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 15px;
}

.text-link span {
    margin-left: 8px;
    transition: var(--transition);
}

.text-link:hover span {
    transform: translateX(5px);
}

/* =========================================
   Technology Section
========================================= */
.partners-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 60px;
}

.partner-logo {
    flex: 1;
    min-width: 150px;
    height: 80px;
    background-color: var(--light-navy);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate);
    font-weight: 600;
    letter-spacing: 1px;
    border: 1px solid var(--lightest-navy);
    transition: var(--transition);
}

.partner-logo:hover {
    color: var(--cyan);
    border-color: var(--cyan-tint);
    background-color: var(--lightest-navy);
}

.tech-chips {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.chip {
    padding: 10px 20px;
    background-color: var(--cyan-tint);
    color: var(--cyan);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.chip:hover {
    background-color: rgba(100, 255, 218, 0.2);
    transform: translateY(-2px);
}

/* =========================================
   Who We Help Section
========================================= */
.help-card {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--navy);
    border: 1px solid var(--lightest-navy);
    border-radius: 8px;
    transition: var(--transition);
}

.help-card:hover {
    transform: translateY(-10px);
    border-color: var(--cyan-tint);
}

.help-icon {
    color: var(--cyan);
    margin-bottom: 20px;
    display: inline-block;
}

.help-card h3 {
    font-size: 1.2rem;
    color: var(--lightest-slate);
}

/* =========================================
   Reviews Section
========================================= */
.review-card {
    background-color: var(--light-navy);
    padding: 40px 30px;
    border-radius: 8px;
    position: relative;
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -15px rgba(2,12,27,0.7);
}

.stars {
    color: var(--cyan);
    font-size: 1.2rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.review-text {
    font-style: italic;
    color: var(--light-slate);
    margin-bottom: 25px;
    font-size: 1rem;
}

.review-author {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 5px;
}

.review-title {
    font-size: 0.85rem;
    color: var(--slate);
    margin: 0;
}

/* =========================================
   CTA Section
========================================= */
.cta {
    position: relative;
    text-align: center;
    background-color: var(--light-navy);
    border-top: 1px solid var(--lightest-navy);
    overflow: hidden;
}

.cta-container {
    position: relative;
    z-index: 2;
}

.cta h2 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    color: var(--light-slate);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-image: radial-gradient(var(--cyan-tint) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    animation: panBg 20s linear infinite;
}

@keyframes panBg {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

/* =========================================
   Footer
========================================= */
.footer {
    background-color: var(--navy);
    padding: 80px 0 20px;
    border-top: 1px solid var(--lightest-navy);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    color: var(--cyan);
    margin-bottom: 20px;
}

.footer-brand p {
    max-width: 300px;
}

.footer h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

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

.footer-links a, .footer-contact a {
    color: var(--slate);
}

.footer-links a:hover, .footer-contact a:hover {
    color: var(--cyan);
}

.footer-contact p {
    margin-bottom: 15px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--lightest-navy);
    font-size: 0.9rem;
}

/* =========================================
   Animations & Reveals
========================================= */
.reveal {
    opacity: 0;
    transition: all 0.8s var(--easing);
}

.reveal.visible {
    opacity: 1;
    transform: translate(0, 0);
}

.fade-up {
    transform: translateY(40px);
}

.fade-in {
    transform: scale(0.95);
}

.fade-left {
    transform: translateX(-40px);
}

.fade-right {
    transform: translateX(40px);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* =========================================
   Responsive Design
========================================= */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 3.2rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-container {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        margin: 0 auto 30px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-visual {
        width: 100%;
        height: 400px;
        margin-top: 40px;
    }
    
    .grid-3, .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .timeline-container {
        padding-left: 20px;
    }
    
    .timeline-line {
        left: 20px;
    }
    
    .step-number {
        left: 1px;
    }
    
    .timeline-step {
        padding-left: 60px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cta h2 {
        font-size: 2rem;
    }
}

/* Mobile Menu Active State */
.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background-color: var(--navy);
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--lightest-navy);
}

.nav-cta.active {
    display: block;
    position: absolute;
    top: calc(var(--nav-height) + 260px);
    left: 0;
    width: 100%;
    text-align: center;
    padding-bottom: 20px;
    background-color: var(--navy);
    border-bottom: 1px solid var(--lightest-navy);
}
