@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;700&family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --primary: #00c46a;
    --primary-glow: rgba(0, 196, 106, 0.4);
    --dark-bg: #0b0b0b;
    --darker-bg: #050505;
    --card-bg: #141414;
    --card-hover: #1a1a1a;
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --border-color: #333;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

body * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--dark-bg);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(0, 196, 106, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 196, 106, 0.03) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--text-color);
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.02;
    pointer-events: none;
    z-index: 9999;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 0%, var(--darker-bg) 100%);
    opacity: 0.5;
    pointer-events: none;
    z-index: -1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: rgba(11, 11, 11, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

header.scrolled {
    padding: 10px 5%;
    background: rgba(5, 5, 5, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* LOGO - Clean & Seamless (no frame) */
.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.logo a:hover {
    transform: scale(1.03);
    opacity: 0.9;
}

.logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: screen; /* Blends black image background seamlessly into header */
    display: block;
    transition: height 0.3s ease;
}

header.scrolled .logo img {
    height: 40px;
}

nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav > a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
    opacity: 0.8;
}

nav > a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    transition: var(--transition);
}

nav > a:hover::after {
    width: 100%;
}

nav > a:hover {
    color: var(--primary);
    opacity: 1;
}

/* HEADER SOCIALS */
.header-socials {
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 30px;
    margin-left: 10px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.social-icon svg {
    z-index: 1;
    transition: var(--transition);
}

.social-icon:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--primary-glow);
}

.social-icon:hover::before {
    opacity: 0.15;
}

.social-icon:hover svg {
    color: var(--primary);
    transform: scale(1.1);
}


/* HAMBURGER MENU */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-color);
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* HERO SECTION - mimicking Stats Perform large hero */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)), url('../assets/images/optimizare.png');
    /* Placeholder, should ideally be high-res techy image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 10%;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at center, transparent 0%, #0b0b0b 100%),
        linear-gradient(to bottom, transparent 70%, var(--dark-bg) 100%);
    pointer-events: none;
    z-index: 0;
}

/* Glowing laser line divider between Sections */
.hero::after,
.section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 10%, var(--primary) 50%, transparent 90%);
    box-shadow:
        0 -2px 10px rgba(0, 196, 106, 0.5),
        0 2px 20px rgba(0, 196, 106, 0.8),
        0 0 40px rgba(0, 196, 106, 0.3);
    z-index: 10;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    max-width: 800px;
    z-index: 1;
}

.hero h1 span {
    color: var(--primary);
    display: block;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.btn {
    background: var(--primary);
    color: #000;
    padding: 18px 40px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 2px;
    border: none;
    cursor: pointer;
    z-index: 1;
    display: inline-block;
    border-radius: 4px;
    box-shadow: 0 10px 20px rgba(0, 196, 106, 0.2);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 196, 106, 0.4);
}

/* SECTIONS COMMON */
.section {
    padding: 100px 10%;
    position: relative;
    z-index: 1;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 196, 106, 0.02) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
    padding-left: 20px;
    border-left: 4px solid var(--primary);
}

/* ABOUT SECTION */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text .mission-title {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.about-text .mission-statement {
    font-size: 1.4rem;
    color: #fff;
    line-height: 1.5;
    margin-bottom: 40px;
    font-weight: 300;
}

.about-text .mission-statement strong {
    color: var(--primary);
    font-weight: 500;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-icon {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-item h4 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 5px;
    text-transform: none;
    letter-spacing: normal;
    font-family: 'Roboto', sans-serif;
}

.feature-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.about-btn {
    padding: 15px 30px;
}

.highlight {
    color: var(--primary);
    font-weight: 700;
}

/* Hide divider lines between why and contact */
#why::after {
    display: none;
}

/* SERVICES - DATA CARDS STYLE */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--card-bg);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 196, 106, 0.05), transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--primary);
    background: var(--card-hover);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 196, 106, 0.1);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 30px;
    flex-grow: 1;
}

.service-link {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-link::after {
    content: '→';
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.service-card:hover .service-link::after {
    transform: translateX(5px);
}

.service-icon {
    width: 48px;
    height: 48px;
    color: var(--primary);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) translateY(-5px);
}

/* MODAL STYLES */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    background: var(--card-bg);
    margin: auto;
    padding: 0;
    border: 1px solid var(--primary);
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 196, 106, 0.2);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    color: #fff;
}

