/* ============================================================
   ER. SHIVAM KUMAR MAURYA — ULTRA-PREMIUM FREELANCE PORTFOLIO
   Senior Web Architect & Full-Stack Consultant
   ============================================================ */

:root {
    --bg-color: #f8fafc;
    --surface-color: rgba(255, 255, 255, 0.85);
    --surface-card: rgba(255, 255, 255, 0.9);
    --surface-border: rgba(15, 23, 42, 0.08);
    --surface-border-hover: rgba(79, 70, 229, 0.35);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --accent-1: #4f46e5;       /* Electric Indigo */
    --accent-2: #e11d48;       /* Crimson / Rose */
    --accent-3: #7c3aed;       /* Deep Violet */
    --accent-cyan: #06b6d4;     /* Cyan Glow */
    --accent-green: #10b981;    /* Emerald */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Poppins', var(--font-sans);
    --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
    --shadow-3d: 0 25px 60px -15px rgba(79, 70, 229, 0.25);
}

/* Base Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   PRELOADER
   ============================================================ */
#preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: #0b0f19;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
}

.preloader-logo {
    animation: preloaderSpin 3s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 25px rgba(79, 70, 229, 0.8));
}

@keyframes preloaderSpin {
    0% { transform: scale(0.9) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
    100% { transform: scale(0.9) rotate(360deg); }
}

.preloader-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 4px;
    color: #ffffff;
    background: linear-gradient(135deg, #ffffff, var(--accent-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.preloader-bar {
    width: 180px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.preloader-bar-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--accent-cyan));
    animation: preloaderFill 1.8s ease-in-out infinite;
}

@keyframes preloaderFill {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(0%); }
    100% { transform: translateX(100%); }
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor-dot {
    width: 8px; height: 8px;
    background: var(--accent-1);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 99999;
    box-shadow: 0 0 12px var(--accent-1);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    will-change: transform;
}

.cursor-outline {
    width: 36px; height: 36px;
    border: 1.5px solid rgba(79, 70, 229, 0.5);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 99998;
    transition: width 0.2s, height 0.2s, border-color 0.2s, background 0.2s;
    will-change: transform;
}

.cursor-dot.cursor-hover {
    width: 12px; height: 12px;
    background: var(--accent-2);
}

.cursor-outline.cursor-hover {
    width: 55px; height: 55px;
    border-color: var(--accent-2);
    background: rgba(225, 29, 72, 0.08);
}

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3.5px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--accent-3), var(--accent-cyan));
    background-size: 300% 100%;
    animation: gradientShift 6s ease infinite;
    z-index: 10001;
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.6);
    pointer-events: none;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ============================================================
   AMBIENT BLOBS & PARTICLES (HARDWARE-ACCELERATED)
   ============================================================ */
.blob-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    transform: translateZ(0);
}

.blob1, .blob2 {
    position: absolute;
    opacity: 0.35;
    border-radius: 50%;
    will-change: transform;
    transform: translateZ(0);
    animation: float 28s infinite alternate ease-in-out;
}

.blob1 {
    top: -10%; left: -5%;
    width: 50vw; height: 50vw;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.3) 0%, rgba(79, 70, 229, 0.08) 45%, transparent 70%);
}

.blob2 {
    bottom: -15%; right: -10%;
    width: 55vw; height: 55vw;
    background: radial-gradient(circle, rgba(225, 29, 72, 0.25) 0%, rgba(225, 29, 72, 0.06) 45%, transparent 70%);
    animation-delay: -8s;
}

@keyframes float {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(40px, 30px, 0) scale(1.05); }
    100% { transform: translate3d(-20px, 45px, 0) scale(0.98); }
}

#particles {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ============================================================
   HIGH-PERFORMANCE PANELS
   ============================================================ */
.glass-panel {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--surface-border);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    contain: layout style;
}

.glass-panel:hover {
    border-color: var(--surface-border-hover);
    box-shadow: var(--shadow-3d);
}

.section-has-bg { position: relative; }
.section-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    opacity: 0.5;
    background-image: radial-gradient(rgba(79, 70, 229, 0.07) 1.2px, transparent 1.2px);
    background-size: 30px 30px;
    pointer-events: none;
}

