/* --- RESET & VARIABLES --- */
:root {
    --primary-color: #6366f1;
    /* Indigo */
    --primary-hover: #4f46e5;
    --secondary-color: #ec4899;
    /* Pink/Magenta */
    --accent-color: #06b6d4;
    /* Cyan */
    --dark-bg: #0f172a;
    --darker-bg: #020617;
    --card-bg: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient-main: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.5);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-speed: 0.3s;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

img {
    max-width: 100%;
    display: block;
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.5rem;
    color: var(--text-main);
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-center {
    text-align: center;
}

.section-padding {
    padding: 100px 0;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* --- HEADER & NAVIGATION (STRICT CONSISTENCY) --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.4s ease;
    height: var(--header-height);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-link img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-list {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-main);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--secondary-color);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: 0.3s;
}

.mobile-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--darker-bg);
    padding: 20px;
    transform: translateY(-150%);
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    z-index: 999;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav.active {
    transform: translateY(0);
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

.mobile-nav a {
    font-size: 1.2rem;
    color: white;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.15), transparent 70%);
}

.hero-shapes div {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 10s infinite alternate;
}

.shape-1 {
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: var(--primary-color);
}

.shape-2 {
    bottom: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: var(--secondary-color);
    animation-delay: -5s;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 30px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-visual {
    position: relative;
    height: 500px;
    perspective: 1000px;
}

.hero-3d-card {
    position: absolute;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    transform-style: preserve-3d;
    transform: rotateY(-15deg) rotateX(10deg);
    animation: hover3d 6s ease-in-out infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.5);
}

.hero-3d-card i {
    font-size: 8rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.6));
}

/* --- MARQUEE SECTION (NEW) --- */
.marquee-section {
    background: var(--darker-bg);
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-track {
    display: inline-flex;
    animation: marquee 30s linear infinite;
}

.marquee-content {
    display: flex;
    gap: 60px;
    padding-right: 60px;
}

.client-logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
    transition: 0.3s;
}

