/* RESET & VARIABLES */
:root {
    --bg-color: #050505;
    --bg-secondary: #0a0a0a;
    --bg-card: rgba(20, 20, 20, 0.6);
    --text-primary: #FFFFFF;
    --text-secondary: #A1A1AA;
    --gold: #FFD700;
    --gold-dim: #998100;
    --gold-gradient: linear-gradient(135deg, #FFD700 0%, #FDB931 100%);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.03);

    /* Typography */
    --font-main: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;

    /* Spacing */
    --section-padding: 120px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Hide default cursor */
}

/* CUSTOM CURSOR */
.custom-cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s;
    mix-blend-mode: difference;
}

.custom-cursor-follower {
    position: fixed;
    width: 30px;
    height: 30px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.2s, background 0.2s;
}

.custom-cursor-follower.active {
    transform: scale(2);
    background: rgba(255, 215, 0, 0.1);
    border-color: transparent;
}

html {
    scroll-behavior: smooth;
}

/* ANIMATIONS */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.text-gradient {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.section-desc {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 5rem;
    color: var(--text-secondary);
    font-size: 1.25rem;
    font-weight: 300;
}

/* UTILITIES */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 36px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.btn-gold {
    background: var(--gold);
    color: #000;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.btn-gold:hover::before {
    left: 100%;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--gold);
    background: rgba(255, 215, 0, 0.05);
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.03em;
}

.logo span {
    color: var(--gold);
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* HERO SECTION */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.05) 0%, rgba(5, 5, 5, 0) 70%);
    z-index: 0;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1000px;
}

.tagline {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 100px;
    color: var(--gold);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1.05;
    margin-bottom: 24px;
}

.hero p {
    font-size: 1.35rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
}

/* BENTO GRID (SERVICES) */
.bento-section {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, minmax(300px, auto));
    gap: 24px;
}

.bento-item {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.bento-item:hover {
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-5px);
}

.bento-item.large {
    grid-column: span 2;
}

.bento-item.tall {
    grid-row: span 2;
}

.bento-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
    display: block;
}

.bento-item h3 {
    font-size: 1.75rem;
    margin-bottom: 16px;
}

.bento-item p {
    color: var(--text-secondary);
}

/* STATS / TRUST */
.stats-section {
    padding: 80px 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--gold);
    display: block;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
}

/* MARQUEE */
.marquee-section {
    padding: 40px 0;
    background: #000;
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
    position: relative;
}

.marquee-content {
    display: flex;
    gap: 60px;
    animation: scroll 20s linear infinite;
    width: max-content;
}

.marquee-item {
    color: var(--text-secondary);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.6;
    white-space: nowrap;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* METHODOLOGY (TIMELINE) */
.methodology-section {
    padding: var(--section-padding) 0;
    background: #000;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    transform: translateX(-50%);
}

.timeline-step {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 80px;
    position: relative;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.timeline-content {
    width: 45%;
    background: var(--bg-card);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    position: relative;
}

.timeline-step:nth-child(even) .timeline-content {
    margin-left: auto;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    width: 20px;
    height: 20px;
    background: var(--gold);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px var(--gold);
}

.timeline-number {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 215, 0, 0.1);
    position: absolute;
    top: -20px;
    right: 20px;
}

/* COMPARISON TABLE */
.comparison-section {
    padding: var(--section-padding) 0;
    background: #050505;
}

.comparison-table {
    width: 100%;
    max-width: 900px;
    margin: 50px auto 0;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.comparison-table th,
.comparison-table td {
    padding: 24px;
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
}

.comparison-table th {
    font-size: 1.25rem;
    font-family: var(--font-display);
}

.bg-gold-glass {
    background: rgba(255, 215, 0, 0.1);
    color: var(--gold);
}

.check {
    color: #00ff00;
}

.cross {
    color: #ff3333;
}

/* FOOTER */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--glass-border);
    background: #020202;
    text-align: center;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 24px;
    display: inline-block;
    color: var(--text-primary);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .section-title {
        font-size: 3rem;
    }

    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .bento-item.large,
    .bento-item.tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .stats-grid {
        flex-direction: column;
        gap: 40px;
    }

    .hero h1 {
        font-size: 2.75rem;
    }

    /* TIMELINE MOBILE */
    .timeline {
        margin-top: 30px;
        /* Reduced from 60px */
    }

    .timeline::before {
        display: none;
    }

    .timeline-step {
        flex-direction: column;
        align-items: center;
        margin-left: 0;
        margin-bottom: 20px;
        /* Further reduced from 30px */
        text-align: center;
    }

    .timeline-content {
        width: 100%;
        margin-left: 0 !important;
        padding: 24px;
        /* Slightly compacted padding inside card */
        border: 1px solid rgba(255, 215, 0, 0.1);
    }

    /* Subtle arrow connector between steps */
    .timeline-step:not(:last-child)::after {
        content: '↓';
        display: block;
        color: var(--gold);
        font-size: 1.5rem;
        margin-top: 10px;
        opacity: 0.5;
    }

    .timeline-marker {
        display: none;
    }

    /* COMPARISON TABLE MOBILE */
    .comparison-section {
        overflow-x: auto;
    }

    .comparison-table {
        min-width: 600px;
        /* Force scroll */
    }

    /* GENERAL MOBILE TWEAKS */
    .section-padding {
        padding: 40px 0;
        /* Reduced from 60px */
    }

    .section-title {
        font-size: 2rem;
        /* Slightly smaller for mobile context */
        margin-bottom: 1rem;
    }

    .section-desc {
        margin-bottom: 3rem;
        /* Reduced from 5rem */
    }
}

/* PORTFOLIO OPTIMIZATION */
.portfolio-card {
    padding: 0 !important;
    border: none !important;
    overflow: hidden;
    position: relative;
    /* Changed to 16/9 to better fit standard screenshots */
    aspect-ratio: 16/9;
    display: block;
    text-decoration: none;
    border-radius: 12px;
    /* Added rounded corners for premium feel */
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-img {
    transform: scale(1.05);
    /* Subtle zoom on hover */
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 1), transparent);
    z-index: 2;
}

.portfolio-overlay h3 {
    color: white;
    margin-bottom: 5px;
    font-size: 1.5rem;
}

.portfolio-overlay p {
    color: var(--gold);
    font-weight: 500;
    margin: 0;
}

/* MOBILE NAVIGATION */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: #fff;
}

/* END MOBILE TWEAKS */

/* TABLET & MOBILE MEDIA QUERY UPDATE */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        display: flex;
        /* Force flex display to override previous display: none */
        position: fixed;
        left: -100%;
        top: 0;
        gap: 0;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.95);
        width: 100%;
        height: 100vh;
        /* Full viewport height */
        text-align: center;
        transition: 0.3s;
        backdrop-filter: blur(10px);
        justify-content: center;
        align-items: center;
    }

    .nav-links li {
        margin: 16px 0;
    }

    .nav-links.active {
        left: 0;
    }

    .btn-gold {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}

/* FLOAT BUTTON PREMIUM */
.float-btn {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    background: transparent !important;
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    z-index: 99999 !important;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.float-btn:hover {
    transform: scale(1.05) !important;
}

.float-btn img {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    object-fit: contain !important;
    display: block !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-sizing: border-box !important;
}

/* Mobile Adjustments for WhatsApp Button */
@media (max-width: 768px) {
    .float-btn {
        bottom: 15px !important;
        right: 15px !important;
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        min-height: 50px !important;
        max-width: 50px !important;
        max-height: 50px !important;
    }

    .float-btn img {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        min-height: 50px !important;
        max-width: 50px !important;
        max-height: 50px !important;
    }
}