:root {
    /* Color Palette */
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --accent-color: #0dcaf0;
    
    /* Spacing */
    --border-radius: 15px;
    --box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

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

html, body {
    max-width: 100vw;
    width: 100%;
    -webkit-text-size-adjust: 100%; /* Prevent font scaling in landscape on iOS */
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
}

section, .container-fluid, .container {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: break-word; /* Replaced deprecated word-wrap */
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a58ca 100%);
    border: none;
    padding: 14px 35px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0a58ca 0%, #084298 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.3);
}

.trust-badge {
    background: white;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.trust-badge i {
    color: #ffd700;
    font-size: 1.2rem;
}

/* Navigation */
.navbar {
    padding: 15px 0;
    background-color: white;
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    background: linear-gradient(135deg, #18396a 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-left: 20px;
}

.nav-link {
    color: var(--dark-color);
    font-weight: 500;
    margin: 0 15px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.lang-toggle {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 5px 15px;
    font-weight: 500;
    margin-left: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.lang-toggle:hover {
    background-color: #0a58ca;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, var(--light-color) 0%, #e3f2fd 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 150%;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

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

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-top: 5px;
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-image img {
    border-radius: var(--border-radius);
    max-width: 100%;
    height: auto;
}

/* Value Bar */
.value-bar {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a58ca 100%);
    color: white;
    padding: 30px 0;
    position: relative;
    z-index: 1;
}
.value-item {
    text-align: center;
    padding: 0 20px;
}

.value-item i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.value-item h5 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.value-item p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

/* Sections */
.section-padding {
    padding: 100px 0;
    position: relative;
    isolation: isolate;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 50px;
}

/* Cards */
.service-card, .pricing-card, .testimonial-card, .blog-card, .portfolio-card, .contact-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px 30px;
    box-shadow: var(--box-shadow);
    height: 100%;
    position: relative;
}

.service-icon, .contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.contact-icon {
    border-radius: 50%;
    margin: 0 auto 20px;
}

.service-icon i, .contact-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.contact-icon i {
    font-size: 2rem;
}

.service-features, .pricing-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.service-features li, .pricing-features li {
    padding: 8px 0;
    color: var(--secondary-color);
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.service-features li i, .pricing-features li i {
    color: var(--success-color);
    margin-right: 10px;
}

/* About & Backgrounds */
.about-section, .pricing-section, .faq-section {
    background-color: var(--light-color);
}

.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    max-width: 100%;
    height: auto;
}

.about-stats {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.about-stat-number, .pricing-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.pricing-price {
    font-size: 3rem;
    margin-bottom: 10px;
}

.pricing-card {
    text-align: center;
    border: 2px solid transparent;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 5px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Portfolio */
.portfolio-image {
    height: 350px;
    overflow: hidden;
    position: relative;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
}

.portfolio-content {
    padding: 35px;
}

.portfolio-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

/* Marketing Section */
.marketing-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.marketing-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

.marketing-content {
    position: relative;
    z-index: 1;
}

.marketing-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
}

/* Testimonials */
.testimonial-card {
    border-left: 4px solid var(--primary-color);
}

.testimonial-stars {
    color: #ffd700;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--light-color);
}

/* Blog */
.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 25px;
}

.blog-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.blog-link:hover {
    color: #0a58ca;
    gap: 10px;
}

/* FAQ */
.accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.accordion-button {
    background-color: white;
    color: var(--dark-color);
    font-weight: 600;
    padding: 20px 25px;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-body {
    padding: 25px;
    background-color: white;
}

/* Footer */
footer {
    background-color: #1a1d29;
    color: #adb5bd;
    padding: 80px 0 30px;
    position: relative;
    isolation: isolate;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.social-icons a {
    display: inline-flex;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Responsive */

@media (max-width: 767px) {
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .stat-number { font-size: 2rem; }
    .section-title { font-size: 1.8rem; }
    .section-subtitle { font-size: 1rem; }
    .hero-section { padding: 100px 0; }
    .section-padding { padding: 60px 0; }
    .value-bar { padding: 20px 0; margin-top: 0; }
    .value-item { margin-bottom: 20px; }
    .portfolio-image { height: 250px; }
    .portfolio-content { padding: 25px; }
    .btn-primary, .btn-outline-primary { width: 100%; margin-bottom: 10px; }
    .navbar-brand { font-size: 1.4rem; }
}

@media (max-width: 576px) {
    .hero-title { font-size: 1.5rem; }
    .section-title { font-size: 1.3rem; }
    .hero-section { padding: 90px 0 50px; }

    .service-icon, .contact-icon { width: 60px; height: 60px; }
    .service-icon i { font-size: 2rem; }
    .pricing-price { font-size: 2.5rem; }
    .marketing-section { padding: 60px 0; }
    footer { padding: 60px 0 20px; }
}