/* ============================================================
   TECSTRYDE – HOME PAGE STYLES
   ============================================================ */

/* ── HERO ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: calc(var(--nav-h) + 2rem) 5vw 4rem;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 860px;
    margin: auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 99px;
    border: 1px solid var(--border-accent);
    background: rgba(59, 130, 246, 0.06);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 2.5rem;
    animation: fadeSlideDown 0.8s ease both;
}

.hero-badge .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-blue);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1.07;
    letter-spacing: -2px;
    animation: fadeSlideDown 0.8s 0.15s ease both;
}

.hero-title .line-2 {
    display: block;
    background: var(--accent-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title .stroke-text {
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.15);
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 580px;
    margin: 1.8rem auto 0;
    animation: fadeSlideDown 0.8s 0.3s ease both;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
    animation: fadeSlideDown 0.8s 0.45s ease both;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    animation: fadeSlideDown 0.8s 0.7s ease both;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 1.5px solid var(--text-muted);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-mouse::before {
    content: '';
    width: 3px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 99px;
    animation: scrollWheel 1.8s infinite;
}

@keyframes scrollWheel {

    0%,
    100% {
        transform: translateY(0);
        opacity: 1;
    }

    80% {
        transform: translateY(10px);
        opacity: 0;
    }
}

/* Floating 3D elements */
.hero-orb-1 {
    top: 15%;
    left: 8%;
    width: 420px;
    height: 420px;
    animation: floatOrb 8s ease-in-out infinite;
}

.hero-orb-2 {
    bottom: 10%;
    right: 6%;
    width: 340px;
    height: 340px;
    animation: floatOrb 10s ease-in-out infinite reverse;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, -20px);
    }
}

.hero-3d-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 4px;
    border: 1px solid rgba(59, 130, 246, 0.15);
    animation: floatShape linear infinite;
}

.shape-1 {
    width: 60px;
    height: 60px;
    top: 20%;
    left: 15%;
    transform: rotate(30deg);
    animation-duration: 12s;
}

.shape-2 {
    width: 40px;
    height: 40px;
    top: 60%;
    left: 80%;
    transform: rotate(15deg);
    animation-duration: 10s;
    animation-delay: -3s;
    border-color: rgba(124, 58, 237, 0.2);
}

.shape-3 {
    width: 80px;
    height: 80px;
    top: 75%;
    left: 10%;
    transform: rotate(45deg);
    animation-duration: 15s;
    animation-delay: -6s;
    border-color: rgba(6, 182, 212, 0.2);
    border-radius: 16px;
}

.shape-4 {
    width: 30px;
    height: 30px;
    top: 35%;
    left: 88%;
    transform: rotate(60deg);
    animation-duration: 9s;
    animation-delay: -2s;
}

@keyframes floatShape {

    0%,
    100% {
        transform: translateY(0) rotate(30deg);
    }

    50% {
        transform: translateY(-25px) rotate(60deg);
    }
}

@keyframes scrollWheel {

    0%,
    100% {
        transform: translateY(0);
        opacity: 1;
    }

    80% {
        transform: translateY(10px);
        opacity: 0;
    }
}

/* Floating 3D elements */
.hero-orb-1 {
    top: 15%;
    left: 8%;
    width: 420px;
    height: 420px;
    animation: floatOrb 8s ease-in-out infinite;
}

.hero-orb-2 {
    bottom: 10%;
    right: 6%;
    width: 340px;
    height: 340px;
    animation: floatOrb 10s ease-in-out infinite reverse;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, -20px);
    }
}

.hero-3d-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 4px;
    border: 1px solid rgba(59, 130, 246, 0.15);
    animation: floatShape linear infinite;
}

.shape-1 {
    width: 60px;
    height: 60px;
    top: 20%;
    left: 15%;
    transform: rotate(30deg);
    animation-duration: 12s;
}

