/* ================= VARIABLES & FONTS ================= */
:root {
    --font-head: 'Playfair Display', 'Hind Siliguri', serif;
    --font-body: 'Plus Jakarta Sans', 'Hind Siliguri', sans-serif;

    /* Light Theme */
    --bg-body: #ffffff;
    --bg-light: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --border: #e2e8f0;
    --shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
}

[data-theme="dark"] {
    /* Dark Theme */
    --bg-body: #0b0f19;
    --bg-light: #111827;
    --bg-card: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --nav-bg: rgba(11, 15, 25, 0.95);
    --border: #334155;
    --shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; cursor: none; }
body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4, .brand { font-family: var(--font-heading); }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { width: 100%; display: block; }

/* ================= CUSTOM CURSOR ================= */
#cursor {
    position: fixed; top: 0; left: 0; width: 8px; height: 8px;
    background: var(--primary); border-radius: 50%;
    pointer-events: none; z-index: 9999; transform: translate(-50%, -50%);
}
#cursor-blur {
    position: fixed; top: 0; left: 0; width: 40px; height: 40px;
    border: 1px solid var(--text-muted); border-radius: 50%;
    pointer-events: none; z-index: 9998; transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
}
body.hovered #cursor-blur {
    width: 60px; height: 60px; background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary); backdrop-filter: blur(2px);
}

/* ================= UTILITIES ================= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; position: relative; }
.bg-light { background: var(--bg-light); }
.text-center { text-align: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 30px; border-radius: 50px; font-weight: 600; font-size: 0.95rem; gap: 10px; cursor: pointer; border: 1px solid transparent; transition: 0.3s; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-3px); }
.btn-outline { border-color: var(--text-muted); color: var(--text-main); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: rgba(99, 102, 241, 0.05); }
.full-width { width: 100%; }

/* Titles */
.section-head { margin-bottom: 60px; }
.tag { color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; display: block; margin-bottom: 10px; }
.title { font-size: 3rem; margin-bottom: 15px; }
.divider { width: 60px; height: 4px; background: var(--primary); margin: 0 auto; border-radius: 2px; }

/* ================= NAVIGATION (FIXED HOVER) ================= */
#navbar { position: fixed; top: 0; width: 100%; z-index: 1000; padding: 20px 0; transition: 0.3s; }
#navbar.scrolled { padding: 15px 0; background: var(--nav-bg); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }

.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }
.brand { font-size: 1.8rem; font-weight: 700; color: var(--text-main); }
.brand .dot { color: var(--primary); font-size: 2.5rem; line-height: 0; }

.nav-list { display: flex; gap: 30px; }
/* Clean links */
.nav-link {
    text-decoration: none; color: var(--text-muted); font-weight: 500;
    position: relative; transition: color 0.3s;
}
.nav-link:hover { color: var(--primary); }
.nav-link.active { color: var(--primary); font-weight: 700; }

/* Underline Animation */
.nav-link::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px;
    background: var(--primary); transition: width 0.3s;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 15px; }

/* Language Button */
#lang-toggle {
    background: transparent; border: 1px solid var(--border);
    color: var(--text-main); padding: 5px 12px; border-radius: 20px;
    font-size: 0.85rem; font-weight: 700; cursor: pointer; transition: 0.3s;
    font-family: var(--font-body);
}
#lang-toggle:hover { border-color: var(--primary); color: var(--primary); }

/* Theme Switch */
.theme-toggle { position: relative; }
.theme-checkbox { display: none; }
.theme-label { background: var(--border); width: 50px; height: 26px; border-radius: 50px; position: relative; cursor: pointer; display: flex; justify-content: space-between; padding: 5px; align-items: center; }
.theme-label i { font-size: 10px; z-index: 1; color: var(--text-muted); }
.ball { position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: 0.3s; z-index: 2; }
.theme-checkbox:checked + .theme-label .ball { transform: translateX(24px); }

.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.bar { width: 25px; height: 3px; background: var(--text-main); transition: 0.3s; }

/* ================= HERO SECTION ================= */
.hero-section { min-height: 100vh; display: flex; align-items: center; padding-top: 80px; position: relative; }
.badge { display: inline-block; padding: 6px 16px; background: rgba(79, 70, 229, 0.1); color: var(--primary); border-radius: 30px; border: 1px solid rgba(79, 70, 229, 0.2); font-weight: 600; font-size: 0.9rem; margin-bottom: 25px; }
.hero-title { font-size: 4.5rem; line-height: 1.1; margin-bottom: 25px; font-weight: 800; }
.txt-rotate { color: var(--primary); }
.hero-subtitle { font-size: 1.25rem; color: var(--text-muted); max-width: 600px; margin-bottom: 40px; }
.hero-btns { display: flex; gap: 20px; margin-bottom: 50px; }

