/* ============================================= */
/* ============== TABLE OF CONTENTS ============== */
/* ============================================= */
/* 
1.  **ROOT & VARIABLES**
2.  **GENERAL STYLES & RESETS**
3.  **UTILITY CLASSES**
4.  **HEADER & NAVIGATION**
5.  **HERO SECTION (ROCKET & STARFIELD)**
6.  **SERVICES SECTION**
7.  **INDUSTRY SOLUTIONS SECTION (TABS)**
8.  **TECHNOLOGY STACK SECTION (3D CUBE)**
9.  **TESTIMONIALS SECTION**
10. **CTA SECTION**
11. **FOOTER**
12. **LEGAL/CONTENT PAGES STYLES**
13. **ANIMATIONS & KEYFRAMES**
14. **MEDIA QUERIES (RESPONSIVENESS)**
*/

/* ============================================= */
/* ============== 1. ROOT & VARIABLES ============== */
/* ============================================= */
:root {
    /* Color Palette - "Growth Rocket" Theme */
    --dark-bg: #0d0c1d;
    /* Deep space purple/black */
    --medium-bg: #1a183e;
    /* Lighter purple for cards */
    --primary-color: #6a44ff;
    /* Electric purple */
    --accent-color-1: #ff7e5f;
    /* Fiery orange */
    --accent-color-2: #feb47b;
    /* Lighter fiery yellow */
    --text-light: #e6e6fa;
    /* Lavender-tinted white for text */
    --text-medium: #a09dbd;
    /* Muted purple for subtitles */
    --white: #FFFFFF;
    --gradient-accent: linear-gradient(135deg, var(--accent-color-1), var(--accent-color-2));

    /* Typography */
    --font-heading: 'Exo 2', sans-serif;
    --font-body: 'Roboto', sans-serif;

    /* Spacing & Sizing */
    --header-height: 80px;
    --border-radius: 12px;
    --transition-speed: 0.4s;
}

@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@700;800&family=Roboto:wght@400;500&display=swap');

/* ============================================= */
/* ============== 2. GENERAL STYLES & RESETS ===== */
/* ============================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
    color: var(--white);
    text-wrap: balance;
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 2.8rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--text-medium);
    margin-bottom: 1rem;
}

a {
    color: var(--accent-color-1);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--accent-color-2);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 100px 0;
}

/* ============================================= */
/* ============== 3. UTILITY CLASSES =========== */
/* ============================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--dark-bg);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 126, 95, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--accent-color-1);
    color: var(--accent-color-1);
}

.btn-secondary:hover {
    background-color: var(--accent-color-1);
    color: var(--dark-bg);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    color: var(--accent-color-2);
    border: 1px solid var(--accent-color-2);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    max-width: 650px;
    margin: 0 auto;
    color: var(--text-medium);
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================= */
/* ============== 4. HEADER & NAVIGATION ======= */
/* ============================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background-color: rgba(13, 12, 29, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--transition-speed) ease;
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    padding: 10px 0;
    border-bottom: 1px solid var(--medium-bg);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand a {
    display: flex;
    align-items: center;
    color: var(--white);
}

.logo {
    height: 70px;
    width: auto;
    margin-right: 10px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-item {
    margin: 0 18px;
}

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
    transition: width var(--transition-speed) ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
}

.header-cta {
    padding: 10px 24px;
    font-size: 0.9rem;
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    margin-left: 20px;
}

.hamburger-bar {
    display: block;
    width: 28px;
    height: 3px;
    margin: 6px auto;
    background-color: var(--white);
    border-radius: 2px;
    transition: all var(--transition-speed) ease-in-out;
}

/* ============================================= */
/* ============== 5. HERO SECTION ============== */
/* ============================================= */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

#starfield,
#starfield::after,
#starfield::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: transparent;
}

#starfield {
    background-image: radial-gradient(1px 1px at 25px 5px, white, transparent), radial-gradient(1px 1px at 50px 25px, white, transparent), radial-gradient(1px 1px at 125px 80px, white, transparent);
    background-size: 250px 250px;
    animation: move-stars 200s linear infinite;
}

