/* 
   Sajid Tech Solutions - Modern Glassmorphism 2.0 
   Design System & Core Styles
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    /* Core Colors */
    --bg-dark: #020617;
    --bg-darker: #000000;

    /* Neon Accents */
    --primary: #3b82f6;
    /* Electric Blue */
    --primary-glow: rgba(59, 130, 246, 0.6);
    --secondary: #8b5cf6;
    /* Violet */
    --secondary-glow: rgba(139, 92, 246, 0.6);
    --accent: #06b6d4;
    /* Cyan */
    --accent-glow: rgba(6, 182, 212, 0.6);
    --success: #10b981;
    --warning: #f59e0b;

    /* Glass Tokens */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --backdrop-blur: blur(16px);

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;

    /* Text Colors */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    /* Transitions */
    --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s var(--ease-out-quart);
    --transition-slow: 0.8s var(--ease-out-quart);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    letter-spacing: -0.01em;
    min-height: 100vh;
    position: relative;
}

/* Selection */
::selection {
    background: var(--primary);
    color: #fff;
    text-shadow: none;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Ambient Background */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.08), transparent 25%);
    pointer-events: none;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.gradient-text {
    background: linear-gradient(to right,
            #fff 0%,
            var(--primary) 40%,
            var(--accent) 50%,
            var(--primary) 60%,
            #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: text-shimmer 5s linear infinite;
    position: relative;
    display: inline-block;
}

@keyframes text-shimmer {
    to {
        background-position: 200% center;
    }
}

.glow-text {
    text-shadow: 0 0 20px var(--primary-glow);
}

/* Glass Components */
.glass-panel {
    background: var(--glass-bg);
    border: var(--glass-border);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    box-shadow: var(--glass-shadow);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    opacity: 0.5;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    z-index: 100;
    border-radius: 100px;
    transition: var(--transition-medium);
}

.nav-scrolled {
    background: rgba(2, 6, 23, 0.8);
    border: var(--glass-border);
    backdrop-filter: blur(20px);
    width: 95%;
    top: 10px;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo i {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transform: translateX(-50%);
    transition: var(--transition-medium);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 20px 60px;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    z-index: 10;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 100px;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    animation: fade-up 1s var(--ease-out-quart) backwards;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    animation: fade-up 1s var(--ease-out-quart) 0.2s backwards;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fade-up 1s var(--ease-out-quart) 0.4s backwards;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    animation: fade-up 1s var(--ease-out-quart) 0.6s backwards;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-medium);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

/* Apps Showcase */
.section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.app-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: var(--transition-medium);
    transform-style: preserve-3d;
}

.app-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.app-icon-wrapper {
    width: 80px;
    height: 80px;
    margin-bottom: 30px;
    position: relative;
}

.app-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.app-icon-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-dark), #1e293b);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.icon-glow-3 {
    background: linear-gradient(135deg, #8E2DE2, #4A00E0);
    box-shadow: 0 8px 16px rgba(74, 0, 224, 0.3);
}

/* Utility */
.hidden {
    display: none !important;
}

.app-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.app-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.app-description {
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.7;
    font-size: 1rem;
    flex-grow: 1;
}

.app-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.app-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    width: 100%;
}

.app-meta i {
    color: var(--accent-color);
    margin-right: 5px;
}

.app-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.feature-tag {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-dim);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.app-footer {
    width: 100%;
    margin-top: auto;
}

.btn-download {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-download:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Features/About Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-box {
    text-align: center;
    padding: 40px 20px;
    transition: var(--transition-medium);
}

.feature-box:hover {
    background: rgba(255, 255, 255, 0.02);
}

.feature-icon-box {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition-medium);
}

.feature-box:hover .feature-icon-box {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 20px var(--primary-glow);
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #000;
    padding: 80px 0 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand h2 {
    font-family: var(--font-heading);
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-muted);
}

.footer-nav h4 {
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 12px;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.2s;
}

.footer-nav a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Animations */
.mobile-toggle {
    display: none;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
/* Super Responsive Refinements */

/* Fluid Typography */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Offset for sticky header */
}

@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .hero-title {
        font-size: clamp(2.5rem, 5vw, 4rem);
    }

    .section {
        padding: 80px 0;
    }
}

@media (max-width: 768px) {

    /* Navbar Mobile Polish */
    .navbar {
        width: 100%;
        top: 0;
        border-radius: 0;
        height: 60px;
        padding: 0 20px;
        background: rgba(2, 6, 23, 0.95);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .logo {
        font-size: 1.3rem;
    }

    .mobile-toggle {
        display: block;
        padding: 10px;
        cursor: pointer;
        z-index: 1001;
        position: relative;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(2, 6, 23, 0.98);
        backdrop-filter: blur(20px);
        padding: 30px;
        gap: 25px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.4s var(--ease-out-quart);
        pointer-events: none;
        z-index: 1000;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-link {
        font-size: 1.2rem;
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    }

    /* Hero Mobile */
    .hero {
        padding-top: 100px;
        padding-bottom: 40px;
        min-height: auto;
    }

    .hero-title {
        font-size: clamp(2.2rem, 8vw, 3rem);
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
        padding: 0 10px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 16px;
    }

    /* Sections Mobile */
    .section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .apps-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .app-card {
        padding: 25px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-box {
        padding: 30px 20px;
    }

    /* Footer Mobile */
    .footer-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .footer-brand {
        max-width: 100%;
        margin: 0 auto;
    }

    .footer-brand div {
        justify-content: center;
    }
}