/* ===== CSS RESET & VARIABLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    color-scheme: light !important;
    /* Color Palette - Premium & Professional */
    --primary-color: #0066FF;
    --primary-dark: #0052CC;
    --primary-light: #3385FF;
    --secondary-color: #FF3366;
    --secondary-dark: #E62958;
    --accent-color: #00D9B5;
    --accent-dark: #00B89C;
    --gold: #FFB800;
    --dark-bg: #0A1628;
    --dark-secondary: #1A2332;
    --dark-tertiary: #2A3441;
    --light-bg: #F7F9FC;
    --light-secondary: #EDF2F7;
    --white: #FFFFFF;
    --text-dark: #1A202C;
    --text-medium: #4A5568;
    --text-light: #718096;

    /* Premium Gradients */
    --gradient-1: linear-gradient(135deg, #0066FF 0%, #00D9B5 100%);
    --gradient-2: linear-gradient(135deg, #FF3366 0%, #FFB800 100%);
    --gradient-3: linear-gradient(135deg, #0066FF 0%, #FF3366 100%);
    --gradient-4: linear-gradient(135deg, #00D9B5 0%, #0066FF 100%);
    --gradient-dark: linear-gradient(135deg, #0A1628 0%, #1A2332 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 102, 255, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 102, 255, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 102, 255, 0.16);
    --shadow-xl: 0 16px 48px rgba(0, 102, 255, 0.2);

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-display: 'Playfair Display', serif;

    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 20px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 50%, #ffffff 100%);
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    /* Force solid white background for dark mode compatibility */
    background: #ffffff !important;
    background-color: #ffffff !important;
    color-scheme: light !important;
    forced-color-adjust: none !important;
    -webkit-appearance: none !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 25px rgba(0, 102, 255, 0.08);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 102, 255, 0.12);
}

.navbar.scrolled {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color-scheme: light !important;
    forced-color-adjust: none !important;
    box-shadow: 0 4px 30px rgba(0, 102, 255, 0.12);
    border-bottom-color: rgba(0, 102, 255, 0.18);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    min-height: 90px;
    height: 90px;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0;
}

.logo-image {
    height: 76.5px;
    width: auto;
    max-height: 76.5px;
    transition: var(--transition);
    /* Force white background for logo visibility in dark mode */
    background: #ffffff !important;
    background-color: #ffffff !important;
    color-scheme: light !important;
    forced-color-adjust: none !important;
    padding: 10px 15px !important;
    border-radius: 8px !important;
    object-fit: contain;
    display: block;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1) !important;
    border: 2px solid #f0f0f0 !important;
    filter: contrast(1.1) brightness(1.05) !important;
}

.logo-image:hover {
    transform: scale(1.05);
}

.logo h1 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: var(--dark-bg);
}

.logo h1 span {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: #1a1a2e !important;
    font-weight: 500;
    font-size: 16px;
    position: relative;
    transition: var(--transition);
    -webkit-text-fill-color: #1a1a2e !important;
    color-scheme: light !important;
    forced-color-adjust: none !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: #0066ff !important;
    -webkit-text-fill-color: #0066ff !important;
    forced-color-adjust: none !important;
}

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

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark-bg);
    border-radius: 3px;
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-3);
    overflow: hidden;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,144C960,149,1056,139,1152,122.7C1248,107,1344,85,1392,74.7L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 900;
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-description {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: var(--light-bg);
}

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

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid var(--white);
    border-radius: 25px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

/* ===== SECTION HEADERS ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: var(--gradient-1);
    color: var(--white);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.section-tag:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.section-title {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 800;
    color: var(--dark-bg);
    margin-bottom: 15px;
}

.section-description {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: var(--section-padding);
    background: var(--light-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--text-light);
}

.about-text .lead {
    font-size: 20px;
    color: var(--text-dark);
    font-weight: 500;
}

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

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.stat-item h3 {
    font-size: 36px;
    font-weight: 800;
    background: var(--gradient-4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: var(--gradient-4);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
}

.image-placeholder i {
    font-size: 120px;
    color: var(--white);
    opacity: 0.3;
}

/* ===== BENEFITS SECTION ===== */
.benefits {
    padding: var(--section-padding);
    background: var(--white);
}

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

