/* ===========================================
   StoneGate - Stone Theme Styles
   =========================================== */

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

body {
    font-family: 'Source Sans 3', sans-serif;
    background: #121210;
    color: #e8e6e1;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

/* ===========================================
   Gradient Backgrounds
   =========================================== */
.hero-gradient {
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(201, 166, 107, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(139, 90, 60, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 50% 50% at 50% 100%, rgba(30, 28, 25, 0.9) 0%, transparent 50%);
}

.texture-overlay {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' 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%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

/* ===========================================
   Glow Effects
   =========================================== */
.glow-accent {
    box-shadow: 0 0 80px rgba(201, 166, 107, 0.15);
}

.text-glow {
    text-shadow: 0 0 60px rgba(201, 166, 107, 0.3);
}

.btn-glow:hover {
    box-shadow: 0 0 40px rgba(201, 166, 107, 0.25);
}

/* ===========================================
   Card Styles
   =========================================== */
.card-hover {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.category-card {
    background: linear-gradient(180deg, #1a1917 0%, #121210 100%);
    border: 1px solid rgba(201, 166, 107, 0.1);
    transition: all 0.4s ease;
}

.category-card:hover {
    border-color: rgba(201, 166, 107, 0.3);
    background: linear-gradient(180deg, #1f1e1b 0%, #151513 100%);
}

/* ===========================================
   Gradient Border
   =========================================== */
.gradient-border {
    position: relative;
    background: #1a1917;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(201, 166, 107, 0.4), transparent 50%, rgba(139, 90, 60, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* ===========================================
   Navigation
   =========================================== */
.nav-blur {
    backdrop-filter: blur(20px);
    background: rgba(18, 18, 16, 0.9);
}

/* ===========================================
   Step Numbers
   =========================================== */
.step-number {
    background: linear-gradient(135deg, #c9a66b 0%, #a8874d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===========================================
   Decorative Elements
   =========================================== */
.stone-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 166, 107, 0.3), transparent);
}

.corner-accent {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 1px solid rgba(201, 166, 107, 0.2);
}

.corner-accent.top-left {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}

.corner-accent.bottom-right {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}

/* ===========================================
   Animations
   =========================================== */
.fade-in {
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
}

.fade-in-delay-1 { animation-delay: 0.3s; }
.fade-in-delay-2 { animation-delay: 0.6s; }
.fade-in-delay-3 { animation-delay: 0.9s; }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ===========================================
   Scrollbar
   =========================================== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0a0a09;
}

::-webkit-scrollbar-thumb {
    background: #252420;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c9a66b;
}

/* ===========================================
   Custom Button Styles
   =========================================== */
.btn-primary {
    background: linear-gradient(135deg, #c9a66b 0%, #a8874d 100%);
    color: #121210;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #d4b57a 0%, #b8975d 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

.btn-outline {
    border: 1px solid rgba(201, 166, 107, 0.3);
    color: #c9a66b;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(201, 166, 107, 0.1);
    border-color: rgba(201, 166, 107, 0.5);
}

/* ===========================================
   Responsive
   =========================================== */
@media (max-width: 768px) {
    .hero-gradient {
        background: 
            radial-gradient(ellipse 100% 60% at 50% 30%, rgba(201, 166, 107, 0.06) 0%, transparent 50%);
    }
}