/*
================================================
Theme: Modern Gradient & Light
================================================
TABLE OF CONTENTS
================================================
1.  :root Variables
2.  Global Styles & Resets
3.  Keyframe Animations
4.  Header & Navigation
5.  Footer
6.  Buttons & Forms
7.  Utility & Section Styles
8.  Hero Section
9.  Services Section
10. Process Section (Timeline)
11. Industry Expertise Section (Tabs)
12. Testimonials Section
13. Call-to-Action (CTA) Section
14. Page-Specific Styles (Contact, Legal)
15. Scroll Animation Classes
16. Media Queries (Responsiveness)
================================================
*/

/* 1. :root Variables */
:root {
    --gradient-start: #4f46e5; /* Indigo */
    --gradient-end: #0ea5e9; /* Sky Blue */
    --gradient: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    
    --header-bg: #111827; /* Dark Gray */
    --footer-bg: #1f2937; /* Medium Dark Gray */
    
    --bg-light: #f9fafb; /* Very Light Gray */
    --bg-white: #ffffff;
    
    --primary-text: #111827;
    --secondary-text: #6b7280; /* Medium Gray */
    --light-text: #e5e7eb; /* Light Gray for dark backgrounds */
    
    --font-family: 'Poppins', sans-serif;
    --header-height: 80px;
    --border-radius: 12px;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.07), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition-speed: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 2. Global Styles & Resets */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-white);
    color: var(--secondary-text);
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    color: var(--primary-text);
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: 3.5rem; letter-spacing: -1px; }
h2 { font-size: 2.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1.25rem; }
a { text-decoration: none; color: var(--gradient-start); transition: color 0.3s; }
a:hover { color: var(--gradient-end); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
section { padding: 100px 0; }

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 3. Keyframe Animations */
@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes draw-line {
    from { height: 0; }
    to { height: 100%; }
}

/* 4. Header & Navigation */
.site-header {
    background-color: var(--header-bg);
    padding: 0 20px;
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-color: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(5px);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img { height: 40px; }
.nav-links { display: flex; gap: 35px; }

.nav-links li a {
    color: var(--light-text);
    font-weight: 500;
    padding: 5px;
    position: relative;
}
.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width var(--transition-speed);
}
.nav-links li a:hover::after, .nav-links li a.active::after { width: 100%; }

.hamburger-menu { display: none; cursor: pointer; }
.hamburger-menu div {
    width: 25px;
    height: 3px;
    background-color: var(--light-text);
    margin: 5px 0;
    transition: 0.4s;
}
.nav-open .bar1 { transform: rotate(-45deg) translate(-5px, 6px); }
.nav-open .bar2 { opacity: 0; }
.nav-open .bar3 { transform: rotate(45deg) translate(-5px, -6px); }

/* 5. Footer */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--light-text);
    padding: 80px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}
.footer-column h4 {
    color: var(--bg-white);
    margin-bottom: 20px;
    font-weight: 600;
}
.footer-logo img { height: 45px; margin-bottom: 20px; }
.footer-column p { color: var(--secondary-text); }
.footer-column.about p { color: #9ca3af; }

.footer-column ul li { margin-bottom: 12px; }
.footer-column ul li a { color: #9ca3af; }
.footer-column ul li a:hover { color: var(--bg-white); }
.footer-column.contact p { margin-bottom: 8px; }
.footer-column.contact a { color: #9ca3af; }
.footer-column.contact a:hover { color: var(--bg-white); }

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #374151;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* 6. Buttons & Forms */
.cta-button {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.cta-button.primary {
    background: var(--gradient);
    color: var(--bg-white);
    background-size: 200% 200%;
}
.cta-button.primary:hover {
    animation: gradient-flow 3s ease infinite;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}
.cta-button.secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--bg-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.cta-button.secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}
.header-cta { font-size: 0.9rem; padding: 10px 25px; }
.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-text);
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 14px;
    border: 1px solid #d1d5db;
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--gradient-start);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

/* 7. Utility & Section Styles */
.section-title { text-align: center; margin-bottom: 60px; }
.section-title .subtitle {
    display: inline-block;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.section-title h2 { margin-bottom: 20px; }
.section-title p { max-width: 600px; margin: 0 auto; font-size: 1.1rem; }

/* 8. Hero Section */
.hero-section {
    padding: calc(var(--header-height) + 80px) 0 80px;
    position: relative;
    overflow: hidden;
    background-color: var(--header-bg);
    color: var(--bg-white);
}
.hero-background-gradient {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.3), transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(14, 165, 233, 0.2), transparent 40%);
    z-index: 0;
}
.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 60px;
}
.hero-text h1 { color: var(--bg-white); }
.hero-text p { font-size: 1.2rem; color: var(--light-text); margin: 25px 0 40px; }
.hero-buttons { display: flex; gap: 20px; flex-wrap: wrap; }

