/* MyParcelMate Responsive CSS - Mobile-first approach */

/* CSS Variables - MyParcelMate Official Brand Colors */
:root {
    /* Primary colors from logo */
    --primary: #1e3a8a;        /* Deep Blue from logo */
    --secondary: #1e40af;       /* Medium Blue from logo */
    --accent: #0891b2;          /* Teal from logo */
    --light-accent: #06b6d4;    /* Light Teal from logo */
    --dark: #1F2937;            /* Dark text color */
    --light-gray: #F8FAFC;      /* Light background */
    
    /* Gradient combinations using brand colors */
    --gradient-primary: linear-gradient(135deg, #1e3a8a, #1e40af);
    --gradient-secondary: linear-gradient(135deg, #1e40af, #0891b2);
    --gradient-accent: linear-gradient(135deg, #0891b2, #06b6d4);
}

/* Modern Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleInX {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0,-30px,0);
    }
    70% {
        transform: translate3d(0,-15px,0);
    }
    90% {
        transform: translate3d(0,-4px,0);
    }
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    overflow-x: hidden;
}

/* Prevent any content from going outside container */
.container > * {
    max-width: 100%;
    overflow-x: hidden;
}

/* Prevent layout shift by fixing image dimensions */
.partner-logo {
    width: 80px;
    height: 60px;
    object-fit: contain;
    display: block;
}

/* Ensure consistent card heights */
.partner-card {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Mobile layout stability */
@media (max-width: 768px) {
    .partner-card {
        min-height: 180px;
    }
    
    .modern-service-card,
    .service-card {
        min-height: 250px;
    }
}

/* Typography */
.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Grid Systems - Mobile First */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.grid-6 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Hero responsive grid */
.hero-grid-responsive {
    grid-template-columns: 1fr !important;
}

@media (min-width: 768px) {
    .hero-grid-responsive {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* Mobile hero visual fixes */
@media (max-width: 768px) {
    .hero-visual {
        margin-top: 2rem !important;
        order: -1; /* Move visual above text on mobile */
        min-height: 300px; /* Prevent layout shift */
    }
    
    .hero-visual > div {
        max-width: 300px !important;
        margin: 0 auto !important;
        aspect-ratio: 1 !important; /* Maintain aspect ratio */
    }
    
    .hero-content {
        gap: 2rem !important;
        text-align: center !important;
        min-height: 80vh !important; /* Consistent height */
    }
    
    .hero-text {
        text-align: center !important;
    }
    
    .hero-main-title {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important; /* Consistent spacing */
    }
    
    .hero-enhanced-subtitle {
        font-size: 1rem !important;
        margin: 1.5rem 0 !important;
        line-height: 1.5 !important; /* Consistent line height */
    }
    
    .hero-buttons-container {
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: center !important;
        margin: 2rem 0 !important; /* Consistent margin */
    }
    
    .hero-cta-primary,
    .hero-cta-secondary {
        width: 100% !important;
        max-width: 280px !important;
        justify-content: center !important;
        min-height: 48px !important; /* Touch-friendly height */
    }
    
    .hero-trust-indicators {
        flex-direction: column !important;
        gap: 1rem !important;
        margin-top: 2rem !important;
    }
    
    .hero-trust-item {
        min-height: 60px !important; /* Prevent layout shift */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* Enhanced Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--primary);
    color: white;
    position: relative;
    overflow: hidden;
}

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

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

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Modern Hero Section Responsive */
.modern-hero .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
}

.modern-hero .hero-text {
    order: 2;
}

.modern-hero .hero-visual {
    order: 1;
}

.modern-hero h1 {
    font-size: 2.5rem;
}

.modern-hero p {
    font-size: 1.1rem;
}

/* Button hover effects */
.btn:hover .shine,
.modern-hero a:hover div:last-child {
    left: 100% !important;
}

.modern-hero a:hover .fas.fa-arrow-right {
    transform: translateX(5px);
}

/* CLEAN HERO SECTION - Keep for fallback */
.hero-section {
    min-height: 100vh;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
    text-align: center;
}

.hero-text {
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    margin-right: 0.75rem;
}

.badge-text {
    font-weight: 600;
    font-size: 0.9rem;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.highlight-text {
    background: linear-gradient(135deg, #0891b2, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight-text-alt {
    background: linear-gradient(135deg, #0891b2, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    opacity: 0.95;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn-primary-large {
    background: var(--gradient-accent);
    color: white;
    padding: 1.25rem 2.5rem;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 8px 25px rgba(255,215,0,0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-secondary-large {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1.25rem 2.5rem;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.trust-indicators {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1rem 1.5rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.trust-item i {
    font-size: 1.5rem;
    margin-right: 0.75rem;
}

.trust-item:first-child i {
    color: #0891b2;
}

.trust-item:last-child i {
    color: #06b6d4;
}

.trust-content .trust-title {
    font-weight: 700;
    font-size: 1.1rem;
}

.trust-content .trust-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* CLEAN HERO VISUAL */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-container {
    position: relative;
    width: 300px;
    height: 300px;
}

.main-visual {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(20px);
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-visual i {
    font-size: 3rem;
    color: white;
}

.visual-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.element {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.element-1 {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.element-2 {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

.element-3 {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

/* STATS SECTION */
.stats-section {
    padding: 5rem 0;
    background: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
}

.stat-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.stat-item:nth-child(1) .stat-icon {
    background: var(--gradient-primary);
}

.stat-item:nth-child(2) .stat-icon {
    background: var(--gradient-secondary);
}

.stat-item:nth-child(3) .stat-icon {
    background: var(--gradient-accent);
}

.stat-item:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.stat-item:nth-child(1) .stat-number {
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.stat-item:nth-child(2) .stat-number {
    background: var(--gradient-secondary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.stat-item:nth-child(3) .stat-number {
    background: var(--gradient-accent);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.stat-item:nth-child(4) .stat-number {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.stat-title {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.stat-subtitle {
    color: #6B7280;
}

/* PARTNERS SECTION */
.partners-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #F8FAFC, #E2E8F0);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    margin-bottom: 2rem;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6B7280;
    max-width: 600px;
    margin: 0 auto;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.partner-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.partner-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.partner-logo {
    height: 60px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.partner-name {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.partner-type {
    color: #6B7280;
    font-size: 0.9rem;
}

.partner-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.partner-card:hover .partner-logo {
    transform: scale(1.1);
}

/* SERVICES SECTION */
.services-section {
    padding: 3rem 0 2rem 0;
    background: white;
}

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

.service-card {
    border-radius: 25px;
    padding: 2rem 1.2rem;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-primary {
    background: var(--gradient-primary);
    box-shadow: 0 20px 60px rgba(30, 58, 138, 0.3);
}

.service-secondary {
    background: var(--gradient-secondary);
    box-shadow: 0 20px 60px rgba(30, 64, 175, 0.3);
}

.service-accent {
    background: var(--gradient-accent);
    box-shadow: 0 20px 60px rgba(8, 145, 178, 0.3);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

.service-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-description {
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.service-link {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-link:hover {
    background: rgba(255,255,255,0.3);
}

/* CTA SECTION */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #1F2937 0%, #1e3a8a 100%);
    position: relative;
    overflow: hidden;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: white;
}

.cta-badge {
    display: inline-block;
    background: var(--gradient-accent);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 2rem;
}

.cta-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.cta-description {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary {
    background: var(--gradient-accent);
    color: white;
    padding: 1.5rem 3rem;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 10px 30px rgba(8, 145, 178, 0.4);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.btn-cta-secondary {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    color: white;
    padding: 1.5rem 3rem;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons a {
        width: 100%;
        max-width: 300px;
    }
    
    .trust-indicators {
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons a {
        width: 100%;
        max-width: 300px;
    }
}

/* Remove all previous animations */
/* Clean, professional animations only */
.partner-card,
.service-card,
.stat-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Additional Responsive Breakpoints for Modern Hero */
@media (min-width: 768px) {
    .modern-hero .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        text-align: left;
    }

    .modern-hero .hero-text {
        order: 1;
    }

    .modern-hero .hero-visual {
        order: 2;
    }

    .modern-hero h1 {
        font-size: 4rem;
    }

    .modern-hero p {
        font-size: 1.25rem;
    }

    .modern-hero .hero-buttons {
        flex-direction: row;
        justify-content: flex-start;
    }
}

@media (min-width: 1024px) {
    .modern-hero h1 {
        font-size: 4.5rem;
    }

    .modern-hero p {
        font-size: 1.3rem;
    }
}

/* Hero button responsive styles */
.modern-hero .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.modern-hero .hero-buttons a {
    width: 100%;
    max-width: 280px;
    justify-content: center;
}

@media (min-width: 768px) {
    .modern-hero .hero-buttons {
        flex-direction: row;
        align-items: flex-start;
    }

    .modern-hero .hero-buttons a {
        width: auto;
        max-width: none;
    }
}

/* Modern fade-in system */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations */
.service-card:nth-child(1) { transition-delay: 0.1s; }
.service-card:nth-child(2) { transition-delay: 0.2s; }
.service-card:nth-child(3) { transition-delay: 0.3s; }
.service-card:nth-child(4) { transition-delay: 0.4s; }

.value-card:nth-child(1) { transition-delay: 0.1s; }
.value-card:nth-child(2) { transition-delay: 0.2s; }
.value-card:nth-child(3) { transition-delay: 0.3s; }

.contact-card:nth-child(1) { transition-delay: 0.1s; }
.contact-card:nth-child(2) { transition-delay: 0.2s; }
.contact-card:nth-child(3) { transition-delay: 0.3s; }

/* Hero Section Responsive Styles */
.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.2);
    animation: slideInLeft 1s ease-out;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    margin-right: 0.75rem;
    animation: pulse 2s infinite;
}

.hero-badge-text {
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.hero-main-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: slideInLeft 1s ease-out 0.2s both;
}

.hero-gradient-text {
    background: linear-gradient(135deg, #06b6d4, #0891b2, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    position: relative;
    display: inline-block;
}

.hero-gradient-underline {
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    border-radius: 2px;
    animation: scaleInX 1s ease-out 1.5s both;
}

.hero-white-text {
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-enhanced-subtitle {
    font-size: 1.3rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 500px;
    animation: slideInLeft 1s ease-out 0.4s both;
}

.hero-buttons-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    animation: slideInLeft 1s ease-out 0.6s both;
}

.hero-cta-primary {
    background: linear-gradient(135deg, #0891b2, #06b6d4);
    color: white;
    padding: 1rem 2rem;
    border-radius: 1rem;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 8px 30px rgba(8, 145, 178, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-cta-secondary {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    color: white;
    padding: 1rem 2rem;
    border-radius: 1rem;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.hero-trust-indicators {
    display: flex;
    gap: 2rem;
    animation: slideInLeft 1s ease-out 0.8s both;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-trust-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-trust-icon.secure {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.hero-trust-icon.support {
    background: rgba(6, 182, 212, 0.2);
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.hero-trust-content {
    color: white;
}

.hero-trust-title {
    font-weight: 700;
    font-size: 1rem;
}

.hero-trust-subtitle {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* ENHANCED MOBILE-FIRST RESPONSIVE DESIGN */

/* Global responsive grid fixes */
@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .services-grid,
    .partners-grid,
    .about-content-grid,
    [style*="grid-template-columns"] {
        display: block !important;
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .grid-2 > *,
    .grid-3 > *,
    .services-grid > *,
    .partners-grid > *,
    .about-content-grid > * {
        margin-bottom: 1.5rem;
        width: 100%;
        max-width: 100%;
    }
}

/* Extra Small Mobile (320px and up) */
@media (max-width: 375px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-main-title {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .modern-service-card,
    .modern-contact-card,
    .value-card {
        padding: 1.5rem;
    }
    
    .partner-card {
        padding: 1rem;
    }
}

/* Small Mobile (375px and up) */
@media (max-width: 480px) {
    .grid-2,
    .grid-3,
    .services-grid,
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .modern-page-header h1,
    .modern-about-header h1 {
        font-size: 2.8rem;
    }
    
    .cta-buttons,
    .hero-buttons-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* Standard Mobile (480px and up) */
@media (max-width: 768px) {
    .hero-main-title {
        font-size: 2.5rem;
    }
    
    .hero-enhanced-subtitle {
        font-size: 1.1rem;
        max-width: 100%;
    }
    
    .hero-buttons-container {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta-primary,
    .hero-cta-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .hero-trust-indicators {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .hero-trust-item {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    /* Services page mobile optimization */
    .modern-service-card {
        margin-bottom: 1.5rem;
    }
    
    .partner-service-card {
        margin-bottom: 1rem;
    }
    
    .pricing-card {
        margin-bottom: 1.5rem;
    }
    
    /* About page mobile optimization */
    .timeline-item {
        flex-direction: column;
        text-align: center;
    }
    
    /* Contact page mobile optimization */
    .quote-form-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    /* Navigation mobile improvements */
    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        z-index: 9999;
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .mobile-menu.active {
        display: flex;
    }
    
    .mobile-menu a {
        color: white;
        font-size: 1.5rem;
        margin: 1rem 0;
        text-decoration: none;
    }
}

/* Tablet Portrait (768px and up) */
@media (min-width: 768px) and (max-width: 1024px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-main-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

/* Large Tablet/Small Desktop (1024px and up) */
@media (min-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Touch-specific optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .modern-service-card,
    .modern-contact-card,
    .value-card,
    .partner-card {
        transform: none;
        transition: background-color 0.3s ease;
    }
    
    .btn:active {
        transform: scale(0.98);
    }
    
    /* Larger touch targets for mobile */
    .btn {
        min-height: 48px;
        padding: 1rem 1.5rem;
    }
    
    .nav-link {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }
}

/* ENHANCED MOBILE NAVIGATION STYLES */

/* Mobile menu button visibility */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block !important;
    }
    
    .desktop-menu {
        display: none !important;
    }
    
    /* Enhanced mobile menu styling */
    .mobile-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border-top: 1px solid rgba(229, 231, 235, 0.5);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 1rem 1rem;
        z-index: 1000;
    }
    
    .mobile-nav-link {
        transition: all 0.3s ease;
    }
    
    .mobile-nav-link:hover,
    .mobile-nav-link.active {
        background: rgba(30, 58, 138, 0.1);
        color: var(--primary) !important;
    }
    
    /* Hamburger animation */
    .hamburger.active span:nth-child(1) {
        top: 8px;
        transform: rotate(135deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
        left: -20px;
    }
    
    .hamburger.active span:nth-child(3) {
        top: 8px;
        transform: rotate(-135deg);
    }
}

/* Desktop navigation visibility */
@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none !important;
    }
    
    .mobile-menu {
        display: none !important;
    }
    
    .desktop-menu {
        display: flex !important;
    }
    
    /* Enhanced desktop navigation effects */
    .nav-link:hover .nav-bg {
        transform: scaleX(1);
    }
    
    .nav-link:hover span {
        color: white;
    }
    
    .nav-link.active {
        background: linear-gradient(135deg, #1e3a8a, #0891b2);
        color: white;
    }
    
    .nav-link.active span {
        color: white;
    }
    
    .btn-cta:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(30, 58, 138, 0.4);
    }
}

/* Enhanced touch interactions for mobile */
@media (hover: none) and (pointer: coarse) {
    .mobile-nav-link:active {
        background: rgba(30, 58, 138, 0.2);
        transform: scale(0.98);
    }
    
    .btn-cta:active {
        transform: scale(0.95);
    }
    
    /* Improved tap targets */
    .mobile-nav-link,
    .btn-cta {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .modern-header {
        padding: 0.5rem 0;
    }
    
    .mobile-menu {
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .hero-main-title {
        font-size: 2rem;
    }
    
    .modern-page-header h1,
    .modern-about-header h1 {
        font-size: 2.5rem;
    }
}

/* High DPI mobile screens */
@media (max-width: 768px) and (-webkit-min-device-pixel-ratio: 2) {
    .hero-main-title,
    .section-title {
        text-rendering: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    .btn,
    .modern-service-card,
    .modern-contact-card {
        will-change: transform;
        backface-visibility: hidden;
    }
}

/* About page specific fixes */
.modern-about-header {
    position: relative;
    z-index: 1;
}

.modern-about-header + main {
    position: relative;
    z-index: 2;
}

/* Ensure no overlapping sections */
.about-hero {
    display: none; /* Hide old header if it exists */
}

/* About page content grid */
.about-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

.about-text-content {
    width: 100%;
    max-width: 100%;
}

/* Timeline responsive fixes */
@media (max-width: 768px) {
    .timeline-container {
        max-width: 100% !important;
        padding: 0 1rem;
    }
    
    .timeline-line {
        display: none;
    }
    
    .timeline-items {
        gap: 2rem !important;
    }
    
    .timeline-item {
        flex-direction: column !important;
        text-align: center;
        margin-bottom: 2rem;
        gap: 1rem !important;
    }
    
    .timeline-content-left,
    .timeline-date {
        flex: none !important;
        text-align: center !important;
        padding: 0 !important;
        width: 100%;
    }
    
    .timeline-card {
        margin: 0 auto;
        max-width: 100%;
    }
    
    .timeline-arrow-right {
        display: none !important;
    }
    
    .timeline-icon {
        order: -1;
        margin: 1rem 0;
    }
    
    .about-content-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        padding: 0;
    }
    
    .about-text-content {
        padding: 0 1rem;
        text-align: center;
    }
    
    .about-text-content h2 {
        font-size: 2rem !important;
    }
    
    .about-text-content p {
        font-size: 1rem !important;
    }
}

/* Fix container overflow */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
        overflow-x: hidden;
    }
    
    .about-content-grid {
        gap: 1rem;
    }
    
    .about-text-content {
        padding: 0;
    }
}