.section-padding {
    padding: 110px 6%;
    position: relative;
}

.section-title {
    margin-bottom: 60px;
    text-align: center;
}

.section-subtitle {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--accent-1);
    background: rgba(79, 70, 229, 0.08);
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 12px;
    border: 1px solid rgba(79, 70, 229, 0.15);
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}

.underline {
    height: 4px;
    width: 70px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    margin: 0 auto;
    border-radius: 4px;
    position: relative;
}

.underline::after {
    content: '';
    position: absolute;
    top: -2px; left: 50%;
    transform: translateX(-50%);
    width: 8px; height: 8px;
    background: #ffffff;
    border: 2px solid var(--accent-1);
    border-radius: 50%;
}

/* ============================================================
   TYPOGRAPHY & GRADIENTS
   ============================================================ */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
}

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

.gradient-text {
    background: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 50%, var(--accent-3) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGradient 6s linear infinite;
}

@keyframes textGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.magnetic-btn {
    display: inline-block;
    position: relative;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    will-change: transform;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-3) 100%);
    color: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 15px 35px -5px rgba(79, 70, 229, 0.6);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.85);
    border: 1.5px solid var(--surface-border);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--text-primary);
    color: #ffffff;
    border-color: var(--text-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* ============================================================
   NAVBAR (CLEAN, SYMMETRICAL & BALANCED)
   ============================================================ */
.navbar {
    position: fixed;
    top: 20px; left: 6%; right: 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 30px;
    border-radius: 50px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    top: 10px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.1);
    border-color: rgba(79, 70, 229, 0.15);
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: transparent;
    border: none;
    outline: none;
    filter: drop-shadow(0 2px 6px rgba(15, 23, 42, 0.3)) drop-shadow(0 0 10px rgba(14, 165, 233, 0.45));
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
    display: block;
}

.navbar .logo:hover .brand-logo-img {
    transform: scale(1.15) rotate(4deg);
    filter: drop-shadow(0 4px 12px rgba(79, 70, 229, 0.5)) drop-shadow(0 0 18px rgba(14, 165, 233, 0.75));
}

.footer-logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background: transparent;
    border: none;
    outline: none;
    filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.7)) drop-shadow(0 0 20px rgba(14, 165, 233, 0.5));
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.5s ease;
    display: block;
}

.footer-brand:hover .footer-logo-img {
    transform: scale(1.15) rotate(6deg);
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.9)) drop-shadow(0 0 30px rgba(14, 165, 233, 0.8));
}

.navbar .logo svg {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.navbar .logo:hover svg {
    transform: rotate(360deg) scale(1.1);
}

.navbar nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}

.navbar nav a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    position: relative;
    padding: 6px 0;
    transition: color 0.3s;
}

.navbar nav a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 2px;
}

.navbar nav a:hover,
.navbar nav a.active {
    color: var(--accent-1);
}

.navbar nav a:hover::after,
.navbar nav a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.mobile-menu-btn.active span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.mobile-menu-btn.active span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* Mobile Nav Panel */
.mobile-nav-panel {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 9999;
    pointer-events: none;
    visibility: hidden;
    transition: visibility 0.4s;
}

.mobile-nav-panel.active {
    pointer-events: auto;
    visibility: visible;
}

.mobile-nav-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mobile-nav-panel.active .mobile-nav-overlay { opacity: 1; }

.mobile-nav-content {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 85%;
    max-width: 360px;
    background: #ffffff;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-panel.active .mobile-nav-content { transform: translateX(0); }

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--surface-border);
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 2.2rem;
    color: var(--text-primary);
    cursor: pointer;
    line-height: 1;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}

.mobile-nav-links a {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.mobile-nav-links a:hover { color: var(--accent-1); }

/* ============================================================
   HERO / INTRO SECTION (REDESIGNED & BALANCED)
   ============================================================ */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 135px 6% 40px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 620px;
    position: relative;
    z-index: 2;
}

/* Status Pill */
.hero-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--accent-green);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 18px;
}

.pulse-dot {
    width: 8px; height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 800;
    letter-spacing: -1.2px;
    line-height: 1.15;
    margin-bottom: 15px;
}

.hero .role {
    font-size: 1.55rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.4;
}

