/* Color Palette Variables */
:root {
    --primary: #2A363B;
    --secondary: #E84A5F;
    --tertiary: #99B898;
    --contrast1: #FF847C;
    --contrast2: #FECEA8;
    --white: #FFFFFF;
    --black: #000000;
    --shadow: rgba(42, 54, 59, 0.1);
    --shadow-hover: rgba(42, 54, 59, 0.2);
    --cursor-x: 0px;
    --cursor-y: 0px;
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

html {
    scroll-behavior: smooth;
    overflow: hidden;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--primary);
    color: var(--white);
    overflow: hidden;
    position: relative;
    height: 100vh;
    width: 100vw;
    cursor: none;
}

/* Hide custom cursor on mobile/tablet devices */
@media (max-width: 768px) {
    body {
        cursor: auto !important;
    }
    
    body::before,
    body::after {
        display: none !important;
    }
}

/* Page Slider Wrapper */
.page-slider-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 500vw;
    height: 100vh;
    display: flex;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.page-slider-wrapper.slide-to-about {
    transform: translateX(-100vw);
}

.page-slider-wrapper.slide-to-portfolio {
    transform: translateX(-200vw);
}

.page-slider-wrapper.slide-to-whylogicloop {
    transform: translateX(-300vw);
}

.page-slider-wrapper.slide-to-contact {
    transform: translateX(-400vw);
}

.page-slide {
    width: 100vw;
    height: 100vh;
    flex-shrink: 0;
    position: relative;
}

/* Custom Cursor - Triangle Arrow */
body::before {
    content: '';
    position: fixed;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 14px solid var(--contrast2);
    pointer-events: none;
    z-index: 10000;
    opacity: 0;
    left: var(--cursor-x);
    top: var(--cursor-y);
    transform: translate(-50%, -50%) rotate(-45deg);
    filter: drop-shadow(0 0 8px rgba(254, 206, 168, 0.6));
    transition: opacity 0.3s ease;
}

body::after {
    content: '';
    position: fixed;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 20px solid transparent;
    border-bottom-color: var(--contrast2);
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    left: var(--cursor-x);
    top: var(--cursor-y);
    transform: translate(-50%, -50%) rotate(-45deg);
    transition: opacity 0.3s ease;
}

/* Show cursor when mouse is active */
body.has-cursor::before {
    opacity: 0.9;
}

body.has-cursor::after {
    opacity: 0.3;
}

/* Hide default cursor on all elements */
*, *::before, *::after {
    cursor: none !important;
}

/* Background Canvas */
#backgroundCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero-section {
    position: relative;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    z-index: 1;
}

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

.hero-logo {
    max-width: 400px;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0;
    padding: 0;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    transition: transform 0.3s ease;
}

.hero-logo:hover {
    transform: scale(1.08) rotate(3deg);
}

.hero-title {
    font-size: 3.6rem;
    width: 100%;
    text-wrap: wrap;
    font-weight: 800;
    line-height: 1.2;
    margin-top: -5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--tertiary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--contrast2);
    margin-bottom: 3rem;
    line-height: 1.6;
    letter-spacing: 0.5px;
}

.hero-cta {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    background: linear-gradient(135deg, var(--secondary) 0%, var(--contrast1) 100%);
    border: none;
    border-radius: 50px;
    cursor: none !important;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
    position: relative;
    left: 0;
    transition: left 0.3s ease-out;
}

.hero-cta:hover {
    left: 5px;
}

