:root {
    --primary: hsl(243, 75%, 59%); /* Professional Deep Indigo */
    --primary-hover: hsl(243, 75%, 49%);
    --accent: hsl(238, 81%, 71%); /* Lighter Indigo for gradients */
    --background: hsl(240, 20%, 98%);
    --foreground: hsl(240, 30%, 12%);
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(255, 255, 255, 0.5);
    --text-muted: hsl(240, 10%, 40%);
    --radius: 1rem;
    --nav-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    line-height: 1.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }

/* Utilities */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px hsla(243, 75%, 59%, 0.15);
    border-color: hsla(243, 75%, 59%, 0.3);
}

/* Buttons */
.btn-primary, .btn-outline {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 hsla(243, 75%, 59%, 0.39);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px hsla(243, 75%, 59%, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--foreground);
    border: 2px solid var(--foreground);
}

.btn-outline:hover {
    background: var(--foreground);
    color: var(--background);
}

.small-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-link:hover {
    transform: scale(1.08) translateY(-2px);
}

.logo-img {
    height: 64px; /* Increased size for better visibility */
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
}

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

.nav-item {
    text-decoration: none;
    color: var(--foreground);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-item:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: calc(var(--nav-height) + 6rem);
    padding-bottom: 8rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 90vh;
}

.hero-grid-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: 50px 50px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    z-index: 0;
    animation: panBg 60s linear infinite;
}

@keyframes panBg {
    0% { background-position: 0 0; }
    100% { background-position: 500px 500px; }
}

.hero-bg-glow {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, hsla(243, 75%, 59%, 0.15) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(40px);
}

.hero-content {
    width: 100%;
    display: grid;
    grid-template-columns: 3fr 2fr; /* 60% left, 40% right */
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 10;
}


.type-wrap {
    white-space: nowrap;
}