.client-logo:hover {
    color: white;
    opacity: 1;
    transform: scale(1.1);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- SERVICES SECTION --- */
.services-section {
    background: var(--darker-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--gradient-main);
    transition: height 0.4s;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    transition: 0.3s;
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    color: white;
}

/* --- PROCESS TIMELINE (NEW) --- */
.process-section {
    background: var(--dark-bg);
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -12.5px;
    background-color: var(--card-bg);
    border: 4px solid var(--primary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    transition: 0.3s;
}

.timeline-item:hover::after {
    background: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color);
}

.left {
    left: 0;
    text-align: right;
}

.right {
    left: 50%;
}

.right::after {
    left: -12.5px;
}

.timeline-content {
    padding: 30px;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    position: relative;
    transition: 0.3s;
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: 10px;
    right: 20px;
}

.left .step-number {
    left: 20px;
    right: auto;
}

/* --- INDUSTRY EXPERTISE (NEW) --- */
.industry-section {
    background: var(--darker-bg);
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.industry-card {
    background: linear-gradient(145deg, var(--card-bg), var(--dark-bg));
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: 0.3s;
}

.industry-card i {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.industry-card:hover {
    border-color: var(--secondary-color);
    transform: scale(1.03);
}

/* --- CALCULATOR SECTION --- */
.calculator-section {
    position: relative;
    background: linear-gradient(to bottom, var(--dark-bg), var(--darker-bg));
}

.calc-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 15px;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    transition: 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.calc-results {
    background: var(--dark-bg);
    border-radius: 15px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 1px solid var(--border-color);
}

.result-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-color);
    margin: 10px 0;
    text-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

/* --- CASE STUDY (NEW) --- */
.case-study-section {
    background: var(--dark-bg);
}

.case-study-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    background: var(--card-bg);
    border-radius: 30px;
    padding: 50px;
    border: 1px solid var(--border-color);
}

.badge {
    display: inline-block;
    padding: 5px 15px;
    background: var(--secondary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.case-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.chart-container {
    height: 300px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
}

.bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 20%;
}

.bar {
    width: 100%;
    background: var(--gradient-main);
    border-radius: 5px 5px 0 0;
    transition: height 1s ease-out;
}

.bar-1 {
    height: 20%;
    opacity: 0.4;
}

.bar-2 {
    height: 45%;
    opacity: 0.6;
}

.bar-3 {
    height: 75%;
    opacity: 0.8;
}

.bar-4 {
    height: 100%;
    box-shadow: 0 0 20px var(--primary-color);
}

.bar-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- AWARDS (NEW) --- */
.awards-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.award-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0.6;
    transition: 0.3s;
}

.award-item i {
    font-size: 3rem;
    color: #fbbf24;
}

.award-item:hover {
    opacity: 1;
    transform: translateY(-5px);
}

/* --- TEAM SECTION (NEW) --- */
.team-section {
    background: var(--dark-bg);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.team-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    padding-bottom: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: 0.3s;
}

.team-img-placeholder {
    width: 100%;
    height: 250px;
    margin-bottom: 20px;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
}

.team-socials a {
    margin: 0 10px;
    color: var(--text-muted);
    font-size: 1.2rem;
}

.team-socials a:hover {
    color: var(--primary-color);
}

/* --- FAQ SECTION (NEW) --- */
.faq-section {
    background: var(--darker-bg);
}

.faq-wrapper {
    max-width: 800px;
    margin: 50px auto 0;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--card-bg);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: background 0.3s;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.4s ease-out, padding 0.4s ease;
    background: rgba(0, 0, 0, 0.2);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    /* Rough estimate */
    padding: 20px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* --- BLOG SECTION (NEW) --- */
.blog-section {
    background: var(--dark-bg);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.blog-tag {
    display: inline-block;
    padding: 5px 12px;
    background: var(--primary-color);
    color: white;
    border-radius: 5px;
    font-size: 0.75rem;
    margin-bottom: 15px;
    width: fit-content;
}

.read-more {
    color: var(--accent-color);
    font-weight: 600;
    margin-top: 20px;
}

/* --- TESTIMONIALS --- */
.testimonials {
    overflow: hidden;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.test-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.test-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.test-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-main);
    margin-right: 15px;
}

.stars {
    color: #fbbf24;
    margin-bottom: 15px;
}

/* --- CONTACT PAGE SPECIFIC --- */
.contact-section {
    background: var(--darker-bg);
    position: relative;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.contact-info-box {
    background: var(--gradient-main);
    padding: 60px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-info-item i {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-form-box {
    background: var(--card-bg);
    padding: 60px;
}

/* --- LEGAL PAGE SPECIFIC --- */
.legal-content h2 {
    color: var(--primary-color);
    margin-top: 40px;
    font-size: 1.8rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.legal-content ul {
    list-style: disc;
    margin-left: 20px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.legal-content li {
    margin-bottom: 10px;
}

/* --- FOOTER (STRICT CONSISTENCY) --- */
.footer {
    background: var(--darker-bg);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: white;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- ANIMATIONS --- */
@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(20px, 40px);
    }
}

@keyframes hover3d {

    0%,
    100% {
        transform: rotateY(-15deg) rotateX(10deg) translateY(0);
    }

    50% {
        transform: rotateY(-5deg) rotateX(5deg) translateY(-20px);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .header-actions {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .nav {
        display: none;
    }

    .hero-grid,
    .calc-container,
    .contact-wrapper,
    .footer-grid,
    .case-study-wrapper {
        grid-template-columns: 1fr;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero-visual {
        display: none;
    }

    /* Timeline Mobile */
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 15px;
    }

    .left::after,
    .right::after {
        left: 15px;
    }

    .right {
        left: 0;
    }

    .left .step-number {
        left: auto;
        right: 20px;
    }
}

@media (max-width: 600px) {
    .header-actions .btn {
        display: none;
    }

    .header .mobile-toggle {
        display: block;
        margin-left: auto;
    }
}