/*
================================================
TABLE OF CONTENTS
================================================
1.  GLOBAL STYLES & RESET
    - CSS Variables
    - Basic Reset & Typography
    - Container & Layout
2.  GENERAL COMPONENTS
    - Buttons
    - Section Headers & Tags
    - Forms
    - Preloader
    - Back to Top Button
3.  HEADER & NAVIGATION
    - Header Layout
    - Logo & Navigation Links
    - Mobile Toggle (Hamburger)
4.  FOOTER
    - Footer Layout
    - Footer Columns & Content
5.  HERO SECTIONS
    - Main Hero (Index Page)
    - 3D Cube Animation
    - Page Hero (Inner Pages)
6.  INDEX PAGE SECTIONS
    - Services Section
    - Process Section (Timeline)
    - Stats Section
    - Testimonials Section (Slider)
    - CTA Section
7.  CONTACT PAGE SECTIONS
    - Contact Wrapper & Info Panel
    - Contact Form
    - FAQ Section (Accordion)
8.  LEGAL PAGES (PRIVACY, TERMS, ETC.)
    - Content Wrapper Styling
9.  POPUP / MODAL
    - Form Success Popup
10. ANIMATIONS & TRANSITIONS
    - Keyframes
    - Scroll-triggered Animations
11. RESPONSIVENESS (MEDIA QUERIES)
    - Tablet Devices (~992px)
    - Mobile Devices (~768px)
    - Small Mobile Devices (~480px)
================================================
*/

/* 1. GLOBAL STYLES & RESET
/* ============================================== */
:root {
    --primary-bg: #0a192f;
    --secondary-bg: #112240;
    --primary-accent: #64ffda;
    --secondary-accent: #ff64b4;
    --lightest-text: #ccd6f6;
    --light-text: #a8b2d1;
    --dark-text: #8892b0;
    --white: #ffffff;
    --shadow-color: rgba(2, 12, 27, 0.7);
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto Mono', monospace;
    --header-height: 80px;
    --transition-speed: 0.3s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--primary-bg);
    color: var(--light-text);
    font-family: var(--font-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    color: var(--lightest-text);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-accent);
    text-decoration: none;
    transition: var(--transition-speed);
}

a:hover {
    color: var(--white);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}


/* 2. GENERAL COMPONENTS
/* ============================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border-radius: 5px;
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-speed);
    border: 2px solid transparent;
    text-transform: uppercase;
}

.btn-primary {
    background-color: var(--primary-accent);
    color: var(--primary-bg);
    border-color: var(--primary-accent);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-accent);
}

.btn-secondary {
    background-color: transparent;
    color: var(--lightest-text);
    border-color: var(--light-text);
}

.btn-secondary:hover {
    background-color: var(--secondary-bg);
    border-color: var(--primary-accent);
    color: var(--primary-accent);
}

.btn i {
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(3px);
}

.section-header {
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    color: var(--primary-accent);
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.section-header h2 {
    margin-bottom: 15px;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--dark-text);
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-shape {
    width: 20px;
    height: 20px;
    background-color: var(--primary-accent);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loader-shape:nth-child(1) {
    animation-delay: -0.32s;
}

.loader-shape:nth-child(2) {
    animation-delay: -0.16s;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-accent);
    color: var(--primary-bg);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--white);
}

/* 3. HEADER & NAVIGATION
/* ============================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 0;
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
    transition: all var(--transition-speed);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    box-shadow: 0 10px 30px -10px var(--shadow-color);
    border-bottom: 1px solid var(--secondary-bg);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 80px;
    filter: brightness(0) invert(1);
    transition: var(--transition-speed);
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--lightest-text);
    font-family: var(--font-secondary);
    padding: 10px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-btn {
    display: inline-flex;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 21px;
    position: relative;
    z-index: 101;
}

.bar {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--primary-accent);
    border-radius: 3px;
    position: absolute;
    left: 0;
    transition: all 0.35s ease-in-out;
}

.bar-top {
    top: 0;
}

.bar-middle {
    top: 50%;
    transform: translateY(-50%);
}

.bar-bottom {
    bottom: 0;
}

body.nav-open .bar-top {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

body.nav-open .bar-middle {
    opacity: 0;
}

body.nav-open .bar-bottom {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}


/* 4. FOOTER
/* ============================================== */
.footer {
    background-color: var(--secondary-bg);
    padding: 80px 0 30px;
    border-top: 2px solid var(--primary-accent);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col .footer-logo img {
    height: 80px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-description {
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border: 1px solid var(--dark-text);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--dark-text);
}

.footer-social a:hover {
    color: var(--primary-accent);
    border-color: var(--primary-accent);
    transform: translateY(-3px);
}

.footer-heading {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--lightest-text);
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-accent);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul a {
    color: var(--light-text);
}

