:root {
    --primary-color: #151B3B;
    --secondary-color: #1A2147;
    --accent-color: #3B82F6;
    --white: #ffffff;
    --light-gray: #f5f5f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
}

nav {
    position: fixed;
    width: 100%;
    padding: 22px 50px;
    /* Increased from 20px for taller logo */
    background: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.menu-toggle span {
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 10px;
}

.logo {
    height: 55px;
    /* Increased from 40px */
    display: flex;
    align-items: center;
    padding: 5px 0;
}

.logo-link {
    display: block;
    transition: transform 0.3s ease;
}

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

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
    max-height: 55px;
    /* Increased from 40px */
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s, transform 0.3s ease;
    white-space: nowrap;
    display: inline-block;
    /* This is important for the transform to work */
}

.nav-links a:hover {
    color: var(--primary-color);
    transform: scale(1.05);
    /* Similar to your logo animation */
}

section {
    padding: 50px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#home {
    padding-top: 130px;
    /* Increased from 120px to account for taller navbar */
}

.hero {
    background: var(--primary-color);
    color: var(--white);
    text-align: left;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 120px 5%;
    background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.hero-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInUp 0.8s forwards;
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    padding: 0 20px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: 4em;
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2em;
    opacity: 0.9;
    margin-bottom: 40px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.pre-heading {
    display: block;
    font-size: 1.2em;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

.hero-content h1 {
    font-size: 4.5em;
    margin-bottom: 25px;
    letter-spacing: -1px;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-features {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.hero-features h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.5em;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.feature-list span {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 25px;
    border-radius: 10px;
    font-size: 0.9em;
    width: 100%;
    display: inline-block;
    white-space: normal;
    line-height: 1.4;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    transition: transform 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
}

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

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

/* ✅ NEW: Ensure inner content adjusts height correctly */
.card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

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

.service-link {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 20px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.service-link:hover {
    background: var(--secondary-color);
}

.service-card p {
    margin-bottom: 15px;
}

.benefits {
    text-align: left;
    margin-top: auto;
    /* Pushes benefits list to bottom when space allows */
}

.benefits p {
    color: var(--primary-color);
    margin: 5px 0;
    font-size: 0.9em;
}

.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact-form button {
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form button:hover {
    background: var(--secondary-color);
}

.form-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    display: none;
}

.form-status.success {
    display: block;
    background: #e8f5e9;
    color: #2e7d32;
}

.form-status.error {
    display: block;
    background: #ffebee;
    color: #c62828;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.about-content>div {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.about-content>div:hover {
    transform: translateY(-5px);
}

.about-content h3 {
    color: var(--primary-color);
    margin: 0 0 20px;
    font-size: 1.8em;
    position: relative;
    padding-bottom: 15px;
}

.about-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

.about-content ul {
    list-style-type: none;
    padding: 0;
}

.about-content ul li {
    margin: 15px 0;
    padding-left: 25px;
    position: relative;
}

.about-content ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vision {
    animation-delay: 0.2s;
}

.mission {
    animation-delay: 0.4s;
}

.values {
    animation-delay: 0.6s;
}

.why-us {
    animation-delay: 0.8s;
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 10px;
}

.address {
    margin-bottom: 30px;
}

.address h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.map {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

footer {
    background: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 20px;
}

.service-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .modal-content {
        padding: 30px 20px 40px;
    }
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

.modal-content h3 {
    margin: 20px 0 10px;
    font-family: 'Poppins', sans-serif;
}

.modal-content ul {
    list-style-type: none;
    padding: 0;
}

.modal-content ul li {
    margin: 10px 0;
    padding-left: 25px;
    position: relative;
    font-family: 'Poppins', sans-serif;
}

.modal-content ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: #f5f5f5;
    color: var(--secondary-color);
}

.modal-content .cta-button {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 8px;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    margin-top: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-content .cta-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-features {
        margin: 0 auto;
        width: 100%;
        max-width: 600px;
    }

    .hero::after {
        display: none;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 20px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 10px 0;
        transition: color 0.3s, padding-left 0.3s ease, transform 0.3s ease;
    }

    .nav-links a:hover {
        padding-left: 5px;
        /* Instead of scaling, add a slight indent on hover for mobile */
        transform: none;
        /* Override the scale effect on mobile */
    }

    section {
        padding: 60px 20px;
    }

    .hero-content h1 {
        font-size: 2em;
    }

    .feature-list span {
        width: 100%;
    }
}