/* =========================================================
   Datawise Analytics — style.css
   ========================================================= */

/* ----- Reset & Base ----- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary:       #0f2557;
    --primary-dark:  #091840;
    --accent:        #2563eb;
    --accent-light:  #3b82f6;
    --accent-glow:   rgba(37,99,235,0.15);
    --cyan:          #06b6d4;
    --text:          #1e293b;
    --text-muted:    #64748b;
    --text-light:    #94a3b8;
    --bg:            #ffffff;
    --bg-alt:        #f8fafc;
    --border:        #e2e8f0;
    --radius:        12px;
    --radius-lg:     20px;
    --shadow-sm:     0 2px 8px rgba(15,37,87,0.08);
    --shadow:        0 8px 30px rgba(15,37,87,0.12);
    --shadow-lg:     0 20px 60px rgba(15,37,87,0.18);
    --transition:    all 0.3s ease;
    --header-h:      72px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

a:hover { color: var(--accent-light); }

ul { list-style: none; }

/* ----- Utility ----- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px;
}

.section-badge {
    display: inline-block;
    background: var(--accent-glow);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-description {
    color: var(--text-muted);
    font-size: 1.0625rem;
    line-height: 1.75;
}

.text-accent { color: var(--accent); }

/* ----- Buttons ----- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 13px 28px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37,99,235,0.35);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.12);
    border-color: #fff;
    color: #fff;
}

.btn-full { width: 100%; justify-content: center; }

/* ----- Header ----- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-h);
    background: var(--primary);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow);
    background: rgba(15,37,87,0.97);
    backdrop-filter: blur(10px);
}

.nav {
    display: flex;
    align-items: center;
    height: var(--header-h);
    gap: 32px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none;
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: var(--accent);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 800;
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.logo-accent { color: var(--cyan); }

.nav-cta { margin-left: auto; }

/* ----- Hero ----- */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #163580 60%, #1a4db8 100%);
    padding-top: calc(var(--header-h) + 80px);
    padding-bottom: 96px;
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
    position: relative;
}

.hero-badge {
    display: inline-block;
    background: rgba(6,182,212,0.2);
    color: var(--cyan);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid rgba(6,182,212,0.4);
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.0625rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.75;
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--cyan);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.6);
    margin-top: 4px;
}

.hero-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ----- Services ----- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--accent-light);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-glow);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--accent);
}

.service-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ----- Process ----- */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 820px;
    margin: 0 auto;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    left: 26px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--cyan));
    border-radius: 2px;
}

.process-step {
    display: flex;
    gap: 32px;
    padding: 32px 0;
    position: relative;
}

.process-step:not(:last-child) {
    border-bottom: 1px dashed var(--border);
}

.step-number {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    box-shadow: 0 0 0 6px var(--bg-alt), 0 0 0 8px var(--accent-light);
    z-index: 1;
}

.step-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.step-content p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ----- Technologies ----- */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 20px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: default;
}

.tech-item:hover {
    border-color: var(--accent-light);
    box-shadow: var(--shadow-sm);
    transform: translateY(-4px);
}

.tech-icon {
    font-size: 1.75rem;
    color: var(--accent);
    line-height: 1;
}

.tech-item span {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
}

/* ----- About ----- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 72px;
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-card {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: var(--primary);
    color: #fff;
    padding: 16px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about-card-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--cyan);
    line-height: 1;
}

.about-card-label {
    display: block;
    font-size: 0.8125rem;
    opacity: 0.75;
    margin-top: 4px;
}

.about-text .section-title { text-align: left; }
.about-text .section-badge { margin-bottom: 12px; }

.about-text p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.75;
    margin-bottom: 16px;
}

.about-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 28px 0 36px;
}

.about-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9375rem;
    color: var(--text);
    font-weight: 500;
}

.about-list li i {
    color: var(--accent);
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ----- Contact ----- */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 64px;
    align-items: start;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.contact-item:last-child { margin-bottom: 0; }

.contact-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--accent-glow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--accent);
}

.contact-item h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
    font-size: 0.9375rem;
    color: var(--text);
    line-height: 1.6;
}

.contact-item a:hover { color: var(--accent); }

/* Contact Form */
.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group--full { grid-column: 1 / -1; }

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--text);
    background: var(--bg);
    transition: var(--transition);
    outline: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea { resize: vertical; }

.form-note {
    grid-column: 1 / -1;
    font-size: 0.875rem;
    min-height: 20px;
    color: var(--accent);
    text-align: center;
}

/* ----- Footer ----- */
.footer {
    background: var(--primary);
    color: rgba(255,255,255,0.7);
    padding: 72px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}

.footer-links a:hover { color: #fff; }

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 12px;
    line-height: 1.55;
}

.footer-contact i { color: var(--cyan); font-size: 0.875rem; margin-top: 2px; flex-shrink: 0; }
.footer-contact a { color: rgba(255,255,255,0.6); }
.footer-contact a:hover { color: #fff; }

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.4);
}

/* ----- Scroll Animations ----- */
.animate-fade-up,
.animate-fade-in {
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-fade-up  { transform: translateY(30px); }
.animate-fade-in  { transform: scale(0.96); }

.animate-fade-up.visible,
.animate-fade-in.visible {
    opacity: 1;
    transform: none;
}

/* ----- Responsive ----- */
@media (max-width: 1100px) {
    .tech-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 968px) {
    .hero-content { grid-template-columns: 1fr; gap: 48px; }
    .hero-image { display: none; }
    .hero { padding-bottom: 72px; }
    .hero-stats { gap: 28px; }

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

    .about-content { grid-template-columns: 1fr; }
    .about-image { max-width: 560px; margin: 0 auto; }
    .about-text .section-title { text-align: center; }
    .about-text .section-badge { display: block; text-align: center; }

    .contact-content { grid-template-columns: 1fr; }

}

@media (max-width: 640px) {
    :root { --header-h: 64px; }
    .section { padding: 72px 0; }

    .services-grid { grid-template-columns: 1fr; }
    .tech-grid { grid-template-columns: repeat(3, 1fr); }

    .hero-stats { flex-direction: column; gap: 16px; }

    .contact-form { grid-template-columns: 1fr; }
    .form-group--full { grid-column: auto; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }

    .process-steps::before { display: none; }
    .step-number { box-shadow: none; }
}

@media (max-width: 400px) {
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
}
