/* =========================================
   VARIABLES & SETUP
========================================= */
:root {
    --bg-dark: #ffffff;
    --bg-darker: #f5f5f5;
    --text-main: #000000;
    --text-muted: #555555;
    --brand-red: #e62020;
    --brand-green: #00a859;
    --font-heading: 'Anton', sans-serif;
    --font-body: 'Inter', sans-serif;
    --glass-bg: rgba(0, 0, 0, 0.03);
    --glass-border: rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Theme specific variables */
    --nav-scrolled: rgba(255, 255, 255, 0.9);
    --hero-bg: linear-gradient(135deg, #fafafa, #f0f0f0);
    --hero-overlay: linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0.8) 100%);
    --hero-shadow: rgba(255, 255, 255, 0.7);
    --form-bg: rgba(255, 255, 255, 0.6);
    --form-border: rgba(0, 0, 0, 0.05);
    --form-shadow-color: rgba(0, 0, 0, 0.1);
    --form-shadow-inset: rgba(255, 255, 255, 0.5);
    --input-bg: rgba(255, 255, 255, 0.4);
    --input-border: rgba(0, 0, 0, 0.1);
    --input-focus: rgba(255, 255, 255, 0.6);
    --label-bg: #ffffff;
    --btn-loading: #ccc;
    --card-bg: #ffffff;
    --card-img-bg: #f5f5f5;
    --card-img-grad: linear-gradient(to top, #ffffff, transparent);
    --card-icon: rgba(0, 0, 0, 0.05);
    --list-text: #555;
    --about-bg: #fdfdfd;
    --footer-bg: #ffffff;
    --footer-border: #eaeaea;
    --canvas-dot-rgb: 0, 0, 0;
}

[data-theme="dark"] {
    --bg-dark: #070707;
    --bg-darker: #000000;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --nav-scrolled: rgba(0, 0, 0, 0.9);
    --hero-bg: linear-gradient(135deg, #111, #000);
    --hero-overlay: linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.8) 100%);
    --hero-shadow: rgba(0, 0, 0, 0.7);
    --form-bg: rgba(15, 15, 15, 0.6);
    --form-border: rgba(255, 255, 255, 0.05);
    --form-shadow-color: rgba(0, 0, 0, 0.5);
    --form-shadow-inset: rgba(255, 255, 255, 0.1);
    --input-bg: rgba(0, 0, 0, 0.4);
    --input-border: rgba(255, 255, 255, 0.1);
    --input-focus: rgba(0, 0, 0, 0.6);
    --label-bg: #111;
    --btn-loading: #333;
    --card-bg: #0d0d0d;
    --card-img-bg: #1a1a1a;
    --card-img-grad: linear-gradient(to top, #0d0d0d, transparent);
    --card-icon: rgba(255, 255, 255, 0.05);
    --list-text: #ccc;
    --about-bg: #050505;
    --footer-bg: #000;
    --footer-border: #1a1a1a;
    --canvas-dot-rgb: 255, 255, 255;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Enhancements */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
}

.highlight-red {
    color: var(--brand-red);
}

.highlight-green {
    color: var(--brand-green);
}

.highlight-white {
    color: var(--text-main);
}


/* =========================================
   NAVBAR
========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 24px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: var(--transition);
}

.navbar.scrolled {
    background: var(--nav-scrolled);
    backdrop-filter: blur(10px);
    padding: 15px 5%;
    border-bottom: 1px solid var(--glass-border);
}

.logo h2 {
    font-size: 2rem;
    letter-spacing: -1px;
    line-height: 0.8;
}

.logo svg {
    display: block;
    max-width: 120px;
    height: auto;
    overflow: visible;
}

.logo-bars {
    color: #444;
    font-weight: 300;
    margin: 0 2px;
}

.logo-sub {
    font-family: var(--font-body);
    font-size: 0.6rem;
    letter-spacing: 8px;
    color: var(--text-muted);
    font-weight: 600;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    transition: transform 0.3s, opacity 0.3s;
    border-radius: 2px;
    transform-origin: left center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--brand-red);
}

.btn-outline {
    border: 1px solid var(--glass-border);
    padding: 10px 24px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 4px;
    background: var(--glass-bg);
    transition: var(--transition);
    white-space: nowrap;
}

.btn-outline:hover {
    background: var(--text-main);
    color: var(--bg-dark);
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 5% 60px;
    /* We will use an inline style or dynamically loaded image for the real background */
    background: var(--hero-bg);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--hero-overlay);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(5rem, 9vw, 8.5rem);
    line-height: 0.9;
    letter-spacing: -1px;
    margin-bottom: 24px;
    text-shadow: 2px 4px 20px var(--hero-shadow);
}

