@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-color: #050507;
    --bg-secondary: #0f0f13;
    --primary-color: #7000ff;
    --primary-gradient: linear-gradient(135deg, #7000ff 0%, #a450ff 100%);
    --accent-color: #00f3ff;
    --accent-gradient: linear-gradient(135deg, #00f3ff 0%, #00c3cc 100%);
    --text-color: #ffffff;
    --text-muted: #a0a0b0;
    --glass-bg: rgba(20, 20, 25, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.15);
    --font-main: 'Outfit', sans-serif;
    --transition-fast: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(112, 0, 255, 0.4);
}

/* Reset & Base */
body,
html {
    background-color: var(--bg-color);
    font-family: var(--font-main) !important;
    color: var(--text-color);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-main);
    color: var(--text-color);
    letter-spacing: -0.02em;
    font-weight: 700;
}

p {
    color: var(--text-muted);
    font-size: 1.15em;
    line-height: 1.8;
    font-weight: 300;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-highlight);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6), var(--shadow-glow);
    border-color: rgba(112, 0, 255, 0.3);
}

/* Header Overrides */
#header {
    background: rgba(5, 5, 7, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    height: 4.5em;
    line-height: 4.5em;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
}

#header h1 {
    height: inherit;
    line-height: inherit;
    padding: 0 0 0 1.5em;
}

#header h1 a {
    color: var(--text-color);
    font-weight: 800;
    letter-spacing: 0.05em;
    font-size: 1.5em;
    background: linear-gradient(90deg, #fff, #a0a0b0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

#nav ul li a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95em;
    transition: var(--transition-fast);
    border: none;
    position: relative;
}

#nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition-fast);
    transform: translateX(-50%);
}

#nav ul li a:hover,
#nav ul li.active a {
    color: var(--text-color);
}

#nav ul li a:hover::after,
#nav ul li.active a::after {
    width: 20px;
}

#nav ul li a.button {
    color: var(--text-color) !important;
    background: var(--primary-color);
    /* Fallback */
    background: var(--primary-gradient);
    box-shadow: 0 4px 15px rgba(112, 0, 255, 0.3);
    border-radius: 50px;
    /* Pill shape */
    font-weight: 600;
    padding: 0 1.8em;
    border: none;
    height: 2.8em;
    line-height: 2.8em;
    margin-top: 0.85em;
    /* Center vertically */
}

#nav ul li a.button::after {
    display: none;
}

#nav ul li a.button:hover {
    box-shadow: 0 0 25px rgba(112, 0, 255, 0.6);
    transform: translateY(-2px);
    color: white !important;
}

/* Hero Section (Banner) */
#banner {
    background: radial-gradient(circle at 15% 50%, rgba(112, 0, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 20%, rgba(0, 243, 255, 0.06) 0%, transparent 40%),
        var(--bg-color);
    padding: 12em 0 10em 0;
    text-align: center;
    /* Center align for impact */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Animated Grid Background */
#banner:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(var(--glass-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--glass-border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.07;
    z-index: 0;
    mask-image: radial-gradient(black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(black 40%, transparent 80%);
}

#banner .content {
    background: none;
    padding: 0;
    display: flex;
    flex-direction: column-reverse;
    /* Logo on top on mobile, side by side on desktop handled by media query */
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 2;
    gap: 4em;
}

@media screen and (min-width: 980px) {
    #banner .content {
        flex-direction: row;
        text-align: left;
        align-items: center;
        justify-content: space-between;
    }

    #banner header {
        text-align: left;
        max-width: 550px;
    }
}

#banner header {
    z-index: 2;
}

#banner h2 {
    font-size: 4.5em;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 0.4em;
    background: linear-gradient(135deg, #fff 20%, #a0a0b0 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
}

#banner p {
    font-size: 1.4em;
    margin-bottom: 2.5em;
    color: var(--text-muted);
    max-width: 600px;
}

/* SimplyRBX Logo Styling */
.hero-logo-container {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-container img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(112, 0, 255, 0.3));
    animation: float 6s ease-in-out infinite;
    z-index: 2;
}

