/* Custom Styles for Mister Screen */

:root {
    --navy-900: #0A1628;
    --navy-800: #0F2140;
    --gold-500: #D4A843;
    --gold-400: #E8C36A;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--navy-900);
}

.font-space {
    font-family: 'Space Grotesk', sans-serif;
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

/* Geometric Background Shapes */
.geo-shape-1 {
    position: absolute;
    top: 10%;
    right: 5%;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.geo-shape-2 {
    position: absolute;
    bottom: 20%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: linear-gradient(225deg, rgba(212, 168, 67, 0.06) 0%, transparent 70%);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    animation: float 10s ease-in-out infinite reverse;
}

.geo-shape-3 {
    position: absolute;
    top: 40%;
    right: -3%;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(212, 168, 67, 0.1);
    transform: rotate(45deg);
    animation: spin 20s linear infinite;
}

.geo-shape-4 {
    position: absolute;
    top: 15%;
    left: 10%;
    width: 80px;
    height: 80px;
    background: rgba(212, 168, 67, 0.05);
    border-radius: 20px;
    transform: rotate(30deg);
    animation: float 6s ease-in-out infinite;
}

.geo-shape-5 {
    position: absolute;
    bottom: 30%;
    right: 15%;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(212, 168, 67, 0.08);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

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

@keyframes spin {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* Navbar Scroll Effect */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled .menu-line {
    background: white;
}

/* Service Card Hover */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-500), var(--gold-400));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* Mobile Menu */
#mobile-menu {
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.inactive {
    opacity: 0;
    pointer-events: none;
}

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.active .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* Hamburger Animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-btn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: translateY(-6px) rotate(-45deg);
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Selection Color */
::selection {
    background: var(--gold-500);
    color: var(--navy-900);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--navy-900);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-500);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-400);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .geo-shape-1 {
        width: 200px;
        height: 200px;
    }
    .geo-shape-2 {
        width: 150px;
        height: 150px;
    }
    .geo-shape-3 {
        width: 100px;
        height: 100px;
    }
    .geo-shape-4 {
        width: 40px;
        height: 40px;
    }
    .geo-shape-5 {
        width: 60px;
        height: 60px;
    }
}