.hero-cta:active {
    left: 2px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-text {
    font-size: 0.9rem;
    color: var(--tertiary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.scroll-arrow {
    width: 2px;
    height: 50px;
    background: linear-gradient(180deg, var(--tertiary) 0%, transparent 100%);
    position: relative;
    animation: scrollBounce 2s infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--tertiary);
    border-bottom: 2px solid var(--tertiary);
    transform: rotate(45deg);
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

/* Animations */
.animate-in {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.animate-in-delay {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.animate-in-delay-2 {
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed !important;
    bottom: 2rem !important;
    right: 9.5rem !important;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: whatsappBounce 2s infinite;
    text-decoration: none;
}

.whatsapp-button:hover {
    transform: scale(1.1) rotate(15deg) !important;
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.5);
    animation-play-state: paused;
}

.whatsapp-button:hover .whatsapp-tooltip {
    opacity: 1;
    right: 75px;
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
    color: var(--white);
}

.whatsapp-tooltip {
    position: absolute;
    right: 60px;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.95) 0%, rgba(18, 140, 126, 0.95) 100%);
    color: var(--white);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    animation: tooltipPulse 8s infinite;
}

@keyframes tooltipPulse {
    0%, 90%, 100% {
        opacity: 0;
        right: 60px;
    }
    10%, 80% {
        opacity: 1;
        right: 75px;
    }
}

@keyframes whatsappBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}
/* Navigation Arrows */
.nav-arrows {
    position: fixed !important;
    bottom: 2rem !important;
    right: 2rem !important;
    display: flex;
    gap: 0.75rem;
    z-index: 1000;
}

.nav-arrow {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--contrast2) 0%, var(--contrast1) 100%);
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(254, 206, 168, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-arrow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.nav-arrow:hover::before {
    width: 100%;
    height: 100%;
}

.nav-arrow:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(254, 206, 168, 0.6);
}

.nav-arrow:active {
    transform: translateY(-1px) scale(0.98);
}

.nav-arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(254, 206, 168, 0.2);
}

