/* Tagoals v2 "Elite" Design System */

:root {
    /* Brand Colors */
    --bg-dark: #060b13;
    --bg-gradient-start: #06112d;
    --bg-gradient-end: #250949;
    --accent-pink: #ff63da;
    --accent-purple: #9e40ff;
    --accent-blue: #009dff;
    --text-white: #ffffff;
    --text-gray: #b0b0b0;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    --gradient-header: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
}

/* Typography */
@font-face {
    font-family: 'Araboto';
    src: url('../fonts/Araboto Light 400.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Araboto';
    src: url('../fonts/Araboto Bold 400.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Araboto', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}



.text-center {
    text-align: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: var(--spacing-md);
}

.btn-primary {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 99, 218, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 99, 218, 0.4);
}

.section-title,
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.8rem;
}

h3 {
    font-size: 1.8rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }
}

.section-title {
    font-size: 2rem;
    /* Default size for .section-title */
    background: linear-gradient(to right, #fff, #b0b0b0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Dashboard Specifics */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar-menu {
    width: 250px;
    background: linear-gradient(180deg, #06112d 0%, #250949 100%);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    color: white;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Araboto', sans-serif;
    font-weight: 300;
    /* Araboto Light */
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-item.active {
    color: white;
    font-weight: 700;
    /* Araboto Bold */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    /* Outer Glow */
    border-bottom: 2px solid white;
    /* Line under it */
}

.nav-item:hover {
    color: white;
}

/* Page Content Transition */
.page-content {
    flex: 1;
    background: #060b13;
    padding: 2rem;
    overflow-x: hidden;
}

/* Tier Colors */
.tier-platinum {
    color: #e5e4e2;
}

.tier-gold {
    color: #ffd700;
}

.tier-silver {
    color: #c0c0c0;
}

/* Desktop-First Adjustments */
.main-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    /* Boosted to ensure clickability over hero */
    background: rgba(6, 11, 19, 0.95);
    backdrop-filter: blur(10px);
    height: 80px;
    /* Strict height for a thin "Elite" look */
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    /* Zero vertical padding for absolute compactness */
    max-width: 1200px;
    /* Elite Standard Width for optimal readability */
    margin: 0 auto;
    height: 100%;
}

/* Logo - Default (Mobile) - MAXIMUM SIZE */
.logo {
    line-height: 0;
    display: flex;
    align-items: center;
    position: relative;
    height: 100%;
}

.logo img {
    height: 100px !important;
    /* Exactly matching footer logo mobile size */
    width: auto;
    display: block;
    margin: 0;
    margin-left: -15px;
    /* Align 'T' with footer positioning */
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

/* Desktop Nav Hidden by Default (Mobile First) */
.desktop-nav {
    display: none;
}

/* Mobile Toggle Visible by Default */
.mobile-menu-toggle {
    display: block;
}

@media (min-width: 992px) {
    .main-header {
        height: 85px;
        /* Slightly taller for desktop balance */
    }

    .main-header .container {
        padding: 0 30px;
        height: 100%;
    }

    .logo img {
        height: 110px !important;
        /* Exactly matching footer logo desktop size */
        margin-left: -15px;
        /* Maintain alignment */
    }

    .mobile-menu-toggle {
        display: none !important;
        /* strictly force hidden on desktop */
    }

    .desktop-nav {
        display: flex;
        align-items: center;
        gap: 2rem;
    }

    .desktop-nav a {
        color: white;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s;
    }

    .desktop-nav a:hover {
        color: var(--primary-pink);
    }
}

.hero-section {
    padding: 0;
    min-height: 100vh;
    /* Make it full screen hero */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: url('../img/HOMEPAGE_COVER.png') no-repeat center center/cover;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 11, 19, 0.7) 0%, rgba(6, 11, 19, 0.9) 100%);
    z-index: 1;
}

/* Ensure glass button hover works */
.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: white !important;
}

