:root {
    --bg-dark: #0a0a0a;
    --bg-light: #121212;
    --fg-main: #f0f0f0;
    --fg-muted: #a0a0a0;
    --accent-1: #6366f1;
    /* Indigo */
    --accent-2: #a855f7;
    /* Purple */
    --accent-3: #ec4899;
    /* Pink */
    --glow: rgba(99, 102, 241, 0.4);

    --font-sans: 'Outfit', sans-serif;
    --font-display: 'Syne', sans-serif;

    --transit-fast: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    --transit-smooth: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    --transit-slow: 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Hide default cursor */
    -webkit-tap-highlight-color: transparent;
}

.mobile-tap-hint {
    display: none;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--fg-main);
    overflow-x: hidden;
    width: 100%;
    position: relative;
    line-height: 1.6;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-1);
    transition: transform 0.1s;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* Hover state for cursor (managed by JS) */
body.hovering .cursor-outline {
    width: 70px;
    height: 70px;
    background-color: rgba(99, 102, 241, 0.1);
    border-color: var(--accent-1);
    backdrop-filter: blur(2px);
}

body.hovering .cursor-dot {
    transform: translate(-50%, -50%) scale(1.5);
}

/* Typography elements */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    line-height: 1.1;
    font-weight: 800;
}

a {
    color: inherit;
    text-decoration: none;
}

.outline-text {
    color: transparent;
    -webkit-text-stroke: 1px var(--fg-main);
}

.highlight {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientFlow 5s ease infinite;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    mix-blend-mode: difference;
    box-sizing: border-box;
    /* ADD THIS */
    overflow: hidden;
}

.smooth-scroll-wrapper {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo span {
    color: var(--accent-1);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--fg-main);
    transform: translateX(-101%);
    transition: transform var(--transit-fast);
}

.nav-link:hover::after {
    transform: translateX(0);
}

.btn-contact {
    padding: 0.8rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
}

.btn-contact::after {
    display: none;
}

.btn-contact:hover {
    background: var(--fg-main);
    color: var(--bg-dark);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: none;
    flex-shrink: 0;
    /* ADD THIS */
    margin-left: auto;
}

.bar {
    width: 30px;
    height: 2px;
    background: var(--fg-main);
}

/* Background Glow */
.glow-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
    animation: float 10s ease-in-out infinite alternate;
}

.sphere-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-2);
    top: -100px;
    left: -100px;
}

.sphere-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-1);
    top: 40%;
    right: -200px;
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(50px) scale(1.1);
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5%;
    position: relative;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.hero-content {
    max-width: 1000px;
    margin-top: 5rem;
}

.stagger-text {
    font-size: clamp(2rem, 5vw, 5rem);
    /* Reduced max size */
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
    line-height: 1.05;
}

.line {
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    gap: 0.2em;
    /* Spacing between words */
}

.word {
    display: inline-block;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--fg-muted);
    max-width: 600px;
    margin-bottom: 3rem;
}

/* Button */
.btn {
    position: relative;
    display: inline-flex;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transit-fast);
    text-decoration: none;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--fg-main);
    color: var(--bg-dark);
    border: none;
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    opacity: 0;
    z-index: 1;
    transition: opacity var(--transit-fast);
}

.btn:hover .btn-glow {
    opacity: 1;
}

.btn:hover .btn-text {
    color: white;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 5%;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--fg-muted);
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--fg-muted);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--fg-main);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

/* Sections */
section {
    padding: 8rem 5%;
}

.section-header {
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4.5vw, 4rem);
    /* Slightly smaller base */
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--fg-muted);
    font-size: 1.2rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: transform var(--transit-fast);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, var(--glow), transparent 60%);
    opacity: 0;
    transition: opacity var(--transit-fast);
}

.service-card:hover .card-glow {
    opacity: 1;
}

.service-card .icon {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px var(--fg-muted);
    margin-bottom: 2rem;
    transition: color var(--transit-fast), -webkit-text-stroke-color var(--transit-fast);
}