.modal.active .modal-content {
    transform: scale(1);
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary);
    text-decoration: none;
}

.modal-body {
    padding: 30px;
}

.modal-body h2 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.modal-intro {
    font-size: 1.1rem;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.detail-item {
    margin-bottom: 20px;
}

.detail-item h4 {
    color: #fff;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.detail-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.modal-btn {
    display: inline-block;
    margin-top: 20px;
    width: 100%;
    text-align: center;
}

/* WHY US - DARK CARDS */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.why-card {
    background: var(--card-bg);
    padding: 30px;
    border-top: 3px solid var(--primary);
    /* Stats Perform often uses colored top borders */
}

.why-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.why-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* CONTACT SECTION & QUALIFIED INQUIRY FORM */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 70px;
    align-items: start;
}

.contact-info {
    position: sticky;
    top: 100px;
}

.contact-info p {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 15px;
    line-height: 1.7;
}

.contact-info a {
    color: var(--text-color);
    transition: color 0.25s ease;
}

.contact-info a:hover {
    color: var(--primary);
}

.contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 196, 106, 0.08);
    border: 1px solid rgba(0, 196, 106, 0.25);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 22px;
    background: rgba(20, 20, 20, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 35px;
    border-radius: 12px;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 1.2px;
    color: var(--primary);
    text-transform: uppercase;
}

/* Choice Pills */
.form-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}

.pill-btn:hover {
    background: rgba(0, 196, 106, 0.08);
    border-color: rgba(0, 196, 106, 0.4);
    color: #fff;
    transform: translateY(-1px);
}

.pill-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
    font-weight: 600;
    box-shadow: 0 0 16px var(--primary-glow);
}

/* Multi-select Pills Visual Affordance */
.form-pills[data-mode="multiple"] .pill-btn::before {
    content: '+ ';
    font-weight: 700;
    margin-right: 3px;
    opacity: 0.7;
}

.form-pills[data-mode="multiple"] .pill-btn.active::before {
    content: '✓ ';
    opacity: 1;
}

/* Form 2-Column Row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form input,
.form textarea,
.form select {
    background: var(--darker-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 13px 16px;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    width: 100%;
}

.form input::placeholder,
.form textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.9rem;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 14px var(--primary-glow);
    background: rgba(5, 5, 5, 0.95);
}

.form textarea {
    resize: vertical;
    min-height: 100px;
}

.form-hint {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 2px;
}

.form button[type="submit"] {
    align-self: flex-start;
    background: var(--primary);
    color: #000;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    padding: 16px 36px;
    border-radius: 4px;
    border: none;
    letter-spacing: 1.5px;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 196, 106, 0.25);
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.form button[type="submit"]:hover {
    background: #00e57c;
    box-shadow: 0 10px 28px rgba(0, 196, 106, 0.45);
    transform: translateY(-2px);
}

/* FOOTER */
footer {
    background: var(--darker-bg);
    padding: 60px 10%;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* TOAST NOTIFICATIONS */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.toast {
    background: var(--card-bg);
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideInRight 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    min-width: 300px;
}

.toast.error {
    border-left-color: #ff4b2b;
}

.toast.success {
    border-left-color: var(--primary);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--darker-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        border-left: 1px solid rgba(255, 255, 255, 0.05);
    }

    nav.active {
        right: 0;
    }

    nav > a {
        font-size: 1.5rem;
    }
    
    .header-socials {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
        margin-top: 20px;
        gap: 20px;
    }
    
    .social-icon {
        width: 45px;
        height: 45px;
    }
    
    .social-icon svg {
        width: 22px;
        height: 22px;
    }

    .about-grid,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info {
        position: static;
    }

    .form {
        padding: 28px;
    }

    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .section {
        padding: 80px 5%;
    }

    .collaborators-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .logo img {
        height: 36px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .form-pills {
        gap: 8px;
    }

    .pill-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .form {
        padding: 20px 16px;
    }
}

/* --- OPTIMIZATIONS & ANIMATIONS --- */

/* About Section Background */
#about {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)), url('../assets/images/optimizare.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect if desired, or remove for standard */
    color: #fff;
}

/* Collaborators Grid */
.partner-category-title {
    color: #fff;
    font-size: 0.9rem;
    letter-spacing: 3px;
    font-family: 'Roboto', sans-serif;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    text-transform: uppercase;
    opacity: 0.8;
}

