/* ============ RESET & VARS ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --bg: #0a0620;
    --bg-2: #0f0a2a;
    --bg-card: #130d33;
    --bg-card-2: #1a1247;
    --border: rgba(139, 92, 246, 0.15);
    --border-hover: rgba(139, 92, 246, 0.4);
    --purple: #8b5cf6;
    --purple-light: #a78bfa;
    --purple-dark: #6d28d9;
    --text: #e8e6f5;
    --text-mid: #a8a4c0;
    --text-light: #6b6685;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    cursor: none;
}

/* Hide custom cursor on mobile */
@media (max-width: 900px) {
    body { cursor: auto; }
    .cursor, .cursor-follower { display: none; }
}

/* Glow background */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    bottom: -30%;
    left: -15%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(109, 40, 217, 0.12), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ============ CUSTOM CURSOR ============ */
.cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--purple);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--purple);
}

.cursor-follower {
    position: fixed;
    width: 35px;
    height: 35px;
    border: 1px solid rgba(139, 92, 246, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.15s ease, width 0.3s, height 0.3s;
    transform: translate(-50%, -50%);
}

.cursor-follower.hover {
    width: 60px;
    height: 60px;
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--purple);
}

/* ============ NAVBAR ============ */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 6%;
    background: rgba(10, 6, 32, 0.7);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid var(--border);
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text);
}

.logo span { color: var(--purple); }

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-mid);
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--purple-light);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--purple);
    border-radius: 2px;
}

.nav-btn {
    background: var(--purple);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: var(--purple-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    width: 42px;
    height: 42px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.menu-toggle:hover {
    background: var(--purple);
    border-color: var(--purple);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    padding: 100px 30px 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 998;
    transition: right 0.4s ease;
    backdrop-filter: blur(20px);
}

.mobile-menu.open { right: 0; }

.mobile-menu a {
    font-size: 1.1rem;
    color: var(--text-mid);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    transition: color 0.3s, padding-left 0.3s;
}

.mobile-menu a:hover {
    color: var(--purple-light);
    padding-left: 10px;
}

/* ============ HERO ============ */
.hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 70px 6% 80px;
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.25);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--purple-light);
    margin-bottom: 22px;
}

.badge-dot {
    width: 7px;
    height: 7px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 10px #4ade80;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-role {
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 18px;
}

.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.6rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 18px;
}

.gradient-text {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 50%, #c4b5fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cursor-type {
    display: inline-block;
    color: var(--purple);
    font-weight: 300;
    animation: blink 0.8s infinite;
    margin-left: 4px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-quote {
    font-style: italic;
    color: var(--text-mid);
    font-size: 1rem;
    margin-bottom: 20px;
}

.hero-desc {
    color: var(--text-mid);
    font-size: 0.95rem;
    max-width: 480px;
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.btn {
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-white {
    background: white;
    color: var(--bg);
}

.btn-white:hover {
    background: var(--purple-light);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    border-color: var(--purple);
    color: var(--purple-light);
    background: rgba(139, 92, 246, 0.05);
}

.btn-purple {
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
    color: white;
}

.btn-purple:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.4);
}

.btn-whatsapp {
    background: #25d366;
    color: white;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    transition: all 0.3s;
}

.btn-whatsapp:hover {
    background: #1eb955;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

.socials {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
}

.socials a {
    width: 38px;
    height: 38px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--text-mid);
    transition: all 0.3s;
}

.socials a:hover {
    background: var(--purple);
    color: white;
    border-color: var(--purple);
    transform: translateY(-3px);
}

.hero-stats-inline {
    display: flex;
    gap: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-light);
}

.hero-stats-inline strong {
    color: var(--text);
    font-weight: 700;
}

/* ============ HERO IMAGE - CIRCULAR ============ */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
}

.image-frame {
    position: relative;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.2), rgba(109, 40, 217, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 
        0 0 0 1px rgba(139, 92, 246, 0.3),
        0 0 40px rgba(139, 92, 246, 0.3),
        0 30px 80px rgba(139, 92, 246, 0.25);
}

.image-frame::before {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(139, 92, 246, 0.6) 90deg,
        transparent 180deg,
        rgba(167, 139, 250, 0.4) 270deg,
        transparent 360deg
    );
    animation: rotate 8s linear infinite;
    z-index: -1;
    filter: blur(8px);
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}

.image-frame::after {
    content: '';
    position: absolute;
    inset: -30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15), transparent 70%);
    z-index: -2;
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
}

.floating-tag {
    position: absolute;
    background: rgba(15, 10, 42, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(139, 92, 246, 0.2);
    animation: float 3s ease-in-out infinite;
    z-index: 10;
}

.floating-tag i { color: var(--purple-light); }

.tag-top {
    top: 30px;
    left: -30px;
}

.tag-bottom {
    bottom: 40px;
    right: -30px;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ============ STATS BAR ============ */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding: 40px 6%;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 40px 6%;
    border-radius: 20px;
    position: relative;
    z-index: 1;
}

.stat {
    text-align: center;
    padding: 10px 0;
    border-right: 1px solid var(--border);
}

.stat:last-child { border-right: none; }

.stat h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.stat p {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ============ SECTION BASE ============ */
.section {
    padding: 90px 6%;
    position: relative;
    z-index: 1;
}

.eyebrow {
    font-size: 0.7rem;
    letter-spacing: 4px;
    color: var(--purple-light);
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.section-desc {
    text-align: center;
    color: var(--text-mid);
    max-width: 620px;
    margin: 0 auto 60px;
    font-size: 0.95rem;
}

/* ============ REVEAL ANIMATION ============ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============ ABOUT ============ */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.about-text p {
    color: var(--text-mid);
    font-size: 0.95rem;
    line-height: 1.9;
    margin-bottom: 18px;
}

.about-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.mini-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 22px;
    border-radius: 12px;
    transition: all 0.3s;
}

.mini-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.15);
}