.service-card:hover .icon {
    color: var(--accent-1);
    -webkit-text-stroke-color: transparent;
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--fg-muted);
    position: relative;
    z-index: 1;
}

/* Marquee */
.marquee-container {
    padding: 4rem 0;
    background: var(--accent-1);
    color: white;
    overflow: hidden;
    display: flex;
    white-space: nowrap;
    transform: rotate(-2deg) scale(1.05);
    margin: 5rem 0;
}

.marquee {
    display: flex;
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 800;
    animation: marqueeScroll 20s linear infinite;
}

.marquee span {
    margin: 0 2rem;
}

.marquee .dot {
    font-size: 2rem;
    vertical-align: middle;
}

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

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

/* Portfolio */
.portfolio-grid {
    display: flex;
    flex-direction: column;
    gap: 8rem;
}

.project-card {
    position: relative;
    border-radius: 24px;
}

/* Add staggered layout for odd/even projects */
.project-card:nth-child(even) .project-image-wrapper {
    margin-left: auto;
}

.project-card:nth-child(even) .project-info {
    left: 0;
    right: auto;
    text-align: left;
}

.project-card:nth-child(odd) .project-info {
    right: 0;
    left: auto;
    text-align: right;
}

.project-image-wrapper {
    width: 80%;
    height: 70vh;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    background: #111;
}

.parallax-img {
    width: 100%;
    height: 130%;
    /* Extra height for parallax */
    object-fit: cover;
    will-change: transform;
    opacity: 0.8;
    transition: opacity var(--transit-fast);
}

.project-image-wrapper:hover .parallax-img {
    opacity: 1;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity var(--transit-fast);
}

.project-image-wrapper:hover .project-overlay {
    opacity: 1;
}

.view-btn {
    padding: 1rem 2rem;
    background: white;
    color: black;
    border-radius: 50px;
    font-weight: 600;
    transform: translateY(20px);
    transition: transform var(--transit-fast);
}

.project-image-wrapper:hover .view-btn {
    transform: translateY(0);
}

.project-info {
    position: absolute;
    bottom: -3rem;
    background: var(--bg-light);
    padding: 2.5rem 3rem;
    border-radius: 24px;
    width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 2;
}

.project-info h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--accent-2);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* Testimonials */
.reviews-slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding-bottom: 2rem;
    scrollbar-width: none;
}

.reviews-slider::-webkit-scrollbar {
    display: none;
}