.benefit-card {
    padding: 35px 30px;
    background: var(--light-bg);
    border-radius: 20px;
    transition: var(--transition);
    text-align: center;
    border: 2px solid transparent;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    background: var(--white);
    border-color: var(--primary-color);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.15) rotate(10deg);
    box-shadow: var(--shadow-lg);
}

.benefit-icon i {
    font-size: 30px;
    color: var(--white);
}

.benefit-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 12px;
}

.benefit-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: var(--section-padding);
    background: var(--light-bg);
}

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

.service-card {
    padding: 40px 30px;
    background: var(--white);
    border-radius: 20px;
    transition: var(--transition);
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--gradient-1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-icon i {
    font-size: 36px;
    color: var(--white);
}

.service-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 15px;
}

.service-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio {
    padding: var(--section-padding);
    background: var(--white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.portfolio-item {
    padding: 30px 25px;
    background: var(--light-bg);
    border-radius: 15px;
    transition: var(--transition);
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-3);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.portfolio-item:hover::before {
    left: 0;
    opacity: 0.95;
}

.portfolio-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.portfolio-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: var(--gradient-2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.portfolio-item:hover .portfolio-icon {
    background: var(--white);
    transform: scale(1.1);
}

.portfolio-icon i {
    font-size: 28px;
    color: var(--white);
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-icon i {
    color: var(--primary-color);
}

.portfolio-item h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.portfolio-item:hover h3 {
    color: var(--white);
}

.portfolio-item p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.portfolio-item:hover p {
    color: rgba(255, 255, 255, 0.9);
}

/* ===== MISSION & VISION SECTION ===== */
.mission-vision {
    padding: var(--section-padding);
    background: var(--dark-bg);
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
}

.mv-card {
    padding: 50px 40px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.mission-card {
    background: var(--gradient-1);
}

.vision-card {
    background: var(--gradient-2);
}

.mv-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.mv-icon i {
    font-size: 32px;
    color: var(--white);
}

.mv-card h2 {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
}

.mv-card p {
    font-size: 16px;
    color: var(--white);
    line-height: 1.8;
    opacity: 0.95;
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: var(--section-padding);
    background: var(--light-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--white);
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-bg);
    margin-bottom: 5px;
}

.contact-item p {
    font-size: 15px;
    color: var(--text-light);
    margin: 0;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-lg);
    background: var(--gradient-4);
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

.phone-input-wrapper {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    align-items: stretch !important;
    width: 100% !important;
}

.country-code-select,
select#countryCode,
#countryCode {
    flex: 0 0 220px !important;
    width: 220px !important;
    min-width: 220px !important;
    max-width: 220px !important;
    padding: 15px 12px !important;
    border: 2px solid #E8E8E8 !important;
    border-radius: 12px !important;
    font-family: var(--font-primary) !important;
    font-size: 14px !important;
    transition: var(--transition);
    background-color: rgb(255, 255, 255) !important;
    background: rgb(255, 255, 255) !important;
    color: rgb(26, 26, 46) !important;
    -webkit-text-fill-color: rgb(26, 26, 46) !important;
    cursor: pointer !important;
    appearance: auto !important;
    -webkit-appearance: menulist !important;
    -moz-appearance: menulist !important;
}

.country-code-select:focus,
select#countryCode:focus,
#countryCode:focus {
    outline: none !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1) !important;
    background-color: rgb(255, 255, 255) !important;
    background: rgb(255, 255, 255) !important;
}

.country-code-select option,
select#countryCode option,
#countryCode option {
    background-color: rgb(255, 255, 255) !important;
    color: rgb(26, 26, 46) !important;
    padding: 10px;
}

.phone-input-wrapper input[type="tel"],
input#phone,
#phone {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    background-color: rgb(255, 255, 255) !important;
    background: rgb(255, 255, 255) !important;
    color: rgb(26, 26, 46) !important;
    -webkit-text-fill-color: rgb(26, 26, 46) !important;
}

/* Force white background and dark text on ALL form inputs */
input,
textarea,
select,
.form-group input,
.form-group textarea,
.form-group select,
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select,
#name,
#email,
#phone,
#message,
#countryCode {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #E8E8E8 !important;
    border-radius: 12px;
    font-family: var(--font-primary);
    font-size: 15px;
    transition: var(--transition);
    background-color: rgb(255, 255, 255) !important;
    background: rgb(255, 255, 255) !important;
    color: rgb(26, 26, 46) !important;
    -webkit-text-fill-color: rgb(26, 26, 46) !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
}

