/* =========================================
   0. IMPORT FONTS
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary-color: #2563eb;       /* Blue */
    --secondary-color: #1e40af;     /* Darker Blue */
    --accent-color: #f59e0b;        /* Orange/Gold */
    --bg-dark: #0f172a;             /* Main Background */
    --bg-card: #1e293b;             /* Card Background */
    --text-light: #f8fafc;
    --text-gray: #94a3b8;
    --success: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* =========================================
   2. GLOBAL INTERACTIVE SHINE EFFECT
   ========================================= */
.step, 
.service-card, 
.stat-card,
.btn,
.auth-container { 
    position: relative;
    overflow: hidden;         
    transition: all 0.35s ease;
    cursor: pointer;
    z-index: 1;               
}

/* The Shine Layer */
.step::before, 
.service-card::before, 
.stat-card::before,
.btn::before,
.auth-container::before { 
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;              
    background: radial-gradient(
        600px circle at var(--x, 50%) var(--y, 50%),
        rgba(37, 99, 235, 0.15),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none; 
}

/* Hover Actions */
.step:hover, 
.service-card:hover, 
.stat-card:hover,
.auth-container:hover { 
    transform: translateY(-5px) scale(1.01); 
    border-color: var(--primary-color);
}

.auth-container:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    border-color: rgba(37, 99, 235, 0.5);
}

/* Reveal Shine on Hover */
.step:hover::before, 
.service-card:hover::before, 
.stat-card:hover::before,
.btn:hover::before,
.auth-container:hover::before { 
    opacity: 1;
}

/* Auth Modal Visibility */
.auth-modal {
    display: none; 
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.8); 
    backdrop-filter: blur(8px); 
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

/* Close button for auth */
.close-auth {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #fff;
    line-height: 0.5;
}

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
header {
    background-color: transparent; 
    padding: 1.2rem 5%;
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
}

header.scrolled {
    background: rgba(15, 23, 42, 0.85); 
    backdrop-filter: blur(12px);
    padding: 0.8rem 2rem; 
    width: 90%; 
    left: 50%;
    transform: translateX(-50%); 
    top: 20px; 
    border-radius: 50px; 
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.logo { display: flex; align-items: center; }
.nav-logo { height: 100px; width: auto; transition: all 0.4s ease; }
header.scrolled .nav-logo { height: 70px; }

nav ul { align-items: center; display: flex; gap: 20px; }
nav a {  color: var(--text-light); font-weight: 500; font-size: 0.95rem; }
nav a:hover { color: var(--primary-color); }
.auth-buttons { display: flex; gap: 15px; }

@media (max-width: 768px) {
    header.scrolled { width: 95%; padding: 0.8rem 1rem; }
    .nav-logo { height: 40px; }
}

/* =========================================
   PREMIUM BUTTON STYLES
   ========================================= */
.btn {
    padding: 0.7rem 1.8rem;
    border-radius: 50px; 
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4); 
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02); 
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.6); 
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(255, 255, 255, 0.2); 
    color: var(--text-light);
    backdrop-filter: blur(5px); 
}

.btn-outline:hover {
    background: rgba(37, 99, 235, 0.15); 
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: white;
}

.btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: none;
}

.btn:hover::after {
    left: 100%;
    transition: 0.5s ease-in-out; 
}

@media (max-width: 768px) {
    .btn { padding: 0.5rem 1.2rem; font-size: 0.85rem; }
}

/* =========================================
   4. PREMIUM HERO SECTION (BACKGROUND IMAGE + GLASS EFFECT)
   ========================================= */
.hero-premium {
    position: relative;
    min-height: 100vh;
    /* Takes up full screen height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 5% 8rem;

    /* Background Image Settings */
    background-image: url('JANIT.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax Effect: Image stays fixed on scroll */
    overflow: hidden;
}

/* Dark gradient on the left so your text is perfectly readable */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(53, 81, 148, 0.95) 0%, rgba(15, 23, 42, 0.6) 45%, transparent 50%);
    z-index: 1;
}

/* --- Left Side Content --- */
.hero-content-left {
    position: relative;
    z-index: 2;
    max-width: 650px;
    /* Keeps text strictly on the left */
    text-align: left;
}

.hero-content-left .badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.15);
    backdrop-filter: blur(5px);
}

.hero-content-left h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.8);
    /* Shadow to separate text from background */
}

.highlight-text {
    color: var(--primary-color);
}

.hero-content-left p {
    font-size: 1.15rem;
    color: #e2e8f0;
    margin-bottom: 40px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
}
.hero-buttons {
    font-size: 1.15rem;
    color: #e2e8f0;
    margin-bottom: 80px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
}

/* --- Bottom Transparent Glass Cards --- */
.dashboard-preview-glass {
    margin-bottom: 20px;
    position: absolute;
    bottom: 2rem;
    left: 5%;
    width: 90%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    z-index: 2;
}

.stat-card-glass {
    background: rgba(255, 255, 255, 0.05);
    /* Highly Transparent */
    backdrop-filter: blur(15px);
    /* Premium Glass Blur */
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy smooth transition */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-left: 4px solid transparent;
}

/* Premium Hover Effect */
.stat-card-glass:hover {
    transform: translateY(-12px);
    /* Moves up */
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--primary-color);
    /* Blue accent line on hover */
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
    /* Blue glowing shadow */
}

