/* ====== Global Variables & Reset ====== */
:root {
    --bg-color: #070a13; /* Slightly darker and richer black/blue */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #3b82f6; /* Faculty Pro Blue */
    --accent-glow: rgba(59, 130, 246, 0.5);
    /* Premium Glassmorphism Gradients */
    --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
}

/* ====== Custom Premium Scrollbar ====== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ====== Animations ====== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ====== Typography ====== */
h1, h2, h3 { font-weight: 700; margin-bottom: 15px; }
h2 { font-size: 2.5rem; color: var(--accent); margin-bottom: 25px; }
p { color: var(--text-muted); line-height: 1.7; font-weight: 300; }
.text-center { text-align: center; }
.container { max-width: 1100px; margin: 0 auto; padding: 100px 20px; }

/* ====== Header & Navigation (Ultra Glass Effect) ====== */
header {
    position: fixed;
    top: 0; width: 100%;
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 50px;
    background: rgba(7, 10, 19, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}
.logo { height: 40px; }
nav ul { list-style: none; display: flex; gap: 30px; }
nav a {
    text-decoration: none; color: var(--text-main);
    font-weight: 600; font-size: 0.9rem; position: relative;
    transition: color 0.3s ease;
}
nav a:hover { color: var(--accent); }

/* Underline animation on hover */
nav a::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -5px; left: 0; background-color: var(--accent);
    transition: width 0.3s ease;
}
nav a:hover::after { width: 100%; }

/* ====== Hamburger Menu (Hidden on Desktop) ====== */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001; /* Keeps it above the glass menu */
}
.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* ====== Hero Section (Zero Lag) ====== */
.hero {
    position: relative; height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center; overflow: hidden;
}
.hero-bg {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover; z-index: -1;
    opacity: 0.25; /* Ensures text is highly readable */
}
.hero-content {
    animation: fadeUp 1s ease-out forwards;
    padding: 0 20px;
}
.hero-content h1 {
    font-size: 4rem; letter-spacing: 1px;
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}
.hero-content p { font-size: 1.2rem; color: var(--text-main); margin-bottom: 40px; }

/* ====== Buttons ====== */
.cta-btn {
    display: inline-block; padding: 14px 35px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff; text-decoration: none; border-radius: 50px; /* Pill shape for modern look */
    font-weight: 600; border: none; cursor: pointer;
    transition: all 0.3s ease; box-shadow: 0 4px 15px var(--accent-glow);
}
.cta-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px var(--accent-glow);
}

/* ====== Services (Premium Glassmorphism Cards) ====== */
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px; margin-top: 50px;
}
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    box-shadow: var(--glass-shadow);
    border-radius: 24px; padding: 40px 30px;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.glass-card:hover {
    transform: translateY(-10px);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

/* ====== Our Work (App Layout) ====== */
.work-card {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px); box-shadow: var(--glass-shadow);
    border-radius: 24px; padding: 50px; gap: 50px;
}
.work-text { flex: 1; }
.work-img img {
    width: 160px; border-radius: 28px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.work-img img:hover { transform: scale(1.08) rotate(-2deg); }

/* ====== Trust / MSME Badge ====== */
.trust-badge {
    display: inline-block; padding: 40px 60px;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border: 1px solid var(--glass-border); border-radius: 20px;
}
.udyam-number {
    margin-top: 15px; font-family: monospace; font-size: 1.2rem;
    color: var(--accent); background: rgba(0,0,0,0.4);
    padding: 8px 20px; border-radius: 8px; letter-spacing: 1px;
}

/* ====== Form Section ====== */
.form-container { max-width: 650px; margin: 0 auto; padding: 50px; }
.input-group { margin-bottom: 25px; text-align: left; }
.input-group label { display: block; margin-bottom: 10px; font-size: 0.95rem; color: var(--text-main); font-weight: 600; }
.input-group input, .input-group textarea {
    width: 100%; padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px; color: var(--text-main);
    font-family: 'Poppins', sans-serif; outline: none; transition: all 0.3s ease;
}
.input-group input:focus, .input-group textarea:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}
.input-group textarea { height: 140px; resize: none; }

/* ====== Footer ====== */
footer {
    text-align: center; padding: 30px;
    border-top: 1px solid var(--glass-border);
    background: rgba(7, 10, 19, 0.8);
    font-size: 0.9rem;
}

/* ====== Responsive Design & Mobile Menu ====== */
@media (max-width: 768px) {
    .work-card { flex-direction: column; text-align: center; gap: 30px; padding: 30px; }
    .hero-content h1 { font-size: 2.5rem; }
    
    /* Header layout for mobile */
    header { 
        padding: 15px 25px; 
        flex-direction: row; 
        justify-content: space-between; 
        align-items: center; 
    }
    
    /* Nav ko flex flow se bahar nikalein taake wo space na le */
    header nav { position: absolute; }
    
    /* Hamburger ko forcibly right push karein */
    .hamburger { 
        display: flex; 
        margin-left: auto; 
        z-index: 1005; 
    }
    
    /* Mobile Glass Side Drawer (Right Side Only) */
    nav ul.nav-links {
        position: fixed;
        top: 0;
        right: -280px; /* Screen ke bahar hidden rahega */
        height: 100vh;
        width: 280px;
        flex-direction: column;
        justify-content: flex-start;
        background: rgba(7, 10, 19, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        text-align: left;
        padding-top: 100px;
        padding-left: 40px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.8);
        border-left: 1px solid var(--glass-border);
        border-bottom: none;
        z-index: 1000;
    }
    
    /* Slide in effect */
    nav ul.nav-links.nav-active { right: 0; }
    
    nav ul.nav-links li { margin: 20px 0; }
    nav ul.nav-links li a { font-size: 1.1rem; letter-spacing: 1px; }
    
    /* Hamburger to 'X' Animation */
    .hamburger.toggle .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .hamburger.toggle .bar:nth-child(2) { opacity: 0; }
    .hamburger.toggle .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}