/* --- GLOBALS --- */
:root {
    --bg-main: #f4f7f6;
    --text-main: #111111;
    --text-muted: #555555;
    --primary-blue: #0055ff; 
    --glass-bg: rgba(255, 255, 255, 0.85);
    --nav-bg-scrolled: rgba(255, 255, 255, 0.98);
    --nav-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
--font-heading: 'Manrope', sans-serif;
    --font-body: 'Manrope', sans-serif;
}

body.dark-mode {
    --bg-main: #0a0a0a;
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
    --primary-blue: #3377ff;
    --glass-bg: rgba(30, 30, 30, 0.85);
    --nav-bg-scrolled: rgba(15, 15, 15, 0.98);
    --nav-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; overflow-x: hidden; }
body { background-color: var(--bg-main); color: var(--text-main); font-family: var(--font-body); transition: background-color 0.3s ease; }
.text-blue { color: var(--primary-blue); }
.container { max-width: 1300px; margin: 0 auto; padding: 0 5%; }
.text-center { text-align: center; }

/* --- NAVBAR --- */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.5rem; position: fixed; width: 95%; max-width: 1300px; top: 20px; left: 50%; transform: translateX(-50%); background: var(--glass-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(150,150,150,0.2); border-radius: 50px; z-index: 10000; transition: all 0.4s ease; }
.navbar.scrolled { padding: 0.8rem 1.5rem; background: var(--nav-bg-scrolled); border-color: transparent; box-shadow: var(--nav-shadow); top: 10px; }
.navbar.hide { top: -100px; }
.logo { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; letter-spacing: 2px; color: var(--text-main); text-decoration: none; position: relative; z-index: 1001; }
.nav-center { display: flex; align-items: center; gap: 2.5rem; }
.nav-item { text-decoration: none; color: var(--text-main); font-size: 1rem; font-weight: 500; transition: color 0.3s ease; display: flex; align-items: center; }
.nav-item:hover { color: var(--primary-blue); }
.badge { background-color: var(--primary-blue); color: #fff; font-size: 0.65rem; font-weight: 700; padding: 2px 6px; border-radius: 20px; position: absolute; top: -10px; right: -22px; }
.nav-controls { display: flex; align-items: center; gap: 1.5rem; z-index: 10001; }
.theme-btn { background: transparent; border: none; color: var(--text-main); cursor: pointer; transition: 0.3s;}
.theme-btn:hover { color: var(--primary-blue); }
.hamburger { display: none; flex-direction: column; justify-content: center; gap: 6px; width: 30px; height: 30px; cursor: pointer; z-index: 10002; }
.hamburger span { display: block; width: 100%; height: 2px; background-color: var(--text-main); transition: 0.4s ease; }
.hamburger.active span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.hamburger.active span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.nav-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: var(--bg-main); z-index: 9999; display: flex; align-items: center; justify-content: center; transform: translateY(-100%); transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1); }
.nav-overlay.active { transform: translateY(0); }
.nav-overlay-content { display: flex; flex-direction: column; gap: 1.5rem; text-align: left; width: 100%; max-width: 800px; padding: 0 5%; }
.nav-link { font-family: var(--font-heading); font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 700; color: var(--text-main); text-decoration: none; display: inline-flex; align-items: center; gap: 1rem; transition: color 0.3s; }
.nav-link .arrow { opacity: 0; transform: translate(-20px, 20px); transition: 0.4s; font-size: clamp(1.5rem, 4vw, 3rem); color: var(--primary-blue); }
.nav-link:hover { color: var(--primary-blue); }
.nav-link:hover .arrow { opacity: 1; transform: translate(0, 0); }