.hero-stats { display: flex; gap: 60px; padding-top: 30px; border-top: 1px solid var(--border); }
.stat h3 { font-size: 2.5rem; color: var(--text-main); }
.stat p { color: var(--text-muted); font-size: 0.9rem; text-transform: uppercase; }

.scroll-down { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 0.8rem; opacity: 0.7; }
.mouse-icon { width: 26px; height: 40px; border: 2px solid var(--text-main); border-radius: 20px; position: relative; }
.wheel { width: 4px; height: 8px; background: var(--primary); position: absolute; top: 6px; left: 50%; transform: translateX(-50%); border-radius: 2px; animation: mouseScroll 1.5s infinite; }
@keyframes mouseScroll { 0% { top: 6px; opacity: 1; } 100% { top: 20px; opacity: 0; } }

/* ================= SERVICES ================= */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.service-card { background: var(--bg-card); padding: 40px 30px; border: 1px solid var(--border); border-radius: 16px; transition: 0.4s; position: relative; overflow: hidden; }
.service-card:hover { transform: translateY(-10px); border-color: var(--primary); box-shadow: var(--shadow); }
.icon-wrapper { width: 60px; height: 60px; background: var(--bg-light); color: var(--primary); display: flex; align-items: center; justify-content: center; border-radius: 12px; font-size: 1.5rem; margin-bottom: 25px; transition: 0.3s; }
.service-card:hover .icon-wrapper { background: var(--primary); color: #fff; }

/* ================= PORTFOLIO ================= */
.filter-btns { display: flex; justify-content: center; gap: 15px; margin-bottom: 50px; flex-wrap: wrap; }
.filter-btn { background: transparent; border: 1px solid var(--border); padding: 10px 25px; border-radius: 30px; color: var(--text-muted); cursor: pointer; font-weight: 600; transition: 0.3s; }
.filter-btn.active, .filter-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 30px; }
.portfolio-item { display: block; border-radius: 16px; overflow: hidden; position: relative; }
.portfolio-thumb { position: relative; height: 300px; overflow: hidden; }
.portfolio-thumb img { height: 100%; object-fit: cover; transition: 0.6s; }
.portfolio-item:hover img { transform: scale(1.1); }
.overlay { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.9); display: flex; align-items: center; justify-content: center; opacity: 0; transition: 0.4s; }
.portfolio-item:hover .overlay { opacity: 1; }
.overlay-content { text-align: center; transform: translateY(20px); transition: 0.4s; }
.portfolio-item:hover .overlay-content { transform: translateY(0); }
.overlay-content h4 { color: #fff; font-size: 1.5rem; margin-bottom: 5px; }
.overlay-content span { color: var(--primary); }

/* ================= TEAM (PROFESSIONAL CARDS) ================= */
/* Smart Grid for 5 items */
.team-grid {
    display: grid;
    /* Flexible grid that ensures all 5 fit in one row on desktop */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    justify-content: center;
}
@media (min-width: 1200px) {
    .team-grid { grid-template-columns: repeat(5, 1fr); }
}

.team-card {
    background: rgba(30, 41, 59, 0.7); /* Glass-like dark */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 40px 20px;
    border-radius: 20px;
    transition: 0.4s;
    text-align: center;
    position: relative;
    overflow: hidden;
}
[data-theme="light"] .team-card { background: #fff; border: 1px solid var(--border); }

.team-card:hover { transform: translateY(-10px); border-color: var(--primary); box-shadow: var(--shadow); }

.team-img-box {
    width: 120px; height: 120px; margin: 0 auto 20px;
    border-radius: 50%; overflow: hidden; position: relative;
    border: 3px solid var(--primary); /* Professional Ring */
}
.team-img-box img { width: 100%; height: 100%; object-fit: cover; }

/* Portfolio Link Overlay on Image */
.link-overlay { position: absolute; inset: 0; background: rgba(79, 70, 229, 0.85); display: flex; align-items: center; justify-content: center; gap: 5px; color: #fff; font-weight: 600; opacity: 0; transition: 0.3s; font-size: 0.85rem; text-decoration: none; }
.team-img-box:hover .link-overlay { opacity: 1; }

.team-info h3 { font-size: 1.2rem; margin-bottom: 5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.team-info .role { color: var(--primary); font-size: 0.9rem; font-weight: 600; display: block; margin-bottom: 2px; }
.sub-role { color: var(--text-muted); font-size: 0.8rem; display: block; margin-bottom: 15px; font-style: italic; min-height: 1.2em; }

/* Team Social Bar */
.team-socials { display: flex; justify-content: center; gap: 15px; margin-top: 10px; }
.team-socials a { color: var(--text-muted); font-size: 1.2rem; transition: 0.3s; }
.team-socials a:hover { color: var(--primary); transform: translateY(-3px); }

/* ================= PRICING ================= */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.pricing-card { background: var(--bg-card); padding: 40px; border-radius: 20px; border: 1px solid var(--border); transition: 0.4s; position: relative; }
.pricing-card.popular { border-color: var(--primary); box-shadow: 0 10px 30px rgba(79, 70, 229, 0.15); transform: scale(1.05); z-index: 2; position: relative; }
.badge-pop { position: absolute; top: 15px; right: 15px; background: var(--primary); color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; }
.p-header { margin-bottom: 30px; text-align: center; }
.p-header .price { font-size: 2.5rem; font-weight: 800; color: var(--primary); margin: 10px 0; }
.p-features { list-style: none; margin-bottom: 30px; }
.p-features li { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--text-muted); }
.p-features i { color: #10b981; }

/* ================= CONTACT (FIXED SOCIALS) ================= */
.contact-container { display: grid; grid-template-columns: 1fr 1.5fr; background: var(--bg-card); border-radius: 24px; border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow); }
.contact-info { background: var(--primary); color: #fff; padding: 50px; display: flex; flex-direction: column; justify-content: space-between; position: relative; }
.c-item { display: flex; gap: 15px; margin-bottom: 20px; align-items: center; }
.c-item i { background: rgba(255,255,255,0.2); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }

/* Fixed Social Links */
.social-links-big { display: flex; gap: 15px; margin-top: auto; }
.social-links-big a {
    width: 45px; height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    transition: 0.3s; color: white; border: 1px solid rgba(255,255,255,0.2);
}
.social-links-big a:hover { background: white; color: var(--primary); transform: translateY(-3px); }

.contact-form { padding: 50px; }
.form-group { position: relative; margin-bottom: 30px; }
.form-group input, .form-group textarea { width: 100%; padding: 12px 10px; background: transparent; border: none; border-bottom: 1px solid var(--border); outline: none; color: var(--text-main); font-size: 1rem; transition: 0.3s; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-group label { position: absolute; top: 10px; left: 10px; color: var(--text-muted); transition: 0.3s; pointer-events: none; }
.form-group input:focus ~ label, .form-group input:valid ~ label, .form-group textarea:focus ~ label, .form-group textarea:valid ~ label { top: -20px; left: 0; font-size: 0.85rem; color: var(--primary); }

/* ================= FOOTER ================= */
.main-footer { background: #0b0f19; color: #fff; padding-top: 80px; margin-top: 80px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.brand-col p { color: #94a3b8; margin-top: 20px; max-width: 300px; }
.footer-col h4 { margin-bottom: 25px; color: #fff; font-size: 1.1rem; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #94a3b8; transition: 0.3s; }
.footer-col ul li a:hover { color: var(--primary); padding-left: 5px; }
.input-wrap { display: flex; margin-top: 15px; }
.input-wrap input { background: rgba(255,255,255,0.05); border: none; padding: 12px; color: #fff; width: 100%; border-radius: 5px 0 0 5px; outline: none; }
.input-wrap button { background: var(--primary); border: none; padding: 0 20px; color: #fff; cursor: pointer; border-radius: 0 5px 5px 0; }
.footer-bottom { padding: 30px 0; display: flex; justify-content: space-between; color: #64748b; font-size: 0.9rem; }
.legal a { margin-left: 20px; color: #64748b; }

/* Loader */
#loader { position: fixed; inset: 0; background: var(--bg-body); z-index: 9999; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: 0.5s; }
.spinner { width: 50px; animation: spin 1s linear infinite; stroke: var(--primary); }
.loader-text { margin-top: 20px; font-weight: 600; color: var(--primary); letter-spacing: 2px; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Scroll Line */
.scroll-line { position: fixed; top: 0; left: 0; height: 3px; background: var(--primary); width: 0%; z-index: 1001; }
#webgl { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.3; }

/* Responsive */
@media (max-width: 992px) {
    .hero-title { font-size: 3rem; }
    .contact-container { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav-menu { position: fixed; top: 70px; right: -100%; width: 100%; background: var(--bg-card); flex-direction: column; padding: 40px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); transition: 0.4s; }
    .nav-menu.active { right: 0; }
    .hamburger { display: flex; }
    .mobile-hide { display: none; }
    .hero-stats { flex-wrap: wrap; gap: 30px; }
    #cursor, #cursor-blur { display: none; }
}

/* Animations Helpers */
.fade-up, .fade-scroll { opacity: 0; transform: translateY(30px); transition: 0.8s ease-out; }
.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