.what-we-do,
.how-it-works,
.features-section {
    padding: 6rem 0;
    /* More breathing room for Elite feel */
}

.footer {
    padding: 5rem 0 2.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 0 auto;
}

/* Laptop/Desktop Grid for Features and How It Works */
@media (min-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Force Horizontal for How It Works Steps */
    .how-it-works .steps-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
        align-items: flex-start;
        padding-top: 2rem;
    }

    /* Hide vertical swirl on desktop grid */
    .how-it-works .swirl-line {
        display: none;
    }
}

/* Tablet Grid */
@media (min-width: 768px) and (max-width: 991px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .how-it-works .steps-grid {
        grid-template-columns: repeat(1, 1fr);
        /* Stacked on tablet to avoid squishing */
    }
}

/* Mobile Grid */
@media (max-width: 767px) {

    .features-grid,
    .how-it-works .steps-grid {
        grid-template-columns: 1fr;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    text-align: left !important;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center !important;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(255, 99, 218, 0.3);
    }

    50% {
        box-shadow: 0 0 25px rgba(255, 99, 218, 0.6);
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

/* Mobile Menu */
.mobile-header-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0 20px;
    height: 100%;
}

@media (max-width: 991px) {
    .mobile-header-layout {
        justify-content: center;
        /* Center the logo by default */
    }

    .mobile-header-layout .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
    }

    .mobile-header-layout .mobile-menu-toggle {
        position: absolute;
        left: 20px;
        /* Moved to Left Side as requested */
        top: 50%;
        transform: translateY(-50%);
    }
}

.mobile-menu-toggle {
    display: block;
    /* Default for mobile */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 10001;
    /* Ensure button itself is on top */
    color: white;
}

.mobile-dropdown-menu {
    position: absolute;
    top: 100%;
    /* Drop directly below header */
    left: 0;
    width: 100%;
    background: #060b13;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.mobile-dropdown-menu.open {
    max-height: 300px;
    /* Arbitrary large height to allow content */
    padding: 1.5rem 0;
}

.mobile-dropdown-menu nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.mobile-link {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
    /* Center text */
    padding: 0.5rem 2rem;
    transition: background 0.2s;
}

.mobile-link:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-primary-mobile {
    background: var(--gradient-primary);
    border-radius: 50px;
    padding: 12px 40px;
    display: inline-block;
    width: auto;
    /* Don't stretch full width */
    margin-top: 0.5rem;
}

/* Auth Pages Enhancement */
.auth-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #060b13;
    position: relative;
}

.auth-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/HOW IT WORKS BACKGROUND.png') center/cover;
    opacity: 0.15;
    z-index: 0;
}

.auth-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    width: 100%;
    max-width: 450px;
    color: white;
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 300;
}