/* Force placeholder colors */
input::placeholder,
textarea::placeholder,
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgb(153, 153, 153) !important;
    opacity: 1 !important;
    -webkit-text-fill-color: rgb(153, 153, 153) !important;
}

/* Force focus state colors */
input:focus,
textarea:focus,
select:focus,
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1) !important;
    background-color: rgb(255, 255, 255) !important;
    background: rgb(255, 255, 255) !important;
    color: rgb(26, 26, 46) !important;
    -webkit-text-fill-color: rgb(26, 26, 46) !important;
}

.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
    border-color: var(--secondary-color);
}

.form-group input:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown) {
    border-color: var(--accent-color);
}

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

/* Force white background for autofill */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: #1a1a2e !important;
    background-color: white !important;
}

/* Error Messages */
.error-message {
    display: none;
    color: var(--secondary-color);
    font-size: 13px;
    margin-top: 5px;
    font-weight: 500;
}

.error-message::before {
    content: '⚠ ';
}

/* Rate Limit Message */
.rate-limit-message {
    background: #FFF3CD;
    color: #856404;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    border-left: 4px solid var(--gold);
}

.contact-form .btn-primary {
    width: 100%;
    background: var(--gradient-1);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.contact-form .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-4);
    transition: var(--transition);
}

.contact-form .btn-primary:hover::before {
    left: 0;
}

.contact-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.contact-form .btn-primary span {
    position: relative;
    z-index: 1;
}

.contact-form .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===== SUCCESS MODAL ===== */
.modal,
#successModal {
    display: none !important;
    position: fixed !important;
    z-index: 99999 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
    align-items: center !important;
    justify-content: center !important;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.show,
#successModal.show {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center !important;
    justify-content: center !important;
}

.modal-content {
    background: white !important;
    padding: 50px 40px !important;
    border-radius: 24px !important;
    text-align: center !important;
    max-width: 500px !important;
    width: 90% !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    animation: slideUp 0.4s ease;
    position: relative !important;
    z-index: 100000 !important;
}

.modal-icon {
    margin: 0 auto 25px;
    animation: scaleIn 0.5s ease 0.2s both;
}

.modal-icon svg {
    display: block;
    margin: 0 auto;
}

.modal-content h3 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 15px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-content p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.modal-content .btn {
    min-width: 150px;
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: var(--white);
    padding: 40px 0 20px;
    box-shadow: 0 -5px 30px rgba(0, 102, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-bottom: 25px;
}

.footer-logo {
    height: 80px;
    width: auto;
    max-height: 80px;
    margin-bottom: 15px;
    /* Invert logo to white for dark background */
    filter: brightness(0) invert(1);
    transition: var(--transition);
    /* Remove white background */
    mix-blend-mode: screen;
    background: transparent;
    object-fit: contain;
    display: block;
}

.footer-logo:hover {
    transform: scale(1.05);
    filter: brightness(0) invert(1) drop-shadow(0 0 15px rgba(0, 217, 181, 0.5));
}

.footer-brand h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
}

.footer-brand h3 span {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
    display: inline-block;
}

.footer-links ul li a:hover {
    color: var(--white);
    padding-left: 5px;
    transform: translateX(3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 217, 181, 0.2);
    margin-top: 10px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    margin: 0;
}

