/*
=================================================================
Web Edge Consulting Website - Design Variation 2 (Light/Corporate)
Author: AI
Version: 2.0
=================================================================

TABLE OF CONTENTS
-----------------
1.  Global Styles & Variables
2.  Typography & Base Styles
3.  Layout & Container
4.  Buttons & Links
5.  Header & Navigation
6.  Footer
7.  Hero Section
8.  Services Section
9.  About & Stats Section
10. Process Section (Timeline)
11. Testimonials Section (Carousel)
12. CTA Section
13. Page Specific Styles (Contact, Legal)
14. Animations & Scroll Effects
15. Utility Classes
16. Responsiveness (Media Queries)

=================================================================
*/

/* 1. Global Styles & Variables
-------------------------------------------------------------- */
:root {
    --primary-color: #0052cc;
    /* Professional Blue */
    --secondary-color: #212529;
    /* Dark Grey for Text */
    --accent-color: #ff7b00;
    /* Vibrant Orange */
    --accent-color-hover: #e66f00;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --border-color: #dee2e6;
    --text-color: #495057;
    --text-light: #6c757d;

    --font-primary: 'Montserrat', sans-serif;
    /* Headings */
    --font-secondary: 'Lato', sans-serif;
    /* Body */

    --header-height: 80px;
    --border-radius: 6px;
    --transition-speed: 0.3s;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 2. Typography & Base Styles
-------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.3;
    color: var(--secondary-color);
}

h1 {
    font-size: 3.2rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
}

p {
    margin-bottom: 1rem;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--accent-color);
}