.role-static {
    color: var(--text-primary);
}

.typed-text {
    color: var(--accent-1);
    font-weight: 700;
}

.typed-cursor, .desc-cursor {
    color: var(--accent-2);
    font-weight: 200;
    animation: blinkCursor 0.8s infinite;
}

@keyframes blinkCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Run-time typing intro description */
.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 35px;
    max-width: 550px;
    min-height: 4.8rem;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* 3D Hero Profile Image */
.hero-image {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
}

.image-wrapper {
    width: 340px;
    height: 420px;
    border-radius: 32px;
    padding: 10px;
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.6));
    border: 2px solid rgba(255,255,255,0.9);
    box-shadow: 0 25px 60px -15px rgba(79, 70, 229, 0.35);
    position: relative;
    transform-style: preserve-3d;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    transition: transform 0.4s ease;
}

/* Clean Floating Tech Chips (Neatly Framed) */
.floating-tech-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(79, 70, 229, 0.2);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-primary);
    pointer-events: none;
    transform: translateZ(35px);
}

.floating-tech-chip i { font-size: 1.2rem; }

.chip-left {
    bottom: -15px; left: 15px;
    animation: floatChip1 5s ease-in-out infinite;
}

.chip-right {
    top: -15px; right: 15px;
    animation: floatChip2 5.5s ease-in-out infinite;
}

@keyframes floatChip1 {
    0%, 100% { transform: translateZ(35px) translateY(0); }
    50% { transform: translateZ(35px) translateY(-8px); }
}

@keyframes floatChip2 {
    0%, 100% { transform: translateZ(35px) translateY(0); }
    50% { transform: translateZ(35px) translateY(8px); }
}

/* ============================================================
   STATS / EXPERIENCE BAR (LUXURY FLOATING STRIP)
   ============================================================ */
.stats-bar-section {
    padding: 30px 6% 70px;
    position: relative;
    z-index: 5;
}

.stats-glass-card {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.75));
    border: 1.5px solid rgba(255, 255, 255, 0.95);
    border-radius: 28px;
    padding: 35px 40px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.07);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 10px;
}

.stat-number-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.counter-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.stat-plus {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-1);
}

.stat-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 6px;
}

.stat-sub {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 2px;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, transparent, rgba(79, 70, 229, 0.25), transparent);
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    height: 480px;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.about-text {
    padding: 50px 45px;
}

.about-greeting {
    font-size: 1.8rem;
    color: var(--accent-1);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* ============================================================
   STAGGERED MOTION ANIMATIONS
   ============================================================ */
.stagger-card {
    opacity: 0;
    transform: translateY(45px) scale(0.97) rotateX(-4deg);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s ease,
                border-color 0.35s ease;
    will-change: transform, opacity;
}

.stagger-card.revealed,
.stagger-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0deg);
}

/* ============================================================
   MODERN SKILLS ARSENAL (ANIMATED PROGRESS BARS)
   ============================================================ */
.skills-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.skill-category {
    padding: 38px 30px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.skill-cat-icon {
    width: 52px; height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(225, 29, 72, 0.08));
    border: 1.5px solid rgba(79, 70, 229, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-bounce);
}

.skill-category:hover .skill-cat-icon {
    transform: scale(1.1) rotate(6deg);
    background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

.skill-cat-icon i,
.skill-cat-icon svg {
    font-size: 1.6rem;
    color: var(--accent-1);
}

.skill-category:hover .skill-cat-icon svg {
    color: #ffffff;
}

.skill-header h3 {
    font-size: 1.35rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.skill-level-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-1);
    background: rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.18);
    padding: 3px 10px;
    border-radius: 20px;
}

.skill-bars-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 25px;
}

.skill-bar-item { width: 100%; }

.skill-bar-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 7px;
}

.skill-percent {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent-1);
    font-size: 0.95rem;
}

.skill-progress-track {
    width: 100%;
    height: 7px;
    background: rgba(15, 23, 42, 0.06);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.35);
}

.skills-tags-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 15px;
    border-top: 1px solid var(--surface-border);
}

.skill-tag {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-sm);
    cursor: default;
}

.skill-tag i { font-size: 1rem; }

.skill-tag:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: var(--accent-1);
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.2);
}