.mini-card i {
    color: var(--purple-light);
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.mini-card h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: var(--text);
}

.mini-card p {
    font-size: 0.78rem;
    color: var(--text-light);
}

/* ============ SERVICES ============ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 30px 24px;
    border-radius: 16px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--purple), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15);
}

.service-card:hover::before { opacity: 1; }

.service-icon {
    width: 44px;
    height: 44px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple-light);
    font-size: 1rem;
    margin-bottom: 18px;
}

.service-card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--text);
    font-weight: 600;
}

.service-card p {
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ============ WORK ============ */
.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.work-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s;
    cursor: pointer;
}

.work-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: 0 25px 50px rgba(139, 92, 246, 0.25);
}

.work-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    overflow: hidden;
}

.work-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(10, 6, 32, 0.9));
}

.work-image i { position: relative; z-index: 1; }

.work-info {
    padding: 22px;
}

.work-cat {
    font-size: 0.68rem;
    color: var(--purple-light);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.work-info h3 {
    font-size: 1.05rem;
    margin: 8px 0 10px;
    color: var(--text);
    font-weight: 600;
}

.work-tags {
    font-size: 0.78rem;
    color: var(--text-light);
}

/* ============ EXPERIENCE ============ */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--purple), rgba(139, 92, 246, 0.1));
}

.tl-item {
    position: relative;
    margin-bottom: 35px;
}

.tl-dot {
    position: absolute;
    left: -38px;
    top: 12px;
    width: 16px;
    height: 16px;
    background: var(--purple);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2), 0 0 20px rgba(139, 92, 246, 0.5);
}

.tl-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 28px;
    border-radius: 14px;
    transition: all 0.3s;
}

.tl-content:hover {
    border-color: var(--border-hover);
    transform: translateX(6px);
}

.tl-date {
    display: inline-block;
    background: rgba(139, 92, 246, 0.15);
    color: var(--purple-light);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.tl-content h3 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 5px;
    font-weight: 600;
}

.tl-company {
    color: var(--purple-light);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.tl-content p {
    color: var(--text-mid);
    font-size: 0.88rem;
    line-height: 1.8;
    margin-bottom: 8px;
}

.tl-tech {
    color: var(--text-light) !important;
    font-size: 0.78rem !important;
    font-style: italic;
}

/* ============ CONTACT ============ */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 28px 22px;
    border-radius: 14px;
    text-align: center;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.contact-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
    background: var(--bg-card-2);
}

.contact-card i {
    font-size: 1.4rem;
    color: var(--purple-light);
    margin-bottom: 8px;
}

.contact-card span {
    font-size: 0.7rem;
    color: var(--text-light);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.contact-card strong {
    font-size: 0.85rem;
    color: var(--text);
    font-weight: 500;
    word-break: break-word;
}

/* ============ FOOTER ============ */
footer {
    text-align: center;
    padding: 40px 6%;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

/* ============ BACK TO TOP ============ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--purple);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    z-index: 997;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s;
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.5);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--purple-dark);
    transform: translateY(-4px);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .work-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-bar { grid-template-columns: repeat(3, 1fr); }
    .stat:nth-child(3) { border-right: none; }
    .stat:nth-child(4),
    .stat:nth-child(5) { border-top: 1px solid var(--border); padding-top: 20px; }
}

@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-btn { display: none; }
    .menu-toggle { display: flex; align-items: center; justify-content: center; }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 6%;
    }

    .hero h1 { font-size: 2.5rem; }

    .hero-desc { margin: 0 auto 30px; }

    .hero-actions { justify-content: center; }

    .socials { justify-content: center; }

    .hero-stats-inline { justify-content: center; }

    .image-frame {
        width: 300px;
        height: 300px;
    }

    .image-frame::before { inset: -8px; }
    .image-frame::after { inset: -20px; }

    .tag-top { left: -10px; top: 10px; }
    .tag-bottom { right: -10px; bottom: 20px; }

    .floating-tag {
        font-size: 0.65rem;
        padding: 8px 12px;
    }

    .about-grid { grid-template-columns: 1fr; gap: 40px; }

    .stats-bar { grid-template-columns: repeat(2, 1fr); }

    .stat { border-right: none !important; }

    .section-title { font-size: 2rem; }
}

@media (max-width: 600px) {
    .hero h1 { font-size: 2rem; letter-spacing: -1px; }

    .services-grid,
    .work-grid,
    .contact-grid { grid-template-columns: 1fr; }

    .section-title { font-size: 1.7rem; }

    .navbar { padding: 16px 5%; }
    .logo { font-size: 1rem; }

    .image-frame {
        width: 240px;
        height: 240px;
    }

    .floating-tag {
        font-size: 0.6rem;
        padding: 6px 10px;
    }

    .tag-top { left: 0; }
    .tag-bottom { right: 0; }
}