.collaborators-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: center;
}

.collab-item {
    text-align: center;
}

.collab-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.collab-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
    margin-bottom: 10px;
}

.collab-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 196, 106, 0.1);
}

.collab-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.collab-info p {
    margin-top: 5px;
    font-size: 0.85rem;
    color: var(--text-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-40px, 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(40px, 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale3d(0.9, 0.9, 0.9);
    }

    to {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}

/* Animation Utility Classes */
.animate-on-scroll {
    opacity: 0;
    will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
    opacity: 1;
}

.fade-in-up.is-visible {
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-left.is-visible {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.fade-in-right.is-visible {
    animation: fadeInRight 0.8s ease-out forwards;
}

/* Delays */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

/* Enhanced Hover Effects */
.service-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 196, 106, 0.2);
    border-color: var(--primary);
}

.why-card {
    transition: all 0.3s ease;
}

.why-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

/* --- IMMERSIVE EFFECTS --- */

/* 3D Canvas Background */
#three-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background: transparent;
}

/* ==========================================================================
   CUSTOM CURSOR (PRO HIGH-PRECISION TECH & SPORTS ANALYTICS)
   ========================================================================== */
@media (pointer: fine) and (min-width: 1025px) {
    body.custom-cursor-active {
        cursor: none;
    }

    body.custom-cursor-active a,
    body.custom-cursor-active button,
    body.custom-cursor-active [role="button"],
    body.custom-cursor-active .service-link,
    body.custom-cursor-active .menu-toggle,
    body.custom-cursor-active .close-modal,
    body.custom-cursor-active .dashboard-tab {
        cursor: none;
    }

    /* Restore native I-beam cursor on text inputs for perfect usability */
    body.custom-cursor-active input,
    body.custom-cursor-active textarea,
    body.custom-cursor-active select,
    body.custom-cursor-active [contenteditable="true"] {
        cursor: text !important;
    }

    /* Outer Follower Ring - GPU Accelerated */
    .custom-cursor {
        position: fixed;
        top: 0;
        left: 0;
        width: 32px;
        height: 32px;
        margin: -16px 0 0 -16px;
        border-radius: 50%;
        border: 1.5px solid rgba(0, 196, 106, 0.5);
        background-color: rgba(0, 196, 106, 0.03);
        box-shadow: 0 0 12px rgba(0, 196, 106, 0.2);
        pointer-events: none;
        z-index: 999999;
        opacity: 0;
        transform: translate3d(-100px, -100px, 0);
        will-change: transform, width, height, opacity;
        transition: 
            opacity 0.25s ease-out,
            width 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
            height 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
            margin 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
            border-color 0.2s ease,
            background-color 0.2s ease,
            box-shadow 0.2s ease;
    }

    /* Precision Dot (Zero Lag for instant click accuracy) */
    .custom-cursor-dot {
        position: fixed;
        top: 0;
        left: 0;
        width: 6px;
        height: 6px;
        margin: -3px 0 0 -3px;
        border-radius: 50%;
        background-color: var(--primary);
        box-shadow: 0 0 8px rgba(0, 196, 106, 0.8);
        pointer-events: none;
        z-index: 1000000;
        opacity: 0;
        transform: translate3d(-100px, -100px, 0);
        will-change: transform, opacity;
        transition: 
            opacity 0.2s ease-out,
            background-color 0.2s ease,
            transform 0.15s ease-out;
    }

    /* Visible state when cursor is inside the window */
    .custom-cursor.visible,
    .custom-cursor-dot.visible {
        opacity: 1;
    }

    /* Hovering interactive elements (Buttons, Links, Cards) */
    .custom-cursor.hovering {
        width: 48px;
        height: 48px;
        margin: -24px 0 0 -24px;
        border-color: rgba(0, 196, 106, 0.9);
        background-color: rgba(0, 196, 106, 0.12);
        box-shadow: 0 0 20px rgba(0, 196, 106, 0.35);
        backdrop-filter: blur(1px);
    }

    .custom-cursor-dot.hovering {
        transform: scale(0.6);
        background-color: #ffffff;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
    }

    /* Active / Click Feedback */
    .custom-cursor.active {
        width: 24px;
        height: 24px;
        margin: -12px 0 0 -12px;
        border-color: #00ff88;
        background-color: rgba(0, 255, 136, 0.25);
        box-shadow: 0 0 25px rgba(0, 255, 136, 0.6);
    }

    .custom-cursor-dot.active {
        transform: scale(1.4);
    }

    /* Magnetic element interaction */
    .custom-cursor.magnetic {
        width: 52px;
        height: 52px;
        margin: -26px 0 0 -26px;
        border-color: var(--primary);
        background-color: rgba(0, 196, 106, 0.15);
        box-shadow: 0 0 22px rgba(0, 196, 106, 0.4);
    }

    /* Typing in Input/Textarea fields - Hide custom ring and dot */
    .custom-cursor.text-mode,
    .custom-cursor-dot.text-mode {
        opacity: 0 !important;
    }
}

@media (pointer: coarse), (max-width: 1024px) {
    .custom-cursor,
    .custom-cursor-dot {
        display: none !important;
    }
}

/* --- TOP SECTION HUD & HEADER ADAPTATIONS --- */

.header-status {
    background: rgba(0, 196, 106, 0.05);
    border: 1px solid rgba(0, 196, 106, 0.2);
    border-radius: 4px;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.65rem;
    font-family: monospace;
    color: var(--primary);
    letter-spacing: 1px;
    height: fit-content;
    margin-left: 15px;
}

.header-status .status-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
    animation: blink 1.2s infinite alternate;
}