/* ============================================================
   SERVICES SECTION (3-COLUMN RESPONSIVE GRID)
   ============================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.service-card {
    padding: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    border-radius: 28px;
}

.card-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    transition: background 0.2s ease;
    border-radius: inherit;
}

.service-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-content {
    padding: 35px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.service-content h3 {
    font-size: 1.45rem;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.service-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    flex-grow: 1;
    font-size: 1rem;
    line-height: 1.65;
}

.btn-book-now {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(225, 29, 72, 0.05));
    border: 1.5px solid rgba(79, 70, 229, 0.25);
    color: var(--accent-1);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 16px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-book-now::after {
    content: "→";
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-book-now:hover {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.35);
}

.btn-book-now:hover::after {
    transform: translateX(6px);
}

/* ============================================================
   FEATURED PROJECTS (3 PROJECTS WITH LIVE BADGES)
   ============================================================ */
.project-feature {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 90px;
}

.project-feature:last-child { margin-bottom: 0; }

.project-feature.reverse {
    grid-template-columns: 1fr 1.1fr;
}

.project-image {
    width: 100%;
    height: 420px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.project-image img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-image:hover img {
    transform: scale(1.06);
}

.project-type-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-2);
    margin-bottom: 8px;
}

.project-details h3 {
    font-size: 2.3rem;
    margin-bottom: 12px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.project-tech span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-1);
    background: rgba(79, 70, 229, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(79, 70, 229, 0.15);
}

.project-details p {
    font-size: 1.05rem;
    margin-bottom: 22px;
}

.project-highlights {
    margin-bottom: 30px;
    list-style: none;
}

.project-highlights li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 26px;
    color: var(--text-secondary);
}

.project-highlights li::before {
    content: '▹';
    position: absolute;
    left: 0; top: 0;
    color: var(--accent-1);
    font-size: 1.3rem;
    line-height: 1.2;
}

.project-badge-overlay {
    position: absolute;
    bottom: 16px; left: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 8px 18px;
    border-radius: 30px;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.project-mini-emblem {
    width: 24px; height: 24px;
    border-radius: 50%;
    object-fit: cover;
    background: #ffffff;
}

.project-details .btn-primary,
.project-details .btn-secondary {
    margin-right: 14px;
}

/* ============================================================
   CLIENT CONFIDENCE & EXECUTIVE RESUME SECTION
   ============================================================ */
.resume-container {
    padding: 60px 50px;
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 60px;
}

.client-trust-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.resume-header h3 {
    font-size: 2.2rem;
    margin-bottom: 18px;
}

.resume-header p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.client-perks-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 25px 0;
}

.client-perk-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--surface-border);
    border-radius: 18px;
    transition: var(--transition-smooth);
}

.client-perk-item:hover {
    transform: translateX(8px);
    border-color: var(--accent-1);
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.1);
}

.perk-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    line-height: 1.2;
}

.client-perk-item strong {
    display: block;
    font-size: 1rem;
    color: var(--text-primary);
}

.client-perk-item p {
    margin: 3px 0 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.resume-timeline {
    position: relative;
    padding-left: 35px;
    border-left: 2px solid rgba(79, 70, 229, 0.2);
}

.timeline-item {
    margin-bottom: 45px;
    position: relative;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
    position: absolute;
    left: -46px; top: 4px;
    width: 20px; height: 20px;
    background: #ffffff;
    border: 4px solid var(--accent-1);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
    transition: var(--transition-bounce);
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    border-color: var(--accent-2);
    box-shadow: 0 0 0 6px rgba(225, 29, 72, 0.2);
}

.timeline-item h4 {
    font-size: 1.35rem;
    margin-bottom: 6px;
}

.timeline-date {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--accent-1);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
}

/* ============================================================
   TESTIMONIALS SECTION
   ============================================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.testimonial-card {
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
}

.quote-icon {
    font-size: 6rem;
    color: rgba(79, 70, 229, 0.08);
    position: absolute;
    top: 10px; left: 25px;
    font-family: serif;
    line-height: 1;
    pointer-events: none;
}

.testimonial-text {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.author-avatar {
    width: 58px; height: 58px;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.author-info h4 {
    font-size: 1.15rem;
    margin-bottom: 2px;
}

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

/* ============================================================
   CONTACT CTA SECTION
   ============================================================ */
