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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    padding-top: 80px; /* Account for fixed navbar */
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #2980b9;
}

.cta-nav {
    background: linear-gradient(135deg, #2980b9, #16a085);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    padding: 40px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3a5f 0%, #2980b9 50%, #16a085 100%);
    z-index: -1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="20" cy="80" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.hero-content h1 {
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.3em;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.4;
}

.hero-ctas {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.hero-cta {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 200px;
}

.hero-cta.primary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.hero-cta.primary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.hero-cta.secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.hero-cta.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 120px;
}

.stat-number {
    font-size: 2em;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-clients {
    margin-top: 60px;
    text-align: center;
}

.clients-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.clients-logos {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.client-logo {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9em;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.client-logo:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Section Styling */
section {
    padding: 80px 0;
}

h2 {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: #333;
}

.section-subtitle {
    font-size: 1.3em;
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-weight: 500;
}

/* Services Section */
.services-section {
    background: #f8f9fa;
}

.services-section p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
    font-size: 1.1em;
    color: #555;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3em;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.service-card p {
    color: #666;
    line-height: 1.6;
    text-align: left;
}

/* Process Section */
.process-section {
    background: white;
    position: relative;
}

.process-steps {
    margin-top: 60px;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 60px;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 16px;
    position: relative;
    transition: all 0.3s ease;
}

.process-step:hover {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-number {
    background: linear-gradient(135deg, #2980b9, #16a085);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    font-weight: 700;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.5em;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.step-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.step-details {
    list-style: none;
    padding: 0;
}

.step-details li {
    color: #555;
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
}

.step-details li::before {
    content: "✓";
    color: #16a085;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.step-icon {
    font-size: 3em;
    opacity: 0.1;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.process-step:hover .step-icon {
    opacity: 0.3;
    transform: scale(1.1);
}

.process-cta {
    text-align: center;
    margin-top: 80px;
    padding: 60px 40px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2980b9 50%, #16a085 100%);
    border-radius: 16px;
    color: white;
}

.process-cta h3 {
    font-size: 2em;
    font-weight: 600;
    margin-bottom: 15px;
}

.process-cta p {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.process-button {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1em;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.process-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Industries Section */
.industries-section {
    background: white;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 60px;
}

.industry-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.industry-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #2980b9, #16a085);
    color: white;
}

.industry-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.industry-card h3 {
    font-size: 1.2em;
    font-weight: 600;
    color: inherit;
}

/* Portfolio Section */
.portfolio-section {
    background: #f8f9fa;
}

.portfolio-section p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
    font-size: 1.1em;
    color: #555;
}

.portfolio-showcase {
    max-width: 800px;
    margin: 0 auto;
}

.portfolio-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.portfolio-card.featured {
    border: 2px solid #16a085;
    position: relative;
}

.portfolio-card.featured::before {
    content: "Featured Case Study";
    position: absolute;
    top: -12px;
    left: 20px;
    background: #16a085;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
}

.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.portfolio-card h4 {
    font-size: 1.5em;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.portfolio-tag {
    display: inline-block;
    background: linear-gradient(135deg, #2980b9, #16a085);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
}

.portfolio-card p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.portfolio-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.detail-item {
    margin-bottom: 10px;
    color: #555;
    line-height: 1.5;
}

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

.detail-item strong {
    color: #333;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.portfolio-mini-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
    border-left: 4px solid #2980b9;
}

.portfolio-mini-card h5 {
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.mini-tag {
    display: inline-block;
    background: #e3f2fd;
    color: #2980b9;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
    margin-bottom: 15px;
}

.portfolio-mini-card p {
    color: #666;
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 15px;
}

.mini-result {
    color: #16a085;
    font-weight: 600;
    font-size: 0.9em;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.metric {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.metric-number {
    font-size: 2em;
    font-weight: 700;
    color: #2980b9;
    margin-bottom: 5px;
}

.metric-label {
    font-size: 0.9em;
    color: #666;
    text-transform: lowercase;
}

/* Testimonials Section */
.testimonials-section {
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.testimonial-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    position: relative;
    border-left: 4px solid #16a085;
}

.quote-mark {
    font-size: 3em;
    color: #2980b9;
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: serif;
}

.testimonial-card p {
    font-style: italic;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
    padding-top: 20px;
}

.testimonial-author {
    border-top: 1px solid #e9ecef;
    padding-top: 15px;
}

.testimonial-author strong {
    display: block;
    color: #333;
    margin-bottom: 5px;
}

.testimonial-author span {
    color: #666;
    font-size: 0.9em;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #1e3a5f 0%, #2980b9 50%, #16a085 100%);
    color: white;
    text-align: center;
}

.contact-section h2 {
    color: white;
}

.contact-section p {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.contact-cta {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1em;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.contact-cta:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 60px 0 20px 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 15px;
}

.company-details p {
    margin-bottom: 5px;
    color: #ccc;
}

.contact-item {
    margin-bottom: 15px;
}

.contact-item strong {
    display: block;
    margin-bottom: 5px;
    color: white;
}

.contact-item a {
    color: #2980b9;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.social-link {
    color: #2980b9;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-link:hover {
    text-decoration: underline;
    transform: translateY(-2px);
}

.linkedin-icon {
    height: 32px;
    width: 32px;
    transition: opacity 0.3s ease;
}

.linkedin-icon:hover {
    opacity: 0.8;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9em;
}

.footer-links a:hover {
    color: white;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    position: relative;
}

.mobile-menu-toggle .hamburger-line {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
    display: block;
}

.mobile-menu-toggle .close-x {
    display: none;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    line-height: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.mobile-menu-toggle.active .hamburger-line {
    display: none;
}

.mobile-menu-toggle.active .close-x {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 70px; /* Smaller padding on mobile */
    }
    
    .nav-container {
        padding: 10px 20px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hide logo on mobile */
    .logo {
        display: none;
    }
    
    /* Left drawer nav */
    .nav-menu {
        position: fixed;
        top: 59px; /* improved position below navbar */
        left: 0;
        width: 80%;
        height: calc(100vh - 59px);
        background: white;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15);
        flex-direction: column;
        padding: 16px 0;
        transform: translateX(-100%);
        opacity: 1; /* keep visible, off-canvas */
        visibility: visible;
        transition: transform 0.3s ease;
        z-index: 2000;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-menu a:last-child {
        border-bottom: none;
    }
    
    .hero-section {
        margin-top: -70px; /* Compensate for body padding-top */
        min-height: calc(100vh - 70px); /* Account for navbar height */
        display: flex;
        align-items: center;
        justify-content: center;
        padding-top: 0;
    }
    
    .hero-content {
        padding-top: 80px; /* Add some top spacing for better positioning */
        margin-top: 0; /* Ensure no margin */
    }
    
    .hero-badge {
        display: inline-block !important; /* Ensure badge is visible on mobile */
        font-size: 0.8em; /* Slightly smaller on mobile */
        padding: 6px 16px; /* Smaller padding on mobile */
    }
    
    .hero-content h1 {
        font-size: 2.5em;
    }
    
    .hero-content p {
        font-size: 1.1em;
    }
    
    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat-item {
        padding: 15px;
        min-width: 100px;
    }
    
    .process-step {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .step-number {
        margin: 0 auto 20px auto;
    }
    
    .step-icon {
        display: none;
    }
    
    .process-cta {
        padding: 40px 20px;
    }
    
    .process-cta h3 {
        font-size: 1.5em;
    }
    
    h2 {
        font-size: 2em;
    }
    
    .section-subtitle {
        font-size: 1.1em;
    }
    
    .services-grid,
    .industries-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .metrics {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2em;
    }
    
    .service-card,
    .portfolio-card,
    .testimonial-card {
        padding: 25px;
    }
    
    .cta-nav {
        padding: 8px 16px;
        font-size: 0.9em;
    }
}