/* Glowing orb behind logo */
.hero-logo-container::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background: var(--primary-color);
    filter: blur(100px);
    opacity: 0.4;
    z-index: 1;
    animation: pulse 4s ease-in-out infinite alternate;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(1deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes pulse {
    0% {
        opacity: 0.3;
        transform: scale(0.9);
    }

    100% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Buttons */
.hero-actions {
    display: flex;
    gap: 1.25em;
    flex-wrap: wrap;
}

.button.primary {
    background: var(--primary-gradient);
    border: none;
    border-radius: 12px;
    color: white !important;
    font-weight: 700;
    padding: 0 2.8em;
    height: 3.8em;
    line-height: 3.8em;
    box-shadow: 0 10px 30px rgba(112, 0, 255, 0.25);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.button.primary:hover {
    box-shadow: 0 15px 40px rgba(112, 0, 255, 0.5);
    transform: translateY(-4px);
}

/* Shine effect on button */
.button.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.button.primary:hover::before {
    left: 100%;
}

.button {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-color) !important;
    font-weight: 600;
    padding: 0 2.2em;
    height: 3.8em;
    line-height: 3.8em;
    transition: var(--transition-fast);
    backdrop-filter: blur(5px);
}

.button:hover {
    border-color: var(--text-color);
    background: rgba(255, 255, 255, 0.08);
}

/* Section Styles */
.spotlight {
    position: relative;
    border: none;
    box-shadow: none;
    margin: 0;
    padding: 6em 0;
    z-index: 1;
}

/* Alternating backgrounds for depth */
.spotlight:nth-child(2n) {
    background: var(--bg-secondary);
}

.spotlight:nth-child(2n+1) {
    background: var(--bg-color);
}

.spotlight .image.main {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--glass-border);
}

.spotlight .image.main img {
    border-radius: 20px;
    transition: transform 0.5s ease;
}

.spotlight:hover .image.main img {
    transform: scale(1.02);
}

.spotlight h2 {
    font-size: 2.8em;
    margin-bottom: 0.5em;
    background: linear-gradient(90deg, #fff, #ccc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Features Grid */
.wrapper.style1 {
    background: var(--bg-color);
    padding: 6em 0;
}

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-highlight);
    /* Top highlight for 3D feel */
    border-radius: 24px;
    padding: 2.5em 1.5em;
    transition: var(--transition-smooth);
    height: 100%;
    min-height: 280px;
    /* Ensure consistent minimum height */
    position: relative;
    overflow: hidden;
    text-align: center;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* Subtle gradient background on hover */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(112, 0, 255, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
    border-color: rgba(112, 0, 255, 0.3);
}

.feature-card .icon {
    font-size: 3.5em;
    margin-bottom: 0.6em;
    transition: var(--transition-smooth);
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    line-height: 1.2;
    padding: 0.1em;
    /* Prevent clipping of ascenders/descenders */
    min-height: 1.2em;
    /* Ensure height matches line-height */
}

.feature-card:hover .icon {
    transform: scale(1.1) rotate(5deg);
    -webkit-text-fill-color: var(--accent-color);
}

.feature-card h3 {
    font-size: 1.6em;
    margin-bottom: 0.6em;
}

/* Footer */
#footer {
    background: linear-gradient(to bottom, var(--bg-secondary), var(--bg-color));
    padding: 6em 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

#footer h2 {
    font-size: 2em;
    margin-bottom: 1em;
}

#footer .icons {
    margin-bottom: 2em;
}

#footer .icons li a {
    color: var(--text-color);
    font-size: 1.8em;
    opacity: 0.6;
    transition: var(--transition-fast);
    padding: 0.5em;
    display: inline-block;
}

#footer .icons li a:hover {
    opacity: 1;
    color: var(--accent-color);
    transform: translateY(-5px);
}

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

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 6px;
    border: 3px solid var(--bg-color);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Inputs */
input[type="text"],
input[type="password"],
input[type="email"],
textarea,
select {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-color);
    transition: var(--transition-fast);
    backdrop-filter: blur(10px);
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(112, 0, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

/* Responsive Tweaks */
@media screen and (max-width: 736px) {
    #banner h2 {
        font-size: 3em;
    }

    .hero-logo-container {
        width: 250px;
        height: 250px;
    }

    #banner .content {
        gap: 2em;
        padding: 0 1.5em;
        /* Add padding for mobile */
    }

    .container {
        padding: 0 1.5em;
        /* Ensure containers have breathing room */
    }

    .button.primary {
        padding: 0 2em;
    }

    .wrapper.style1 {
        padding: 4em 0;
        /* Reduce vertical padding on mobile */
    }
}

/* Global Container Tweaks */
.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 2em;
    /* Default side padding */
}

#banner .content {
    padding: 0 2em;
    /* Default side padding */
}

/* Fix for grid overflow */
.row {
    margin-left: -1.5em;
    margin-right: -1.5em;
    width: calc(100% + 3em);
}

.row>* {
    padding-left: 1.5em;
    padding-right: 1.5em;
}

.row.gtr-uniform {
    margin-top: -1.5em;
}

.row.gtr-uniform>* {
    padding-top: 1.5em;
}