/* Existing styles (unchanged from previous) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #1a1a1a;
    overflow-x: hidden;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #00d4ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Header */
header {
    background-color: #0d0d0d;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

header:hover {
    background-color: #111111;
}

.logo {
    color: #00d4ff;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    color: #00d4ff;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.menu-toggle:hover {
    color: #50e3c2;
}

nav ul {
    list-style: none;
    display: flex;
    transition: max-height 0.3s ease;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: #00d4ff;
    background-color: rgba(255, 255, 255, 0.1);
}

nav ul.active {
    max-height: 300px;
}

/* Main Content */
main {
    min-height: calc(100vh - 120px);
}

.page {
    padding: 4rem 0;
}

.page.active {
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #00d4ff;
    text-align: center;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* About Cards */
.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.about-card {
    background-color: #222222;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.card-header {
    padding: 2rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    color: #fff;
}

.card-header .icon {
    font-size: 2rem;
    margin-right: 1.5rem;
    color: #00d4ff;
}

.card-content {
    padding: 2rem;
    display: block;
    background-color: #2d2d2d;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.card-content h3 {
    font-size: 1.5rem;
    color: #50e3c2;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.card-content p {
    font-size: 1rem;
    color: #b0b0b0;
    line-height: 1.8;
}

.card-content iframe, .card-content #map {
    margin-top: 1.5rem;
    border-radius: 8px;
    width: 100%;
    height: 250px;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.value-item {
    text-align: center;
}

.value-item .icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.value-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #ffffff;
}

.value-item p {
    font-size: 0.9rem;
    color: #b0b0b0;
}

/* Service Cards */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.service-card {
    background-color: #222222;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.service-card .card-content {
    padding: 2rem;
    display: block;
    background-color: #2d2d2d;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.service-card p {
    font-size: 1rem;
    color: #b0b0b0;
    line-height: 1.8;
}

/* Project Cards */
.project-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.project-card {
    background-color: #222222;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.project-card .card-header {
    padding: 2rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    color: #fff;
}

.project-card .card-header .icon {
    font-size: 2rem;
    margin-right: 1.5rem;
    color: #00d4ff;
}

.project-card .card-content {
    padding: 2rem;
    display: block;
    background-color: #2d2d2d;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.project-card .card-content h3 {
    font-size: 1.5rem;
    color: #50e3c2;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.project-card .card-content p {
    font-size: 1rem;
    color: #b0b0b0;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.team-card {
    background-color: #222222;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    text-align: center;
    padding: 1.5rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.team-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #00d4ff;
    margin-bottom: 1rem;
}

.team-card h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.team-card .title {
    font-size: 0.9rem;
    color: #b0b0b0;
    line-height: 1.5;
    font-weight: 400;
}

/* Project Table (Deprecated but kept for reference) */
.project-table {
    overflow-x: auto;
}

.project-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    background-color: #222222;
    border-radius: 15px;
    overflow: hidden;
}

.project-table th, .project-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #333;
    font-size: 1rem;
    color: #e0e0e0;
}

.project-table th {
    background-color: #00d4ff;
    color: #1a1a1a;
    font-weight: 700;
}

.project-table tr {
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.project-table tr:hover {
    background-color: #2d2d2d;
    transform: scale(1.02);
    cursor: pointer;
}

dialog {
    border: none;
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    max-width: 90%;
    width: 600px;
    background-color: #2d2d2d;
    /* Center the dialog */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 80vh;
    overflow-y: auto;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -60%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

.dialog-content {
    padding: 2rem;
    color: #e0e0e0;
}

.dialog-content h2 {
    font-size: 2rem;
    color: #00d4ff;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #50e3c2;
    padding-bottom: 0.5rem;
    text-transform: uppercase;
}

.dialog-content p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #b0b0b0;
}

.dialog-content p strong {
    color: #50e3c2;
    font-weight: 600;
}

.dialog-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.dialog-content ul li {
    font-size: 1rem;
    color: #b0b0b0;
    margin-bottom: 0.5rem;
}

.dialog-content button {
    background: linear-gradient(45deg, #4a90e2, #50e3c2);
    color: #1a1a1a;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 150px;
    font-weight: 600;
}

.dialog-content button:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.5);
}

/* Footer */
footer {
    background-color: #0d0d0d;
    color: #e0e0e0;
    text-align: center;
    padding: 2rem;
    width: 100%;
    position: relative;
    bottom: 0;
}

.footer-text {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Contact Us Styles */
.contact-card {
    padding: 2rem;
    background: linear-gradient(135deg, #3498db, #8e44ad);
    color: #fff;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.contact-card p {
    margin: 1rem 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.contact-card strong {
    color: #f1c40f;
    margin-right: 0.5rem;
}

.contact-card a {
    color: #fff;
    text-decoration: none;
    margin-left: 0.5rem;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: #f1c40f;
}

.contact-card i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.map-container {
    margin-top: 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
    border-radius: 15px;
    transition: transform 0.4s ease;
}

.map-container:hover iframe {
    transform: scale(1.02);
}

.map-link {
    text-align: center;
    margin-top: 1rem;
}

.open-map-btn {
    display: inline-block;
    background: linear-gradient(45deg, #4a90e2, #50e3c2);
    color: #1a1a1a;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.open-map-btn i {
    margin-right: 0.5rem;
}

.open-map-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.5);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    header {
        flex-wrap: wrap;
        padding: 1rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        width: 100%;
    }

    nav ul {
        max-height: 0;
        overflow: hidden;
        flex-direction: column;
        width: 100%;
        background-color: #111111;
        border-radius: 0 0 10px 10px;
    }

    nav ul.active {
        max-height: 300px;
    }

    nav ul li {
        margin: 0;
        width: 100%;
    }

    nav ul li a {
        padding: 1rem;
        font-size: 1.1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .about-cards, .project-cards, .service-cards, .team-grid {
        grid-template-columns: 1fr;
    }

    .about-card, .project-card, .service-card, .team-card {
        margin-bottom: 2rem;
    }

    .card-header {
        padding: 1.5rem;
    }

    .card-content {
        padding: 1.5rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .project-card .card-content p {
        font-size: 0.9rem;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .contact-card p {
        font-size: 1rem;
    }

    .map-container iframe {
        height: 250px;
    }

    .open-map-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .dialog-content h2 {
        font-size: 1.5rem;
    }

    dialog {
        width: 90%;
        max-height: 70vh;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .about-card iframe, .about-card #map, .project-card .card-content {
        height: 150px;
    }

    .project-card .card-content h3 {
        font-size: 1.2rem;
    }

    .project-card .card-content p {
        font-size: 0.8rem;
    }

    .contact-card p {
        font-size: 0.9rem;
    }

    .map-container iframe {
        height: 200px;
    }

    .open-map-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .dialog-content h2 {
        font-size: 1.2rem;
    }

    .dialog-content p, .dialog-content ul li {
        font-size: 0.9rem;
    }

    dialog {
        width: 85%;
        max-height: 65vh;
    }
}