.hero-text p.brand-tagline {
    font-size: 1.3rem;
    color: var(--text-main);
    max-width: 90%;
    margin-bottom: 40px;
    font-weight: 300;
}

.stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--text-main);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--brand-red);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
}

/* =========================================
   LEAD FORM (Premium Glassmorphism)
========================================= */
.lead-form-container {
    background: var(--form-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--form-border);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 30px 60px var(--form-shadow-color), inset 0 1px 0 var(--form-shadow-inset);
    transition: box-shadow 0.4s, background 0.4s;
}

.form-header {
    margin-bottom: 30px;
}

.form-header h3 {
    font-size: 2.5rem;
    color: var(--text-main);
}

.form-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 8px;
}

.input-group {
    position: relative;
    margin-bottom: 24px;
}

.input-group input,
.input-group select {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    padding: 18px 16px;
    border-radius: 6px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.input-group input:focus,
.input-group select:focus {
    border-color: var(--brand-red);
    background: var(--input-focus);
}

.input-group label {
    position: absolute;
    top: 18px;
    left: 16px;
    color: #666;
    pointer-events: none;
    transition: var(--transition);
    font-size: 1rem;
}

/* Floating Label Animation */
.input-group input:focus~label,
.input-group input:not(:placeholder-shown)~label {
    top: -10px;
    left: 12px;
    font-size: 0.75rem;
    background: var(--label-bg);
    padding: 0 4px;
    color: var(--text-main);
}

.select-group select {
    appearance: none;
    cursor: pointer;
}

.select-group::after {
    content: '▼';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: var(--text-muted);
    pointer-events: none;
}

.submit-btn {
    width: 100%;
    background: var(--text-main);
    color: var(--bg-dark);
    border: none;
    padding: 18px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    background: var(--brand-red);
    color: var(--text-main);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(230, 32, 32, 0.3);
}

.submit-btn .btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.submit-btn.loading .btn-text {
    opacity: 0;
}

.submit-btn.loading .btn-loader {
    display: block;
}

.submit-btn.loading {
    pointer-events: none;
    background: var(--btn-loading);
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.form-message {
    margin-top: 15px;
    font-size: 0.9rem;
    text-align: center;
    display: none;
}

.form-message.success {
    color: var(--brand-green);
    display: block;
}

.form-message.error {
    color: var(--brand-red);
    display: block;
}

/* =========================================
   SERVICES SECTION
========================================= */
.services-section {
    padding: 120px 5%;
    background: var(--bg-darker);
}

.section-title {
    margin-bottom: 80px;
    text-align: center;
}

.section-title h2 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    color: var(--text-main);
    /* Darker outline or base */
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 10px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-image {
    height: 250px;
    background-color: var(--card-img-bg);
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--card-img-grad);
}

.card-content {
    padding: 40px 30px;
    position: relative;
}

.card-icon {
    position: absolute;
    top: -30px;
    right: 30px;
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--card-icon);
    line-height: 1;
}

.service-card h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.service-list {
    list-style: none;
}

.service-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--list-text);
}

.service-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--brand-red);
}

.card-image.bg-pr {
    background-image: url('assets/pr_services.png');
}

.card-image.bg-event {
    background-image: url('assets/event_organization.png');
}

.card-image.bg-other {
    background-image: url('assets/influencer_marketing.png');
}

.card-image.bg-oth {
    background-image: url('assets/media_production.png');
}


/* =========================================
   ABOUT US SECTION
========================================= */
.about-section {
    padding: 120px 5%;
    background: var(--about-bg);
    position: relative;
    transition: background 0.4s;
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h2 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 30px;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 25px;
    max-width: 90%;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
}

.stat-box h3 {
    font-size: 3.5rem;
    color: var(--text-main);
    line-height: 1;
}

.stat-box p {
    color: var(--brand-red);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin: 5px 0 0 0;
}

.about-image {
    position: relative;
    height: 600px;
    border-radius: 12px;
    overflow: hidden;
}

.about-image .img-wrapper {
    width: 100%;
    height: 100%;
    background-image: url('assets/hero-bg.png');
    /* Reusing high-quality asset */
    background-size: cover;
    background-position: left center;
    filter: grayscale(80%) contrast(1.2);
    transition: var(--transition);
}

.about-image:hover .img-wrapper {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.05);
}