.hero-visual {
    display: grid;
    gap: 20px;
    perspective: 1000px;
}
.visual-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    transform: rotateY(-15deg) rotateX(10deg);
    transition: transform var(--transition-speed);
}
.hero-visual:hover .visual-card { transform: rotateY(0) rotateX(0); }
.visual-card:nth-child(2) { transform: rotateY(-15deg) rotateX(10deg) translateZ(20px); }
.visual-card:nth-child(3) { transform: rotateY(-15deg) rotateX(10deg) translateZ(40px); }
.visual-card span { font-size: 0.9rem; color: var(--light-text); }
.visual-card strong {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 9. Services Section */
.services-section { background-color: var(--bg-light); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.service-card {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid #e5e7eb;
    text-align: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: transparent;
}
.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* 10. Process Section (Timeline) */
.process-section { background-color: var(--bg-white); }
.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.process-timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: #e5e7eb;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    z-index: 0;
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}
.timeline-item:nth-child(odd) { left: 0; }
.timeline-item:nth-child(even) { left: 50%; }
.timeline-step {
    position: absolute;
    width: 50px;
    height: 50px;
    right: -25px;
    top: 30px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 4px solid var(--bg-white);
}
.timeline-item:nth-child(even) .timeline-step {
    left: -25px;
}
.timeline-content {
    padding: 30px;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    position: relative;
}
.timeline-item:nth-child(odd) { text-align: right; }

/* 11. Industry Expertise Section (Tabs) */
.industry-section { background-color: var(--bg-light); }
.industry-tabs-wrapper {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.industry-tabs {
    display: flex;
    background-color: #f3f4f6;
}
.tab-link {
    flex: 1;
    padding: 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-text);
    position: relative;
    transition: color 0.3s;
}
.tab-link:hover { color: var(--primary-text); }
.tab-link.active { color: var(--gradient-start); }
.tab-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
}
.tab-content { display: none; padding: 40px; }
.tab-content.active { display: block; }
.tab-content h3 { margin-bottom: 15px; }
.tab-content ul {
    list-style: none;
    margin-top: 20px;
    padding-left: 0;
}
.tab-content li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
}
.tab-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gradient-start);
    font-weight: 700;
}

/* 12. Testimonials Section */
.testimonials-section { background-color: var(--bg-white); }
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.testimonial-card {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
    border-left: 5px solid;
    border-image: var(--gradient) 1;
}
.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
}
.testimonial-author {
    text-align: right;
}
.testimonial-author h4 {
    margin: 0;
    font-weight: 600;
}
.testimonial-author span {
    font-size: 0.9rem;
    color: var(--secondary-text);
}

/* 13. Call-to-Action (CTA) Section */
.cta-section {
    background: var(--gradient);
    padding: 80px 0;
}
.cta-content {
    text-align: center;
    color: var(--bg-white);
}
.cta-content h2 { color: var(--bg-white); margin-bottom: 20px; }
.cta-content p {
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
    font-size: 1.1rem;
}
.cta-section .cta-button {
    background: var(--bg-white);
    color: var(--gradient-start);
}
.cta-section .cta-button:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transform: translateY(-5px);
    color: var(--gradient-end);
}