/* ============================================================
   PROFESSIONAL CONTACT SECTION (NEXGLOWTECH & ER. SHIVAM)
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 430px 1fr;
    gap: 35px;
    align-items: stretch;
}

.contact-info-card {
    padding: 42px 35px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92));
    border: 1.5px solid rgba(79, 70, 229, 0.22);
    border-radius: 28px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-card-badge {
    align-self: flex-start;
    background: rgba(79, 70, 229, 0.08);
    color: var(--accent-1);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.contact-info-card h3 {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-family: var(--font-heading);
}

.contact-desc {
    font-size: 0.96rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.cd-icon-box {
    width: 46px;
    height: 46px;
    background: rgba(79, 70, 229, 0.08);
    color: var(--accent-1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(79, 70, 229, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.contact-detail-item:hover .cd-icon-box {
    transform: scale(1.08) rotate(4deg);
    background: var(--accent-1);
    color: #ffffff;
}

.cd-text {
    display: flex;
    flex-direction: column;
}

.cd-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.cd-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
    word-break: break-all;
}

.cd-highlight {
    color: var(--accent-1);
}

.cd-value:hover {
    color: var(--accent-2);
}

.cd-subtext {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.contact-quick-cta {
    padding-top: 20px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

/* Contact Form Card */
.contact-form-card {
    padding: 42px 40px;
    background: var(--surface-card);
    border: 1px solid var(--surface-border);
    border-radius: 28px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.06);
}

.form-card-header {
    margin-bottom: 26px;
}

.form-card-header h3 {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.form-card-header p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.contact-form-inner {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group-modern {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group-modern label {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-primary);
}

.form-group-modern input,
.form-select-modern,
.form-group-modern textarea {
    width: 100%;
    padding: 13px 18px;
    background: rgba(255, 255, 255, 0.95);
    border: 1.5px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group-modern input:focus,
.form-select-modern:focus,
.form-group-modern textarea:focus {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

.form-group-modern textarea {
    resize: vertical;
    min-height: 105px;
}

.form-submit-row {
    margin-top: 10px;
}

/* Success State View */
.contact-success-state {
    text-align: center;
    padding: 35px 20px;
}

.success-icon-badge {
    width: 60px;
    height: 60px;
    background: #10b981;
    color: #ffffff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.35);
}

.contact-success-state h4 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.success-main-msg {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto 25px;
}

.text-accent {
    color: var(--accent-1);
}

.success-action-box {
    background: rgba(79, 70, 229, 0.04);
    border: 1px dashed rgba(79, 70, 229, 0.25);
    border-radius: 16px;
    padding: 20px;
    max-width: 480px;
    margin: 0 auto 20px;
}

/* Contact Tabs Navigation */
.contact-tabs-nav {
    display: flex;
    gap: 8px;
    background: rgba(15, 23, 42, 0.04);
    padding: 6px;
    border-radius: 18px;
    margin-bottom: 24px;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.contact-tab-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    border: none;
    background: transparent;
    border-radius: 14px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.contact-tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.6);
}

.contact-tab-btn.active {
    background: #ffffff;
    color: var(--accent-1);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.12);
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.contact-tab-pane {
    display: none;
}

.contact-tab-pane.active {
    display: block;
    animation: tabFadeIn 0.35s ease-out forwards;
}

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

.optional-tag {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 4px;
}

/* Availability Checker Box */
.availability-checker-box {
    margin-top: 15px;
    margin-bottom: 20px;
    padding: 16px 20px;
    border-radius: 14px;
    background: rgba(79, 70, 229, 0.04);
    border: 1.5px dashed rgba(79, 70, 229, 0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.availability-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.availability-status.available {
    color: #059669;
}

.availability-status.busy {
    color: #dc2626;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #94a3b8;
    display: inline-block;
}

.availability-status.available .status-dot {
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
}

.availability-status.busy .status-dot {
    background: #ef4444;
    box-shadow: 0 0 10px #ef4444;
}

.btn-check-slot {
    padding: 8px 18px;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--accent-1);
    background: #ffffff;
    border: 1.5px solid var(--accent-1);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.btn-check-slot:hover {
    background: var(--accent-1);
    color: #ffffff;
}

/* ERP Modules Grid */
.form-modules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 6px;
}

.module-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: 1.5px solid rgba(15, 23, 42, 0.1);
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.module-checkbox-label:hover {
    border-color: var(--accent-1);
    background: rgba(79, 70, 229, 0.04);
}

.module-checkbox-label input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: var(--accent-1);
    cursor: pointer;
}

.module-checkbox-label:has(input[type="checkbox"]:checked) {
    border-color: var(--accent-1);
    background: rgba(79, 70, 229, 0.08);
    color: var(--text-primary);
}

/* ============================================================
   SITE FOOTER (DARK THEME)
   ============================================================ */
.site-footer {
    position: relative;
    background: #0b0f19;
    color: #e2e8f0;
    padding: 90px 6% 40px;
    margin-top: 80px;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-1), var(--accent-2), var(--accent-cyan), transparent);
    background-size: 200% 100%;
    animation: gradientMove 4s linear infinite;
}

@keyframes gradientMove {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.footer-logo-anim {
    animation: floatBob 4s infinite ease-in-out;
}

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

.footer-container {
    max-width: 1250px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 45px;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.footer-brand p {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.7;
    max-width: 320px;
    margin-top: 15px;
}

.footer-socials {
    display: flex;
    gap: 14px;
    margin-top: 25px;
}

.social-icon {
    width: 44px; height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e2e8f0;
    text-decoration: none;
    transition: var(--transition-bounce);
}

.social-icon:hover {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: #ffffff;
    transform: translateY(-6px) scale(1.1);
    border-color: transparent;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
}

.footer-links h4, .footer-contact h4 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
}

.footer-links h4::after, .footer-contact h4::after {
    content: '';
    position: absolute;
    left: 0; bottom: -8px;
    width: 25px; height: 3px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    border-radius: 2px;
    transition: width 0.3s;
}

.footer-links:hover h4::after, .footer-contact:hover h4::after { width: 100%; }

.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 14px; }
.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-block;
}
.footer-links a:hover { color: #ffffff; transform: translateX(8px); }

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.contact-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-1);
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.contact-item:hover .contact-icon {
    background: var(--accent-1);
    color: #ffffff;
    transform: scale(1.1) rotate(10deg);
}