/* Header style modifications */
header {
    border-bottom: 1px solid rgba(0, 196, 106, 0.2) !important;
    box-shadow: 0 5px 25px rgba(0, 196, 106, 0.03);
}

.menu-toggle span {
    background: var(--primary) !important;
}

/* Hero HUD elements */
.hero-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 196, 106, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 196, 106, 0.02) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.8;
}

.hero-scanner {
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    box-shadow: 0 0 15px var(--primary);
    z-index: 2;
    opacity: 0.4;
    pointer-events: none;
    animation: hero-scan 7s ease-in-out infinite;
}

@keyframes hero-scan {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}

.hero-hud-element {
    position: absolute;
    font-family: monospace;
    font-size: 0.65rem;
    color: var(--primary);
    opacity: 0.6;
    letter-spacing: 2px;
    pointer-events: none;
    z-index: 2;
    text-shadow: 0 0 5px var(--primary-glow);
}

.hero-hud-element.top-left { top: 30px; left: 8%; }
.hero-hud-element.top-right { top: 30px; right: 8%; }
.hero-hud-element.bottom-left { bottom: 30px; left: 8%; }
.hero-hud-element.bottom-right { bottom: 30px; right: 8%; }

/* Hero Text styling enhancements */
.hero h1 .decode {
    font-family: 'Oswald', sans-serif;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 196, 106, 0.25);
    display: inline-block;
}

.hero h1 .decode.highlight {
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary-glow);
}

@media (max-width: 992px) {
    .header-status {
        display: none; /* Hide header status on mobile to avoid clutter */
    }
    .hero-hud-element {
        display: none !important;
    }
}

/* --- SERVICE DETAIL PAGES STYLING --- */
.service-detail-section {
    padding: 120px 10% 80px 10%;
    min-height: 80vh;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 40px;
    letter-spacing: 1px;
    border: 1px solid rgba(0, 196, 106, 0.3);
    padding: 10px 20px;
    border-radius: 4px;
    background: rgba(0, 196, 106, 0.03);
    transition: var(--transition);
}

.back-btn:hover {
    background: rgba(0, 196, 106, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    transform: translateX(-5px);
}

.service-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.service-info-col h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: #fff;
}

.service-info-col h1 span {
    color: var(--primary);
    display: block;
    text-shadow: 0 0 15px var(--primary-glow);
}

.service-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.7;
}

.service-detail-features {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.detail-feature-card {
    background: var(--card-bg);
    border-left: 4px solid var(--primary);
    border-radius: 0 8px 8px 0;
    padding: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    border-right: 1px solid rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    transition: var(--transition);
}

.detail-feature-card:hover {
    background: var(--card-hover);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 196, 106, 0.05);
}

.detail-feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    text-transform: none;
    letter-spacing: 0;
}

.detail-feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .service-detail-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .service-info-col h1 {
        font-size: 2.5rem;
    }
}