/* ========================================
   The Guntur Talkies — Custom Styles
   ======================================== */

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Geometric Decorative Shapes
   ======================================== */
.geo-shape {
    position: absolute;
    opacity: 0.12;
    pointer-events: none;
}

/* Hero Section Shapes */
.geo-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #fbbf24;
    top: -100px;
    right: -80px;
    opacity: 0.15;
}

.geo-square-1 {
    width: 200px;
    height: 200px;
    background: #e9d5ff;
    bottom: 15%;
    left: -40px;
    transform: rotate(25deg);
    border-radius: 24px;
    opacity: 0.2;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid #fbbf24;
    top: 40%;
    right: 10%;
    opacity: 0.1;
    transform: rotate(-15deg);
}

.geo-circle-2 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #c084fc;
    bottom: 20%;
    right: 5%;
    opacity: 0.12;
}

.geo-dots {
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, #fbbf24 2px, transparent 2px);
    background-size: 16px 16px;
    top: 25%;
    left: 8%;
    opacity: 0.3;
}

/* CTA Section Shapes */
.geo-circle-1-alt {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: #fbbf24;
    bottom: -200px;
    left: -150px;
    opacity: 0.08;
}

.geo-square-1-alt {
    width: 280px;
    height: 280px;
    background: #e9d5ff;
    top: -80px;
    right: -60px;
    transform: rotate(45deg);
    border-radius: 32px;
    opacity: 0.1;
}

/* ========================================
   Floating Blobs (Background)
   ======================================== */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: #e9d5ff;
    top: 10%;
    left: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: #fde68a;
    top: 50%;
    right: -80px;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.blob-3 {
    width: 250px;
    height: 250px;
    background: #d8b4fe;
    bottom: 20%;
    left: 20%;
    animation: float-slow 18s ease-in-out infinite;
}

.blob-4 {
    width: 200px;
    height: 200px;
    background: #fde68a;
    top: 30%;
    left: 50%;
    animation: float-slow 22s ease-in-out infinite reverse;
}

@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -20px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(15px, 10px) scale(1.02); }
}

/* ========================================
   Navbar
   ======================================== */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background: rgba(250, 245, 255, 0.95);
    backdrop-blur-lg;
    box-shadow: 0 1px 20px rgba(107, 33, 168, 0.08);
}

/* ========================================
   Scroll Reveal Animations
   (Progressive Enhancement — content is visible by default)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Mobile Menu
   ======================================== */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(107, 33, 168, 0.08);
}

.mobile-link:last-of-type {
    border-bottom: none;
}

/* ========================================
   Accessibility
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ========================================
   Focus Styles
   ======================================== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ========================================
   Selection
   ======================================== */
::selection {
    background: #e9d5ff;
    color: #581c87;
}

/* ========================================
   Utility Overrides
   ======================================== */
@media (max-width: 639px) {
    .geo-circle-1 {
        width: 200px;
        height: 200px;
    }
    
    .geo-square-1 {
        width: 120px;
        height: 120px;
    }
    
    .geo-triangle-1 {
        border-left-width: 60px;
        border-right-width: 60px;
        border-bottom-width: 104px;
    }
}