.footer-links ul a:hover {
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-info li i {
    color: var(--primary-accent);
    margin-top: 5px;
}

.contact-info a {
    color: var(--light-text);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--dark-text);
    padding-top: 30px;
    font-size: 0.9rem;
}


/* 5. HERO SECTIONS
/* ============================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--header-height) 0 60px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 40px;
}

.hero-content h1 {
    margin: 10px 0 20px;
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 550px;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.hero-visual {
    perspective: 1000px;
}

.scene {
    width: 300px;
    height: 300px;
    position: relative;
    margin: 0 auto;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: translateZ(-150px);
    animation: rotate-cube 20s infinite linear;
}

.cube-face {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 2px solid var(--primary-accent);
    background: rgba(100, 255, 218, 0.1);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--primary-accent);
}

.cube-face-front {
    transform: rotateY(0deg) translateZ(150px);
}

.cube-face-back {
    transform: rotateY(180deg) translateZ(150px);
}

.cube-face-right {
    transform: rotateY(90deg) translateZ(150px);
}

.cube-face-left {
    transform: rotateY(-90deg) translateZ(150px);
}

.cube-face-top {
    transform: rotateX(90deg) translateZ(150px);
}

.cube-face-bottom {
    transform: rotateX(-90deg) translateZ(150px);
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--secondary-accent), transparent 60%);
    opacity: 0.1;
    filter: blur(50px);
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    left: 5%;
    animation: float 10s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: 15%;
    right: 10%;
    background: radial-gradient(circle, var(--primary-accent), transparent 60%);
    animation: float 12s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    top: 20%;
    right: 25%;
    animation: float 8s ease-in-out infinite;
}

/* Page Hero (Inner Pages) */
.page-hero {
    padding: calc(var(--header-height) + 80px) 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: var(--secondary-bg);
}

.page-hero h1 {
    margin-bottom: 15px;
}

.page-hero-subtitle {
    max-width: 600px;
    margin: 0 auto 30px;
    color: var(--light-text);
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--light-text);
}

.breadcrumbs a:hover {
    color: var(--primary-accent);
}

.breadcrumbs i {
    font-size: 0.7rem;
    color: var(--dark-text);
}

.breadcrumbs span {
    color: var(--lightest-text);
}

/* 6. INDEX PAGE SECTIONS
/* ============================================== */

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--secondary-bg);
    padding: 40px 30px;
    border-radius: 5px;
    border: 1px solid transparent;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-accent);
    box-shadow: 0 10px 30px -15px var(--shadow-color);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-accent);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
}

.read-more {
    font-family: var(--font-secondary);
    color: var(--light-text);
    margin-top: 20px;
    display: inline-block;
}

.read-more:hover {
    color: var(--primary-accent);
}

.read-more i {
    margin-left: 5px;
    transition: transform var(--transition-speed);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Process Section */
.process-section {
    background-color: var(--secondary-bg);
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--primary-accent);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
    opacity: 0.2;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -12.5px;
    background-color: var(--primary-bg);
    border: 4px solid var(--primary-accent);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even)::after {
    left: -12.5px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--primary-bg);
    position: relative;
    border-radius: 6px;
    border-left: 3px solid var(--primary-accent);
}

.timeline-item:nth-child(even) .timeline-content {
    border-left: none;
    border-right: 3px solid var(--primary-accent);
}

.timeline-step {
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(100, 255, 218, 0.1);
    font-family: var(--font-secondary);
}

.timeline-item:nth-child(even) .timeline-step {
    right: auto;
    left: 20px;
}

.timeline-content h3 {
    margin-bottom: 10px;
}

/* Stats Section */
.stats-section {
    background-color: var(--secondary-bg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-accent);
    font-family: var(--font-secondary);
}

.stat-item p {
    color: var(--light-text);
    font-family: var(--font-secondary);
    margin: 0;
}

/* Testimonials Section */
.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
    min-height: 250px;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateX(20px);
}

.testimonial-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.quote-icon {
    font-size: 2.5rem;
    color: var(--primary-accent);
    opacity: 0.5;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--lightest-text);
    margin-bottom: 30px;
}

.author-info h4 {
    margin-bottom: 5px;
    color: var(--primary-accent);
}

.author-info span {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 110%;
    left: -5%;
    display: flex;
    justify-content: space-between;
}

.slider-btn {
    background-color: var(--secondary-bg);
    border: 1px solid var(--dark-text);
    color: var(--light-text);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-speed);
}

.slider-btn:hover {
    background-color: var(--primary-accent);
    color: var(--primary-bg);
    border-color: var(--primary-accent);
}