.shape-2 {
    width: 40px;
    height: 40px;
    top: 60%;
    left: 80%;
    transform: rotate(15deg);
    animation-duration: 10s;
    animation-delay: -3s;
    border-color: rgba(124, 58, 237, 0.2);
}

.shape-3 {
    width: 80px;
    height: 80px;
    top: 75%;
    left: 10%;
    transform: rotate(45deg);
    animation-duration: 15s;
    animation-delay: -6s;
    border-color: rgba(6, 182, 212, 0.2);
    border-radius: 16px;
}

.shape-4 {
    width: 30px;
    height: 30px;
    top: 35%;
    left: 88%;
    transform: rotate(60deg);
    animation-duration: 9s;
    animation-delay: -2s;
}

@keyframes floatShape {

    0%,
    100% {
        transform: translateY(0) rotate(30deg);
    }

    50% {
        transform: translateY(-25px) rotate(60deg);
    }
}

@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ── MARQUEE STRIP ── */
.marquee-strip {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.2rem 0;
    overflow: hidden;
    position: relative;
}

.marquee-track {
    display: flex;
    gap: 4rem;
    align-items: center;
    animation: marqueeScroll 20s linear infinite;
    width: max-content;
}

.marquee-item {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.marquee-item::after {
    content: '✦';
    color: var(--accent-blue);
}

@keyframes marqueeScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ── STATS SECTION ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-card {
    padding: 2.5rem 2rem;
    text-align: center;
}

.stat-card .stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

.stat-card .stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 1rem;
}

/* ── HOME SERVICES PREVIEW ── */
.services-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.srv-card {
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
}

.srv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.srv-icon {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    display: inline-block;
    transition: transform 0.3s;
}

.srv-card:hover .srv-icon {
    transform: scale(1.15) rotate(-5deg);
}

.srv-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.srv-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.srv-card .learn-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-top: 1.2rem;
    transition: gap 0.3s;
}

.srv-card:hover .learn-more {
    gap: 10px;
}

/* ── WORKS PREVIEW ── */
.works-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.work-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/10;
    background: var(--bg-secondary);
}

.work-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.work-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 10, 20, 0.95) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 1;
    transition: opacity 0.4s;
}

.work-card:hover img {
    transform: scale(1.1);
}

.work-overlay h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.work-overlay .chip {
    margin-top: 0.4rem;
    display: inline-block;
}

/* ── CTA SECTION ── */
.cta-section {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
    border: 1px solid var(--border);
    border-radius: 30px;
    margin: 0 5vw 5rem;
    padding: 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 80% at 50% 100%, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
}

.cta-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -1px;
    position: relative;
}

.cta-section p {
    color: var(--text-secondary);
    margin: 1rem auto 2.5rem;
    max-width: 500px;
    position: relative;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .services-preview-grid { grid-template-columns: repeat(2, 1fr); }
    .works-preview-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 4rem; }
}

@media (max-width: 768px) {
    .hero { min-height: auto; padding: calc(var(--nav-h) + 4rem) 5vw 6rem; }
    .hero-title { font-size: 3rem; }
    .hero-sub { font-size: 1rem; margin-top: 1.5rem; }
    .hero-actions { margin-top: 2.5rem; }
    
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .stat-card { padding: 1.5rem 1rem; }
    
    .services-preview-grid { grid-template-columns: 1fr; }
    .works-preview-grid { grid-template-columns: 1fr; }
    
    .cta-section { margin: 0 0 4rem; padding: 4rem 1.5rem; border-radius: 0; border-left: none; border-right: none; }
    .cta-section h2 { font-size: 2.2rem; }
    
    /* Hide some floating shapes on mobile to reduce clutter */
    .hero-orb-1, .hero-orb-2 { width: 250px; height: 250px; filter: blur(60px); }
    .shape-2, .shape-4 { display: none; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.5rem; }
    .hero-actions .btn { width: 100%; }
    .stats-grid { grid-template-columns: 1fr; }
}