/* 
 * 2xscalup - Agency Website Styles
 * 
 * This file contains all the CSS styles for the 2xscalup agency website.
 * It is organized by Base Styles, Layout, Components, and specific Sections.
 */

/* 
 * 2xscalup - Brand Styles 
 * Primary: #F5B400 (Golden Yellow)
 * Secondary: #1F1F1F (Dark Charcoal)
 * Accent: #FFFFFF (White)
 */

:root {
    --primary: #F5B400;
    --primary-hover: #e0a500;
    --secondary: #1F1F1F;
    --secondary-light: #2d2d2d;
    --text-light: #f5f5f5;
    --text-gray: #a3a3a3;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #F5B400 0%, #ff9900 100%);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: none;
    /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
    display: none;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--secondary);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    /* Hide default cursor */
}

a {
    text-decoration: none;
    color: inherit;
    cursor: none;
    /* Hide default cursor for links */
}

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary);
    border-radius: 50%;
    z-index: 9998;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.1s, width 0.3s, height 0.3s, border-color 0.3s;
}

.cursor.hovered {
    width: 16px;
    height: 16px;
    background-color: transparent;
    border: 2px solid var(--primary);
}

.cursor-follower.hovered {
    width: 60px;
    height: 60px;
    background-color: rgba(245, 180, 0, 0.1);
    border-color: transparent;
}

ul {
    list-style: none;
}

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

button,
input,
textarea {
    font-family: inherit;
    border: none;
    outline: none;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--white);
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    color: var(--primary);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

/* --- Layout --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

section {
    padding: 5rem 0;
}

/* --- Components --- */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: none;
    /* Custom cursor handles this */
    transition: var(--transition);
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 180, 0, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

/* --- Header --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    background-color: transparent;
    /* transparent initially */
}

header.scrolled {
    background-color: rgba(31, 31, 31, 0.95);
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

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

.logo {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-item {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
}

.nav-item:hover,
.nav-item.active {
    color: var(--primary);
}

.nav-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

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

.mobile-menu-btn {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    background: none;
    cursor: pointer;
}

/* --- Global Background --- */
body {
    background-color: transparent;
    /* Allow canvas to show through */
}

#hero-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
}

.hero-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(rgba(245, 180, 0, 0.03) 1px, transparent 1px),
        radial-gradient(rgba(245, 180, 0, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    z-index: -1;
    pointer-events: none;
}

/* --- Hero Section --- */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: transparent;
    /* No background here */
    overflow: hidden;
    padding-top: 80px;
    /* offset for header */
}

#hero-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
}

.hero-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(rgba(245, 180, 0, 0.03) 1px, transparent 1px),
        radial-gradient(rgba(245, 180, 0, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    z-index: 1;
    max-width: 650px;
    opacity: 0;
    /* animation start state */
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards 0.5s;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.highlight {
    color: var(--primary);
    display: inline-block;
    opacity: 0;
    animation: fadeInScale 0.8s ease forwards 1.2s;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-text {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

/* Growth lines animation */
.growth-lines {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.1;
}

.line {
    position: absolute;
    background: var(--primary);
    height: 2px;
    width: 0;
    transform-origin: left;
    animation: growLine 2s ease forwards;
}

/* --- Services Section --- */
#services {
    background-color: var(--secondary-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Service Card */
.service-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    padding: 2.5rem;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    animation: floating 6s ease-in-out infinite;
}

.service-card:nth-child(even) {
    animation-delay: 1s;
    /* Staggered float */
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.service-desc {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

.service-features {
    margin-top: 1rem;
    padding-left: 1rem;
}

.service-features li {
    list-style: disc;
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

/* --- Process Section --- */
#process {
    background-color: var(--secondary);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 4rem;
    position: relative;
    flex-wrap: wrap;
    gap: 2rem;
}

.process-line {
    position: absolute;
    top: 30px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
    display: none;
    /* hidden on mobile */
}

@media (min-width: 768px) {
    .process-line {
        display: block;
    }
}

.process-step {
    flex: 1;
    text-align: center;
    z-index: 1;
    min-width: 200px;
    position: relative;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    animation: floating 5s ease-in-out infinite;
}

.process-step:nth-child(even) {
    animation-delay: 1.5s;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--secondary);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    transition: var(--transition);
    position: relative;
}

.process-step:hover .step-number {
    background: var(--primary);
    color: var(--secondary);
    box-shadow: 0 0 20px rgba(245, 180, 0, 0.4);
}

.step-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.step-desc {
    color: var(--text-gray);
    font-size: 0.9rem;
    padding: 0 1rem;
}

/* --- About Section --- */
#about {
    background-color: var(--secondary-light);
    display: flex;
    align-items: center;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    padding: 3rem;
    animation: floating 7s ease-in-out infinite;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* --- CTA Banner --- */
#cta {
    background-color: var(--primary);
    text-align: center;
    padding: 4rem 1rem;
    color: var(--secondary);
}

#cta h2 {
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.btn-cta {
    background-color: var(--secondary);
    color: var(--white);
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

.btn-cta:hover {
    background-color: #000;
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* --- Contact Section --- */
#contact {
    background-color: var(--secondary);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    animation: floating 6s ease-in-out infinite;
    animation-delay: 0.5s;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-icon {
    color: var(--primary);
    font-size: 1.5rem;
    margin-top: 5px;
}

.info-text h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.info-text p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.contact-form {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    animation: floating 6s ease-in-out infinite;
    animation-delay: 1s;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    color: var(--white);
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23F5B400' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

/* --- Footer --- */
footer {
    background: linear-gradient(145deg, rgba(17, 17, 17, 0.7) 0%, rgba(17, 17, 17, 0.4) 100%);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 30px;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.footer-copy {
    text-align: center;
    color: #555;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
}

/* --- Animations --- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes growLine {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* --- Mobile Responsive --- */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 70%;
        background: var(--secondary-light);
        flex-direction: column;
        padding: 5rem 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }
}