/* --- BUTTONS --- */
.btn-primary, .btn-dark { padding: 0.8rem 1.6rem; border-radius: 50px; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; font-weight: 500; transition: 0.3s; font-family: var(--font-body); cursor: pointer; border: none;}
.btn-primary { background-color: var(--primary-blue); color: #fff !important; }
.btn-primary:hover { background-color: var(--text-main); color: var(--bg-main) !important; }
.btn-dark { background-color: var(--text-main); color: var(--bg-main) !important; border: 1px solid rgba(255,255,255,0.2); }
.btn-dark:hover { background-color: var(--primary-blue); color: #fff !important; }
.btn-arrow, .arrow { transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.btn-primary:hover .btn-arrow, .btn-dark:hover .btn-arrow, .link-text:hover .arrow { transform: translate(4px, -4px); }
.link-text { color: var(--text-main); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; transition: color 0.3s; }
.link-text:hover { color: var(--primary-blue); }

/* --- HERO --- */
.hero-section { padding-top: 180px; padding-bottom: 2rem; }
.hero-main-title { font-family: var(--font-heading); font-size: clamp(2.2rem, 6vw, 4.5rem); font-weight: 700; line-height: 1.1; letter-spacing: -1px; margin-bottom: 3rem; }
.hero-content-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: end; }
.hero-actions { display: flex; align-items: center; gap: 2rem; margin-bottom: 3rem; flex-wrap: wrap; }
.hero-img-small-wrapper { width: 90%; border-radius: 30px; overflow: hidden; }
.hero-img-small-wrapper img { width: 100%; height: auto; display: block; }
.hero-img-large-wrapper { width: 100%; height: 600px; border-radius: 30px; overflow: hidden; margin-top: -120px; }
.hero-img-large-wrapper img { width: 100%; height: 100%; object-fit: cover; }

/* --- EXPERTISE SECTION --- */
.expertise-section { background-color: #050505; color: #fff; padding: 6rem 0; border-radius: 40px; margin: 2rem 1%; }
.expertise-header-grid { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 3rem; margin-bottom: 5rem; align-items: start; }
.exp-heading { font-family: var(--font-heading); font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 600; line-height: 1.2; letter-spacing: -1px; }
.exp-desc { color: #aaa; margin-bottom: 2rem; line-height: 1.6; }
.google-review { margin-top: 1.5rem; font-family: var(--font-body); }
.stars { color: #f4b400; font-size: 1.2rem; display: block; margin-bottom: 5px; }
.google-review p { color: #888; font-size: 0.9rem; }

.massive-list-container { border-top: 1px solid rgba(255,255,255,0.1); }
.exp-item { display: flex; align-items: center; justify-content: space-between; padding: 2rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.1); text-decoration: none; color: rgba(255,255,255,0.7); transition: all 0.4s ease; }
.massive-list-container:hover .exp-item { opacity: 0.3; }
.massive-list-container .exp-item:hover { opacity: 1; color: #fff; }
.exp-title-wrapper { display: flex; align-items: center; gap: 2rem; }
.exp-title { font-family: var(--font-heading); font-size: clamp(1.8rem, 5vw, 3.5rem); font-weight: 700; transition: transform 0.4s ease; }
.exp-item:hover .exp-title { transform: translateX(15px); }
.preview-img-box { width: 0px; height: 70px; border-radius: 12px; overflow: hidden; opacity: 0; transition: width 0.4s, opacity 0.3s ease; flex-shrink: 0; }
.preview-img-box img { width: 100px; height: 100%; object-fit: cover; }
.exp-item:hover .preview-img-box { width: 100px; opacity: 1; }
.green-circle-arrow { width: 60px; height: 60px; background-color: var(--primary-blue); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: bold; transform: scale(0); transition: transform 0.4s ease; }
.exp-item:hover .green-circle-arrow { transform: scale(1); }

/* --- AI REVIEWS SECTION --- */
.ai-review-section { padding: 6rem 0; background: var(--bg-main); }
.ai-main-heading { font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: -1px; margin-bottom: 3rem; }
.ai-tags-row { display: flex; justify-content: center; gap: 1.2rem; margin-bottom: 3rem; flex-wrap: wrap; }
.ai-pill { background: var(--primary-blue); color: #fff; border: none; padding: 0.7rem 1.8rem; border-radius: 50px; font-size: 1rem; font-weight: 600; font-family: var(--font-body); cursor: pointer; transition: transform 0.3s, opacity 0.3s; }
.ai-pill:hover { transform: scale(1.05); }
.ai-terminal-box { max-width: 800px; margin: 0 auto; text-align: left; padding: 2rem; border-radius: 20px; background: var(--glass-bg); backdrop-filter: blur(16px); border: 1px solid rgba(150,150,150,0.2); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.ai-terminal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; font-weight: 600; font-size: 0.9rem; color: var(--primary-blue); border-bottom: 1px solid rgba(150,150,150,0.1); padding-bottom: 0.8rem; }
.ai-status { color: #2ecc71; font-size: 0.85rem; }
.ai-terminal-text { font-size: 1.1rem; line-height: 1.6; color: var(--text-main); font-family: var(--font-body); min-height: 80px; }

/* --- PROJECTS --- */
.projects-section { padding: 5rem 0 6rem; }
.projects-header { margin-bottom: 3rem; }
.projects-main-title { font-family: var(--font-heading); font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 700; line-height: 1.1; letter-spacing: -1px; }
.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.stagger-down { margin-top: 6rem; }
.project-card { display: block; text-decoration: none; color: var(--text-main); }
.project-img-box { position: relative; width: 100%; border-radius: 24px; overflow: hidden; aspect-ratio: 4/3; margin-bottom: 1.5rem; background: #111; }
.project-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.project-card:hover .project-image { transform: scale(1.05); }
.project-tags { position: absolute; top: 15px; right: 15px; display: flex; gap: 6px; z-index: 2; }
.project-tags span { background: rgba(255, 255, 255, 0.9); color: #111; padding: 5px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
body.dark-mode .project-tags span { background: rgba(20, 20, 20, 0.9); color: #fff; }
.project-meta { font-size: 0.85rem; font-weight: 500; color: var(--text-muted); margin-bottom: 0.5rem; }
.project-title { font-family: var(--font-heading); font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 700; line-height: 1.3; letter-spacing: -0.5px; transition: color 0.3s; }
.hover-circle { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0); width: 80px; height: 80px; background-color: var(--primary-blue); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; transition: transform 0.4s ease; z-index: 3; font-weight: bold; }
.project-card:hover .hover-circle { transform: translate(-50%, -50%) scale(1); }

.cta-mini-title { font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin-bottom: 1.5rem; letter-spacing: -1px; }

/* --- DOUBLE LINE MOVING BANNER --- */
.moving-cta-section { padding: 4rem 0 6rem; overflow: hidden; position: relative; background: var(--bg-main); }
.moving-cta-link { display: block; text-decoration: none; color: var(--text-main); white-space: nowrap; cursor: none !important; }
.moving-cta-track { display: inline-flex; will-change: transform; }
.track-1 { animation: moveLeft 25s linear infinite; }
.track-2 { animation: moveRight 25s linear infinite; margin-top: 1rem; }
.moving-cta-track span { font-family: var(--font-heading); font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 800; letter-spacing: -2px; padding-right: 2rem; transition: color 0.3s; }
.moving-cta-link:hover .moving-cta-track span { color: var(--primary-blue); }

@keyframes moveLeft { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes moveRight { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }

.banner-cursor { position: fixed; top: 0; left: 0; width: 80px; height: 80px; background-color: var(--primary-blue); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: bold; pointer-events: none; z-index: 99999; transform: translate(-50%, -50%) scale(0); transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
.banner-cursor.active { transform: translate(-50%, -50%) scale(1); }


/* --- COMPACT FOOTER --- */
.footer-simple { background-color: #050505; color: #fff; padding: 4rem 0 2rem; border-top-left-radius: 40px; border-top-right-radius: 40px; margin-top: 2rem; }
.footer-simple-flex { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 2rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 2rem; }
.footer-logo-col h2 { font-family: var(--font-heading); font-size: 2rem; margin-bottom: 0.5rem; font-weight: 700;}
.footer-logo-col p { color: #888; font-size: 0.95rem;}
.footer-simple-links { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer-simple-links a { color: #fff; text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: color 0.3s; }
.footer-simple-links a:hover { color: var(--primary-blue); }
.footer-bottom { text-align: center; color: #666; font-size: 0.85rem; }

/* --- ROTATING CTA (Fixed Inner Alignment) --- */
.floating-cta { 
    position: fixed; bottom: 30px; right: 30px; 
    width: 110px; height: 110px; 
    background-color: var(--primary-blue); /* Whole button is solid blue */
    border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; 
    z-index: 99; text-decoration: none; 
    transition: transform 0.3s ease; 
    box-shadow: 0 10px 25px rgba(0, 85, 255, 0.3); 
}
.floating-cta:hover { transform: scale(1.05); }

.rotating-text { 
    position: absolute; width: 100%; height: 100%; 
    animation: rotateText 10s linear infinite; 
    z-index: 1; 
}
.rotating-text text { 
    font-family: var(--font-body); 
    font-size: 11px; 
    font-weight: 700; 
    letter-spacing: 1.5px; 
    fill: #ffffff; /* Explicitly white text */
}

.cta-center { font-size: 1.8rem; position: relative; z-index: 2; }
@keyframes rotateText { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Update Media Query for Mobile (Agar pehle se nahi hai toh isay update kar dein) */
@media (max-width: 900px) {
    .floating-cta { width: 90px; height: 90px; bottom: 20px; right: 20px; }
    .cta-center { font-size: 1.4rem; }
    .rotating-text text { font-size: 11.5px; } /* Mobile par slightly clear font */
}

/* --- MOBILE FIXES --- */
@media (max-width: 900px) { 
    .nav-center, .desktop-btn { display: none; } .hamburger { display: flex; } 
    .hero-content-grid { grid-template-columns: 1fr; align-items: start; gap: 2rem; }
    .hero-img-large-wrapper { margin-top: 0; height: 350px; } .hero-img-small-wrapper { width: 100%; }
    .expertise-header-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .exp-title-wrapper { gap: 1rem; }
    .preview-img-box { display: none; }
    .projects-grid { grid-template-columns: 1fr; gap: 3rem; }
    .stagger-down { margin-top: 0; }
    .footer-simple-flex { flex-direction: column; text-align: center; justify-content: center; }
    .footer-simple-links { justify-content: center; gap: 1.5rem; }
    .banner-cursor { display: none !important; }
    .moving-cta-link { cursor: pointer !important; }
    
    /* Extra Font Adjustments for strict mobile constraints */
    .hero-main-title { font-size: 2.2rem; }
    .exp-heading { font-size: 1.8rem; }
    .projects-main-title { font-size: 2rem; }
    .cta-mini-title { font-size: 1.8rem; }
    .exp-title { font-size: 1.5rem; }
    
    .floating-cta { width: 100px; height: 100px; bottom: 20px; right: 20px; }
    .cta-bg { width: 70px; height: 70px; }
    .cta-center { font-size: 1.4rem; }
}