:root {
    /* Ultra-deep dark base */
    --bg-color: #09090b;
    --bg-color-rgb: 9, 9, 11;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    
    /* Neon Accents */
    --accent-1: #14b8a6; /* Teal */
    --accent-1-rgb: 20, 184, 166;
    --accent-2: #8b5cf6; /* Violet */
    --accent-2-rgb: 139, 92, 246;
    --accent-3: #ec4899; /* Pink */
    
    /* Glassmorphism 2.0 */
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-highlight: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --font-main: 'Inter', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

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

/* Dynamic Background with Noise Overlay */
.bg-animation {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1; overflow: hidden;
    background: radial-gradient(circle at 50% 0%, rgba(var(--accent-2-rgb), 0.12) 0%, transparent 60%),
                radial-gradient(circle at 0% 50%, rgba(var(--accent-1-rgb), 0.08) 0%, transparent 50%);
}

.noise-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0.035;
    pointer-events: none;
    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)'/%3E%3C/svg%3E");
}

.blob {
    position: absolute; filter: blur(100px); opacity: 0.3;
    border-radius: 50%; animation: float 25s infinite ease-in-out alternate;
}
.blob-1 { top: -10%; right: -10%; width: 500px; height: 500px; background: var(--accent-2); }
.blob-2 { bottom: -20%; left: -10%; width: 600px; height: 600px; background: var(--accent-1); animation-delay: -5s; }
.blob-3 { top: 40%; left: 50%; width: 400px; height: 400px; background: var(--accent-3); animation-delay: -12s; opacity: 0.15; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, 80px) scale(1.15); }
}

/* Typography */
h1, h2, h3, .section-title { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
p { color: var(--text-secondary); font-size: 1.1rem; }
.gradient-text {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* Navigation */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; padding: 1.5rem 0;
    z-index: 1000; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-bottom: 1px solid transparent;
}
.navbar.scrolled {
    padding: 1rem 0; background: rgba(var(--bg-color-rgb), 0.7);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
}
.navbar.hidden {
    transform: translateY(-100%);
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 36px; width: auto; border-radius: 6px; }

.nav-links { display: flex; list-style: none; gap: 2.5rem; align-items: center; }
.nav-links a {
    color: var(--text-primary); text-decoration: none; font-weight: 500;
    font-size: 0.95rem; transition: color 0.3s ease; position: relative;
}
.nav-links a.magnetic-link::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -4px; left: 0; background: var(--accent-1);
    transition: width 0.3s ease;
}
.nav-links a.magnetic-link:hover::after { width: 100%; }
.nav-links a:hover { color: var(--accent-1); }

.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; }
.mobile-menu-btn span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: 0.3s; }

/* Buttons */
.btn {
    display: inline-block; padding: 1rem 2.5rem; border-radius: 50px;
    text-decoration: none; font-weight: 600; font-size: 1.05rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); cursor: pointer;
    font-family: var(--font-display); letter-spacing: 0.5px;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); color: #fff;
    box-shadow: 0 10px 25px -5px rgba(var(--accent-1-rgb), 0.4); border: 1px solid rgba(255,255,255,0.1);
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px -5px rgba(var(--accent-2-rgb), 0.5);
}
.btn-nav {
    padding: 0.6rem 1.5rem; background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: 50px; font-size: 0.9rem;
}
.btn-nav:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }

/* General Sections */
.section { padding: 8rem 0; }
.section-title { text-align: center; font-size: 3rem; margin-bottom: 4rem; }

/* Glass Panels */
.glass-panel {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-radius: 24px; padding: 2.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    position: relative; overflow: hidden;
}
.glass-panel::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-highlight), transparent);
}

/* Hero Section */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding-top: 5rem; position: relative;
}
.hero-content { text-align: center; max-width: 900px; z-index: 10; }
.hero h1 { font-size: clamp(3.5rem, 6vw, 5.5rem); margin-bottom: 1.5rem; line-height: 1.05; text-wrap: balance; }
.hero p { font-size: 1.25rem; margin-bottom: 3rem; max-width: 600px; margin-inline: auto; color: #cbd5e1; }

/* Services Grid */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.service-card { transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.service-card:hover {
    transform: translateY(-12px); border-color: rgba(var(--accent-1-rgb), 0.3);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    box-shadow: 0 20px 40px -10px rgba(var(--accent-1-rgb), 0.15);
}
.icon-wrapper {
    width: 64px; height: 64px; border-radius: 16px; margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(var(--accent-1-rgb), 0.15), rgba(var(--accent-2-rgb), 0.15));
    border: 1px solid rgba(var(--accent-1-rgb), 0.3);
    display: flex; align-items: center; justify-content: center; color: var(--accent-1);
}
.service-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }

