/* 
    ======================================
    Aasher Trading Company
    Core Stylesheet - Premium Redesign
    ======================================
*/

:root {
    /* Color Palette - Dark Luxury */
    --color-bg-base: #0A0A0A;
    --color-bg-alt: #121212;
    --color-bg-char: #1A1A1A;

    --color-text-main: #F5F5F0;
    --color-text-muted: #A0A0A0;

    --color-accent: #D4AF37;
    /* Muted Gold */
    --color-accent-hover: #F3E5AB;

    /* Typography */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacings */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Utilities */
    --radius-md: 12px;
    --radius-lg: 24px;
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

/* 
    CSS Reset & Base
*/
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: initial;
    /* Lenis handles scroll */
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-base);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prevent scrolling while loading */
body.loading {
    overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.1;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 
    Layout Utilities
*/
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

.relative {
    position: relative;
}

.dark-bg {
    background-color: var(--color-bg-base);
}

.char-bg {
    background-color: var(--color-bg-char);
}

.mt-2 {
    margin-top: var(--spacing-md);
}

.mt-4 {
    margin-top: var(--spacing-lg);
}

.mt-5 {
    margin-top: 5rem;
}

.mb-5 {
    margin-bottom: 5rem;
}

.text-center {
    text-align: center;
}

/* 
    Typography Utilities
*/
.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    color: var(--color-text-main);
}

.section-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: var(--color-accent);
    font-family: var(--font-body);
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: var(--spacing-md);
}

p {
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    color: var(--color-text-muted);
    font-weight: 300;
}

/* 
    Custom Cursor
*/
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: var(--color-accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
}

body:hover .cursor {
    opacity: 1;
}

.cursor.active {
    width: 60px;
    height: 60px;
    background-color: rgba(212, 175, 55, 0.1);
    mix-blend-mode: difference;
}

.cursor-follower.active {
    width: 0;
    height: 0;
    opacity: 0;
}

/* Hide cursor on mobile */
@media (hover: none) and (pointer: coarse) {

    .cursor,
    .cursor-follower {
        display: none;
    }
}

/* 
    Buttons
*/
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 100px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--color-text-main);
    color: var(--color-bg-base);
    border: none;
}

.btn-primary:hover {
    background-color: var(--color-accent);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-text-main);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* 
    Preloader
*/
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-bg-base);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.preloader-text {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 4rem);
    display: flex;
    gap: 1rem;
    overflow: hidden;
}

.preloader-text span {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px);
}

.preloader-progress {
    width: 0%;
    height: 2px;
    background-color: var(--color-accent);
    position: absolute;
    bottom: 0;
    left: 0;
}

/* 
    Navigation - Glassmorphism
*/
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

.navbar.hidden {
    transform: translateY(-100%);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    height: 55px;
    /* Increased size per user request */
    filter: brightness(0) invert(1);
    /* Invert logo for dark theme if needed */
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text-main);
    position: absolute;
    transition: var(--transition-smooth);
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    bottom: 0;
}

/* 
    Hero Section
*/
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    /* Offset for parallax */
    z-index: -1;
    background-color: var(--color-bg-base);
    overflow: hidden;
}

/* Abstract Background Glows */
.abstract-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    opacity: 0.6;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: float 10s ease-in-out infinite alternate;
}

.glow-2 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    bottom: -200px;
    left: -200px;
    animation: float 15s ease-in-out infinite alternate-reverse;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

.hero-floating-asset {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    z-index: 1;
    opacity: 0.2;
    /* Subdued background focus */
    pointer-events: none;
}

.hero-floating-asset img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.8));
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(10, 10, 10, 0.8) 0%,
            rgba(10, 10, 10, 0.4) 50%,
            rgba(10, 10, 10, 1) 100%);
}

.hero-content {
    text-align: center;
    z-index: 10;
    max-width: 1000px;
    padding: 0 5%;
}

.hero-subtitle {
    font-family: var(--font-body);
    color: var(--color-accent);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 7rem);
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.hero-title .line {
    overflow: hidden;
    padding-bottom: 0.1em;
}

.hero-title span {
    display: inline-block;
    transform: translateY(110%);
}

.hero-desc {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--color-text-main);
    font-style: italic;
    margin-bottom: 3rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards 3s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

.scroll-indicator span {
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

/* Base Reveal Utilities for GSAP */
.reveal-text {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

/* 
    Intro/About Section
*/
.auto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.intro-text p {
    margin-bottom: 1.5rem;
}

.image-reveal-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    aspect-ratio: 4/5;
}

.image-reveal {
    position: absolute;
    inset: 0;
    background-color: var(--color-bg-alt);
    z-index: 2;
    transform-origin: top;
}

.image-reveal-wrapper img {
    width: 100%;
    height: 120%;
    /* For parallax */
    object-fit: cover;
}

/* 
    Gallery Section (Horizontal)
*/
.horizontal-scroll-wrapper {
    overflow-x: hidden;
    width: 100%;
}

.horizontal-scroll-container {
    display: flex;
    gap: 3rem;
    padding: 0 5%;
    width: max-content;
}

.product-card {
    width: 400px;
    height: 500px;
    position: relative;
    border-radius: var(--radius-lg);
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.1s ease-out;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    /* 3D Context */
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Holographic Mouse Glow */
.product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y),
            rgba(212, 175, 55, 0.15),
            transparent 40%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(212, 175, 55, 0.1);
    z-index: 10;
}

.card-img-wrapper {
    width: 100%;
    height: 70%;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Allow child to pop out */
    transform-style: preserve-3d;
    z-index: 2;
}

.card-img-wrapper img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.8));
    /* Pop off the glass canvas */
    transform: translateZ(50px);
}

.product-card:hover .card-img-wrapper img {
    transform: translateZ(80px) scale(1.05);
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.9)) brightness(1.1);
}

.card-content {
    padding: 2rem;
    height: 30%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: translateZ(30px);
    z-index: 2;
}

.card-content h4 {
    font-size: 1.5rem;
    color: var(--color-text-main);
}

.arrow-link {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.arrow-link .arrow {
    transition: transform 0.3s ease;
}

.arrow-link:hover .arrow {
    transform: translateX(5px);
}

/* 
    Footer
*/
.footer {
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    height: 60px;
    /* Increased size */
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    font-family: var(--font-heading);
    color: var(--color-accent);
    font-size: 1.2rem;
}

.footer h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 1rem;
}

.footer a,
.footer p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.footer a:hover {
    color: var(--color-accent);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    background-color: var(--color-text-main);
    color: var(--color-bg-base);
}

.footer-bottom {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
}

/* 
    Responsive Adjustments
*/
@media (max-width: 1024px) {
    .auto-grid {
        gap: 3rem;
    }

    .product-card {
        width: 350px;
        height: 450px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-bg-base);
        flex-direction: column;
        padding: 2rem 0;
        gap: 2rem;
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-smooth);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        display: flex;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .auto-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        width: 300px;
        height: 400px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}