@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;700;800&display=swap');

:root {
    /* --- Modern Light Theme Palette --- */
    --bg-body: #ffffff;
    --bg-surface: #f8fafc;
    /* Very light slate for sections */
    --bg-card: #ffffff;

    --accent-color: #4f46e5;
    /* Deep Indigo - Vibrant on white */
    --accent-secondary: #0891b2;
    /* Cyan - Readable on white */

    --text-primary: #0f172a;
    /* Slate 900 - Sharp Dark */
    --text-secondary: #475569;
    /* Slate 600 - Readable Gray */
    --text-light: #94a3b8;
    /* Slate 400 - For subtle details */

    --border-light: #e2e8f0;
    /* Slate 200 */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 20px 25px -5px rgb(79 70 229 / 0.15), 0 8px 10px -6px rgb(79 70 229 / 0.1);

    --header-height: 80px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

h1,
h2,
h3,
h4,
.navbar-brand {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* --- Layout Utilities --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 640px) {
    .container {
        padding: 0 1.25rem;
    }
}

.section-padding {
    padding: 120px 0;
}

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

/* --- Backgrounds & Gfx --- */
/* Cloud Tech Wallpaper Background */
.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-color: #ffffff;
    background-image: url('bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.8;
    /* Subtle blend */
}

/* Contact Page Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.contact-input {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

.contact-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.contact-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
}


/* Overlay to ensure text readability */
.mesh-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}



.industry-badge {
    padding: 1rem 2rem;
    background: white;
    box-shadow: var(--shadow-md);
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.industry-badge:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-lg);
    color: var(--accent-color);
}

/* --- Typography --- */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* --- Navigation --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

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

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.03em;
}

.logo-img {
    height: 32px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}

/* --- Mobile Navigation --- */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
    padding: 0.5rem;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        backdrop-filter: blur(10px);
        z-index: 1001;
    }

    .nav-links.nav-active {
        transform: translateX(0);
    }

    .nav-link {
        font-size: 1.5rem;
        font-weight: 700;
    }

    /* Hamburger Animation */
    .mobile-menu-btn.active .hamburger-line:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 5px);
    }

    .mobile-menu-btn.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active .hamburger-line:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -5px);
    }
}


/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #4338ca;
    /* Darker Indigo */
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}


/* --- Cards (Modern Light) --- */
.glass-card,
.modern-card,
.bento-item,
.pillar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.glass-card:hover,
.modern-card:hover,
.bento-item:hover,
.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}

/* Bento Grid Specifics */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, minmax(280px, auto));
    gap: 1.5rem;
    margin-top: 4rem;
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-tall {
    grid-row: span 2;
}

.bento-wide {
    grid-column: span 2;
}

.bento-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.bento-icon,
.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    /* Gradient Icon Text */
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bento-item h3,
.modern-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.bento-item p,
.modern-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --- Services Page Elements --- */

/* Accent Line for Icon-less headings */
.accent-line {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.accent-line::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-color), var(--accent-secondary));
    border-radius: 2px;
}

/* Pillars */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.pillar-subtitle {
    color: var(--accent-secondary);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.pillar-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* Timeline */
.timeline-section {
    padding: 6rem 0;
    position: relative;
}

.timeline-section::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border-light);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 5rem;
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    width: 16px;
    height: 16px;
    background: var(--bg-body);
    border: 4px solid var(--accent-color);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.timeline-number {
    position: absolute;
    top: -40px;
    font-size: 6rem;
    font-weight: 900;
    color: #f1f5f9;
    /* Super Light Gray for Number */
    font-family: 'Outfit', sans-serif;
    z-index: -1;
    line-height: 1;
}

.timeline-content {
    width: 45%;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
    padding-left: 3rem;
    text-align: left;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
    padding-right: 3rem;
    text-align: right;
}

.timeline-item:nth-child(odd) .timeline-number {
    left: 52%;
}

.timeline-item:nth-child(even) .timeline-number {
    right: 52%;
}


/* Grid for 'Card Grid' */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

@media (max-width: 640px) {
    .card-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Specific Grid Layouts */
.grid-2-cols {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
    .grid-2-cols {
        grid-template-columns: 1fr !important;
    }
}

/* Benefits Grid */
.benefit-card {
    padding: 2rem;
    border-left: 3px solid var(--accent-secondary);
    background: var(--bg-surface);
    border-radius: 0 12px 12px 0;
}

.benefit-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

/* Call to Action */
.cta-glass {
    background: linear-gradient(120deg, #4f46e5 0%, #06b6d4 100%);
    border-radius: 24px;
    padding: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    /* Force white text on CTA */
    box-shadow: 0 20px 40px -10px rgba(79, 70, 229, 0.4);
}

.cta-glass h2,
.cta-glass p {
    color: white !important;
}

.cta-glass .btn {
    background: white;
    color: var(--accent-color);
}

.cta-glass .btn:hover {
    background: #f8fafc;
    transform: translateY(-3px);
}


/* --- Contact Page Enhancements --- */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
    border-color: var(--accent-color);
}

.contact-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.email-icon {
    background: rgba(79, 70, 229, 0.1);
    color: var(--accent-color);
}

.whatsapp-icon {
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-card p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.contact-action {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.whatsapp-icon svg {
    stroke: #25D366;
}

.email-icon svg {
    stroke: var(--accent-color);
}

/* --- Contact Page --- */
.contact-input {
    background: white;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
}

.contact-input:focus {
    background: white;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* --- Footer --- */
footer {
    padding: 4rem 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-light);
    margin-top: 6rem;
}

.footer-content {
    color: var(--text-secondary);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }

    .timeline-section::before {
        left: 24px;
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline-dot {
        left: 24px;
    }

    .timeline-content {
        width: 100%;
        padding-left: 4rem !important;
        text-align: left !important;
    }

    .timeline-number {
        position: static !important;
        font-size: 3rem;
        margin-bottom: 1rem;
        color: var(--accent-color);
        opacity: 0.2;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-large,
    .bento-wide,
    .bento-tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .cta-glass {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
}

/* Utilities */
.divider {
    height: 1px;
    background: var(--border-light);
    margin: 4rem 0;
}

/* --- Technology Stack --- */
.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.tech-group {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2rem;
    transition: var(--transition);
}

.tech-group:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
}

.tech-group h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-secondary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.tech-item-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.tech-item i {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.tech-item svg {
    width: 32px;
    height: 32px;
}

.tech-item:hover {
    transform: translateX(5px);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* --- Logo Ticker Animation --- */
.logo-ticker {
    padding: 3rem 0;
    background: var(--bg-surface);
    overflow: hidden;
    position: relative;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.logo-ticker-track {
    display: flex;
    white-space: nowrap;
    animation: scroll 30s linear infinite;
    width: max-content;
}

.logo-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 3rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-light);
    opacity: 0.6;
    transition: var(--transition);
    filter: grayscale(1);
}

.logo-item:hover {
    opacity: 1;
    filter: grayscale(0);
    color: var(--accent-color);
}

.logo-item svg {
    height: 32px;
    width: auto;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Pause on hover for better UX */
.logo-ticker:hover .logo-ticker-track {
    animation-play-state: paused;
}

.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.6s ease-out;
}

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

/* Text Columns Responsive */
.text-cols-responsive {
    column-count: 2;
    column-gap: 4rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .text-cols-responsive {
        column-count: 1;
        column-gap: 0;
    }
}