@import url('/styles/global/global.css');

:root {
    --primary: #1a4b90;
    --primary-dark: #1c3c69;
    --secondary: #bde4ff;
    --accent: #06b6d4;
    --dark: #0f172a;
    --dark-lighter: #1e293b;
    --gray: #64748b;
    --light: #f8fafc;
    --white: #ffffff;
    
    --colour-outer: #3f1ab14f;
    --colour-mid: #5f2577;
    --colour-inner: #8a2be2;
}

body {
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
}

/* Glassmorphism utilities */F
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animated background */
.hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #795a6d 0%, #000000 50%, #000000 100%);
    /*background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);*/
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    animation: drift 2s linear infinite;
}

@keyframes drift {
    0% { transform: translateX(0) translateY(0) }
    100% { transform: translateX(-60px) translateY(-60px) }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

nav.scrolled .logo {
    color: black;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

nav.scrolled .nav-links a {
    color: var(--dark);
}

.nav-links a:hover {
    transform: translateY(-2px);
}

.login-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    color: var(--white) !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: var(--white);
    color: var(--primary) !important;
    transform: translateY(-2px);
}

nav.scrolled .login-btn {
    background: var(--primary);
    border: 1px solid var(--primary);
}

nav.scrolled .login-btn:hover {
    background: var(--primary-dark);
    color: var(--white) !important;
}

/* Hero Content */
.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: slideInUp 1s ease-out;
}

.hero-text p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    animation: slideInUp 1s ease-out 0.2s both;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    animation: slideInUp 1s ease-out 0.4s both;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--white);
    color: var(--primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    animation: slideInRight 1s ease-out 0.6s both;
}

.dashboard-mockup {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

.dashboard-mockup:hover {
    transform: perspective(1000px) rotateY(-10deg) rotateX(2deg);
}

.mockup-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.mockup-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.mockup-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.mockup-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mockup-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    margin: 0.5rem 0;
}

.mockup-bar.short {
    width: 60%;
}

.mockup-bar.medium {
    width: 80%;
}

/* Features Section */
.features {
    padding: 6rem 2rem;
    background: var(--light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--white);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* Demo Section */
.demo {
    padding: 6rem 2rem;
    background: var(--dark);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.demo-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.demo .section-header h2 {
    color: var(--white);
}

.demo .section-header p {
    color: rgba(255, 255, 255, 0.7);
}

.demo-ready {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 80px;
    margin-top: 100px;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .demo-ready {
        margin-top: 5px;
    }
    
    .hero-visual {
        display: none;
    }
    
    .nav-links li {
        display: none;
    }
    
    .nav-login {
        display: block !important;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .dashboard-mockup {
        transform: none;
    }

    .section-header h2 {
        font-size: 2rem;
    }

}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .modal-content {
        padding: 2rem;
    }
}









.portal-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Enable hardware acceleration */
    will-change: transform;
}

.portal-button {
    position: relative;
    width: 300px;
    height: 300px;
    border: none;
    border-radius: 50%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(41, 0, 255, 0.8) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(220, 13, 255, 0.8) 0%, transparent 50%),
        radial-gradient(circle at center, rgba(29, 40, 57, 0.6) 0%, rgba(28, 10, 47, 0.4) 40%, transparent 70%);
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
    overflow: hidden;
    box-shadow: 
        0 0 50px rgba(138, 43, 226, 0.5),
        0 0 100px rgba(30, 144, 255, 0.3);
    animation: portalPulse 6s ease-in-out infinite;
    will-change: transform;
    transform: translateZ(0);
}

@keyframes portalPulse {
    0%, 100% { 
        transform: translateZ(0) scale(1);
        filter: brightness(1);
    }
    50% { 
        transform: translateZ(0) scale(1.03);
        filter: brightness(1.2);
    }
}

.portal-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(0, 0, 0, 0.4), rgba(136, 145, 255, 0.4), rgba(0, 0, 0, 0.4), transparent);
    animation: rotatePortal 4s linear infinite;
    border-radius: 50%;
    will-change: transform;
    transform: translateZ(0);
}

@keyframes rotatePortal {
    from { transform: translateZ(0) rotate(0deg); }
    to { transform: translateZ(0) rotate(360deg); }
}

.portal-button::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    background: 
        radial-gradient(circle at center, 
            rgba(0, 0, 0, 0.8) 0%, 
            rgba(75, 0, 130, 0.6) 30%, 
            rgba(138, 43, 226, 0.4) 60%, 
            transparent 100%);
    border-radius: 50%;
    animation: vortex 3s ease-in-out infinite alternate;
    will-change: transform, opacity;
    transform: translateZ(0);
}

@keyframes vortex {
    0% { 
        transform: translateZ(0) scale(1) rotate(0deg);
        opacity: 0.8;
    }
    100% { 
        transform: translateZ(0) scale(0.95) rotate(90deg);
        opacity: 1;
    }
}

.portal-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(138, 43, 226, 0.6);
    z-index: 10;
    transition: font-size 0.3s ease;
    will-change: font-size;
}

.portal-button:hover {
    transform: translateZ(0) scale(1.02);
}

.portal-button:hover::before {
    animation-duration: 2s;
}

.portal-button:hover .portal-text {
    font-size: 20px;
}

.portal-button:active {
    transform: translateZ(0) scale(0.98);
    filter: brightness(1.5);
}

.portal-rings {
    position: absolute;
    width: 400px;
    height: 400px;
    border: 2px solid rgba(43, 142, 226, 0.3);
    border-radius: 50%;
    animation: expandRing 6s ease-out infinite;
    will-change: transform, opacity;
    transform: translateZ(0);
}

.portal-rings:nth-child(2) {
    width: 500px;
    height: 500px;
    border-color: rgba(30, 144, 255, 0.2);
    animation-delay: 2s;
}

.portal-rings:nth-child(3) {
    width: 600px;
    height: 600px;
    border-color: rgba(255, 0, 255, 0.1);
    animation-delay: 4s;
}

@keyframes expandRing {
    0% {
        transform: translateZ(0) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translateZ(0) scale(1.5);
        opacity: 0;
    }
}

.portal-active {
    position: fixed;
    width: max(100vw, 100vh);
    height: max(100vw, 100vh);
    z-index: 999;
    background: radial-gradient(transparent 0%, transparent 15%, #000000f2 25%, black 100%);
    animation: overlayAnimate 1s ease-out forwards;
    top: 0;
    left: 0;
    pointer-events: none;
}

@keyframes overlayAnimate {
    0% {
        opacity: 0;
    }
    99% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}
