@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-deep: #050505;
    --bg-surface: #0a0a0a;
    --bg-card: rgba(20, 20, 20, 0.8);
    --primary: #3b82f6; /* Blue */
    --secondary: #8b5cf6; /* Purple */
    --accent: #10b981; /* Green */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --dark-gradient: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 4px 10px rgba(0,0,0,0.5);
    --shadow-md: 0 15px 40px rgba(59, 130, 246, 0.15);
    --shadow-lg: 0 20px 50px rgba(139, 92, 246, 0.2);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, .brand-text {
    font-weight: 800;
    color: var(--text-main);
}

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

/* Background Elements */
.bg-shapes {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; overflow: hidden;
    background: radial-gradient(circle at center, #0f172a 0%, #050505 100%);
}

.shape { position: absolute; filter: blur(120px); border-radius: 50%; opacity: 0.5; }

.shape-1 {
    width: 600px; height: 600px; background: rgba(59, 130, 246, 0.15);
    top: -100px; right: -200px; animation: drift 20s infinite alternate ease-in-out;
}

.shape-2 {
    width: 500px; height: 500px; background: rgba(139, 92, 246, 0.15);
    bottom: -100px; left: -150px; animation: drift-reverse 25s infinite alternate ease-in-out;
}

@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-100px, 100px) scale(1.1); } }
@keyframes drift-reverse { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(100px, -100px) scale(1.1); } }

/* Navigation */
.navbar { padding: 1.2rem 0; background: transparent; transition: var(--transition); }
.navbar.scrolled {
    background: rgba(10, 10, 10, 0.85); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border); box-shadow: var(--shadow-sm); padding: 0.8rem 0;
}
.brand-wrapper { display: flex; align-items: center; gap: 12px; }
.brand-logo {
    width: 42px; height: 42px; background: var(--accent-gradient); border-radius: 12px;
    display: flex; align-items: center; justify-content: center; color: white; font-size: 1.4rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}
.brand-text { font-size: 1.1rem; letter-spacing: -0.5px; color: var(--text-main); }
.nav-link { color: var(--text-muted) !important; font-weight: 600; margin: 0 1rem; position: relative; font-size: 0.95rem; }
.nav-link:hover, .nav-link.active { color: white !important; }
.nav-link::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
    background: var(--accent-gradient); transition: var(--transition); border-radius: 2px;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Buttons */
.btn-tech {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 28px; border-radius: 12px; font-weight: 700;
    background: var(--accent-gradient); color: white; box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
    transition: var(--transition); border: none; position: relative; overflow: hidden; z-index: 1;
}
.btn-tech::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%); z-index: -1; transition: opacity 0.4s ease; opacity: 0;
}
.btn-tech:hover::before { opacity: 1; }
.btn-tech:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(59, 130, 246, 0.4); color: white; }

/* Hero Section */
.hero { min-height: 100vh; padding: 160px 0 100px; display: flex; align-items: center; position: relative; }
.hero-chip {
    display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px;
    background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50px; color: #60a5fa; font-size: 0.85rem; font-weight: 700; margin-bottom: 1.5rem;
}
.hero h1 { font-size: clamp(3rem, 8vw, 5rem); line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -2px; }
.gradient-text { background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.15rem; color: var(--text-muted); max-width: 500px; margin-bottom: 2.5rem; }

