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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    /*background: #7ea9d8;*/
    min-height: 100vh;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #002340;
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
}

.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;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
}

.logo {
    height: 120px;
    margin-right: 10px;
}

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

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

.nav-link:hover {
    color: #a855f7;
}

.nav-cta {
    background: linear-gradient(135deg, #943f78, #a855f7);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(114, 9, 183, 0.3);
    color: white;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

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

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

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

/* Hero Section */
.hero {
    padding: 120px 0 0px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: #323665;
    background-image: url('assets/bg_image.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #323665;
    opacity: 0.65;
    z-index: 1;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    white-space: nowrap;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #e2e8f0;
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #cbd5e1;
    line-height: 1.7;
}

.hero-description-highlight {
    background: #ffffff;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-description-white {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #333333;
    line-height: 1.7;
}

.hero-description-white:last-child {
    margin-bottom: 0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-primary,
a.btn-primary {
    background: linear-gradient(135deg, #943f78, #a855f7);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover,
a.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(114, 9, 183, 0.4);
    color: white;
}

.btn-secondary,
a.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #a855f7;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-secondary:hover,
a.btn-secondary:hover {
    background: #a855f7;
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(168, 85, 247, 0.3);
    color: white;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-container {
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
}

.hero-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Services Section */
.services {
    padding: 80px 0 0px;
    background: #7ea9d8;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #ffffff;
}

.services-grid {
    margin-top: 3rem;
}

.service-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 0;
    padding: 40px 0;
    position: relative;
    background: #323665;
}

/* Responsive grid adjustments */
@media (max-width: 768px) {
    .service-row {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .service-row {
        grid-template-columns: 1fr;
        padding: 15px 10px;
        gap: 1rem;
    }
}

.service-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    right: 50%;
    bottom: 0;
    z-index: 0;
    margin-left: -50vw;
    margin-right: -50vw;
    background: #323665;
}

.service-row:nth-of-type(2) {
    background: #7ea9d8;
}

.service-row:nth-of-type(2)::before {
    background: #7ea9d8;
}



.service-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}


.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.service-icon {
    width: 180px;
    height: 180px;
    border-radius: 45px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}

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

.service-icon img {
    width: 90px;
    height: 90px;
    filter: brightness(0) saturate(100%) invert(12%) sepia(99%) saturate(1658%) hue-rotate(193deg) brightness(95%) contrast(102%);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #062641;
    font-weight: 600;
    text-align: center;
}

.service-card ul {
    list-style: none;
}

.service-card li {
    padding: 0.5rem 0;
    color: #062641;
    position: relative;
    padding-left: 1.5rem;
}

.service-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #062641;
    font-weight: bold;
}

/* Why CredX Section */
.why-credx {
    padding: 80px 0 0px;
    scroll-margin-top: 120px;
    background: #ffffff;
}

.why-credx h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #062641;
}

.section-description {
    text-align: center;
    font-size: 1.3rem;
    color: #062641;
    max-width: 800px;
    margin: 0 auto 1rem;
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: #ffffff;
    border: 2px solid #062641;
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(6, 38, 65, 0.2);
    border-color: #062641;
}

.feature-icon {
    width: 120px;
    height: 120px;
    border-radius: 30px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.feature-icon img {
    width: 60px;
    height: 60px;
    filter: brightness(0) saturate(100%) invert(12%) sepia(99%) saturate(1658%) hue-rotate(193deg) brightness(95%) contrast(102%);
}

.feature-icon-white,
.service-icon-white {
    background: transparent !important;
}

.feature-icon-white i,
.service-icon-white i {
    font-size: 4.5rem;
    color: #062641;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #062641;
    font-weight: 600;
    text-align: center;
}

.feature-card ul {
    list-style: none;
}

.feature-card li {
    padding: 0.5rem 0;
    color: #062641;
    position: relative;
    padding-left: 1.5rem;
}

.feature-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #062641;
    font-weight: bold;
}

/* CTA Section */
.cta-section {
    padding: 60px 0 40px;
    background: #323665;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.cta-section p {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
}

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

/* Footer */
.footer {
    background: #062641;
    padding: 2rem 0;
    border-top: 3px solid rgba(255, 255, 255, 0.3);
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-logo {
    flex-shrink: 0;
}

.footer-logo-img {
    height: 120px;
}

.footer-legal {
    flex: 1;
    text-align: center;
}

.footer-legal span {
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.4;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    flex-shrink: 0;
}

.social-links a {
    color: #cbd5e1;
    font-size: 2.25rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #a855f7;
}

/* Contact Section */
.contact-section {
    padding: 80px 0 80px;
    background: #062641;
    scroll-margin-top: 120px;
}

.contact-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.contact-description {
    text-align: center;
    font-size: 1.1rem;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

.contact-container {
    display: flex;
    justify-content: center;
    align-items: start;
}

.contact-form {
    background: #062641;
    border: 1px solid #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    max-width: 800px;
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
    margin-bottom: 1.5rem;
}

.form-group label {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: #a79ab4;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-group select option {
    background: #1a1a2e;
    color: #ffffff;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
    accent-color: #a855f7;
}

.form-submit {
    width: 100%;
    margin-top: 1rem;
    font-size: 1.1rem;
    padding: 1rem;
}



/* Responsive Design */
@media (max-width: 768px) {

    /* Navigation */
    .hamburger {
        display: flex;
    }

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

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

    .nav-menu a {
        padding: 1rem;
        display: block;
        text-decoration: none;
        font-size: 1.2rem;
    }

    .nav-cta {
        margin: 1rem auto;
        display: inline-block;
    }

    /* Logo sizing for mobile */
    .logo {
        height: 60px;
    }

    .nav-logo span {
        font-size: 1.2rem;
    }

    /* Hero section */
    .hero {
        padding: 100px 0 60px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2rem;
        white-space: normal;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    /* Logo container mobile size */
    .logo-container {
        width: 250px;
        height: 250px;
        padding: 25px;
    }

    /* Ensure main container has proper mobile padding */
    .container {
        padding: 0 15px;
    }

    /* Mobile services section complete override */
    .services {
        padding: 40px 0 40px;
        background: #7ea9d8 !important;
    }

    .services .container {
        padding: 0 10px;
    }

    /* Replace service-row grid system with simple stacked layout */
    .services-grid {
        display: block !important;
        margin: 0;
    }

    .service-row {
        display: block !important;
        background: none !important;
        padding: 0 !important;
        margin: 0 0 1rem 0 !important;
        position: static !important;
    }

    .service-row::before {
        display: none !important;
    }

    .service-row:nth-of-type(1),
    .service-row:nth-of-type(2),
    .service-row:nth-of-type(3) {
        background: none !important;
    }

    .service-row:nth-of-type(1)::before,
    .service-row:nth-of-type(2)::before,
    .service-row:nth-of-type(3)::before {
        display: none !important;
    }

    /* Mobile service card styling - override all cards */
    .service-row .service-card {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: auto !important;
        margin: 0 0 1.5rem 0 !important;
        padding: 1.5rem !important;
        background: rgba(255, 255, 255, 0.95) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 20px !important;
        position: relative !important;
        z-index: 1 !important;
        box-sizing: border-box !important;
        float: none !important;
        clear: both !important;
    }

    .service-row .service-card::before {
        display: none !important;
    }

    /* Ensure last card in each row has proper spacing */
    .service-row:last-child .service-card:last-child {
        margin-bottom: 0 !important;
    }

    /* Features grid for mobile */
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        padding: 20px 10px !important;
        margin: 0 -10px;
    }


    .service-card,
    .feature-card {
        padding: 1.5rem;
    }

    /* Smaller icons for mobile */
    .service-icon,
    .feature-icon {
        width: 80px;
        height: 80px;
        border-radius: 20px;
        margin-bottom: 1rem;
    }

    .service-icon img,
    .feature-icon img {
        width: 40px;
        height: 40px;
    }

    .service-card h3,
    .feature-card h3 {
        font-size: 1.1rem;
    }

    .service-card li,
    .feature-card li {
        font-size: 0.9rem;
    }

    /* Section headings */
    .why-credx h2,
    .contact-section h2 {
        font-size: 2rem;
    }

    .section-description,
    .contact-description {
        font-size: 1rem;
    }

    /* Buttons */
    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn-primary,
    .btn-secondary,
    a.btn-primary,
    a.btn-secondary {
        width: 100%;
        max-width: 280px;
        font-size: 1rem;
        padding: 0.9rem 1.5rem;
    }

    /* Contact form */
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-form {
        padding: 1.5rem;
        max-width: 100%;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-legal p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {

    /* Extra small mobile screens */
    .hero-title {
        font-size: 1.8rem;
    }

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

    .hero-description {
        font-size: 0.85rem;
    }

    /* Even smaller logos for very small screens */
    .logo {
        height: 50px;
    }

    .logo-container {
        width: 200px;
        height: 200px;
        padding: 20px;
    }

    /* Smaller icons */
    .service-icon,
    .feature-icon {
        width: 60px;
        height: 60px;
        border-radius: 15px;
    }

    .service-icon img,
    .feature-icon img {
        width: 30px;
        height: 30px;
    }

    .service-card,
    .feature-card {
        padding: 1.2rem;
        margin: 0 !important;
        width: 100% !important;
    }

    .service-card h3,
    .feature-card h3 {
        font-size: 1rem;
    }

    .service-card li,
    .feature-card li {
        font-size: 0.85rem;
    }

    /* Section headings */
    .why-credx h2,
    .contact-section h2 {
        font-size: 1.8rem;
    }

    /* Contact form adjustments */
    .contact-form {
        padding: 1.2rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }

    .btn-primary,
    .btn-secondary,
    a.btn-primary,
    a.btn-secondary {
        font-size: 0.9rem;
        padding: 0.8rem 1.2rem;
    }

    /* Ensure solutions section has proper container padding */
    .services .container {
        padding: 0 5px;
    }

    /* Remove any potential margin/padding issues */
    .service-row {
        padding: 15px 5px !important;
        margin: 0 !important;
        gap: 1rem !important;
        grid-template-columns: 1fr !important;
    }

    /* Ensure service cards fit properly */
    .service-card {
        margin: 0 !important;
        padding: 1rem !important;
        box-sizing: border-box !important;
        max-width: calc(100vw - 20px) !important;
    }
}

/* Thank You Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: #ffffff;
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-content h3 {
    color: #062641;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.modal-content p {
    color: #062641;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modal-close {
    background: linear-gradient(135deg, #943f78, #a855f7);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modal-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(114, 9, 183, 0.4);
}