:root {
    --bg-dark: #050505;
    --bg-card: rgba(18, 18, 18, 0.7);
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --secondary: #60a5fa;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient-1: linear-gradient(135deg, #3b82f6 0%, #2dd4bf 100%);
    --container-max: 1200px;
    --ease-smooth: cubic-bezier(0.23, 1, 0.32, 1);
}

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

body {
    background: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s var(--ease-smooth);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Cursor Glow --- */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(40px);
    opacity: 0.4;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

/* --- Header & Nav --- */
header {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

nav {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo .seva { color: var(--primary); }
.logo .saathi { color: var(--text-main); }

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

.nav-item {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-item:hover, .nav-item.active {
    color: var(--text-main);
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-contact i {
    font-size: 0.85rem;
    color: var(--primary);
}

.cta-mini {
    background: var(--primary);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.cta-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

/* --- Hero Section --- */
.hero {
    padding: 180px 0 100px;
    position: relative;
    text-align: center;
}

h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    animation: reveal 0.8s var(--ease-smooth) forwards;
}

.reveal-text-delay {
    opacity: 0;
    transform: translateY(30px);
    animation: reveal 0.8s var(--ease-smooth) 0.2s forwards;
}

@keyframes reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    display: inline-flex;
}

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

.stat-num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--glass-border);
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-glow);
    top: 20%;
    right: -100px;
    filter: blur(100px);
    animation: pulse 10s infinite alternate;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: rgba(45, 212, 191, 0.15);
    bottom: -100px;
    left: -150px;
    filter: blur(120px);
    animation: pulse 15s infinite alternate-reverse;
}

@keyframes pulse {
    from { transform: scale(1); }
    to { transform: scale(1.3) translate(10%, -10%); }
}

/* --- Project Grid --- */
.projects-section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.5s var(--ease-smooth);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.card-img-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-smooth);
}

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

.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(59, 130, 246, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
    backdrop-filter: blur(5px);
}

.project-card:hover .card-overlay {
    opacity: 1;
}

.card-overlay span {
    background: white;
    color: black;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.9rem;
}

.card-content {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-tag {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
}

.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.tech-stack {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tech-stack span {
    font-size: 0.8rem;
    background: rgba(255,255,255,0.05);
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
}

/* --- CTA Section --- */
.cta-section {
    padding: 100px 0;
}

.cta-box {
    background: var(--gradient-1);
    border-radius: 32px;
    padding: 4rem;
    text-align: center;
    color: white;
}

.cta-box h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-box p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.btn-primary {
    background: white;
    color: var(--primary);
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-block;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* --- Footer --- */
footer {
    padding: 4rem 0;
    border-top: 1px solid var(--glass-border);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.socials {
    display: flex;
    gap: 1.5rem;
}

.socials a:hover {
    color: var(--text-main);
}

/* --- Mobile Responsive --- */
/* --- Mobile Contact Bar --- */
.mobile-contact-bar {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    z-index: 2000;
    padding: 10px;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

.mobile-contact-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    padding: 8px 0;
}

.mobile-contact-item i {
    font-size: 1.2rem;
    color: var(--text-main);
}

.mobile-contact-item.call i { color: var(--primary); }
.mobile-contact-item.email i { color: #2dd4bf; }

/* --- Mobile Responsive Enhancements --- */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .header-contact { display: none; }
    .mobile-contact-bar { display: flex; }
    
    .hero { padding: 140px 0 60px; }
    h1 { font-size: 3.2rem; letter-spacing: -1px; }
    .hero-sub { font-size: 1.05rem; padding: 0 1rem; }
    
    .hero-stats { 
        flex-direction: row; 
        flex-wrap: wrap; 
        gap: 1.5rem; 
        padding: 1.5rem;
        background: rgba(255, 255, 255, 0.05);
    }
    
    .stat-item { flex: 1; min-width: 80px; }
    .stat-num { font-size: 1.5rem; }
    .stat-label { font-size: 0.65rem; }

    .projects-section { padding: 60px 0; }
    .section-title { font-size: 2rem; }
    
    .project-grid { 
        grid-template-columns: 1fr;
        padding: 0 0.5rem;
    }

    .project-card {
        border-radius: 20px;
    }

    .cta-box { 
        padding: 3rem 1.5rem;
        margin: 0 1rem;
    }
    .cta-box h2 { font-size: 2.2rem; line-height: 1.2; }
    
    footer { padding: 3rem 0; padding-bottom: 100px; } /* Space for contact bar */
    .footer-bottom { flex-direction: column; gap: 2rem; text-align: center; }
}

@media (max-width: 480px) {
    h1 { font-size: 2.8rem; }
    .hero-stats { gap: 1rem; }
    .stat-item { min-width: 70px; }
}