/* Phone Mockup Visual (replaces dashboard mockup) */
.phone-mockup-wrapper {
    position: relative; width: 100%; height: 500px; display: flex; justify-content: center; align-items: center; perspective: 1000px;
}
.phone-frame {
    width: 260px; height: 540px; background: #0f172a; border-radius: 40px;
    border: 8px solid #1e293b; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
    transform: rotateY(-15deg) rotateX(10deg); animation: float-phone 6s ease-in-out infinite; display: flex; flex-direction: column;
}
.phone-notch {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 120px; height: 24px; background: #1e293b; border-radius: 0 0 12px 12px; z-index: 2;
}
.phone-body {
    flex: 1; padding: 40px 15px 15px; display: flex; flex-direction: column; gap: 15px; background: #0b1120; position: relative;
}
.app-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.app-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-gradient); }
.app-title { width: 100px; height: 12px; border-radius: 6px; background: #1e293b; }
.app-card {
    background: #1e293b; border-radius: 16px; padding: 15px; box-shadow: var(--shadow-sm);
    transform: translateY(20px); opacity: 0; animation: slide-up 0.8s forwards;
}
.app-card:nth-child(2) { animation-delay: 0.2s; }
.app-card:nth-child(3) { animation-delay: 0.4s; }
.app-card-img { width: 100%; height: 80px; border-radius: 10px; background: rgba(255,255,255,0.05); margin-bottom: 10px; }
.app-card-line { height: 8px; border-radius: 4px; background: #334155; margin-bottom: 8px; }
.app-card-line.short { width: 60%; }
.app-card-line.accent { background: var(--accent-gradient); }

@keyframes slide-up { to { transform: translateY(0); opacity: 1; } }
@keyframes float-phone {
    0%, 100% { transform: rotateY(-15deg) rotateX(10deg) translateY(0); }
    50% { transform: rotateY(-15deg) rotateX(10deg) translateY(-20px); }
}

/* Sections */
.section-padding { padding: 100px 0; }
.section-head { text-align: center; margin-bottom: 60px; }

/* Feature Cards */
.feature-card {
    background: var(--bg-card); backdrop-filter: blur(10px); border: 1px solid var(--glass-border);
    padding: 40px 30px; border-radius: 24px; height: 100%; transition: var(--transition);
    box-shadow: var(--shadow-md); position: relative; overflow: hidden;
}
.feature-card:hover { transform: translateY(-10px); background: #1e293b; border-color: rgba(59, 130, 246, 0.3); }
.feature-icon {
    width: 60px; height: 60px; background: rgba(59, 130, 246, 0.1); border-radius: 16px;
    display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
    color: #60a5fa; margin-bottom: 20px; transition: var(--transition);
}
.feature-card:hover .feature-icon { background: var(--accent-gradient); color: white; transform: rotate(10deg) scale(1.1); }
.feature-card h4 { color: white; margin-bottom: 15px; }

/* Stats */
.stat-box {
    background: var(--bg-card); padding: 30px; border-radius: 20px; text-align: center;
    box-shadow: var(--shadow-sm); border: 1px solid var(--glass-border);
}
.stat-number {
    font-size: 3rem; font-weight: 800; background: var(--accent-gradient); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; line-height: 1; margin-bottom: 10px; display: block;
}

/* Contact Specific */
.contact-hero { padding: 160px 0 100px; position: relative; }
.contact-card {
    background: var(--bg-card); border: 1px solid var(--glass-border); padding: 40px; border-radius: 24px; box-shadow: var(--shadow-md); backdrop-filter: blur(10px);
}
.contact-card h3 { color: white; }
.form-label { color: #cbd5e1; font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; }
.form-control {
    background: rgba(255,255,255,0.05) !important; border: 1px solid var(--glass-border) !important;
    color: white !important; padding: 14px 20px !important; border-radius: 12px !important; transition: var(--transition) !important;
}
.form-control:focus {
    background: rgba(255,255,255,0.1) !important; border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2) !important; color: white !important;
}
.form-control::placeholder { color: #64748b !important; }
.info-item { display: flex; gap: 20px; margin-bottom: 30px; align-items: center; }
.info-icon {
    width: 50px; height: 50px; background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #60a5fa;
    font-size: 1.2rem; box-shadow: var(--shadow-sm);
}
.info-item .text-dark { color: white !important; } /* override text-dark */

/* Footer */
.footer { padding: 80px 0 40px; background: #050505; border-top: 1px solid var(--glass-border); }
.footer h5 { color: white; font-size: 1.5rem; }

@media (max-width: 991px) {
    .navbar-collapse {
        background: #0f172a; margin-top: 15px; padding: 20px; border-radius: 16px; box-shadow: var(--shadow-md); border: 1px solid var(--glass-border);
    }
    .hero { text-align: center; padding-top: 130px; }
    .hero p { margin: 0 auto 2rem; }
    .hero .d-flex { justify-content: center; }
    .phone-mockup-wrapper { margin-top: 50px; }
}