/* =========================================
   FOOTER
========================================= */
footer {
    background: var(--footer-bg);
    padding: 80px 5% 30px;
    border-top: 1px solid var(--footer-border);
    transition: background 0.4s, border-top 0.4s;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto 60px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand h2 {
    font-size: 2.5rem;
    line-height: 1;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 10px;
}

.footer-contact h4 {
    color: var(--text-main);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-contact p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.footer-contact a {
    color: var(--brand-red);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--text-main);
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-social h4 {
    color: var(--text-main);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.footer-social a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--brand-red);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links h4 {
    color: var(--text-main);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--brand-red);
}

.footer-bottom {
    text-align: center;
    color: var(--list-text);
    font-size: 0.8rem;
    border-top: 1px solid var(--footer-border);
    padding-top: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* =========================================
   BACK TO TOP BUTTON
========================================= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--brand-red);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(214, 26, 33, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background-color 0.3s;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: #b31219;
    color: white;
}

/* =========================================
   CUSTOM CURSOR
========================================= */
body {
    cursor: none;
}

a,
button,
input,
select,
textarea,
.service-card,
.btn-outline,
.submit-btn {
    cursor: none !important;
}

.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--brand-red);
    transition: width 0.2s, height 0.2s, opacity 0.2s;
}

.cursor-outline {
    width: 36px;
    height: 36px;
    border: 2px solid rgba(230, 32, 32, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
}

.cursor-outline.hovering {
    width: 56px;
    height: 56px;
    background-color: rgba(230, 32, 32, 0.1);
    border-color: var(--brand-red);
}

.cursor-dot.hovering {
    opacity: 0;
}

/* Hide custom cursor on mobile/touch devices entirely */
@media (hover: none) and (pointer: coarse),
(max-width: 768px) {

    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }

    body,
    a,
    button,
    input,
    select,
    textarea,
    .service-card,
    .btn-outline,
    .submit-btn {
        cursor: auto !important;
    }
}

/* =========================================
   INTERACTIVE ELEMENTS (TILT & MAGNETIC)
========================================= */
.tilt-effect {
    transform-style: preserve-3d;
}

.magnetic-btn {
    will-change: transform;
    display: inline-block;
}

.service-card {
    transition: border-color 0.4s, box-shadow 0.4s;
}

.service-card:hover {
    transform: none;
    /* override the old hover transform to let GSAP handle it */
}

.lead-form-container {
    transition: box-shadow 0.4s;
}

/* =========================================
   MARQUEE SECTION
========================================= */
.marquee-section {
    background: var(--brand-red);
    color: white;
    padding: 24px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
}

.marquee-content {
    display: flex;
    white-space: nowrap;
}

.marquee-content h2 {
    font-size: 3rem;
    line-height: 1;
    margin: 0;
    padding-right: 40px;
    color: white;
}

.marquee-content .bullet {
    color: #ffaaaa;
    margin: 0 20px;
}

/* =========================================
   ANIMATIONS
========================================= */
.hidden {
    opacity: 0;
    transform: translateY(30px);
}

.show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    animation: fadeUp 1s ease-out forwards;
}

.slide-in-right {
    animation: slideInRight 1s ease-out forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

/* =========================================
   THEME TOGGLE
========================================= */
.theme-toggle-wrapper {
    display: flex;
    align-items: center;
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-main);
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.theme-toggle:hover {
    background: var(--glass-bg);
}

.sun-moon-icon {
    width: 24px;
    height: 24px;
    transform: rotate(-15deg);
    overflow: visible;
}

/* =========================================
   RESPONSIVE DESIGN
========================================= */
@media (max-width: 1024px) {

    .hero-content,
    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-text p {
        margin: 0 auto 40px;
    }

    .stats {
        justify-content: center;
        flex-wrap: wrap;
    }

    .stat-item h3 {
        font-size: 3rem;
    }

    .lead-form-container {
        margin: 0 auto;
        max-width: 500px;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: max(40px, calc(env(safe-area-inset-top) + 20px)) 5% 15px;
    }

    .logo {
        padding-top: 10px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: var(--bg-dark);
        gap: 40px;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.4s;
        z-index: 1000;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .nav-links li a {
        font-size: 1.5rem;
    }

    .nav-right {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .btn-outline {
        display: inline-block;
    }

    .about-image {
        height: 350px;
        margin-top: 20px;
    }

    .hero {
        padding-top: 150px;
    }

    .hero-text h1 {
        font-size: 3.5rem;
    }

    .about-section {
        padding: 80px 5%;
    }

    .about-text p {
        font-size: 1rem;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .about-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }
}