.cursor {
    display: inline-block;
    color: var(--primary);
    animation: blink 1s step-end infinite;
    margin-left: 2px;
}

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

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.stats-section {
    padding: 4rem 0;
    background: white;
    position: relative;
    z-index: 20; /* To sit above the hero background */
    border-top: 1px solid rgba(0,0,0,0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-box {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.4), transparent);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-box:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.stat-box:hover::before {
    opacity: 1;
}

.stat-box > * {
    position: relative;
    z-index: 1;
}

.stat-icon-wrapper {
    font-size: 2.25rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.stat-icon {
    animation: floatIcon 3s infinite ease-in-out;
}

.stat-box:hover .stat-icon {
    animation: popSpin 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

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

@keyframes popSpin {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.3) rotate(180deg); }
    100% { transform: scale(1) rotate(360deg); }
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.stat-plus {
    color: var(--accent);
}

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

/* Hero Visuals & Mock Editor Group */
.hero-visuals {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.editor-group {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.mock-editor {
    background: var(--foreground);
    border-radius: 12px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 2;
}

.mock-terminal {
    position: absolute;
    bottom: -40px;
    right: -20px;
    width: 360px;
    background: rgba(15, 15, 20, 0.9);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    box-shadow: 0 30px 60px -10px rgba(0,0,0,0.4);
    z-index: 3;
    overflow: hidden;
}

.terminal-header {
    background: rgba(0,0,0,0.5);
    padding: 8px 16px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    font-family: monospace;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.terminal-body {
    padding: 16px;
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    line-height: 1.6;
    color: #27c93f; /* Terminal Green */
    min-height: 120px;
}

.terminal-line {
    margin-bottom: 4px;
}

.terminal-success { color: #27c93f; }
.terminal-info { color: #79c0ff; }
.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background: #27c93f;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

/* Floating Animations */
.float-main {
    animation: floatFloat 8s ease-in-out infinite;
}

.float-sub {
    animation: floatFloat 6s ease-in-out infinite reverse;
}

@keyframes floatFloat {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(0.5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.editor-header {
    background: #1e1e24;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px 12px 0 0;
}

.editor-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.close { background: #ff5f56; }
.dot.min { background: #ffbd2e; }
.dot.max { background: #27c93f; }

.editor-title {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    font-family: monospace;
    margin: 0 auto;
    padding-right: 44px; /* to offset the dots for perfect center */
}

.editor-body {
    padding: 24px;
    padding-bottom: 40px; /* Extra padding at bottom for terminal overlap */
    overflow-x: auto;
    border-radius: 0 0 12px 12px;
}

.editor-body pre {
    margin: 0;
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    font-size: 0.85rem; /* Smaller font to prevent clipping */
    line-height: 1.7;
    color: #e6e6e6;
    white-space: pre-wrap; /* Allow wrapping if too tight */
}

.code-keyword { color: #ff7b72; }
.code-variable { color: #79c0ff; }
.code-string { color: #a5d6ff; }
.code-class { color: #d2a8ff; }
.code-property { color: #79c0ff; }
.code-function { color: #d2a8ff; }
.code-comment { color: #8b949e; font-style: italic; }

/* Clients Marquee */
.clients-section {
    padding: 4rem 0;
    background: white;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.section-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-container::before, .marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}
.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}
.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

.marquee-content {
    display: inline-block;
    animation: marquee 25s linear infinite;
}

.client-logo {
    height: 80px; /* Made the logos bigger */
    width: auto;
    margin: 0 4rem; /* Increased spacing */
    vertical-align: middle;
    transition: transform 0.3s ease; /* Changed transition to scale */
}

.client-logo:hover {
    transform: scale(1.1); /* Added a subtle scale effect on hover */
}

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

/* Services */
.services-section {
    padding: 8rem 0;
    position: relative;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 4rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.bento-wide {
    grid-column: span 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    text-align: left;
}

.bento-wide .card-icon {
    font-size: 4.5rem;
    margin-bottom: 0;
    flex-shrink: 0;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Projects */
.projects-section {
    padding: 8rem 0;
    background: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.project-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.4s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-img-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.project-info {
    padding: 2rem;
    background: white;
}

.project-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 3rem 2rem 2rem;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    position: relative;
    transition: transform 0.3s ease;
    border: 1px solid rgba(0,0,0,0.02);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0,0,0,0.08);
}

.quote-icon {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.1;
    pointer-events: none;
}

.stars {
    color: #ffbd2e; /* Gold stars */
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 4px;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--foreground);
    margin-bottom: 2rem;
    font-weight: 500;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 1.5rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.author-info h4 {
    font-size: 1rem;
    margin: 0;
    color: var(--foreground);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

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

/* Dual CTA Section Styles */
.cta-client-card {
    text-align: center;
    background: var(--foreground);
    padding: 4rem 3rem;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-client-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.2), transparent 60%);
    pointer-events: none;
}

.cta-client-card .section-title {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.cta-client-card .cta-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.cta-partner-card {
    text-align: center;
    background: linear-gradient(145deg, #ffffff, #f0f4ff);
    padding: 4rem 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.1);
    color: var(--foreground);
    position: relative;
}

.cta-partner-card .section-title {
    color: var(--foreground);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.cta-partner-card .cta-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.btn-outline-dark {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border: 2px solid var(--foreground);
    border-radius: 0.5rem;
    color: var(--foreground);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-dark:hover {
    background: var(--foreground);
    color: white;
}

.btn-outline-light {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 0.5rem; /* Match the dark button radius */
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: white;
    color: var(--foreground);
    border-color: white;
}

/* Footer */
.footer {
    padding: 5rem 0 2rem;
    background: #0a0a0f; /* Deepest tech black */
    color: rgba(255,255,255,0.6);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
    display: block;
}

.footer-desc {
    line-height: 1.7;
    font-size: 0.95rem;
    max-width: 320px;
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.contact-info i {
    color: var(--primary);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.footer-col h4 {
    color: white;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-col ul a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.social-icon {
    color: rgba(255,255,255,0.6);
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
}

.legal-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    margin-left: 1.5rem;
    transition: color 0.2s ease;
}

.legal-links a:hover {
    color: white;
}


.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--foreground);
    cursor: pointer;
    transition: color 0.3s ease;
}
.mobile-menu-btn:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .hidden-mobile { display: none; }
    
    .mobile-menu-btn { display: block; }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        gap: 1.5rem;
        text-align: center;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    .nav-links.active .btn-primary {
        display: inline-block;
        width: auto;
    }

    .hero { min-height: 70vh; padding-top: 8rem; }
    .hero-content { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .hero-title { font-size: 2.5rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .btn-primary, .btn-outline { text-align: center; width: 100%; }

    .bento-grid { grid-template-columns: 1fr; }
    .bento-wide { grid-column: span 1; flex-direction: column; text-align: center; }
    .bento-wide .card-icon { margin-bottom: 1.5rem; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