.stat-card-glass h3 {
    font-size: 2.2rem;
    color: #60a5fa;
    margin-bottom: 5px;
    font-weight: 800;
}

.stat-card-glass p {
    color: #f8fafc;
    font-size: 1rem;
    font-weight: 500;
}

/* Fade Up Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpAnim 1s ease forwards;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeUpAnim {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Mobile Responsive Fixes --- */
@media (max-width: 900px) {
    .hero-premium {
        background-position: 80% center;
        /* Shifts background to keep your face visible */
        background-attachment: scroll;
        /* Fixes zooming issues on mobile */
        padding-top: 8rem;
    }

    .hero-overlay {
        /* Makes background darker on mobile so text is completely readable */
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
    }

    .hero-content-left {
        text-align: center;
        margin: 0 auto;
    }

    .hero-content-left h1 {
        font-size: 3rem;
    }

    .dashboard-preview-glass {
        position: relative;
        bottom: 0;
        grid-template-columns: 1fr;
        /* Stacks cards on top of each other */
        margin-top: 3rem;
        left: auto;
        width: 100%;
    }
}

/* =========================================
   6. PRICING / PROCESS SECTION
   ========================================= */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    /* horizontal center + bottom spacing */
    display: flex;
    flex-direction: column;
    align-items: center;
}
.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-gray);
    font-size: 1.05rem;
}
        
   .process-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 100px;
}

.step {
    background: linear-gradient(180deg, #1e293b, #0f172a);
    padding: 2.2rem 1.8rem;
    border-radius: 14px;
    width: 260px;
    text-align: center;
    border: 1px solid #334155;
}

#website { border: 1px solid var(--accent-color); }
#website:hover { box-shadow: 0 30px 70px rgba(245, 158, 11, 0.35); }

.step-number {
    font-size: 3.2rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.08);
    position: absolute;
    top: 12px;
    left: 20px;
    transition: color 0.3s ease;
}
.step:hover .step-number { color: rgba(37, 99, 235, 0.35); }

.step h3 { font-size: 1.3rem; margin-bottom: 10px; }
.step strong { font-size: 1.05rem; color: var(--text-light); }
.step p, .step ul { color: var(--text-gray); }
.step ul li { margin-bottom: 6px; }


/* =========================================
   PREMIUM AUTH MODAL STYLES
   ========================================= */
.auth-container {
    width: 900px;
    height: 600px; 
    background: #0f172a; 
    border-radius: 20px;
    display: flex;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    border: 1px solid #334155;
}

.auth-left {
    width: 45%;
    padding: 40px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.circle-1, .circle-2 {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}
.circle-1 { width: 200px; height: 200px; top: -50px; left: -50px; }
.circle-2 { width: 300px; height: 300px; bottom: -100px; right: -50px; }

.auth-content-box { position: relative; z-index: 2; }
.auth-left h3 { font-size: 0.9rem; letter-spacing: 2px; opacity: 0.8; margin-bottom: 10px; }
.auth-left h1 { font-size: 2.5rem; line-height: 1.1; margin-bottom: 20px; }
.auth-left p { font-size: 0.95rem; line-height: 1.6; opacity: 0.9; }

.auth-right {
    width: 55%;
    padding: 40px 50px;
    background: #0f172a;
    display: flex;
    flex-direction: column;
    position: relative;
}

.auth-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid #1e293b;
}

.tab-btn {
    background: none;
    border: none;
    color: #64748b;
    font-size: 1.1rem;
    font-weight: 600;
    padding-bottom: 10px;
    cursor: pointer;
    position: relative;
    transition: 0.3s;
}

.tab-btn.active { color: var(--primary-color); }

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    box-shadow: 0 -2px 10px var(--primary-color);
}

.input-group { position: relative; margin-bottom: 20px; }

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    transition: 0.3s;
}

.input-group input {
    width: 100%;
    padding: 12px 15px 12px 45px; 
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    outline: none;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.input-group input:focus + i { color: var(--primary-color); }
.auth-form { animation: fadeIn 0.4s ease-in-out; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.full-btn { width: 100%; }

@media (max-width: 768px) {
    .auth-container { width: 95%; height: auto; flex-direction: column; }
    .auth-left { display: none; }
    .auth-right { width: 100%; padding: 30px 20px; }
}

/* =========================================
   8. FOOTER
   ========================================= */
footer {
    background: #020617;
    padding: 4rem 5%;
    color: var(--text-gray);
    border-top: 1px solid #334155;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 { color: var(--text-light); margin-bottom: 20px; font-size: 1.1rem; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a:hover { color: var(--text-light); }

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #1e293b;
    font-size: 0.9rem;
}

/* =========================================
   9. RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    nav { display: none; }
    .dashboard-preview { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; }
    .auth-container { flex-direction: column; height: auto; width: 90%; }
    .auth-left, .auth-right { width: 100%; }
}

/* =========================================
   10. APPLE STYLE LOADING ANIMATION (Added)
   ========================================= */
.page-reveal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out;
}

.reveal-content {
    text-align: center;
}

.loading-bar-container {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-bar-fill {
    height: 100%;
    background: white;
    width: 0%;
    animation: loadBar 1.5s ease-in-out forwards;
}

@keyframes loadBar {
    0% { width: 0%; }
    50% { width: 60%; }
    100% { width: 100%; }
}