/* 14. Page-Specific Styles (Contact, Legal) */
.page-hero-section {
    padding: calc(var(--header-height) + 60px) 0 60px;
    background: var(--header-bg);
    text-align: center;
}
.page-hero-section h1 { color: var(--bg-white); }
.page-hero-section p { max-width: 600px; margin: 15px auto 0; color: var(--light-text); font-size: 1.1rem; }

.contact-page-section { padding: 100px 0; }
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.contact-info {
    background: var(--gradient);
    color: var(--bg-white);
    padding: 50px;
}
.contact-info h2 { color: var(--bg-white); }
.contact-info p, .contact-info a { color: var(--light-text); }
.info-item { display: flex; align-items: flex-start; gap: 20px; margin-top: 30px; }
.info-icon { font-size: 1.5rem; }
.info-item h4 { color: var(--bg-white); margin-bottom: 5px; font-weight: 600; }
.info-item p { margin-bottom: 0; }
.contact-form-container { padding: 50px; }
.form-row { display: flex; gap: 20px; }
.form-row .form-group { flex: 1; }

.legal-content-section { padding: 80px 0; }
.legal-text { max-width: 800px; margin: 0 auto; }
.legal-text h2 { margin: 40px 0 20px; padding-bottom: 10px; border-bottom: 2px solid #e5e7eb; }
.legal-text h2:first-of-type { margin-top: 0; }
.legal-text ul { list-style-type: disc; padding-left: 25px; }
.legal-text li { margin-bottom: 10px; }

/* 15. Scroll Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.animate-on-scroll.fade-in-up { transform: translateY(40px); }
.animate-on-scroll.fade-in-up.is-visible { opacity: 1; transform: translateY(0); }
.animate-on-scroll.zoom-in { transform: scale(0.95); }
.animate-on-scroll.zoom-in.is-visible { opacity: 1; transform: scale(1); }
.animate-on-scroll.slide-in-left { transform: translateX(-50px); }
.animate-on-scroll.slide-in-left.is-visible { opacity: 1; transform: translateX(0); }
.animate-on-scroll.slide-in-right { transform: translateX(50px); }
.animate-on-scroll.slide-in-right.is-visible { opacity: 1; transform: translateX(0); }
.animate-on-scroll.fade-in.is-visible { opacity: 1; }

/* 16. Media Queries (Responsiveness) */
@media (max-width: 1024px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.25rem; }
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-visual { grid-template-columns: repeat(3, 1fr); margin-top: 40px; }
    .hero-buttons { justify-content: center; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-column.about { grid-column: 1 / -1; text-align: center; }
    .footer-logo { margin: 0 auto; }
}

@media (max-width: 768px) {
    :root { --header-height: 70px; }
    html { font-size: 15px; }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    section { padding: 80px 0; }

    .header-cta { display: none; }
    .hamburger-menu { display: block; }
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--header-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
        transition: left 0.3s ease-in-out;
    }
    .nav-open .nav-links { left: 0; }
    .nav-links li a { font-size: 1.5rem; }

    .process-timeline::after { left: 30px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 20px; }
    .timeline-item:nth-child(even) { left: 0; }
    .timeline-step { left: 5px; }
    .timeline-item:nth-child(odd) { text-align: left; }
    
    .industry-tabs { flex-direction: column; }
    .testimonial-grid { grid-template-columns: 1fr; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .contact-form-container { padding: 40px 20px; }
    .form-row { flex-direction: column; gap: 0; }
}

@media (max-width: 480px) {
    .container { width: 95%; }
    .hero-visual { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-column ul { padding-left: 0; }
    .tab-link { font-size: 1rem; }
}