.form-input {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-family: 'Araboto', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-input:focus {
    border-color: #9e40ff;
    box-shadow: 0 0 15px rgba(158, 64, 255, 0.3);
    background: rgba(0, 0, 0, 0.4);
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.auth-footer a {
    color: #ff63da;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
}

.auth-footer a:hover {
    color: #ff80e2;
    text-decoration: underline;
}

/* Platinum Tier Specific */
.text-platinum {
    color: #333 !important;
    /* Dark text for visibility */
    background: linear-gradient(135deg, #e0e0e0 0%, #ffffff 50%, #e0e0e0 100%);
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    /* fix compatibility */
    text-shadow: none;
    font-weight: 800;
}

/* Brand Column - Strict Left Alignment & Visual T-Alignment */
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Force left alignment */
    text-align: left;
    align-self: start;
    /* Align with grid baseline */
}

.footer-logo-img {
    height: 100px !important;
    /* Increased size for better visibility */
    width: auto;
    margin-top: -40px;
    /* Pull UP to align Tagoals text with COMPANY/CONTACT headers */
    margin-bottom: 0.5rem;
    /* Tighter gap*/
    display: block;
    margin-left: -15px;
    /* Aggressive align 'T' with 'Q' */
}

@media (max-width: 768px) {
    .footer-brand {
        align-items: center !important;
        text-align: center !important;
        margin-bottom: 2rem;
    }

    .footer-logo-img {
        margin: 0 auto 1.5rem !important;
        /* Force horizontal centering */
        margin-top: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (min-width: 992px) {
    .footer-logo-img {
        height: 110px !important;
        /* Larger on desktop */
    }
}



/* ========================
   ELITE FOOTER STYLES
   ======================== */
.footer {
    background: #000;
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
    align-items: start;
    /* All columns start from same baseline */
}

/* Brand Column */
.footer-desc {
    color: var(--text-gray);
    margin-bottom: 1.2rem;
    line-height: 1.4;
    font-size: 0.95rem;
    max-width: 300px;
    font-weight: 500;
    margin-left: 5px;
    /* Align with T */
}

.socials {
    display: flex;
    gap: 1rem;
    margin-left: 5px;
    /* Align with T */
}

.social-link {
    font-size: 1.5rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: rgba(255, 255, 255, 0.6);
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    color: white;
    filter: drop-shadow(0 0 8px currentColor);
}

.social-link.pink:hover {
    color: #ff63da;
}

.social-link.purple:hover {
    color: #9e40ff;
}

.social-link.blue:hover {
    color: #009dff;
}


/* Headings - Typography Upgrade */
.footer-heading {
    color: white;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background: var(--primary-pink);
    border-radius: 2px;
}

/* Navigation Links */
.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 1rem;
}

.footer-link {
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 1rem;
}

.footer-link:hover {
    color: white;
    transform: translateX(10px);
    /* Elite movement */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Contact Items */
.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-gray);
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

.contact-item i {
    color: var(--primary-pink);
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
}

/* Copyright */
.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .footer-desc,
    .socials {
        margin: 0 auto 1.5rem;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-item {
        justify-content: center;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar-menu {
        width: 200px;
    }

    .container {
        width: 95%;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }

    .sidebar-menu {
        position: fixed;
        left: -280px;
        width: 280px;
        height: 100%;
        z-index: 999;
        transition: left 0.3s ease;
    }

    .sidebar-menu.mobile-active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: block;
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 1000;
    }

    .page-content {
        padding: 1rem;
        padding-top: 4rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .auth-card {
        padding: 2rem 1.5rem;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .btn-primary {
        width: 100%;
        padding: 14px 20px;
    }

    .glass-panel {
        padding: 1rem;
    }

    .section-title {
        font-size: 1.25rem;
    }
}

/* Tier Badges */
.tier-platinum {
    background: rgba(229, 228, 226, 0.2) !important;
    color: #E5E4E2 !important;
    border: 1px solid rgba(229, 228, 226, 0.3);
}

.tier-gold {
    background: rgba(255, 215, 0, 0.1) !important;
    color: #FFD700 !important;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.tier-silver {
    background: rgba(192, 192, 192, 0.1) !important;
    color: #C0C0C0 !important;
    border: 1px solid rgba(192, 192, 192, 0.2);
}

.tier-a {
    background: rgba(255, 215, 0, 0.1) !important;
    color: #FFD700 !important;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.tier-b {
    background: rgba(102, 126, 234, 0.1) !important;
    color: #667eea !important;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.tier-c {
    background: rgba(86, 204, 242, 0.1) !important;
    color: #56CCF2 !important;
    border: 1px solid rgba(86, 204, 242, 0.2);
}

.tier-d {
    background: rgba(155, 81, 224, 0.1) !important;
    color: #9B51E0 !important;
    border: 1px solid rgba(155, 81, 224, 0.2);
}

.tier-e {
    background: rgba(235, 87, 87, 0.1) !important;
    color: #EB5757 !important;
    border: 1px solid rgba(235, 87, 87, 0.2);
}

.tier-none {
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}