/* =====================================================
   MARQUESS.TTT - Premium Link in Bio
   Premium Tattoo Artist Landing Page
   ===================================================== */

/* CSS Variables - Design Tokens */
:root {
    /* Colors */
    --color-bg-primary: #0a0a0a;
    --color-bg-secondary: #111111;
    --color-bg-card: #161616;
    --color-bg-card-hover: #1a1a1a;

    --color-gold-primary: #d4af37;
    --color-gold-light: #f4d793;
    --color-gold-dark: #a8872b;

    --color-text-primary: #ffffff;
    --color-text-secondary: #b3b3b3;
    --color-text-muted: #666666;

    --color-accent: #d4af37;
    --color-accent-hover: #f4d793;

    /* Gradients */
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f4d793 50%, #d4af37 100%);
    --gradient-dark: linear-gradient(180deg, #0a0a0a 0%, #111111 100%);
    --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
    --gradient-glow: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.15) 0%, transparent 50%);

    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 4px 30px rgba(212, 175, 55, 0.3);
    --shadow-gold-intense: 0 0 60px rgba(212, 175, 55, 0.4);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.6;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    background: var(--gradient-dark);
}

.wave {
    position: absolute;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.01) 1px,
            transparent 2px,
            transparent 120px);
    animation: wave 25s linear infinite;
    opacity: 0.5;
}

.wave-1 {
    top: -50%;
    left: -50%;
    animation-duration: 30s;
}

.wave-2 {
    top: -50%;
    left: -50%;
    animation-duration: 25s;
    animation-direction: reverse;
    background: repeating-linear-gradient(45deg,
            transparent 0%,
            rgba(212, 175, 55, 0.02) 1px,
            transparent 2px,
            transparent 80px);
}

.wave-3 {
    top: -50%;
    left: -50%;
    animation-duration: 35s;
    background: repeating-linear-gradient(-45deg,
            transparent 0%,
            rgba(255, 255, 255, 0.01) 1px,
            transparent 2px,
            transparent 100px);
}

@keyframes wave {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Container */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: var(--space-lg);
    padding-bottom: var(--space-3xl);
    position: relative;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
    position: relative;
}

.hero-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: var(--gradient-glow);
    pointer-events: none;
    z-index: -1;
}

/* Logo */
.logo-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin-bottom: var(--space-lg);
}

.logo-ring {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-full);
    animation: pulse-ring 3s ease-in-out infinite;
}

.logo-ring-2 {
    top: -16px;
    left: -16px;
    right: -16px;
    bottom: -16px;
    border-color: rgba(212, 175, 55, 0.15);
    animation-delay: 0.5s;
}

@keyframes pulse-ring {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.02);
    }
}

.logo {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--color-gold-primary);
    box-shadow: var(--shadow-gold);
    transition: var(--transition-base);
}

.logo:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-gold-intense);
}

/* Brand Info */
.brand-info {
    text-align: center;
}

.brand-name {
    font-family: var(--font-body);
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.letter {
    display: inline-block;
    animation: letter-appear 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: calc(var(--i) * 0.05s);
    opacity: 0;
    transform: translateY(10px);
}

.letter.dot {
    color: var(--color-gold-primary);
    margin: 0 2px;
}

@keyframes letter-appear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tagline {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--color-text-secondary);
    font-style: italic;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    opacity: 0;
    animation: fade-in 0.8s ease forwards;
    animation-delay: 0.8s;
}

.fleur {
    font-style: normal;
    opacity: 0.8;
    font-size: 0.9rem;
}

@keyframes fade-in {
    to {
        opacity: 1;
    }
}

.hero-line {
    width: 60px;
    height: 1px;
    background: var(--gradient-gold);
    margin-top: var(--space-xl);
    opacity: 0.5;
}

/* CTA Section */
.cta-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-lg) 0;
    margin-bottom: var(--space-xl);
}

