/* CSS Variables */
:root {
    --primary: #4361ee;
    --primary-dark: #3a0ca3;
    --secondary: #4cc9f0;
    --accent: #f72585;
    
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.4);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glass-blur: blur(12px);
    
    --font-sans: 'Outfit', sans-serif;
    
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* Background Animations */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at center, #111827 0%, #030712 100%);
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: float 20s infinite alternate ease-in-out;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: rgba(67, 97, 238, 0.3);
    top: -100px;
    left: -100px;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: rgba(247, 37, 133, 0.2);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.glow-3 {
    width: 400px;
    height: 400px;
    background: rgba(76, 201, 240, 0.2);
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 50px) scale(1.1); }
    100% { transform: translate(-50px, -20px) scale(0.9); }
}

/* Typography */
h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: 1rem;
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.6);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-block {
    display: flex;
    width: 100%;
    margin-top: 1rem;
}

.btn-store {
    background: #000;
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
}

.btn-store:hover {
    background: #111;
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(76, 201, 240, 0.3);
}

/* Glass Card Reusable Class */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 1.5rem 0;
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
    opacity: 0.8;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--secondary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 5rem;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(67, 97, 238, 0.15);
    border: 1px solid rgba(67, 97, 238, 0.3);
    border-radius: 30px;
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.stats {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
}

.stat-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Image/Mockup */
.hero-image {
    position: relative;
    padding: 2rem;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.4));
    border-width: 2px;
}

.mockup-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mockup-screen {
    width: 280px;
    height: 420px;
    background: var(--bg-dark);
    border-radius: 24px;
    border: 8px solid #334155;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    z-index: 2;
    transform: rotate(-5deg);
    transition: var(--transition);
}

.hero-image:hover .mockup-screen {
    transform: rotate(0deg) scale(1.05);
}

.mockup-header {
    background: var(--primary-dark);
    padding: 1rem;
    color: white;
    font-weight: 600;
    text-align: center;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.mockup-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.mockup-item {
    height: 60px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    width: 100%;
}

.highlight-item {
    background: rgba(76, 201, 240, 0.2);
    border: 1px solid rgba(76, 201, 240, 0.4);
    position: relative;
    overflow: hidden;
}

.highlight-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% { left: 200%; }
}

.floating-badge {
    position: absolute;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.8rem 1.2rem;
    border-radius: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 3;
    animation: simpleFloat 4s infinite ease-in-out;
}

@keyframes simpleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.badge-1 {
    top: 20%;
    right: -20px;
    color: #10b981;
}

.badge-2 {
    bottom: 30%;
    left: -30px;
    color: var(--secondary);
    animation-delay: -2s;
}

/* Sections Common */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

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

.about-card {
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.2), rgba(76, 201, 240, 0.2));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--secondary);
    margin: 0 auto 1.5rem;
    border: 1px solid rgba(76, 201, 240, 0.3);
}

/* Apps Section */
.apps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.app-card {
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
}

.app-card:nth-child(1)::before { background: linear-gradient(to right, #4361ee, #4cc9f0); }
.app-card:nth-child(2)::before { background: linear-gradient(to right, #f72585, #7209b7); }
.app-card:nth-child(3)::before { background: linear-gradient(to right, #10b981, #3b82f6); }

.app-card:hover {
    transform: translateY(-15px) scale(1.02);
    z-index: 10;
}

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.user-gradient { background: linear-gradient(135deg, #4361ee, #4cc9f0); }
.service-gradient { background: linear-gradient(135deg, #7209b7, #f72585); }
.dept-gradient { background: linear-gradient(135deg, #3b82f6, #10b981); }

.app-content {
    flex: 1;
}

.app-subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.app-features {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.app-features li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    color: #cbd5e1;
    font-size: 0.95rem;
}

.app-features li i {
    color: var(--secondary);
    font-size: 0.8rem;
}

/* Hero Image Enhancements */
.hero-img-content {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    opacity: 0.9;
    transition: var(--transition);
}

.hero-image:hover .hero-img-content {
    opacity: 1;
    transform: scale(1.02);
}

/* Impact Section */
.impact {
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(15, 23, 42, 0.6) 100%);
    position: relative;
}

.impact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.impact-image {
    position: relative;
    padding: 1rem;
    height: 500px;
}

.impact-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.5;
    z-index: -1;
}

.impact-img-content {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.5s ease;
}

.impact-img-content:hover {
    transform: translateY(-10px);
}

.impact-content h2 {
    margin-bottom: 1.5rem;
}

.impact-lead {
    font-size: 1.2rem;
    color: #e2e8f0;
    margin-bottom: 2.5rem;
    border-left: 4px solid var(--secondary);
    padding-left: 1rem;
}

.impact-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.impact-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: rgba(76, 201, 240, 0.1);
    color: var(--secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 1px solid rgba(76, 201, 240, 0.2);
}

.impact-text h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.impact-text p {
    font-size: 1rem;
    margin-bottom: 0;
}

/* Footer */
.footer {
    background: rgba(15, 23, 42, 0.9);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 4rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 350px;
}

.footer-brand p {
    margin-top: 1rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

.link-group h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.link-group a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    transition: var(--transition);
}

.link-group a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations / Initial States */
.fade-up {
    animation: fadeUpAnim 0.8s ease-out forwards;
}

.fade-left {
    animation: fadeLeftAnim 0.8s ease-out forwards;
}

@keyframes fadeUpAnim {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.fade-in {
    opacity: 1;
    transform: translate(0);
}

/* Staggered Delay for Apps */
.dl-delay-1 { animation-delay: 0.2s; }
.dl-delay-2 { animation-delay: 0.4s; }

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        order: 1;
    }
    
    .impact-container {
        grid-template-columns: 1fr;
    }
    
    .impact-image {
        order: 2;
        height: 350px;
    }
    
    .impact-content {
        order: 1;
        text-align: center;
    }
    
    .impact-list li {
        text-align: left;
    }
    
    .hero-buttons, .stats {
        justify-content: center;
    }
    
    .hero-image {
        order: 2;
        height: 400px;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hamburger {
        display: block;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .stats {
        flex-wrap: wrap;
    }
    
    .stat-divider {
        display: none;
    }
    
    .stat-item {
        flex: 1 1 40%;
        margin-bottom: 1rem;
    }
}
