/* =========================================
   VARIABLES & GLOBAL STYLES
   ========================================= */
   :root {
    --bg-color: #06070a;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    
    /* Brand Colors (Purple & Blue Gradient based on logo) */
    --primary-purple: #a855f7;
    --primary-blue: #3b82f6;
    
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.06);
    
    --font-primary: 'Outfit', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Hide default cursor */
}

/* =========================================
   CUSTOM CURSOR
   ========================================= */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-purple);
    box-shadow: 0 0 10px var(--primary-purple);
}
.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(59, 130, 246, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}
.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}
.cursor-outline.hover {
    width: 60px;
    height: 60px;
    background-color: rgba(168, 85, 247, 0.1);
    border-color: var(--primary-purple);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* =========================================
   UTILITIES
   ========================================= */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-medium);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-blue));
    color: #fff;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    backdrop-filter: blur(10px);
}

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

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.text-center {
    text-align: center;
}

/* =========================================
   BACKGROUND GLOW
   ========================================= */
.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

.glow-purple {
    top: -100px;
    left: -100px;
    background: var(--primary-purple);
}

.glow-blue {
    bottom: -100px;
    right: -100px;
    background: var(--primary-blue);
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: var(--transition-medium);
    padding: 1.5rem 0;
}

.header.scrolled {
    padding: 1rem 0;
    background: rgba(6, 7, 10, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-i {
    text-transform: lowercase;
}

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
}

.hero-content {
    max-width: 800px;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--primary-purple);
}

.hero-title {
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.8;
    min-height: 60px; /* Prevents layout shift during typing */
}

/* Typing effect cursor */
#typing-text::after {
    content: '|';
    color: var(--primary-purple);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

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

/* =========================================
   SERVICES SECTION
   ========================================= */
.services {
    padding: 8rem 0;
}

.section-header {
    margin-bottom: 4rem;
    max-width: 600px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    transition: var(--transition-medium);
    backdrop-filter: blur(10px);
}

.service-card:hover {
    transform: translateY(-5px);
    background: var(--glass-hover);
    border-color: rgba(168, 85, 247, 0.3);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.case-study-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-blue);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
    text-decoration: none;
}

.case-study-link:hover {
    color: var(--primary-purple);
    gap: 0.75rem;
}


/* =========================================
   PORTFOLIO SECTION
   ========================================= */
.portfolio {
    padding: 8rem 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-card {
    display: block;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-medium);
}

.portfolio-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.3);
}

.portfolio-image-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    background: #0a0e17;
    overflow: hidden;
    transform-style: preserve-3d;
}

.portfolio-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(20px);
}

.portfolio-card:hover .portfolio-thumbnail {
    transform: scale(1.1) translateZ(20px);
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--glass-border);
    transition: var(--transition-medium);
}

.portfolio-card:hover .portfolio-placeholder {
    color: var(--primary-blue);
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 7, 10, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-medium);
    z-index: 2;
    transform: translateZ(40px);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay span {
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transform: translateY(20px);
    transition: var(--transition-medium);
}

.portfolio-card:hover .portfolio-overlay span {
    transform: translateY(0);
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.portfolio-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact {
    padding: 8rem 0;
}

.contact-box {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(59, 130, 246, 0.1));
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 4rem;
    text-align: center;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.contact-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-purple), transparent);
}

.contact-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-content p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.contact-methods {
    display: inline-flex;
    justify-content: center;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1rem 2rem;
    border-radius: 9999px;
    transition: var(--transition-medium);
    text-align: left;
}

.contact-method:hover {
    background: var(--glass-hover);
    border-color: rgba(168, 85, 247, 0.5);
    transform: translateY(-3px);
}

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.method-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}

.method-value {
    display: block;
    font-weight: 600;
    font-size: 1.2rem;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    border-top: 1px solid var(--glass-border);
    padding-top: 4rem;
    background: rgba(6, 7, 10, 0.5);
}

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

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1rem;
    font-size: 0.95rem;
}

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

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

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

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================================
   ZERO GRAVITY EASTER EGG
   ========================================= */
.gravity-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-blue));
    border: none;
    color: white;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gravity-toggle:hover {
    transform: scale(1.1) rotate(180deg);
}

body.physics-active {
    overflow: hidden !important;
}

body.physics-active .service-card, 
body.physics-active .portfolio-card {
    transition: none !important;
    margin: 0 !important;
    cursor: grab !important;
}

body.physics-active .service-card:active, 
body.physics-active .portfolio-card:active {
    cursor: grabbing !important;
}

/* =========================================
   WHATSAPP BOT WIDGET
   ========================================= */
.wa-bot-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.wa-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border: none;
    color: white;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wa-toggle-btn:hover {
    transform: scale(1.1);
}

.wa-chat-window {
    width: 320px;
    background: var(--bg-color);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    transform-origin: bottom left;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wa-chat-window.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: all;
}

.wa-chat-header {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-blue));
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wa-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.wa-header-info i {
    font-size: 1.5rem;
    background: rgba(255,255,255,0.2);
    padding: 0.5rem;
    border-radius: 50%;
}

.wa-header-info h4 {
    font-size: 1rem;
    font-weight: 600;
}

.wa-header-info p {
    font-size: 0.75rem;
    opacity: 0.8;
}

.wa-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s;
}
.wa-close-btn:hover {
    transform: scale(1.2);
}

.wa-chat-body {
    padding: 1.5rem;
    background: rgba(6, 7, 10, 0.95);
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.wa-message {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0.75rem 1rem;
    border-radius: 15px;
    border-bottom-left-radius: 0;
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.4;
    max-width: 90%;
}

.wa-chat-footer {
    display: flex;
    padding: 0.75rem;
    background: var(--glass-bg);
    border-top: 1px solid var(--glass-border);
    gap: 0.5rem;
}

.wa-chat-footer input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-color);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    padding: 0.5rem;
}

.wa-chat-footer button {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-blue));
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.2s;
}
.wa-chat-footer button:hover {
    transform: scale(1.1);
}

/* =========================================
   ANIMATIONS & REVEAL EFFECTS
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(6, 7, 10, 0.98);
        backdrop-filter: blur(20px);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition-medium);
        border-left: 1px solid var(--glass-border);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .nav-link {
        font-size: 1.5rem;
    }

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

    .contact-box {
        padding: 2.5rem 1.5rem;
    }

    .contact-method {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
}