.contact-item p {
    color: #94a3b8;
    margin: 0;
    font-size: 0.95rem;
}

.contact-item a { color: #94a3b8; text-decoration: none; transition: color 0.3s; }
.contact-item a:hover { color: #ffffff; }

.footer-bottom {
    text-align: center;
    padding-top: 35px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #64748b;
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
}

.footer-glow {
    position: absolute;
    width: 350px; height: 350px;
    background: var(--accent-1);
    filter: blur(180px);
    opacity: 0.2;
    bottom: -150px; right: -100px;
    border-radius: 50%;
    pointer-events: none;
}

/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */
#backToTop {
    position: fixed;
    bottom: 35px; right: 35px;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) rotate(var(--rotate, 0deg));
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 999;
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) rotate(var(--rotate, 0deg));
}

#backToTop:hover {
    box-shadow: 0 15px 40px rgba(79, 70, 229, 0.6);
    transform: translateY(-5px) scale(1.1);
}

/* ============================================================
   VANILLA MODAL (APPOINTMENT / BOOKING)
   ============================================================ */
.vanilla-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    perspective: 1000px;
}

.vanilla-modal.active {
    opacity: 1;
    visibility: visible;
}

.vanilla-modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 520px;
    padding: 45px;
    border-radius: 30px;
    position: relative;
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.25);
    transform: rotateX(15deg) scale(0.9);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vanilla-modal.active .vanilla-modal-content { transform: rotateX(0deg) scale(1); }

