/* 
   M G Developers - Premium Dark Theme Stylesheet
   Designed for Software & App Development Company
*/

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

:root {
    --bg-primary: #050814;
    --bg-secondary: #0b1126;
    --bg-card: rgba(13, 22, 47, 0.45);
    --border-color: rgba(255, 255, 255, 0.07);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-blue: #2563eb;
    --accent-cyan: #06b6d4;
    --gradient-accent: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    --gradient-glow: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, rgba(5, 8, 20, 0) 70%);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* Body and Typography */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    position: relative;
}

/* Add subtle glowing background orbs */
body::before {
    content: '';
    position: absolute;
    top: 5%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, rgba(5, 8, 20, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, rgba(5, 8, 20, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.06);
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(8, 145, 178, 0.3);
    box-shadow: 0 12px 40px 0 rgba(8, 145, 178, 0.1);
}

/* Glass Inputs */
.glass-input {
    background: rgba(13, 22, 47, 0.6);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.glass-input:focus {
    background: rgba(13, 22, 47, 0.9);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.2);
    color: var(--text-primary);
    outline: none;
}

.glass-input::placeholder {
    color: #94a3b8;
}

select.glass-input option {
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* Buttons */
.btn-gradient {
    background: var(--gradient-accent);
    color: var(--text-primary);
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-gradient:hover {
    color: var(--text-primary);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5);
    transform: translateY(-2px);
}

.btn-outline-cyan {
    border: 1px solid var(--accent-cyan);
    background: transparent;
    color: var(--accent-cyan);
    font-weight: 600;
    border-radius: 8px;
    padding: 12px 28px;
    transition: all 0.3s ease;
}

.btn-outline-cyan:hover {
    background: var(--gradient-accent);
    color: var(--text-primary);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

/* Text Gradient */
.text-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Top Bar Styling */
.top-bar {
    background: rgba(3, 5, 12, 0.95);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 1030;
}

.top-bar-item {
    font-size: 0.85rem;
    font-weight: 500;
}

.top-bar-item a {
    transition: color 0.3s ease;
}

.top-bar-item a:hover {
    color: var(--text-primary) !important;
}

/* Custom Navbar styling */
.custom-navbar {
    background: rgba(5, 8, 20, 0.8) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.custom-navbar.scrolled {
    padding: 10px 0;
    background: rgba(3, 5, 12, 0.95) !important;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary) !important;
    letter-spacing: -0.5px;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.95rem;
    margin: 0 8px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--gradient-accent);
    transition: width 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary) !important;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.navbar-toggler {
    border-color: var(--border-color);
}

.navbar-toggler-icon {
    filter: invert(1);
}

/* Hero Section */
.hero-section {
    padding: 160px 0 100px;
    position: relative;
}

.hero-stats {
    margin-top: 50px;
}

.stat-item h3 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0;
}

/* Illustration simulation with premium CSS graphics */
.tech-illustration {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-illustration .sphere {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37,99,235,0.7) 0%, rgba(6,182,212,0.7) 100%);
    box-shadow: 0 0 80px rgba(6, 182, 212, 0.4);
    animation: float 6s ease-in-out infinite;
    position: absolute;
}

.tech-illustration .grid-line {
    position: absolute;
    width: 350px;
    height: 350px;
    border: 1px dashed rgba(255,255,255,0.15);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.tech-illustration .code-card {
    position: absolute;
    width: 220px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--accent-cyan);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
}

.tech-illustration .code-card-1 {
    top: 15%;
    right: 5%;
    transform: rotate(6deg);
    animation: float-delayed 7s ease-in-out infinite;
}

.tech-illustration .code-card-2 {
    bottom: 10%;
    left: 5%;
    transform: rotate(-6deg);
    animation: float 8s ease-in-out infinite;
}

/* Service Card Icons */
.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--accent-cyan);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.glass-card:hover .service-icon {
    background: var(--gradient-accent);
    color: var(--text-primary);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

/* Timeline/How We Work */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: var(--bg-primary);
    border: 3px solid var(--accent-cyan);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.8);
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.right::after {
    left: -8px;
}

.timeline-content {
    padding: 25px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    position: relative;
}

.timeline-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 5px;
    line-height: 1;
}

/* Project Cards & Filters */
.filter-btn {
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 4px;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--gradient-accent);
    color: var(--text-primary);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.project-card {
    overflow: hidden;
}

.project-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.project-img-wrapper img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img-wrapper img {
    transform: scale(1.08);
}

.project-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    color: var(--accent-cyan);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 30px;
}

.tech-tag {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 3px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-right: 5px;
    margin-bottom: 5px;
}

/* Pricing Card Special */
.pricing-card.popular {
    border-color: var(--accent-cyan);
    position: relative;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-accent);
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 18px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(6, 182, 212, 0.3);
}

/* Footer Section */
.footer {
    background: #03050c;
    border-top: 1px solid var(--border-color);
    padding: 80px 0 30px;
}

.footer-logo {
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 12px;
}

.footer-link:hover {
    color: var(--accent-cyan);
    padding-left: 4px;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    margin-right: 8px;
}

.social-icon:hover {
    background: var(--gradient-accent);
    color: var(--text-primary);
    border-color: transparent;
    transform: translateY(-3px);
}

/* Testimonial slider / items */
.testimonial-item {
    padding: 30px;
}

.testimonial-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-cyan);
    margin-right: 15px;
}

.stars {
    color: #fbbf24;
}

/* Animations definitions */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0) rotate(6deg); }
    50% { transform: translateY(-15px) rotate(6deg); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Admin Dashboard styling */
.admin-card {
    padding: 24px;
}
.admin-card-number {
    font-size: 2.2rem;
    font-weight: 800;
}
.sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    min-height: calc(100vh - 72px);
    padding: 20px 0;
}
.sidebar-link {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}
.sidebar-link i {
    font-size: 1.2rem;
    margin-right: 12px;
}
/* Admin Dashboard styling */
.sidebar-link:hover, .sidebar-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid var(--accent-cyan);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .sidebar {
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .timeline::after {
        left: 31px;
    }
    .timeline-container {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-container::after {
        left: 23px;
    }
    .right {
        left: 0%;
    }
}
@media (max-width: 767.98px) {
    .hero-section {
        padding: 120px 0 60px;
        text-align: center;
    }
    .tech-illustration {
        margin-top: 40px;
        height: 300px;
    }
    .tech-illustration .sphere {
        width: 180px;
        height: 180px;
    }
    .tech-illustration .code-card {
        width: 170px;
        font-size: 0.7rem;
    }
}