.review-card {
    min-width: 400px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quote-icon {
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--accent-1);
    line-height: 1;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.review-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.bg-gradient-1 {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}

.bg-gradient-2 {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
}

.bg-gradient-3 {
    background: linear-gradient(135deg, #fccb90 0%, #d57eeb 100%);
}

.r-info h4 {
    font-size: 1rem;
    font-family: var(--font-sans);
}

.r-info span {
    font-size: 0.8rem;
    color: var(--fg-muted);
}

/* CTA Section */
.cta-section {
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 12rem 5%;
}

.sphere-3 {
    width: 600px;
    height: 600px;
    background: var(--accent-3);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.3rem;
    color: var(--fg-muted);
    margin-bottom: 3rem;
}

.btn.large {
    font-size: 1.2rem;
    padding: 1.5rem 3.5rem;
}

/* Footer */
footer {
    padding: 4rem 5% 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4rem;
}

.footer-brand h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.footer-brand span {
    color: var(--accent-1);
}

.footer-brand p {
    color: var(--fg-muted);
}

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

.footer-links a {
    color: var(--fg-muted);
    transition: color var(--transit-fast);
}

.footer-links a:hover {
    color: var(--fg-main);
}

.footer-bottom {
    text-align: center;
    color: var(--fg-muted);
    font-size: 0.9rem;
}

/* Animation Classes */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--transit-smooth), transform var(--transit-smooth);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.word {
    transform: translateY(100%);
    opacity: 0;
    transition: transform var(--transit-smooth) cubic-bezier(0.2, 0.8, 0.2, 1), opacity var(--transit-smooth);
}

.word.visible {
    transform: translateY(0);
    opacity: 1;
}

.reveal-mask {
    clip-path: inset(100% 0 0 0);
    transition: clip-path 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

.reveal-mask.visible {
    clip-path: inset(0 0 0 0);
}

/* Media Queries */

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
    .stagger-text {
        font-size: clamp(2.5rem, 5vw, 4rem);
    }

    .hero p {
        font-size: 1.1rem;
    }

    .portfolio-grid {
        gap: 4rem;
    }

    .project-image-wrapper {
        width: 90%;
        height: 55vh;
    }

    .project-info {
        width: 340px;
        padding: 2rem;
    }

    .review-card {
        min-width: 340px;
    }
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {

    /* --- Navbar --- */
    .navbar {
        padding: 1.2rem 5%;
        overflow: hidden;
    }

    .menu-toggle {
        display: flex;
        flex-shrink: 0;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    /* --- Hero --- */
    .hero {
        min-height: 85vh;
        padding-top: 80px;
        justify-content: flex-start;
    }

    .hero-content {
        margin-top: 2rem;
        max-width: 100%;
    }

    .stagger-text {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .scroll-indicator {
        display: none;
    }

    /* --- Sections --- */
    section {
        padding: 4rem 5%;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-header h2 {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    /* --- Services --- */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 2rem;
    }

    .service-card h3 {
        font-size: 1.4rem;
    }

    /* --- Marquee --- */
    .marquee-container {
        margin: 2rem 0;
        padding: 2rem 0;
    }

    .marquee {
        font-size: 2rem;
    }

    /* --- Portfolio --- */
    .portfolio-grid {
        gap: 4rem;
    }

    .project-image-wrapper {
        width: 100%;
        height: 45vh;
        margin: 0 auto !important;
        border-radius: 16px;
    }

    .project-card:nth-child(even) .project-info,
    .project-card:nth-child(odd) .project-info {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        width: 100%;
        max-width: 100%;
        margin: -2rem auto 0 auto;
        text-align: left;
        padding: 1.5rem;
        border-radius: 16px;
    }

    .project-info h3 {
        font-size: 1.4rem;
    }

    /* --- Portfolio tap hints --- */
    .mobile-tap-hint {
        display: block;
        margin-top: 0.5rem;
        font-size: 0.75rem;
        color: var(--accent-1);
        text-transform: uppercase;
        font-weight: 800;
        letter-spacing: 2px;
    }

    /* --- Reviews --- */
    .review-card {
        min-width: 85vw;
        padding: 2rem;
    }

    .review-text {
        font-size: 1rem;
    }

    /* --- CTA --- */
    .cta-section {
        padding: 6rem 5%;
    }

    .cta-content h2 {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .cta-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* --- Footer --- */
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 1rem;
    }

    /* --- Cursor (hide on touch) --- */
    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }

    * {
        cursor: auto !important;
    }
}

/* ---------- Small Phone ---------- */
@media (max-width: 480px) {
    .navbar {
        padding: 1rem 4%;
    }

    .bar {
        width: 24px;
    }

    /* ADD — slightly smaller bars */
    .logo {
        font-size: 1.3rem;
    }

    .hero {
        padding-top: 70px;
    }

    .stagger-text {
        font-size: clamp(1.8rem, 8vw, 2.2rem);
        letter-spacing: -1px;
    }

    .badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.7rem;
        margin-bottom: 1rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.8rem;
    }

    .btn.large {
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }

    .project-image-wrapper {
        height: 35vh;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-card .icon {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }

    .marquee {
        font-size: 1.5rem;
    }

    .marquee span {
        margin: 0 1rem;
    }

    .review-card {
        min-width: 90vw;
        padding: 1.5rem;
    }

    .review-text {
        font-size: 0.9rem;
    }

    .quote-icon {
        font-size: 2.5rem;
    }

    /* Reduce sphere sizes so they don't break viewport width */
    .sphere-1 {
        width: 200px;
        height: 200px;
        top: -50px;
        left: -20px;
    }

    .sphere-2 {
        width: 250px;
        height: 250px;
        right: -50px;
    }

    .sphere-3 {
        width: 250px;
        height: 250px;
    }
}