.vanilla-modal-close {
    position: absolute;
    top: 22px; right: 26px;
    background: transparent;
    border: none;
    font-size: 2.2rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.vanilla-modal-close:hover { color: var(--accent-1); }

.vanilla-modal-view { display: none; }
.vanilla-modal-view.active,
.vanilla-modal-view[style*="display: block"],
.vanilla-modal-view:not([style*="display: none"]) {
    display: block;
}

.vanilla-modal-view h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.vanilla-modal-view p {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-select {
    width: 100%;
    padding: 14px 18px;
    background: #f8fafc;
    border: 1.5px solid var(--surface-border);
    border-radius: 14px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent-1);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.success-profile-wrapper {
    position: relative;
    width: 120px; height: 120px;
    margin: 0 auto 24px auto;
}

.success-profile-img {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-1);
}

.success-badge {
    position: absolute;
    bottom: 0; right: 0;
    background: var(--accent-green);
    color: #ffffff;
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.3rem;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-outline-dark {
    padding: 12px 28px;
    background: transparent;
    border: 1.5px solid var(--text-primary);
    color: var(--text-primary);
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-outline-dark:hover {
    background: var(--text-primary);
    color: #ffffff;
}

/* ============================================================
   3D SCROLL REVEAL & TRANSFORMS
   ============================================================ */
[data-reveal] {
    opacity: 0;
    transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.85s ease;
    will-change: transform, opacity;
}

[data-reveal="left"] { transform: translateX(-70px) rotateY(6deg); }
[data-reveal="right"] { transform: translateX(70px) rotateY(-6deg); }
[data-reveal="bottom"] { transform: translateY(60px) rotateX(-6deg); }

[data-reveal].revealed,
.fade-in-up.revealed {
    opacity: 1;
    transform: translate(0) rotate(0);
}

/* ============================================================
   ABOUT NEXGLOWTECH & ENGINEERING TEAM SECTION
   ============================================================ */
.team-section {
    position: relative;
    background: rgba(248, 250, 252, 0.4);
}

.team-intro-banner {
    padding: 42px 45px;
    margin-bottom: 45px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.88));
    border: 1px solid rgba(79, 70, 229, 0.16);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.04);
}

.team-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(79, 70, 229, 0.08);
    color: var(--accent-1);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 16px;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.team-intro-banner h3 {
    font-size: 1.95rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 14px;
    font-family: var(--font-heading);
    letter-spacing: -0.3px;
}

.team-distinction-text {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.team-distinction-text strong {
    color: var(--text-primary);
}

.team-stats-mini {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    padding-top: 22px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

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

.ts-num {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--accent-1);
    font-family: var(--font-heading);
    line-height: 1.2;
}

.ts-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Team Architecture Layout */
.team-architecture-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 30px;
    align-items: stretch;
    margin-bottom: 45px;
}

.team-lead-card {
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92));
    border: 1.5px solid rgba(79, 70, 229, 0.25);
    box-shadow: 0 15px 35px rgba(79, 70, 229, 0.08);
}

.team-lead-badge {
    align-self: center;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.team-lead-avatar-wrap {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
}

.team-lead-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #ffffff;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.25);
}