.subtitle {
    display: block;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

/* 3. Layout & Container
-------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-padding {
    padding: 100px 0;
}

.section-padding-alt {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.section-header {
    margin-bottom: 4rem;
}

.section-header.text-center {
    text-align: center;
}

.section-intro {
    max-width: 650px;
    margin: 1rem auto 0;
    color: var(--text-light);
}

/* 4. Buttons & Links
-------------------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background-color: var(--accent-color-hover);
    border-color: var(--accent-color-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-light {
    background-color: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

.btn-light:hover {
    background-color: transparent;
    color: var(--white);
}

/* 5. Header & Navigation
-------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--white);
    transition: all var(--transition-speed) ease;
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo img {
    height: 50px;
}

.main-navigation .nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.main-navigation .nav-links a {
    color: var(--secondary-color);
    font-weight: 600;
    position: relative;
    padding: 5px 0;
}

.main-navigation .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-speed) ease;
}

.main-navigation .nav-links a:hover::after,
.main-navigation .nav-links a.active::after {
    width: 100%;
}

.main-navigation .nav-links a:hover,
.main-navigation .nav-links a.active {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger {
    display: block;
    position: relative;
    width: 28px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.25s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.25s;
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(8px);
}

body.nav-open .hamburger {
    background-color: transparent;
}

body.nav-open .hamburger::before {
    transform: rotate(45deg);
}

body.nav-open .hamburger::after {
    transform: rotate(-45deg);
}

/* 6. Footer
-------------------------------------------------------------- */
.site-footer {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    padding-bottom: 40px;
}

.footer-widget h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-widget p,
.footer-widget a {
    color: #adb5bd;
    font-size: 0.95rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-list svg {
    width: 20px;
    flex-shrink: 0;
    color: var(--accent-color);
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid #343a40;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: #6c757d;
}

/* 7. Hero Section
-------------------------------------------------------------- */
.hero {
    padding: calc(var(--header-height) + 80px) 0 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    color: var(--text-light);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

/* 8. Services Section
-------------------------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-item {
    background: var(--white);
    padding: 2.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background-color: rgba(0, 82, 204, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all var(--transition-speed) ease;
}

.service-icon svg {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
}

.service-item:hover .service-icon {
    background-color: var(--primary-color);
}

.service-item:hover .service-icon svg {
    color: var(--white);
}

.service-item h3 {
    margin-bottom: 1rem;
}

/* 9. About & Stats Section
-------------------------------------------------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.feature-list {
    padding-left: 1.2rem;
    list-style: none;
    margin-top: 1.5rem;
}

.feature-list li {
    position: relative;
    margin-bottom: 1rem;
    padding-left: 25px;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--accent-color);
    font-weight: 900;
}

.stats-counter {
    display: flex;
    justify-content: space-between;
    margin-top: 2.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-item span {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.25rem;
    font-weight: 600;
}

/* 10. Process Section (Timeline)
-------------------------------------------------------------- */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 5%;
    width: 90%;
    height: 2px;
    background-color: var(--border-color);
    z-index: -1;
}

.process-step {
    text-align: center;
}

.process-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background-color: var(--white);
    border: 2px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: all var(--transition-speed) ease;
}

.process-step:hover .process-icon {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.process-step h3 {
    margin-bottom: 0.5rem;
}

/* 11. Testimonials Section (Carousel)
-------------------------------------------------------------- */
.testimonial-carousel-wrapper {
    position: relative;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-carousel {
    display: flex;
    transition: transform var(--transition-speed) ease-in-out;
}

.testimonial-card {
    flex: 0 0 100%;
    padding: 2rem;
    text-align: center;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin: 1rem;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.author-details {
    text-align: left;
}

.author-details h4 {
    margin: 0;
}

.author-details span {
    color: var(--text-light);
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* 12. CTA Section
-------------------------------------------------------------- */
.cta-section {
    background: linear-gradient(45deg, var(--primary-color), #003e99);
    padding: 80px 0;
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    color: var(--white);
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 1rem auto 2rem;
}

/* 13. Page Specific Styles (Contact, Legal)
-------------------------------------------------------------- */
.page-header {
    background-color: var(--light-bg);
    padding: calc(var(--header-height) + 60px) 0 60px;
    border-bottom: 1px solid var(--border-color);
}

.text-center {
    text-align: center;
}

/* Contact Page */
.contact-section {
    background-color: var(--light-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.contact-info p {
    margin-bottom: 2rem;
}

.contact-details-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-details-list .icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    background-color: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-details-list .icon svg {
    width: 24px;
    color: var(--primary-color);
}

.contact-details-list .text h4 {
    margin-bottom: 0.2rem;
}

.contact-details-list .text span {
    color: var(--text-light);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color var(--transition-speed);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 82, 204, 0.2);
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.form-group.error input,
.form-group.error textarea {
    border-color: #dc3545;
}

.form-group.error .error-message {
    display: block;
}

#form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
    display: none;
}

#form-status.success {
    background-color: #d4edda;
    color: #155724;
}

#form-status.error {
    background-color: #f8d7da;
    color: #721c24;
}

/* Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.legal-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content ul li {
    margin-bottom: 0.5rem;
}

/* 14. Animations & Scroll Effects
-------------------------------------------------------------- */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.fade-in-up {
    transform: translateY(40px);
}

.animate-on-scroll.slide-in-left {
    transform: translateX(-40px);
}

.animate-on-scroll.slide-in-right {
    transform: translateX(40px);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

.delay-1 {
    transition-delay: 0.15s;
}

.delay-2 {
    transition-delay: 0.3s;
}

.delay-3 {
    transition-delay: 0.45s;
}

/* 16. Responsiveness (Media Queries)
-------------------------------------------------------------- */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero-grid,
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        margin-top: 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-image {
        order: -1;
        margin-bottom: 2rem;
    }

    .process-timeline {
        grid-template-columns: 1fr 1fr;
    }

    .process-timeline::before {
        display: none;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    h1 {
        font-size: 2.2rem;
    }

    .section-padding,
    .section-padding-alt {
        padding: 60px 0;
    }

    /* Mobile Navigation */
    .main-navigation {
        position: fixed;
        top: var(--header-height);
        right: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--white);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        padding: 2rem;
        box-shadow: var(--shadow-md);
    }

    body.nav-open .main-navigation {
        transform: translateX(0);
    }

    .main-navigation .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .main-navigation .nav-links a {
        font-size: 1.2rem;
    }

    .nav-toggle {
        display: block;
    }

    .header-actions .btn {
        display: none;
    }

    .stats-counter {
        flex-direction: column;
        gap: 2rem;
    }

    .testimonial-card {
        margin: 1rem 0;
    }

    .process-timeline {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        text-align: center;
    }

    .contact-list {
        justify-content: center;
    }
}