/* ROOT VARIABLES - Apple/Stripe Style Minimal Theme */
:root {
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #fbfbfd;
    --color-bg-tertiary: #f5f5f7;

    --color-text-primary: #1d1d1f;
    --color-text-secondary: #86868b;
    --color-text-tertiary: #ced4da;

    --color-accent: #0071e3;
    --color-accent-hover: #0077ed;

    --color-border: #d2d2d7;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body.antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: var(--font-family);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.5;
    font-size: 16px;
}

/* CUSTOM CURSOR (Disabled) */
.custom-cursor {
    position: fixed;
    top: -20px;
    left: -20px;
    width: 8px;
    height: 8px;
    background-color: #000;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    mix-blend-mode: difference;
    will-change: transform;
}

.custom-cursor.hover {
    width: 24px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.4);
    mix-blend-mode: normal;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.cursor-glow {
    position: fixed;
    top: -50px;
    left: -50px;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.2) 0%, rgba(0, 113, 227, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    will-change: transform;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

p {
    color: var(--color-text-secondary);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--color-text-secondary);
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 3rem;
}

.p-4 {
    padding: 2rem;
}

/* UTILITIES */
.container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--color-bg-secondary);
}

.flex-row {
    display: flex;
    align-items: center;
    gap: 4rem;
}

@media(max-width: 768px) {
    .flex-row {
        flex-direction: column;
        text-align: center;
    }

    .flex-row .content-text {
        order: 2;
    }

    .flex-row .content-image {
        order: 1;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }
}

.grid {
    display: grid;
    gap: 2rem;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 980px;
    /* Pill shape */
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--color-text-primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: #333;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background-color: var(--color-bg-tertiary);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s, border-color 0.3s, padding 0.3s;
}

/* Make it entirely transparent when at top of Dark Hero */
.navbar.transparent {
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent;
}

.navbar.transparent .nav-links a:not(.btn),
.navbar.transparent .brand {
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.navbar.transparent .menu-btn {
    color: #ffffff;
}

.nav-container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a:not(.btn) {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.nav-links a:not(.btn):hover {
    color: var(--color-text-primary);
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--color-text-primary);
}

@media(max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-btn {
        display: block;
    }
}

/* HERO SECTION */

/* Ensure next sections stay strictly white and above galaxy overflow */
.content-section,
.services-section,
.team-section,
.cta-section {
    position: relative;
    z-index: 5;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.03);
    /* Soft shadow above */
}

/* Glassmorphism utility classes */
.glass-section {
    background-color: transparent !important;
}

.glass-card {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    will-change: transform, box-shadow;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background-color: rgba(255, 255, 255, 0.85);
}

.hero-container {
    max-width: 800px;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

@media(max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }
}

/* CONTENT SECTION */
.content-text {
    flex: 1;
}

.content-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.content-image img {
    width: 100%;
    max-width: 450px;
}

.rounded-image {
    border-radius: 24px;
    overflow: hidden;
}

.shadow {
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.shadow-hover:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-list {
    margin-top: 1.5rem;
}

.feature-list li {
    font-size: 1.1rem;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.feature-list li i {
    color: #34c759;
    /* Apple green checkmark vibe */
    font-size: 1.2rem;
}

/* CARDS / GRID SECTION */
.cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
    background-color: var(--color-bg-primary);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    will-change: transform, box-shadow;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-icon {
    width: 56px;
    height: 56px;
    background-color: var(--color-bg-tertiary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-primary);
}

/* TEAM SECTION */
.team-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.team-card {
    background-color: transparent;
    border: none;
    box-shadow: none;
    padding: 1rem;
}

.team-card:hover {
    transform: none;
    box-shadow: none;
}

.avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

/* CTA SECTION */
.cta-box {
    background-color: var(--color-bg-tertiary);
    border-radius: 32px;
    padding: 5rem 2rem;
}

.cta-box h2 {
    margin-bottom: 1rem;
}

/* FOOTER */
.footer {
    padding: 4rem 0 2rem 0;
    background-color: var(--color-bg-primary);
    border-top: 1px solid var(--color-border);
}

.footer-container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.footer-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--color-text-primary);
}

.footer-bottom {
    max-width: 1040px;
    margin: 0 auto;
    padding: 2rem 2rem 0 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 0.85rem;
}

@media(max-width: 600px) {
    .footer-container {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ANNOUNCEMENT BANNER */
.announcement-banner {
    background-color: #f5f5f7;
    border-bottom: 1px solid #d2d2d7;
    padding: 0.75rem 0;
    font-size: 0.9rem;
    color: #1d1d1f;
}

/* Admin/Dashboard general alignments to prevent complete breakage */
.admin-table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
    margin-top: 2rem;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
}

/* POPUP MODAL STYLES */
.global-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.popup-modal {
    background-color: var(--color-bg-primary);
    border-radius: 24px;
    width: 90%;
    max-width: 450px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    animation: slideUp 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

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

.close-popup {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text-secondary);
    transition: var(--transition);
}

.close-popup:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--color-text-primary);
}

.popup-img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
}

.popup-content-box {
    padding: 2rem;
    text-align: center;
}

.popup-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.popup-message {
    color: var(--color-text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}