/* Featured Projects */
.projects-grid { 
    display: flex; 
    overflow-x: auto; 
    gap: 2rem; 
    padding: 2rem 1rem 4rem 1rem; 
    margin: -2rem -1rem -4rem -1rem;
    scroll-snap-type: x mandatory;
    scroll-padding: 1rem;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.02); /* Firefox */
}
.projects-grid::-webkit-scrollbar { 
    height: 8px; 
}
.projects-grid::-webkit-scrollbar-track { 
    background: rgba(255, 255, 255, 0.02); 
    border-radius: 10px;
    margin: 0 1rem;
}
.projects-grid::-webkit-scrollbar-thumb { 
    background: rgba(255, 255, 255, 0.2); 
    border-radius: 10px; 
}
.projects-grid::-webkit-scrollbar-thumb:hover { 
    background: rgba(0, 242, 254, 0.5); 
}
.project-card {
    flex: 0 0 calc(100% - 2rem);
    max-width: 450px;
    scroll-snap-align: center;
    display: flex; flex-direction: column; transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 2rem;
}
@media (min-width: 768px) {
    .project-card {
        flex: 0 0 420px;
        scroll-snap-align: start;
    }
}
.project-card:hover { transform: translateY(-15px); }
.medixhub-card:hover { border-color: rgba(0, 242, 254, 0.45); box-shadow: 0 30px 60px -15px rgba(0, 242, 254, 0.15); }
.fitdesk-card:hover { border-color: rgba(37, 99, 235, 0.45); box-shadow: 0 30px 60px -15px rgba(37, 99, 235, 0.15); }
.pahredaar-card:hover { border-color: rgba(168, 85, 247, 0.45); box-shadow: 0 30px 60px -15px rgba(168, 85, 247, 0.15); }

.project-banner {
    height: 180px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
    margin-bottom: 2rem; position: relative; overflow: hidden; transition: transform 0.4s ease;
}
.medixhub-banner { background: #060a14; border: 1px solid rgba(0, 242, 254, 0.2); }
.fitdesk-banner { background: #0f172a; border: 1px solid rgba(2, 132, 199, 0.3); }
.pahredaar-banner { background: linear-gradient(135deg, #1e293b, #0f172a); border: 1px solid rgba(255,255,255,0.1); }

.project-logo { height: 90px; transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.project-card:hover .project-logo { transform: scale(1.08); }

.project-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.2rem; }
.tag { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; padding: 0.4rem 1rem; border-radius: 50px; }
.medixhub-card .tag { color: #00f2fe; background: rgba(0, 242, 254, 0.1); border: 1px solid rgba(0, 242, 254, 0.2); }
.fitdesk-card .tag { color: #60a5fa; background: rgba(96, 165, 250, 0.1); border: 1px solid rgba(96, 165, 250, 0.2); }
.pahredaar-card .tag { color: #a855f7; background: rgba(168, 85, 247, 0.1); border: 1px solid rgba(168, 85, 247, 0.2); }

.project-content h3 { font-size: 2rem; margin-bottom: 1rem; }
.project-content p { font-size: 1.1rem; margin-bottom: 2.5rem; flex-grow: 1; }
.project-footer { display: flex; padding-top: 1.5rem; border-top: 1px solid var(--glass-border); }

.btn-project {
    display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.8rem 2rem;
    border-radius: 50px; font-size: 1rem; font-weight: 600; font-family: var(--font-display);
    color: #fff; background: var(--glass-bg); border: 1px solid var(--glass-border);
    text-decoration: none; transition: all 0.3s ease;
}
.medixhub-card .btn-project:hover { background: linear-gradient(135deg, #00f2fe, #0544f2); border-color: transparent; transform: translateY(-2px); }
.fitdesk-card .btn-project:hover { background: linear-gradient(135deg, #0284C7, #2563EB); border-color: transparent; transform: translateY(-2px); }
.pahredaar-card .btn-project:hover { background: linear-gradient(135deg, #a855f7, #ec4899); border-color: transparent; transform: translateY(-2px); }

/* About / Why Us Section */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-content p { margin-bottom: 1.5rem; font-size: 1.15rem; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.stat-card { text-align: center; padding: 3rem 2rem; border-radius: 24px; }
.stat-number { font-size: 3.5rem; font-family: var(--font-display); font-weight: 900; margin-bottom: 0.5rem; line-height: 1; }
.stat-label { font-size: 1.1rem; color: var(--text-secondary); font-weight: 500; }

/* Contact Section */
.contact-card { text-align: center; max-width: 800px; margin: 0 auto; padding: 4rem 2rem; }
.contact-card p { margin-bottom: 2.5rem; font-size: 1.25rem; }

/* Footer */
footer { padding: 4rem 0 2rem 0; border-top: 1px solid var(--glass-border); margin-top: 2rem; background: rgba(0,0,0,0.2); }
.footer-content { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 2rem; margin-bottom: 3rem; }
.footer-brand .logo img { opacity: 0.8; transition: opacity 0.3s ease; }
.footer-brand:hover .logo img { opacity: 1; }
.footer-tagline { margin-top: 1rem; font-size: 0.95rem; max-width: 300px; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { color: var(--text-secondary); text-decoration: none; transition: color 0.3s ease; font-weight: 500; }
.footer-links a:hover { color: var(--accent-1); }
.footer-bottom { border-top: 1px solid var(--glass-border); padding-top: 2rem; text-align: center; font-size: 0.9rem; color: #64748b; }

/* Scroll Animations */
.fade-in-up {
    opacity: 0; transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* Responsive */
@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    
    .nav-links { 
        position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background: rgba(10, 15, 30, 0.98); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
        flex-direction: column; justify-content: center; align-items: center;
        gap: 3rem; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999; display: flex;
    }
    .nav-links.active { transform: translateX(0); }
    .nav-links a { font-size: 1.5rem; }
    
    .mobile-menu-btn { display: block; z-index: 1000; position: relative; }
    .mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    .section { padding: 4rem 0; }
    .about-stats { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; text-align: center; align-items: center; }
    .footer-links { flex-direction: column; gap: 1rem; align-items: center; }
}
