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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Performance optimizations */
*,
*::before,
*::after {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #000000;
    background-color: #FFFFFF;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 8px 32px rgba(29, 78, 216, 0.1);
    border-bottom: 1px solid rgba(29, 78, 216, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s ease;
}

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

.logo-link:focus {
    outline: none;
    transform: scale(1.05);
}

.logo-icon {
    width: 32px;
    height: 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(29, 78, 216, 0.1));
}

.logo-icon:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(29, 78, 216, 0.2));
}

.nav-logo h2 {
    background: linear-gradient(135deg, #1D4ED8, #2563EB, #3B82F6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
    margin: 0;
}

.nav-logo h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #1D4ED8, transparent);
    border-radius: 1px;
}

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

.nav-item {
    position: relative;
}

.nav-item:hover {
    z-index: 1;
}

.nav-link {
    text-decoration: none;
    color: #000000;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #1D4ED8;
}

.nav-link:not(.cta-btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #1D4ED8;
    transition: width 0.3s ease;
}

.nav-link:not(.cta-btn):hover::after {
    width: 100%;
}

.cta-btn {
    background: linear-gradient(135deg, #1D4ED8, #2563EB);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(29, 78, 216, 0.3);
    isolation: isolate;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.cta-btn:hover::before {
    left: 100%;
}

.cta-btn:hover {
    background: linear-gradient(135deg, #2563EB, #3B82F6);
    box-shadow: 0 8px 25px rgba(29, 78, 216, 0.4);
}

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

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

.nav-link:focus,
.nav-link:active,
.nav-link:focus-visible {
    outline: none !important;
    border: none !important;
}

.nav-link:not(.cta-btn) {
    pointer-events: auto;
}

.cta-btn {
    pointer-events: auto;
    will-change: box-shadow, background;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #000000;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 50%, #f0f9ff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(29, 78, 216, 0.03) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.02) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite reverse;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #000000 0%, #1D4ED8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #1D4ED8, #2563EB);
    border-radius: 2px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #6B7280;
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #1D4ED8, #2563EB);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(29, 78, 216, 0.3);
    border: none;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
    transform: translateY(20px);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: linear-gradient(135deg, #2563EB, #3B82F6);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 40px rgba(29, 78, 216, 0.5);
}

.cta-button:focus,
.cta-button:active,
.cta-button:focus-visible {
    outline: none !important;
    border: none !important;
    box-shadow: 0 8px 25px rgba(29, 78, 216, 0.3) !important;
}

/* Hero Mini Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: nowrap;
    width: 100%;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.7s forwards;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(29, 78, 216, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(29, 78, 216, 0.05), transparent);
    transition: left 0.6s ease;
}

.stat-item:hover::before {
    left: 100%;
}

.stat-item:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(29, 78, 216, 0.3);
    background: rgba(29, 78, 216, 0.02);
}

.stat-item i {
    color: #1D4ED8;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.stat-item span {
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.4s forwards;
}

.hero-img {
    width: 90%;
    height: auto;
    max-width: 90%;
    object-fit: cover;
    border-radius: 20px;
    position: relative;
    opacity: 0;
    animation: fadeInScale 1s ease-out 0.4s forwards;
    transition: transform 0.3s ease;
}




.hero-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.1), rgba(37, 99, 235, 0.05));
    border-radius: 30px;
    z-index: -1;
    opacity: 0;
}


/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #000000 0%, #1D4ED8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #1D4ED8, #2563EB);
    border-radius: 2px;
}

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

/* About Section */
.about {
    padding: 100px 0;
    background: #ffffff;
}

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

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #6B7280;
    margin-bottom: 1.5rem;
}

.about-text:last-of-type {
    margin-bottom: 3rem;
}

.about-contact {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #1D4ED8;
    font-weight: 500;
}

.about-contact a {
    color: #1D4ED8;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.about-contact a:hover {
    color: #2563EB;
    text-decoration: underline;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #1D4ED8, #2563EB);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-weight: 700;
    position: relative;
}

.stat h3::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -10px;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #1D4ED8;
    border-radius: 50%;
    opacity: 0.6;
}

.stat p {
    color: #6B7280;
    font-weight: 500;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 50%, #f0f9ff 100%);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(29, 78, 216, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(37, 99, 235, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

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

.service-card {
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(29, 78, 216, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(29, 78, 216, 0.03), transparent);
    transition: left 0.6s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(29, 78, 216, 0.1);
    border-color: rgba(29, 78, 216, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1D4ED8, #2563EB, #3B82F6);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    box-shadow: 0 8px 25px rgba(29, 78, 216, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-icon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #1D4ED8, #2563EB, #3B82F6);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotateY(10deg);
    box-shadow: 0 12px 35px rgba(29, 78, 216, 0.4);
}

.service-card:hover .service-icon::before {
    opacity: 0.2;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

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

.service-desc {
    color: #6B7280;
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 50%, #ffffff 100%);
    position: relative;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(29, 78, 216, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(37, 99, 235, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.testimonial-card {
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(29, 78, 216, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(29, 78, 216, 0.03), transparent);
    transition: left 0.6s ease;
}

.testimonial-card:hover::before {
    left: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(29, 78, 216, 0.1);
    border-color: rgba(29, 78, 216, 0.1);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.stars i {
    color: #fbbf24;
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(251, 191, 36, 0.3);
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
    font-style: italic;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: -10px;
    font-size: 3rem;
    color: #1D4ED8;
    opacity: 0.3;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f3f4f6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.testimonial-card:hover .author-image {
    border-color: #1D4ED8;
    transform: scale(1.05);
}

.author-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.25rem;
}

.author-info p {
    font-size: 0.875rem;
    color: #6B7280;
    margin-bottom: 0.25rem;
}

.location {
    font-size: 0.75rem;
    color: #1D4ED8;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.location::before {
    content: '📍';
    font-size: 0.75rem;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    color: #000000;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    color: #6B7280;
}

.contact-item i {
    color: #1D4ED8;
    margin-right: 1rem;
    font-size: 1.2rem;
    width: 20px;
}

.contact-form {
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(29, 78, 216, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1D4ED8, #2563EB, #3B82F6);
    border-radius: 20px 20px 0 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1D4ED8;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
    transform: translateY(-2px);
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: #2563EB;
    transform: translateY(-1px);
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #1D4ED8, #2563EB);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(29, 78, 216, 0.3);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #2563EB, #3B82F6);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(29, 78, 216, 0.4);
}

.submit-btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
    padding: 3rem 0 1rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #1D4ED8, transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    color: #9ca3af;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #3B82F6;
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.footer-legal {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.footer-contact {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-top: 0.5rem;
}

.footer-contact a {
    color: #3B82F6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #1D4ED8;
}

/* Responsive Design */

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
    .container,
    .hero-container,
    .nav-container,
    .legal-container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .services-grid,
    .testimonials-grid {
        gap: 3rem;
    }
    
    .hero-img {
        width: 90%;
        max-width: 90%;
    }
}

/* Desktop (1024px - 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
    .container,
    .hero-container,
    .nav-container {
        max-width: 1200px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-img {
        width: 90%;
        max-width: 90%;
    }
}

/* Tablet Landscape (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-container {
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .service-card,
    .testimonial-card {
        padding: 2rem;
    }
    
    .contact-content {
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Mobile Landscape & Small Tablet (481px - 767px) */
@media (max-width: 767px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.15);
        padding: 2rem 0;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1rem 0;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        margin: 0.25rem 0;
        transition: background-color 0.3s ease;
    }
    
    .nav-link:hover,
    .nav-link:focus {
        background-color: rgba(29, 78, 216, 0.1);
    }
    
    /* Touch improvements */
    .cta-button,
    .submit-btn,
    .nav-link {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
        padding: 0;
        margin: 0 auto;
        align-items: center;
        justify-items: center;
        max-width: calc(100vw - 20px);
        overflow: hidden;
        width: 100%;
    }

    .hero-title {
        font-size: 2.1rem;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: calc(100vw - 40px);
        padding: 0 10px;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        text-align: center;
        width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: calc(100vw - 40px);
        padding: 0 10px;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 1rem;
        margin-top: 1.5rem;
        width: 100%;
        justify-items: center;
        align-items: center;
    }

    .stat-item {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.5rem 0.75rem;
        min-width: 0;
        width: auto;
    }
    
    .stat-item:nth-child(3) {
        grid-column: 1 / -1;
        justify-self: center;
    }

    .stat-item i {
        font-size: 0.75rem;
    }

    .stat-item span {
        font-size: 0.65rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-title {
        font-size: 1.3rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
}

/* Mobile Portrait (320px - 480px) */
@media (max-width: 480px) {
    * {
        box-sizing: border-box;
    }
    
    html, body {
        overflow-x: hidden;
        width: 100vw;
        max-width: 100vw;
        margin: 0;
        padding: 0;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        text-align: center;
    }
    .container {
        padding: 0 20px;
        max-width: 100%;
        overflow-x: hidden;
        position: relative;
        z-index: 1;
    }
    
    .navbar {
        padding: 0.75rem 0;
        z-index: 1001;
        position: fixed;
    }
    
    .nav-logo h2 {
        font-size: 1.22rem;

    }
    
    
    .logo-icon {
        width: 28px;
        height: 28px;
    }

    .hero {
        padding: 120px 0 60px;
        position: relative;
        z-index: 1;
    }
    
    .hero-container {
        padding: 0;
        margin: 0 auto;
        align-items: center;
        justify-items: center;
        max-width: calc(100vw - 20px);
        overflow: hidden;
        word-wrap: break-word;
        width: 100%;
        display: grid;
        place-items: center;
        gap: 1rem;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        line-height: 1.25;
        word-wrap: break-word;
        hyphens: auto;
        max-width: calc(100vw - 40px);
        overflow-wrap: break-word;
        white-space: normal;
        text-align: center;
        padding: 0 10px;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1.25rem;
        text-align: center;
        width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: calc(100vw - 40px);
        padding: 0 10px;
        white-space: normal;
    }
    
    .cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        display: block;

        margin:  0 auto;
        text-align: center;
        width: fit-content;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 0.3rem;
        margin-top: 1.25rem;
        width: 100%;
        justify-items: center;
        align-items: center;
    }

    .stat-item {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.2rem 0.5rem;
        
        min-width: 0;
        width: auto;
    }
    
    .stat-item:nth-child(3) {
        grid-column: 1 / -1;
        justify-self: center;
    }

    .stat-item i {
        font-size: 0.7rem;
    }

    .stat-item span {
        font-size: 0.6rem;
    }

    .section-title {
        font-size: 1.875rem;
        margin-bottom: 0.75rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    .about,
    .services,
    .testimonials,
    .contact {
        padding: 120px 0 80px 0;

        position: relative;
        z-index: 1;
    }

    .service-card,
    .testimonial-card {
        padding: 1.25rem;
    }
    
    .service-title {
        font-size: 1.2rem;
    }
    
    .service-desc,
    .testimonial-text {
        font-size: 0.9rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

    .contact-form {
        padding: 1.25rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.875rem;
        font-size: 0.95rem;
    }
    
    .form-group input:focus,
    .form-group textarea:focus {
        outline: none !important;
        border: 2px solid #1D4ED8 !important;
        box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1) !important;
    }
    
    /* Mobile Navigation Menu */
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100vw;
        height: 100vh;
        background: rgba(247, 245, 243, 0.97);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1002;
        padding: 0;
    }

    .nav-menu.active {
        left: 0;
    }
    
    /* Close Button */
    .nav-menu::before {
        content: '✕';
        position: absolute;
        top: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        background: rgba(0, 0, 0, 0.07);
        border: 4px solid #1D4ED8;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 30px;
        font-weight: bold;
        color: #000000;
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 1003;
    }
    
    .nav-menu::before:hover {
        background: #000000;
        color: white;
        transform: scale(1.05);
    }

    .nav-item {
        margin:  0;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .nav-link {
        font-size: 1.4rem;
        font-weight: 700;

        padding: 0.1rem 1rem;
        color: #383636;
        text-decoration: none;
        transition: all 0.3s ease;
        border-radius: 0;
        background: transparent;
        width: auto;
        display: block;
    }
    
    .nav-link:hover,
    .nav-link:focus {
        background: transparent;
        color: #1D4ED8;
        transform: translateY(-2px);
    }
    
    .nav-link.cta-btn {
        background: linear-gradient(135deg, #1D4ED8, #2563EB);
        color: white;
        border-radius: 25px;
        padding: 0.7rem 1.8rem;
        margin-top: 0.2rem;
        font-weight: 600;
        box-shadow: 0 4px 15px rgba(29, 78, 216, 0.3);
    }
    
    .nav-link.cta-btn:hover {
        background: linear-gradient(135deg, #2563EB, #3B82F6);
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(29, 78, 216, 0.4);
        color: white;
    }
    
    .submit-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .about-stats {
        gap: 1rem;
    }
    
    .stat h3 {
        font-size: 2rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        gap: 1.25rem;
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
}

/* Extra Small Mobile (320px and below) */
@media (max-width: 320px) {
    .hero-title {
        font-size: 1.75rem; 
        
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .cta-button {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .stat-item span {
        font-size: 0.55rem;
    }
    
    .section-title {
        font-size: 1.625rem;
    }
    
    .service-card,
    .testimonial-card,
    .contact-form {
        padding: 1rem;
    }
}

/* Smooth Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 15px 40px rgba(29, 78, 216, 0.5);
    }
    50% {
        box-shadow: 0 20px 50px rgba(29, 78, 216, 0.7);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.hero-content,
.service-card,
.contact-form {
    animation: fadeInUp 0.8s ease-out;
}

/* Loading States */
img {
    transition: opacity 0.3s ease;
    height: auto;
    max-width: 100%;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Focus states for accessibility */
.cta-button:focus,
.submit-btn:focus,
.nav-link:focus {
    outline: 2px solid #1D4ED8;
    outline-offset: 2px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid #1D4ED8;
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
} 