.footer-bottom p a {
    color: var(--teal);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom p a:hover {
    color: var(--white);
    text-decoration: underline;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes scroll {
    0% {
        opacity: 0;
        top: 10px;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        top: 30px;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 40px 0;
        gap: 20px;
    }

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

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    .logo-image {
        height: 68px;
        max-height: 68px;
    }

    .footer-logo {
        height: 115px;
        max-height: 115px;
    }

    .nav-wrapper {
        min-height: 80px;
        height: 80px;
        padding: 0;
    }

    .logo {
        padding: 0;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 36px;
    }

    .hero-description {
        font-size: 18px;
    }

    .section-title {
        font-size: 36px;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .mv-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 20px;
    }

    .footer {
        padding: 35px 0 18px;
    }

    .footer-logo {
        height: 70px;
        max-height: 70px;
        margin-bottom: 12px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 28px;
    }

    .hero-description {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

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

    .benefits-grid,
    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .mv-grid {
        grid-template-columns: 1fr;
    }

    .mv-card {
        padding: 40px 30px;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .phone-input-wrapper {
        flex-direction: column;
        gap: 15px;
    }

    .country-code-select {
        width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .logo-image {
        height: 59.5px;
        max-height: 59.5px;
    }

    .footer-logo {
        height: 65px;
        max-height: 65px;
        margin-bottom: 10px;
    }

    .footer {
        padding: 30px 0 15px;
    }

    .footer-content {
        gap: 25px;
        margin-bottom: 15px;
    }

    .footer-bottom {
        padding-top: 15px;
    }

    .nav-wrapper {
        min-height: 70px;
        height: 70px;
        padding: 0;
    }

    .logo {
        padding: 0;
    }
}

/* ===== CRITICAL OVERRIDES - MUST BE LAST ===== */
/* Force form input visibility - overrides ALL other styles */
#name,
#email,
#phone,
#message,
#countryCode,
input#name,
input#email,
input#phone,
textarea#message,
select#countryCode {
    background-color: white !important;
    background: white !important;
    background-image: none !important;
    color: #1a1a2e !important;
    -webkit-text-fill-color: #1a1a2e !important;
    border: 2px solid #E8E8E8 !important;
}

/* Force phone wrapper layout - DESKTOP ONLY */
@media (min-width: 577px) {
    .phone-input-wrapper {
        display: flex !important;
        flex-direction: row !important;
    }

    /* Force country code width */
    #countryCode,
    select#countryCode {
        flex: 0 0 220px !important;
        width: 220px !important;
        max-width: 220px !important;
    }

    /* Force phone input width */
    #phone,
    input#phone {
        flex: 1 !important;
        width: auto !important;
    }
}

/* Mobile phone wrapper - STACK VERTICALLY */
@media (max-width: 576px) {
    .phone-input-wrapper {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }

    #countryCode,
    select#countryCode {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }

    #phone,
    input#phone {
        width: 100% !important;
        flex: none !important;
    }
}

/* Force modal display */
#successModal.show {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Mobile modal adjustments */
@media (max-width: 576px) {
    #successModal .modal-content {
        width: 95% !important;
        max-width: 95% !important;
        padding: 40px 25px !important;
        margin: 20px !important;
    }

    #successModal .modal-icon svg {
        width: 60px !important;
        height: 60px !important;
    }

    #successModal h3 {
        font-size: 24px !important;
    }

    #successModal p {
        font-size: 14px !important;
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    html, body {
        color-scheme: light !important;
        background: #ffffff !important;
        color: #1a1a2e !important;
    }

    .navbar, #navbar {
        background: #ffffff !important;
        background-color: #ffffff !important;
        color-scheme: light !important;
        forced-color-adjust: none !important;
        -webkit-appearance: none !important;
    }

    .navbar.scrolled {
        background: #ffffff !important;
        background-color: #ffffff !important;
        forced-color-adjust: none !important;
    }

    .nav-link, .nav-link a {
        color: #1a1a2e !important;
        -webkit-text-fill-color: #1a1a2e !important;
        forced-color-adjust: none !important;
    }

    .nav-link:hover, .nav-link.active {
        color: #0066ff !important;
        -webkit-text-fill-color: #0066ff !important;
        forced-color-adjust: none !important;
    }

    .logo-image {
        background: #ffffff !important;
        background-color: #ffffff !important;
        color-scheme: light !important;
        forced-color-adjust: none !important;
        padding: 10px 15px !important;
        border: 2px solid #f0f0f0 !important;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1) !important;
        filter: contrast(1.1) brightness(1.05) !important;
    }

    .hamburger span {
        background: #1a1a2e !important;
        background-color: #1a1a2e !important;
        forced-color-adjust: none !important;
    }

    .hamburger:hover span {
        background: #0066ff !important;
        background-color: #0066ff !important;
        forced-color-adjust: none !important;
    }
}

/* ===== DARK MODE LOGO FIX ===== */
@media (prefers-color-scheme: dark) {
    .logo-image {
        /* Remove white background in dark mode */
        background: transparent !important;
        background-color: transparent !important;
        padding: 0 !important;
        /* Add subtle light border/outline for visibility */
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 4px;
        padding: 8px 12px !important;
        /* Add slight glow effect */
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
    }

    .logo-image:hover {
        /* Enhanced glow on hover in dark mode */
        box-shadow: 0 0 12px rgba(0, 217, 181, 0.3);
        border-color: rgba(0, 217, 181, 0.4);
    }
}