.arrow-icon {
    width: 28px;
    height: 28px;
    color: var(--primary);
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.nav-arrow:hover .arrow-icon {
    transform: scale(1.1);
}

.nav-arrow-left:hover .arrow-icon {
    transform: translateX(-2px) scale(1.1);
}

.nav-arrow-right:hover .arrow-icon {
    transform: translateX(2px) scale(1.1);
}

/* Responsive Navigation Arrows */
@media (max-width: 768px) {
    .nav-arrows {
        top: 1.5rem !important;
        bottom: auto !important;
        right: 1.5rem !important;
        gap: 0.5rem;
    }
    
    .nav-arrow {
        width: 45px;
        height: 45px;
    }
    
    .arrow-icon {
        width: 24px;
        height: 24px;
    }
    
    .whatsapp-button {
        left: 0.5rem !important;
        right: auto !important;
        bottom: 1rem !important;
        top: auto !important;
        position: fixed !important;
    }
    
    .whatsapp-tooltip {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .nav-arrows {
        top: 1.25rem !important;
        bottom: auto !important;
        right: 1.25rem !important;
        gap: 0.4rem;
    }
    
    .nav-arrow {
        width: 40px;
        height: 40px;
    }
    
    .arrow-icon {
        width: 22px;
        height: 22px;
    }
    
    .whatsapp-button {
        width: 50px;
        height: 50px;
        left: 0.5rem !important;
        right: auto !important;
        bottom: 1rem !important;
        top: auto !important;
    }
    
    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }
    
    .whatsapp-tooltip {
        display: none !important;
    }
}
/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-drawer {
        width: 50px;
    }
    
    .nav-tooltip {
        display: none;
    }
    
    .hero-section {
        padding: 1.5rem 1rem 1.5rem 55px !important;
        padding-right: calc(1rem + 20px) !important;
    }
    
    .hero-content {
        max-width: 600px;
        margin-left: -30px;
    }
    
    .hero-logo {
        max-width: 288px !important;
        max-height: 144px !important;
    }
    
    h1.hero-title,
    .hero-title {
        font-size: 2.592rem !important;
        letter-spacing: -0.5px !important;
        margin-top: -2rem !important;
        max-width: 90% !important;
        word-wrap: break-word !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .hero-subtitle {
        font-size: 1.188rem !important;
        margin-bottom: 2rem !important;
        max-width: 70% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .hero-cta {
        padding: 0.72rem 1.8rem !important;
        font-size: 0.9504rem !important;
    }

    .whatsapp-button {
        left: 0.5rem !important;
        right: auto !important;
        top: calc(50vh + 180px) !important;
        bottom: auto !important;
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-tooltip {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 1rem 0.5rem 1rem 70px !important;
        padding-right: calc(0.5rem + 5px) !important;
    }
    
    .hero-content {
        max-width: 400px;
        margin-left: -30px;
    }
    
    .hero-logo {
        max-width: 216px !important;
        max-height: 108px !important;
    }
    
    h1.hero-title,
    .hero-title {
        font-size: 2.88rem !important;
        margin-top: -1.5rem !important;
        max-width: 85% !important;
        word-wrap: break-word !important;
        line-height: 1.1 !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .hero-subtitle {
        font-size: 0.9504rem !important;
        margin-bottom: 1.5rem !important;
        max-width: 65% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .hero-cta {
        padding: 0.6rem 1.44rem !important;
        font-size: 0.864rem !important;
    }

    .whatsapp-button {
        width: 50px;
        height: 50px;
        left: 0.5rem !important;
        right: auto !important;
        bottom: 1rem !important;
        top: auto !important;
    }
    
    .whatsapp-tooltip {
        display: none !important;
    }

    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .nav-arrows {
        top: 1.5rem !important;
        bottom: auto !important;
        right: 1.5rem !important;
    }
    
    .whatsapp-button {
        left: 0.75rem !important;
        right: auto !important;
        bottom: 1rem !important;
        top: auto !important;
    }
    
    .whatsapp-tooltip {
        display: none !important;
    }
}

/* Large Desktop */
@media (min-width: 1920px) {
    .hero-title {
        font-size: 5.5rem;
    }

    .hero-subtitle {
        font-size: 1.8rem;
    }
}

/* ===== USER LOGIN ICON - TOP LEFT CORNER ===== */
.user-login-icon {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 1001;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-icon-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        rgba(42, 54, 59, 0.85) 0%, 
        rgba(53, 68, 74, 0.75) 50%,
        rgba(42, 54, 59, 0.65) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 50%;
    border: 1px solid rgba(254, 206, 168, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
                0 0 30px rgba(254, 206, 168, 0.1);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
}

.user-icon-svg {
    width: 24px;
    height: 24px;
    color: var(--contrast2);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.user-icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(254, 206, 168, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.user-icon-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border: 2px solid rgba(254, 206, 168, 0.4);
    border-radius: 50%;
    opacity: 0;
    animation: none;
    z-index: 0;
}

.user-login-icon:hover .user-icon-wrapper {
    transform: scale(1.1);
    border-color: rgba(254, 206, 168, 0.6);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4),
                0 0 40px rgba(254, 206, 168, 0.25);
}

.user-login-icon:hover .user-icon-svg {
    color: #fff;
    transform: scale(1.1);
}

.user-login-icon:hover .user-icon-glow {
    opacity: 1;
}

.user-login-icon:hover .user-icon-ring {
    opacity: 1;
    animation: userRingPulse 1.5s ease-out infinite;
}

@keyframes userRingPulse {
    0% {
        width: 48px;
        height: 48px;
        opacity: 0.6;
    }
    100% {
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}

.user-tooltip {
    position: absolute;
    left: 60px;
    background: rgba(42, 54, 59, 0.95);
    color: var(--contrast2);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(254, 206, 168, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: translateX(-10px);
}

.user-login-icon:hover .user-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* User Icon Responsive */
@media (max-width: 768px) {
    .user-login-icon {
        top: 1rem;
        left: 1rem;
        right: auto;
    }
    
    .user-icon-wrapper {
        width: 40px;
        height: 40px;
    }
    
    .user-icon-svg {
        width: 20px;
        height: 20px;
    }
    
    .user-icon-ring {
        width: 40px;
        height: 40px;
    }
    
    .user-tooltip {
        display: none;
    }
    
    @keyframes userRingPulse {
        0% {
            width: 40px;
            height: 40px;
            opacity: 0.6;
        }
        100% {
            width: 65px;
            height: 65px;
            opacity: 0;
        }
    }
}

@media (max-width: 480px) {
    .user-login-icon {
        top: 0.75rem;
        left: 0.75rem;
        right: auto;
    }
    
    .user-icon-wrapper {
        width: 36px;
        height: 36px;
    }
    
    .user-icon-svg {
        width: 18px;
        height: 18px;
    }
}