/* =============================================
   TechGlobe Consultancy Services LLP — Website
   Brand Colors from logo:
   - Dark Navy:    #1B2A5E
   - Mid Blue:     #2E6DB4  
   - Sky Blue:     #5BB8F5
   - Light Blue:   #8DD4F8
   ============================================= */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #1B2A5E;
    --blue: #2E6DB4;
    --sky: #5BB8F5;
    --light-blue: #8DD4F8;
    --accent: #2E6DB4;
    --gradient: linear-gradient(135deg, #1B2A5E, #5BB8F5);
    --gradient-light: linear-gradient(135deg, #5BB8F5, #8DD4F8);
    --text: #1e293b;
    --text-light: #64748b;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-dark: #0f172a;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
    --shadow-lg: 0 20px 40px -12px rgba(27,42,94,.15);
    --shadow-xl: 0 25px 50px -12px rgba(27,42,94,.2);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: .3s cubic-bezier(.4,0,.2,1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    line-height: 1.2;
    color: var(--navy);
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(27,42,94,.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(27,42,94,.4);
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.btn-outline:hover {
    background: var(--navy);
    color: #fff;
}

.btn-full { width: 100%; justify-content: center; }

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255,255,255,.97);
    border-bottom-color: var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 22px;
    color: var(--navy);
}

.logo-icon img {
    height: 44px;
    width: auto;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
}

.logo-text .logo-highlight {
    color: var(--sky);
}

.logo-sub {
    display: block;
    font-size: 10px;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1;
    margin-top: -2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--navy);
    background: rgba(27,42,94,.06);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--navy);
    border-radius: 2px;
    transition: var(--transition);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 76px;
    background: linear-gradient(135deg, #f0f5ff 0%, #e8f4fd 50%, #f8fafc 100%);
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: .08;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--sky);
    top: -200px;
    right: -200px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--navy);
    bottom: -100px;
    left: -100px;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--blue);
    top: 40%;
    left: 30%;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(27,42,94,.08);
    color: var(--navy);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-light);
    max-width: 520px;
    margin-bottom: 36px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--navy);
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    margin-top: 2px;
}

/* Hero Illustration */
.hero-visual {
    position: relative;
}

.hero-illustration {
    position: relative;
    height: 480px;
}

.floating-card {
    position: absolute;
    background: #fff;
    padding: 16px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 14px;
    animation: float 6s ease-in-out infinite;
    z-index: 2;
}

.floating-card i {
    font-size: 24px;
    color: var(--blue);
}

.card-1 { top: 30px; right: 20px; animation-delay: 0s; }
.card-2 { top: 180px; left: 0; animation-delay: 2s; }
.card-3 { bottom: 80px; right: 40px; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.code-block {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-dark);
    border-radius: var(--radius);
    overflow: hidden;
    width: 300px;
    box-shadow: var(--shadow-xl);
}

.code-header {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(255,255,255,.06);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #eab308; }
.dot.green { background: #22c55e; }

.code-content {
    padding: 16px;
    font-size: 13px;
    line-height: 1.8;
}

.code-content code {
    font-family: 'Fira Code', monospace;
    color: #e2e8f0;
}

.code-keyword { color: #c084fc; }
.code-var { color: #67e8f9; }
.code-func { color: #fbbf24; }
.code-prop { color: #86efac; }
.code-string { color: #fca5a5; }

.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
}

/* ---------- Sections ---------- */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(27,42,94,.08), rgba(91,184,245,.1));
    color: var(--blue);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 17px;
    color: var(--text-light);
}

/* ---------- About ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h3 {
    font-size: 26px;
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 16px;
}

.about-features {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-feature {
    display: flex;
    gap: 16px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}

.about-feature h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.about-feature p {
    font-size: 14px;
    margin: 0;
}

.about-image {
    position: relative;
}

.about-img-wrapper {
    position: relative;
}

.about-pattern {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(91,184,245,.1) 10px,
        rgba(91,184,245,.1) 12px
    );
    border-radius: var(--radius-lg);
    z-index: 0;
}

.about-img-placeholder {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #1B2A5E, #5BB8F5);
    border-radius: var(--radius-lg);
    height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    gap: 16px;
}

.about-img-placeholder i {
    font-size: 64px;
    opacity: .6;
}

.about-img-placeholder span {
    font-size: 18px;
    font-weight: 600;
    opacity: .8;
}

/* ---------- Services ---------- */
.services {
    background: var(--bg-alt);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: #fff;
    padding: 36px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(27,42,94,.08), rgba(91,184,245,.12));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--blue);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 19px;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 20px;
}

.service-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.service-tags li {
    background: rgba(91,184,245,.1);
    color: var(--blue);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

/* ---------- Products ---------- */
.product-showcase {
    max-width: 1000px;
    margin: 0 auto;
}

.product-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    position: relative;
}

.product-card.featured {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
}

.product-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    background: var(--gradient);
    color: #fff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.product-content {
    padding: 60px 48px 48px;
}

.product-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.product-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.product-header h3 {
    font-size: 28px;
    font-weight: 800;
}

.product-tagline {
    color: var(--text-light);
    font-size: 15px;
}

.product-desc {
    color: var(--text-light);
    margin-bottom: 28px;
    font-size: 15px;
}

.product-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 32px;
}

