/* ===== Custom Styles for Smoke Gallery ===== */

:root {
    --color-charcoal-900: #0F1114;
    --color-charcoal-800: #1A1D23;
    --color-charcoal-700: #2A2D35;
    --color-charcoal-600: #3A3D45;
    --color-coral-500: #FF6B4A;
    --color-coral-400: #FF8566;
    --color-coral-300: #FFA088;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-charcoal-900);
    color: #ffffff;
    overflow-x: hidden;
}

/* ===== Geometric Background Shapes ===== */
.geo-shape {
    position: absolute;
    pointer-events: none;
    will-change: transform;
}

.geo-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 74, 0.06) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 74, 0.04) 0%, transparent 70%);
    bottom: 10%;
    left: -100px;
    animation: float-slow 25s ease-in-out infinite reverse;
}

.geo-square-1 {
    width: 200px;
    height: 200px;
    border: 2px solid rgba(255, 107, 74, 0.08);
    top: 40%;
    right: 5%;
    transform: rotate(45deg);
    animation: float-medium 15s ease-in-out infinite;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(255, 107, 74, 0.05);
    top: 60%;
    left: 8%;
    animation: float-medium 18s ease-in-out infinite reverse;
}

@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes float-medium {
    0%, 100% { transform: rotate(45deg) translate(0, 0); }
    50% { transform: rotate(45deg) translate(20px, -20px); }
}

/* ===== Scroll Reveal Animation ===== */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .geo-shape {
        animation: none;
    }
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-charcoal-900);
}
::-webkit-scrollbar-thumb {
    background: var(--color-charcoal-700);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-coral-500);
}

/* ===== Selection Color ===== */
::selection {
    background: var(--color-coral-500);
    color: white;
}

/* ===== Focus Styles ===== */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--color-coral-500);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Mobile Menu Transitions ===== */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-menu.open {
    max-height: 400px;
}

/* ===== Card Hover Effects ===== */
.group:hover .group-hover\:scale-110 {
    transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== Button Press Effect ===== */
button, a {
    -webkit-tap-highlight-color: transparent;
}

button:active, a:active {
    transform: scale(0.97);
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 767px) {
    .geo-circle-1 {
        width: 300px;
        height: 300px;
    }
    .geo-circle-2 {
        width: 200px;
        height: 200px;
    }
    .geo-square-1 {
        width: 100px;
        height: 100px;
    }
}