.lead-status-indicator {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    background: #10b981;
    border: 3.5px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

.team-lead-details h4 {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.team-lead-role {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-1);
    margin-bottom: 14px;
}

.team-lead-bio {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.team-lead-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.team-lead-skills span {
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(79, 70, 229, 0.08);
    color: var(--accent-1);
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid rgba(79, 70, 229, 0.15);
}

/* Squads Container */
.team-squads-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.team-squad-card {
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

.team-squad-card:hover {
    transform: translateY(-5px);
    border-color: var(--surface-border-hover);
    box-shadow: var(--shadow-3d);
}

.squad-icon-badge {
    width: 48px;
    height: 48px;
    background: rgba(79, 70, 229, 0.08);
    color: var(--accent-1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.squad-content h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.squad-focus {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-2);
    margin-bottom: 10px;
}

.squad-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.squad-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.squad-tags span {
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(15, 23, 42, 0.04);
    color: var(--text-secondary);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

/* Collaborative Process */
.team-process-wrapper {
    padding: 45px 40px;
    background: var(--surface-card);
    border: 1px solid var(--surface-border);
}

.process-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 40px;
}

.process-pill {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent-2);
    background: rgba(6, 182, 212, 0.1);
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 10px;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.process-header h3 {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-family: var(--font-heading);
}

.process-header p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.process-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 35px;
}

.process-step-item {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    padding: 24px 20px;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.process-step-item:hover {
    transform: translateY(-4px);
    border-color: var(--accent-1);
}

.step-num {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--accent-1);
    font-family: var(--font-heading);
    opacity: 0.35;
    margin-bottom: 8px;
}

.process-step-item h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.process-step-item p {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* Trust Bar */
.team-trust-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    padding: 20px;
    background: rgba(79, 70, 229, 0.04);
    border-radius: 14px;
    border: 1px dashed rgba(79, 70, 229, 0.25);
    margin-bottom: 35px;
}

.trust-point {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.trust-icon {
    width: 20px;
    height: 20px;
    background: var(--accent-1);
    color: #ffffff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
}

/* CTA Banner */
.team-cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 25px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.team-cta-text h4 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.team-cta-text p {
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.team-cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ============================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ============================================================ */

/* Large Tablets / Small Laptops (<= 1100px) */
@media (max-width: 1100px) {
    .hero h1 { font-size: 3.2rem; }
    .image-wrapper { width: 300px; height: 380px; }
    .stats-glass-card { padding: 30px 25px; }
    .footer-container { grid-template-columns: 1.5fr 1fr 1fr; }
    .footer-contact { grid-column: span 3; }
}

/* Tablets (<= 992px) */
@media (max-width: 992px) {
    .navbar { padding: 12px 20px; }
    .navbar nav ul { gap: 20px; }
    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 50px;
        padding-top: 130px;
    }
    .hero-content {
        align-items: center;
        display: flex;
        flex-direction: column;
    }
    .hero .role { justify-content: center; }
    .hero-cta { justify-content: center; }
    .hero-desc { min-height: auto; }
    
    .stats-glass-card {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
    .stat-divider { display: none; }

    .about-layout { grid-template-columns: 1fr; gap: 40px; }
    .about-image { height: 350px; }

    .skills-container { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }

    .project-feature,
    .project-feature.reverse {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }
    .project-feature.reverse .project-image { order: -1; }
    .project-tech { justify-content: center; }
    .project-highlights li { text-align: left; }

    .resume-container { grid-template-columns: 1fr; gap: 40px; }
    .team-architecture-grid { grid-template-columns: 1fr; }
    .process-steps-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .footer-contact { grid-column: span 2; }
}

/* Mobile Screens (<= 768px) */
@media (max-width: 768px) {
    .cursor-dot, .cursor-outline { display: none !important; }

    .navbar nav,
    .navbar .btn-primary {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
    }

    .hero h1 { font-size: 2.6rem; }
    .hero .role { font-size: 1.3rem; }
    .hero-image { width: 100%; }
    .image-wrapper { width: 280px; height: 350px; }
    .floating-tech-chip { padding: 6px 12px; font-size: 0.75rem; }

    .section-padding { padding: 80px 5%; }
    .section-title h2 { font-size: 2.3rem; }

    .stats-glass-card {
        grid-template-columns: 1fr;
        padding: 30px 20px;
        gap: 20px;
    }

    .services-grid { grid-template-columns: 1fr; }
    .team-squads-container { grid-template-columns: 1fr; }
    .process-steps-grid { grid-template-columns: 1fr; }
    .team-intro-banner, .team-process-wrapper { padding: 30px 20px; }
    .team-cta-banner { flex-direction: column; align-items: stretch; text-align: center; }
    .team-cta-actions { width: 100%; flex-direction: column; }
    .team-cta-actions button, .team-cta-actions a { width: 100%; justify-content: center; }
    .team-trust-bar { flex-direction: column; align-items: flex-start; }

    .form-row { grid-template-columns: 1fr; }
    .contact-info-card, .contact-form-card { padding: 30px 20px; }
    .contact-tabs-nav { flex-direction: column; gap: 6px; }
    .form-modules-grid { grid-template-columns: 1fr; }
    .availability-checker-box { flex-direction: column; align-items: stretch; }
    .btn-check-slot { width: 100%; text-align: center; }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-contact { grid-column: span 1; }
    .footer-brand p { margin: 15px auto; }
    .footer-socials { justify-content: center; }
    .footer-links h4::after,
    .footer-contact h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .contact-item { justify-content: center; }
    .vanilla-modal-content { padding: 30px 20px; }
}