.pf-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.pf-item i {
    color: var(--sky);
    font-size: 16px;
}

.product-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Phone Mockup */
.product-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1B2A5E, #2E6DB4);
    padding: 40px;
}

.phone-mockup {
    width: 260px;
    background: #1a1a2e;
    border-radius: 28px;
    padding: 12px;
    box-shadow: 0 30px 60px rgba(0,0,0,.3);
}

.phone-screen {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
}

.app-header-mock {
    background: var(--gradient);
    color: #fff;
    padding: 20px 16px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 16px;
}

.app-stats-mock {
    display: flex;
    justify-content: space-around;
    padding: 16px 12px;
    border-bottom: 1px solid var(--border);
}

.app-stat-item {
    text-align: center;
}

.app-stat-num {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--navy);
}

.app-stat-lbl {
    font-size: 10px;
    color: var(--text-light);
}

.app-list-mock {
    padding: 8px 0;
}

.app-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.app-list-item:last-child { border-bottom: none; }

.app-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.app-avatar.purple { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.app-avatar.green { background: linear-gradient(135deg, #059669, #34d399); }

.app-list-text {
    flex: 1;
    min-width: 0;
}

.app-list-text span {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: var(--text);
}

.app-list-text small {
    font-size: 11px;
    color: var(--text-light);
}

.app-list-item i {
    color: var(--text-light);
    font-size: 12px;
}

/* ---------- Tech Stack ---------- */
.tech-stack {
    background: var(--bg-alt);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px 16px;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.tech-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.tech-item i {
    font-size: 36px;
}

.tech-item span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
}

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-card {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    margin-bottom: 16px;
    transition: var(--transition);
}

.contact-card:hover {
    background: #fff;
    box-shadow: var(--shadow);
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-card h4 {
    font-size: 15px;
    margin-bottom: 4px;
}

.contact-card a, .contact-card p {
    color: var(--text-light);
    font-size: 14px;
}

.contact-card a:hover {
    color: var(--blue);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 18px;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--gradient);
    color: #fff;
    transform: translateY(-2px);
}

/* Contact Form */
.contact-form-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.form-group {
    position: relative;
    margin-bottom: 24px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 15px;
    color: var(--text);
    transition: var(--transition);
    background: var(--bg-alt);
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(46,109,180,.1);
}

.form-group label {
    position: absolute;
    left: 18px;
    top: 16px;
    color: var(--text-light);
    font-size: 15px;
    transition: var(--transition);
    pointer-events: none;
    background: transparent;
    padding: 0 4px;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    left: 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--blue);
    background: #fff;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--bg-dark);
    color: #94a3b8;
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-logo .logo-text {
    color: #fff;
}

.footer-about p {
    font-size: 14px;
    line-height: 1.8;
    margin-top: 12px;
}

.footer-links-col h4 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 20px;
}

.footer-links-col ul li {
    margin-bottom: 10px;
}

.footer-links-col ul li a {
    font-size: 14px;
    transition: var(--transition);
}

.footer-links-col ul li a:hover {
    color: var(--sky);
    padding-left: 4px;
}

.footer-bottom {
    text-align: center;
    padding: 24px 0;
    font-size: 13px;
}

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(27,42,94,.3);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
}

/* ---------- Animations ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-subtitle { margin: 0 auto 36px; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { display: none; }
    .about-grid { grid-template-columns: 1fr; }
    .about-image { order: -1; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .product-card.featured { grid-template-columns: 1fr; }
    .product-visual { padding: 40px; }
    .tech-grid { grid-template-columns: repeat(4, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }
    .nav-links.active { display: flex; }
    .nav-toggle { display: flex; }
    .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    .services-grid { grid-template-columns: 1fr; }
    .product-features { grid-template-columns: 1fr; }
    .product-content { padding: 48px 24px 32px; }
    .tech-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: column; gap: 20px; }
    .section { padding: 70px 0; }
    .contact-form-wrapper { padding: 24px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 30px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn { padding: 12px 24px; font-size: 14px; }
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
}