/* CTA Section */
.cta-section {
    background-color: var(--secondary-bg);
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.cta-content h2 {
    margin: 10px 0 20px;
}

.cta-content p {
    margin-bottom: 30px;
}

/* 7. CONTACT PAGE SECTIONS
/* ============================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background-color: var(--secondary-bg);
    padding: 50px;
    border-radius: 10px;
}

.contact-info-header h2 {
    margin-bottom: 10px;
}

.contact-info-header p {
    margin-bottom: 30px;
}

.contact-methods {
    margin-bottom: 40px;
}

.contact-method {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 25px;
}

.method-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(100, 255, 218, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-accent);
    font-size: 1.2rem;
}

.method-details h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.method-details a {
    color: var(--light-text);
}

.contact-social h3 {
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--lightest-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--primary-bg);
    border: 1px solid var(--dark-text);
    border-radius: 5px;
    color: var(--lightest-text);
    font-family: var(--font-primary);
    transition: var(--transition-speed);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 2px rgba(100, 255, 218, 0.2);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364ffda' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 1em;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.terms-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.terms-check input {
    width: auto;
}

.terms-check label {
    margin: 0;
    font-size: 0.8rem;
}

.form-submit-btn {
    width: 100%;
}

/* FAQ Section */
.faq-section {
    background-color: var(--secondary-bg);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--dark-text);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 500;
}

.faq-icon {
    color: var(--primary-accent);
    transition: transform var(--transition-speed);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.faq-answer p {
    padding-bottom: 20px;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    /* Adjust as needed */
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* 8. LEGAL PAGES
/* ============================================== */
.page-content-section {
    background-color: var(--primary-bg);
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--secondary-bg);
    padding: 40px;
    border-radius: 5px;
}

.content-wrapper h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-accent);
}

.content-wrapper h3 {
    margin-top: 25px;
    margin-bottom: 10px;
    color: var(--lightest-text);
}

.content-wrapper p {
    line-height: 1.7;
}

.content-wrapper ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.content-wrapper ul li {
    margin-bottom: 10px;
}

/* 9. POPUP / MODAL
/* ============================================== */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.popup.visible {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: var(--secondary-bg);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.popup.visible .popup-content {
    transform: scale(1);
}

.popup-icon {
    font-size: 4rem;
    color: var(--primary-accent);
    margin-bottom: 20px;
}

.popup-content h3 {
    margin-bottom: 10px;
}

.popup-content p {
    margin-bottom: 30px;
}

/* 10. ANIMATIONS & TRANSITIONS
/* ============================================== */
@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1.0);
    }
}

@keyframes rotate-cube {
    0% {
        transform: rotateX(0) rotateY(0);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-in[data-animation="fade-up"] {
    transform: translateY(30px);
}

.animate-in[data-animation="slide-in-left"] {
    transform: translateX(-50px);
}

.animate-in[data-animation="slide-in-right"] {
    transform: translateX(50px);
}

.animate-in[data-animation="zoom-in"] {
    transform: scale(0.9);
}

.animate-in[data-animation="slide-in-left"].is-visible,
.animate-in[data-animation="slide-in-right"].is-visible {
    transform: translateX(0);
}

.animate-in[data-animation="zoom-in"].is-visible {
    transform: scale(1);
}

/* 11. RESPONSIVENESS (MEDIA QUERIES)
/* ============================================== */

/* Tablet Devices */
@media (max-width: 992px) {
    .header .container {
        padding: 0 30px;
    }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(75vw, 400px);
        height: 100vh;
        background-color: var(--secondary-bg);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        padding-top: 100px;
    }

    body.nav-open .nav {
        transform: translateX(0);
        box-shadow: -10px 0px 30px -15px var(--shadow-color);
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .mobile-toggle {
        display: block;
    }

    .header-btn {
        display: none;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content p {
        margin: 0 auto 30px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 50px;
    }

    .scene,
    .cube,
    .cube-face {
        width: 250px;
        height: 250px;
    }

    .cube-face {
        font-size: 4rem;
    }

    .cube-face-front,
    .cube-face-back,
    .cube-face-right,
    .cube-face-left,
    .cube-face-top,
    .cube-face-bottom {
        transform: translateZ(125px);
        /* half of width/height */
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .footer-about {
        grid-column: 1 / -1;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-col {
        text-align: center;
    }

    .footer-heading::after {
        left: 50%;
        margin-left: -15px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .contact-info-panel {
        text-align: center;
    }

    .contact-method {
        justify-content: center;
    }

    .contact-social {
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .section-padding {
        padding: 80px 0;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .process-timeline::after {
        left: 12.5px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 10px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item::after {
        left: 0px;
    }

    .timeline-item:nth-child(even)::after {
        left: 0px;
    }

    .timeline-item:nth-child(even) .timeline-content {
        border-right: none;
        border-left: 3px solid var(--primary-accent);
    }

    .slider-controls {
        display: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .header .container {
        padding: 0 20px;
    }

    .logo img {
        height: 35px;
    }

    .hero {
        min-height: auto;
        padding-bottom: 80px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-col {
        text-align: center;
    }

    .contact-info li {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

    .contact-info li i {
        margin-top: 0;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        right: 20px;
        bottom: 20px;
    }
}