#starfield::after {
    background-image: radial-gradient(1px 1px at 75px 120px, white, transparent), radial-gradient(2px 2px at 100px 50px, white, transparent);
    background-size: 200px 200px;
    animation: move-stars 150s linear infinite;
}

#starfield::before {
    background-image: radial-gradient(1px 1px at 10px 100px, white, transparent), radial-gradient(2px 2px at 150px 150px, white, transparent);
    background-size: 300px 300px;
    animation: move-stars 250s linear infinite;
}

.hero-content-container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 1.5rem;
}

.highlight-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-medium);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.rocket-container {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 240px;
    z-index: 1;
}

#rocket {
    width: 100%;
    height: 100%;
    transition: transform 1.5s cubic-bezier(0.6, 0.04, 0.98, 0.335);
    animation: hover-rocket 3s ease-in-out infinite;
}

#rocket.launched {
    transform: translateY(-150vh);
}

#rocket .flame {
    transform-origin: 50% 160px;
    animation: flicker 0.2s ease-in-out infinite alternate;
}

.animate-on-load {
    animation-duration: 0.8s;
    animation-timing-function: cubic-bezier(0.25, 1, 0.5, 1);
    animation-fill-mode: forwards;
    opacity: 0;
}

.hero-title.animate-on-load {
    animation-name: slideUpFadeIn;
    animation-delay: 0.2s;
}

.hero-subtitle.animate-on-load {
    animation-name: slideUpFadeIn;
    animation-delay: 0.4s;
}

.hero-buttons.animate-on-load {
    animation-name: slideUpFadeIn;
    animation-delay: 0.6s;
}

/* ============================================= */
/* ============== 6. SERVICES SECTION ========== */
/* ============================================= */
.services-section {
    background-color: var(--medium-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--dark-bg);
    padding: 35px;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--medium-bg);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(106, 68, 255, 0.15), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    margin: 0 auto 20px;
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--dark-bg);
}

.service-card h3 {
    margin-bottom: 10px;
}

.service-card p {
    margin-bottom: 0;
}

/* ============================================= */
/* ======== 7. INDUSTRY SOLUTIONS SECTION ====== */
/* ============================================= */
.industry-tabs-wrapper {
    background: var(--medium-bg);
    border-radius: var(--border-radius);
    padding: 20px;
}

.industry-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    background: var(--dark-bg);
    border-radius: 30px;
    padding: 10px;
}

.tab-link {
    background: none;
    border: none;
    color: var(--text-medium);
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 700;
    transition: all var(--transition-speed) ease;
}

.tab-link.active {
    background: var(--gradient-accent);
    color: var(--dark-bg);
}

.tab-content {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    animation: fadeIn 0.6s ease;
}

.tab-content.active {
    display: grid;
}

.tab-image {
    border-radius: var(--border-radius);
    aspect-ratio: 16/10;
    object-fit: cover;
}

.tab-text ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.tab-text li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
}

.tab-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color-1);
    font-weight: bold;
}

/* ============================================= */
/* ======== 8. TECHNOLOGY STACK SECTION ======== */
/* ============================================= */
.tech-section {
    background: var(--dark-bg);
}

.tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.tech-content p {
    max-width: 500px;
}

.tech-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 30px;
}

.tech-logos img {
    height: 40px;
    opacity: 0.7;
    transition: opacity var(--transition-speed), transform var(--transition-speed);
}

.tech-logos img:hover {
    opacity: 1;
    transform: scale(1.1);
}

.tech-3d-visual {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.cube-container {
    position: relative;
    width: 200px;
    height: 200px;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate-cube 20s infinite linear;
}

.face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(106, 68, 255, 0.2);
    border: 2px solid var(--primary-color);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.front {
    transform: rotateY(0deg) translateZ(100px);
}

.back {
    transform: rotateY(180deg) translateZ(100px);
}

.right {
    transform: rotateY(90deg) translateZ(100px);
}

.left {
    transform: rotateY(-90deg) translateZ(100px);
}

.top {
    transform: rotateX(90deg) translateZ(100px);
}

.bottom {
    transform: rotateX(-90deg) translateZ(100px);
}

/* ============================================= */
/* ============== 9. TESTIMONIALS SECTION ====== */
/* ============================================= */
.testimonials-section {
    background-color: var(--medium-bg);
}

.testimonial-slider-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    text-align: center;
    padding: 0 20px;
}

