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

:root {
    --bg-color: #0d0f12;
    --text-primary: #ffffff;
    --text-secondary: #9da3ad;
    --accent-primary: #5865F2; /* Discord AppletBlue */
    --accent-secondary: #7289da;
    --accent-glow: rgba(88, 101, 242, 0.4);
    --card-bg: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.08);
    --nav-height: 80px;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

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

a:hover {
    color: var(--accent-primary);
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--accent-glow);
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
    color: white;
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--text-primary);
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-outline:hover {
    background: var(--card-bg);
    border-color: var(--text-primary);
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.5s ease;
}

.loader-logo-img {
    max-width: 300px;
    height: auto;
    animation: pulse 2s infinite alternate;
}

.loader-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #fff, var(--accent-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 2s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    100% { transform: scale(1.05); opacity: 1; }
}

.spinner {
    margin-top: 20px;
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(13, 15, 18, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
}

body.admin-body .navbar {
    display: none;
}

.nav-brand {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

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

.nav-links li a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

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

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: calc(var(--nav-height) + 40px) 20px 60px;
}

/* Glass Card */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(5px);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

/* Form Styling */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

/* Admin Specific Stats */
.stat-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-glow);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 1.5rem;
}

.stat-info h3 { font-size: 0.85rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; }
.stat-info .value { font-size: 1.8rem; font-weight: 800; }

/* Table Improvements */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 15px 20px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    border-bottom: 2px solid var(--border-color);
}

.admin-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.admin-table tr:hover {
    background: rgba(255,255,255,0.02);
}

.badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-pending { background: rgba(255, 171, 0, 0.1); color: #ffab00; }
.badge-completed { background: rgba(54, 179, 126, 0.1); color: #36b37e; }
.badge-cancelled { background: rgba(255, 86, 48, 0.1); color: #ff5630; }


/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Scroll reveal classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section specific styles */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 20px;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 70%);
    z-index: -1;
    opacity: 0.6;
    pointer-events: none;
}

.hero-logo-float {
    margin-bottom: 30px;
    animation: floating 6s ease-in-out infinite;
}

.hero-logo-float img {
    height: 120px;
    filter: drop-shadow(0 0 30px var(--accent-glow));
}

@keyframes floating {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.premium-title {
    font-size: 5rem !important;
    margin-bottom: 25px;
    line-height: 1 !important;
    letter-spacing: -2px;
    font-weight: 900;
}

.accent-text {
    background: linear-gradient(90deg, #fff, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px var(--accent-glow);
}

.hero-subtitle {
    font-size: 1.4rem !important;
    color: var(--text-secondary);
    max-width: 750px;
    margin-bottom: 50px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 25px;
    z-index: 5;
}

.premium-btn {
    padding: 18px 40px !important;
    font-size: 1.1rem !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #4752c4 100%) !important;
}

.sleek-btn {
    padding: 18px 40px !important;
    font-size: 1.1rem !important;
    border-radius: 12px !important;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.02) !important;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0.5;
    transition: 0.3s;
}

.hero-scroll-indicator:hover { opacity: 1; }

.hero-scroll-indicator span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid white;
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px; left: 50%;
    transform: translateX(-50%);
    width: 4px; height: 8px;
    background: white;
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* Responsive */
/* Services Modern Section */
.premium-services-section {
    position: relative;
    padding: 100px 0;
    margin-bottom: 50px;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.sect-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(88, 101, 242, 0.1);
    color: var(--accent-primary);
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    border: 1px solid rgba(88, 101, 242, 0.2);
}

.services-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card-premium {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.service-card-premium:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(88, 101, 242, 0.1);
}

.card-number {
    position: absolute;
    top: 30px; right: 30px;
    font-size: 3rem;
    font-weight: 900;
    opacity: 0.03;
    color: white;
    font-family: 'Outfit';
}

.service-icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(88, 101, 242, 0.2);
}

.service-card-premium h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}

.service-card-premium p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.service-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 600;
}

.service-feature-list li i {
    color: var(--accent-primary);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    /* --- Hero --- */
    .hero { padding: 0 16px; min-height: 100svh; }
    .hero-logo-float img { height: 80px; }
    .premium-title { font-size: 2.6rem !important; letter-spacing: -1px; }
    .accent-text { font-size: inherit; }
    .hero-subtitle { font-size: 1rem !important; margin-bottom: 36px; }
    .hero-buttons { flex-direction: column; gap: 14px; width: 100%; padding: 0 10px; }
    .hero-buttons a { width: 100%; justify-content: center; }
    .premium-btn, .sleek-btn { padding: 15px 20px !important; font-size: 1rem !important; }
    .hero-scroll-indicator { display: none; }

    /* --- Navbar --- */
    .navbar { padding: 0 16px; }
    .nav-links { display: none; }
    .brand-name { font-size: 1.1rem !important; }
    .main-logo { height: 36px !important; }

    /* --- Mobile Hamburger Toggle (simple show/hide) --- */
    .hamburger {
        display: flex !important;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        background: none;
        border: none;
        padding: 6px;
    }
    .hamburger span {
        display: block;
        width: 24px; height: 2px;
        background: white;
        border-radius: 2px;
        transition: 0.3s;
    }
    .nav-links.open {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: var(--nav-height); left: 0; right: 0;
        background: rgba(13,15,18,0.97);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border-color);
        padding: 20px;
        gap: 5px;
        z-index: 999;
    }
    .nav-links.open li a { padding: 12px 16px; display: block; border-radius: 10px; font-size: 1rem; }
    .nav-links.open li a:hover { background: rgba(255,255,255,0.05); }

    /* --- Grids --- */
    .grid { grid-template-columns: 1fr !important; }
    .services-modern-grid { grid-template-columns: 1fr; }

    /* --- Services --- */
    .premium-services-section { padding: 60px 0; }
    .service-card-premium { padding: 28px 22px; }

    /* --- Portfolio --- */
    .glass-card { padding: 20px; }

    /* --- Admin --- */
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; min-height: auto; flex-direction: row; flex-wrap: wrap; gap: 10px; }
    .admin-main { padding: 20px 16px; }
    .admin-table { font-size: 0.8rem; }
    .admin-table td, .admin-table th { padding: 10px 8px; }

    /* --- Toast (bottom-left, clamp width on phone) --- */
    #order-toast-container { left: 10px; right: 10px; bottom: 20px; }
    .order-toast { min-width: unset; max-width: 100%; width: 100%; }

    /* --- Forms --- */
    .form-group label { font-size: 0.85rem; }
    .form-control { font-size: 0.9rem; }

    /* --- Buttons --- */
    .btn-primary, .btn-outline { padding: 11px 20px; font-size: 0.9rem; }

    /* --- Container --- */
    .container { padding-left: 16px; padding-right: 16px; }

    /* --- Legal page --- */
    .legal-card { padding: 28px 20px; }
    .legal-hero h1 { font-size: 2rem; }
    .legal-tabs { width: 100%; }
    .legal-tab { flex: 1; text-align: center; padding: 10px; }
}

@media (max-width: 480px) {
    .premium-title { font-size: 2.1rem !important; }
    .hero-logo-float img { height: 64px; }
    .section-header h2 { font-size: 2.2rem !important; }
}
