/* ===================================
   QUALITY DEVELOPMENT GLOBAL
   Modern Design System
   =================================== */

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

:root {
    /* Colors */
    --primary: #E67E22;
    --primary-dark: #D35400;
    --secondary: #2C5F8D;
    --secondary-dark: #1A3A52;
    --accent: #F39C12;
    --text-primary: #1A1A1A;
    --text-secondary: #4A4A4A;
    --text-light: #6B7280;
    --white: #FFFFFF;
    --background: #FFFFFF;
    --surface: #F9FAFB;
    --border: #E5E7EB;
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-display: 'Merriweather', serif;
    
    /* Spacing */
    --container-width: 1200px;
    --section-padding: 6rem 0;
    --section-padding-sm: 4rem 0;
    
    /* Effects */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    line-height: 1.6;
    background: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.navbar.scrolled {
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.nav-menu a:not(.cta-btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-menu a:not(.cta-btn):hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.cta-btn {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white) !important;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-btn::after {
    display: none !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 26px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: float 20s ease-in-out infinite;
}

.hero-shape.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -100px;
}

.hero-shape.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -150px;
    left: -100px;
    animation-delay: -7s;
}

.hero-shape.shape-3 {
    width: 500px;
    height: 500px;
    background: var(--accent);
    top: 50%;
    left: 50%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin-bottom: 3rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border);
}

.btn-outline:hover {
    background: var(--text-primary);
    color: var(--white);
    border-color: var(--text-primary);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.0625rem;
}

/* Section */
.services-section,
.sectors-section,
.value-section {
    padding: var(--section-padding);
}

.services-section {
    background: var(--surface);
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--surface);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.service-card.featured {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: var(--white);
}

.service-card.featured .service-title,
.service-card.featured .service-description,
.service-card.featured .service-list li {
    color: var(--white);
}

.service-card.featured .service-icon {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.featured-tag {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.service-icon svg {
    width: 40px;
    height: 40px;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-list {
    list-style: none;
    margin-bottom: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border);
}

.service-card.featured .service-list {
    border-top-color: rgba(255, 255, 255, 0.2);
}

.service-list li {
    padding: 0.5rem 0;
    padding-left: 1.75rem;
    position: relative;
    color: var(--text-secondary);
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.service-card.featured .service-list li::before {
    color: var(--accent);
}

.service-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.service-link:hover {
    gap: 8px;
}

.service-card.featured .service-link {
    color: var(--white);
}

/* Sectors Showcase */
.sectors-showcase {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.sector-badge {
    background: var(--white);
    padding: 1rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9375rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid transparent;
}

.sector-badge:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

/* Value Section */
.value-section {
    background: var(--surface);
}

.value-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.large-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.value-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.value-item {
    display: flex;
    gap: 1.5rem;
}

.value-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.value-text h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.value-text p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.value-visual {
    display: grid;
    gap: 1.5rem;
}

.stat-box {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    text-align: center;
    border-left: 4px solid var(--primary);
}

.stat-box-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-primary);
    margin-bottom: 0.5rem;
}

.stat-box-label {
    color: var(--text-secondary);
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.1;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
}

.cta-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 50px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-4px);
}

.footer-heading {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-links,
.footer-contact {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.75rem;
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--primary);
}

/* Utilities */
.text-center {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .value-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .stat-box {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 73px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        gap: 0;
        max-height: calc(100vh - 73px);
        overflow-y: auto;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem 0;
        width: 100%;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .hero {
        min-height: auto;
        padding: 6rem 0 4rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .services-grid,
    .sectors-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .stat-box {
        padding: 2rem 1.5rem;
    }
    
    .stat-box-number {
        font-size: 2.5rem;
    }
    
    /* Make all grid layouts single column on mobile */
    [style*="grid-template-columns: repeat(2, 1fr)"],
    [style*="grid-template-columns: repeat(3, 1fr)"],
    [style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .cta-section {
        padding: 4rem 0;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .page-header {
        padding: 7rem 0 4rem;
    }
    
    .page-header h1 {
        font-size: 2.25rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    /* Form responsive */
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .logo img {
        height: 40px;
    }
    
    .hero-title {
        font-size: 1.875rem;
    }
    
    .hero-subtitle {
        font-size: 0.9375rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.875rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        font-size: 2rem;
        width: 60px;
        height: 60px;
    }
    
    .service-title {
        font-size: 1.25rem;
    }
    
    .sectors-showcase {
        gap: 0.75rem;
    }
    
    .sector-badge {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .stat-box {
        padding: 1.5rem 1rem;
    }
    
    .stat-box-number {
        font-size: 2rem;
    }
    
    .stat-box-label {
        font-size: 0.875rem;
    }
    
    .cta-title {
        font-size: 1.75rem;
    }
    
    .cta-text {
        font-size: 0.9375rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    .btn-lg {
        padding: 1rem 1.75rem;
    }
    
    .page-header h1 {
        font-size: 1.875rem;
    }
    
    .footer-logo {
        height: 40px;
    }
    
    .footer-heading {
        font-size: 1rem;
    }
    
    .footer-links,
    .footer-contact {
        font-size: 0.875rem;
    }
}

/* Page-specific styles */
.page-header {
    padding: 10rem 0 6rem;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.1;
}

.page-header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.page-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

button[type="submit"] {
    border: none;
}