.testimonial-slide.active {
    opacity: 1;
}

.testimonial-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    margin: 0 auto 20px;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 20px;
}

.author-name {
    font-weight: 700;
    display: block;
    color: var(--white);
}

.author-title {
    color: var(--text-medium);
}

.slider-controls {
    text-align: center;
    margin-top: 30px;
}

.slider-btn {
    background: none;
    border: 2px solid var(--text-medium);
    color: var(--text-medium);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    margin: 0 10px;
    transition: all var(--transition-speed) ease;
}

.slider-btn:hover {
    background: var(--gradient-accent);
    border-color: transparent;
    color: var(--dark-bg);
}

/* ============================================= */
/* ============== 10. CTA SECTION ============== */
/* ============================================= */
.cta-section {
    padding: 80px 0;
    background: var(--gradient-accent);
}

.cta-content {
    text-align: center;
}

.cta-title {
    color: var(--dark-bg);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-text {
    color: var(--dark-bg);
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.cta-section .btn-primary {
    background: var(--dark-bg);
    color: var(--white);
    border: 2px solid var(--dark-bg);
}

.cta-section .btn-primary:hover {
    background: transparent;
    color: var(--dark-bg);
}

/* ============================================= */
/* ============== 11. FOOTER =================== */
/* ============================================= */
.site-footer-main {
    background-color: #080714;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-about {
    color: var(--text-medium);
}

.footer-heading {
    color: var(--white);
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-contact a {
    color: var(--text-medium);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--accent-color-1);
}

.footer-contact address {
    font-style: normal;
    color: var(--text-medium);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--medium-bg);
    color: var(--text-medium);
    font-size: 0.9rem;
}

/* ============================================= */
/* ============== 12. LEGAL PAGES STYLES ======= */
/* ============================================= */
.content-section {
    padding: 120px 0 60px;
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--medium-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--primary-color);
}

.content-container h1 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.content-container h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.content-container p,
.content-container ul,
.content-container li {
    color: var(--text-light);
    line-height: 1.8;
}

.content-container ul {
    list-style: disc;
    padding-left: 20px;
}

.content-container strong {
    color: var(--accent-color-1);
}

/* Contact Form Specifics */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px;
    background-color: var(--dark-bg);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    color: var(--white);
    font-family: var(--font-body);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-color-1);
    box-shadow: 0 0 0 3px rgba(255, 126, 95, 0.2);
}

.contact-info-item strong {
    color: var(--white);
}

/* ============================================= */
/* ============== 13. ANIMATIONS & KEYFRAMES === */
/* ============================================= */
@keyframes slideUpFadeIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes move-stars {
    from {
        transform: translateY(0px);
    }

    to {
        transform: translateY(-2000px);
    }
}

@keyframes hover-rocket {

    0%,
    100% {
        transform: translateY(0) rotate(-1deg);
    }

    50% {
        transform: translateY(-20px) rotate(1deg);
    }
}

@keyframes flicker {

    0%,
    100% {
        transform: scale(1, 1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1, 1.3);
        opacity: 0.8;
    }
}

@keyframes rotate-cube {
    from {
        transform: rotateX(0) rotateY(0);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

/* ============================================= */
/* ======== 14. MEDIA QUERIES ============== */
/* ============================================= */
@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.4rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: var(--medium-bg);
        width: 100%;
        height: calc(100vh - var(--header-height));
        text-align: center;
        transition: 0.3s;
        padding-top: 40px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 20px 0;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .hamburger-bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .hamburger-bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active .hamburger-bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .header-cta {
        display: none;
    }

    .tab-content {
        grid-template-columns: 1fr;
    }

    .tab-image {
        order: -1;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .tech-3d-visual {
        margin-top: 50px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .rocket-container {
        width: 90px;
        height: 180px;
    }

    .industry-tabs-nav {
        flex-direction: column;
        background: none;
        padding: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }
}