/*
Theme Name: HGI
Theme URI: https://www.hasglobali.com
Author: HGI
Author URI: https://www.hasglobali.com
Description: A premium single-page WordPress theme for HAS Global Investama - Enabling Platform & Investment. Features world-class animations, GSAP effects, and modern UI design.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hgi
Tags: one-page, custom-logo, custom-menu, featured-images, theme-options
Requires at least: 5.0
Tested up to: 6.5
Requires PHP: 7.4
*/

/* ============================================
   CSS VARIABLES & GLOBAL STYLES
   ============================================ */
:root {
    --gold: #C9A227;
    --gold-light: #E8D48A;
    --gold-dark: #A17F1A;
    --black: #0A0A0A;
    --black-light: #1A1A1A;
    --white: #FFFFFF;
    --white-off: #F5F5F5;
    --gray: #888888;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--black);
    color: var(--white);
    overflow-x: hidden;
    /* Default cursor - will be overridden by JS for desktop */
    cursor: auto;
}

/* Custom cursor only when JS enables it */
body.has-custom-cursor {
    cursor: none;
}

body.has-custom-cursor a,
body.has-custom-cursor button,
body.has-custom-cursor [role="button"],
body.has-custom-cursor input[type="submit"] {
    cursor: none;
}

/* Custom Cursor Elements - Hidden by default */
.cursor,
.cursor-follower {
    display: none;
    pointer-events: none;
    z-index: 99999;
}

body.has-custom-cursor .cursor {
    display: block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    position: fixed;
    transition: transform 0.15s ease, background-color 0.15s ease;
    transform: translate(-50%, -50%);
    will-change: left, top;
}

body.has-custom-cursor .cursor-follower {
    display: block;
    width: 8px;
    height: 8px;
    background-color: var(--gold);
    border-radius: 50%;
    position: fixed;
    transition: transform 0.08s ease;
    transform: translate(-50%, -50%);
    will-change: left, top;
}

body.has-custom-cursor .cursor.hover {
    transform: translate(-50%, -50%) scale(1.5);
    background-color: rgba(201, 162, 39, 0.2);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
    line-height: 1.8;
    color: var(--gray);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Styles */
section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    color: var(--white);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border: 2px solid var(--gold);
    background: transparent;
    color: var(--gold);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gold);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover {
    color: var(--black);
}

.btn:hover::before {
    left: 0;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gold);
    color: var(--black);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(201, 162, 39, 0.4);
}

/* Loading Screen */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

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

.loader-logo {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.95); }
}

/* Accessibility - Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--gold);
    color: var(--black);
    padding: 8px 16px;
    z-index: 100000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Touch device styles - ensure cursor is always visible */
@media (hover: none) and (pointer: coarse) {
    .cursor,
    .cursor-follower {
        display: none !important;
    }
    
    body,
    body.has-custom-cursor,
    body.has-custom-cursor a,
    body.has-custom-cursor button,
    body.has-custom-cursor [role="button"] {
        cursor: auto !important;
    }
}

/* No-JS fallback */
.no-js .loader {
    display: none;
}

.no-js .hero-badge,
.no-js .hero-title,
.no-js .hero-subtitle,
.no-js .hero-description,
.no-js .hero-cta {
    opacity: 1 !important;
    transform: none !important;
}

.no-js .typing-cursor {
    display: none !important;
}