.cta-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    width: 100%;
    max-width: 320px;
    padding: var(--space-lg) var(--space-xl);
    background: var(--gradient-gold);
    border-radius: var(--radius-lg);
    color: #0a0a0a;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    overflow: hidden;
    transition: var(--transition-base);
    box-shadow: var(--shadow-gold);
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: var(--transition-slow);
}

.cta-button:hover .cta-bg {
    transform: translateX(100%);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold-intense);
}

.cta-button:active {
    transform: translateY(-1px);
}

.cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-text {
    position: relative;
    z-index: 1;
}

.cta-arrow {
    display: flex;
    align-items: center;
    transition: var(--transition-base);
}

.cta-button:hover .cta-arrow {
    transform: translateX(5px);
}

.cta-subtitle {
    margin-top: var(--space-md);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

/* Services Section */
.services-section {
    margin-bottom: var(--space-2xl);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold-primary);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-bottom: var(--space-md);
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.section-divider span:not(.diamond) {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold-primary), transparent);
}

.diamond {
    color: var(--color-gold-primary);
    font-size: 0.5rem;
}

/* Service Cards */
.services-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.service-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-base);
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-card);
    pointer-events: none;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: var(--shadow-lg);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    min-height: 280px;
    max-height: 450px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d0d0d;
}

.card-image {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: contain;
    object-position: center;
    transition: var(--transition-slow);
}

.service-card:hover .card-image {
    transform: scale(1.03);
}

.card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(10, 10, 10, 0.8) 100%);
    z-index: 1;
}

.card-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    padding: var(--space-xs) var(--space-sm);
    background: rgba(212, 175, 55, 0.9);
    color: #0a0a0a;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    z-index: 2;
    backdrop-filter: blur(10px);
}

.card-content {
    padding: var(--space-lg);
    position: relative;
    z-index: 2;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--color-text-primary);
}

.card-description {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.card-footer {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.card-tag {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: rgba(212, 175, 55, 0.1);
    color: var(--color-gold-primary);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Footer */
.footer {
    text-align: center;
    padding-top: var(--space-xl);
}

.footer-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.footer-line {
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-text-muted), transparent);
}

.footer-icon {
    font-size: 1rem;
    opacity: 0.6;
}

.footer-brand {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-xs);
}

.footer-tagline {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-style: italic;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-secondary);
    transition: var(--transition-base);
}

.social-link:hover {
    border-color: var(--color-gold-primary);
    color: var(--color-gold-primary);
    transform: translateY(-2px);
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

/* Scroll Reveal Animation */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    animation: reveal 0.6s ease forwards;
}

.service-card:nth-child(1) {
    animation-delay: 0.2s;
}

.service-card:nth-child(2) {
    animation-delay: 0.4s;
}

.service-card:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design - Tablet */
@media (min-width: 480px) {
    .container {
        padding: var(--space-xl);
    }

    .logo-container {
        width: 160px;
        height: 160px;
    }

    .logo {
        width: 160px;
        height: 160px;
    }

    .brand-name {
        font-size: 2.25rem;
    }

    .card-image-wrapper {
        min-height: 320px;
        max-height: 500px;
    }
}

/* Responsive Design - Desktop */
@media (min-width: 768px) {
    .container {
        max-width: 600px;
    }

    .services-grid {
        gap: var(--space-xl);
    }

    .card-image-wrapper {
        min-height: 380px;
        max-height: 550px;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Performance - Reduce animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Safe area for notched devices */
@supports (padding: max(0px)) {
    .container {
        padding-left: max(var(--space-lg), env(safe-area-inset-left));
        padding-right: max(var(--space-lg), env(safe-area-inset-right));
        padding-bottom: max(var(--space-3xl), env(safe-area-inset-bottom));
    }
}

/* Touch feedback for mobile */
@media (hover: none) {
    .cta-button:active {
        transform: scale(0.98);
    }

    .service-card:active {
        transform: scale(0.99);
    }
}