/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding-left: 15px;
    padding-right: 15px;
}

section {
    padding: 80px 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.btn {
    text-decoration: none;
    padding: 12px 25px;
    background-color: #0057d8;
    color: #fff;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}
.btn:hover {
    background-color: #0045aa;
}

/* --- Header --- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 40px;
    height: auto;
}

.logo-text {
    color: royalblue;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
}

.nav-links a {
    margin-left: 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #0057d8;
}

/* --- New Hero Section with Gradient --- */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 1;
    transform: none;
}

.hero-content {
    max-width: 800px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero .btn {
    background-color: #f4b400;
    color: #000;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero .btn:hover {
    background: #ffc93c;
    transform: translateY(-3px);
}

/* --- Stats Counter Section --- */
.stats-counter-section {
    background-color: #f8f9fa;
    padding: 60px 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr; /* Center the single item */
    gap: 30px;
    text-align: center;
    max-width: 300px; /* Control the width */
    margin: auto;
}

.stat-item i {
    font-size: 2.5rem;
    color: #0057d8;
    margin-bottom: 10px;
}

.stat-item .counter {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
}

.stat-item p {
    font-size: 1rem;
    color: #555;
    font-weight: 500;
}

/* --- Section Titles --- */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 10px;
    position: relative;
    font-weight: 700;
}
.section-title + p {
    text-align: center;
    margin-bottom: 40px;
    color: #555;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-title::after {
    content: '';
    width: 60px;
    height: 4px;
    background: #0057d8;
    display: block;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* --- Services --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-item {
    background: #fafafa;
    padding: 30px;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.service-item .service-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #0057d8;
}

/* --- Team Section --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-member {
    background: #fafafa;
    padding: 30px;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.team-member img {
    border-radius: 50%;
    margin-bottom: 15px;
    width: 120px;
    height: 120px;
    object-fit: cover;
    margin-left: auto;
    margin-right: auto;
}

.team-member h3 {
    margin-bottom: 5px;
}

.team-member .role {
    font-weight: 600;
    color: #0057d8;
    margin-bottom: 10px;
}

/* --- Portfolio --- */
.portfolio {
    background: #fff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.portfolio-item:hover {
    transform: scale(1.05);
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,31,63,0.9), transparent);
    color: #fff;
    padding: 40px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
}

.portfolio-info h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.section-title-link {
    text-decoration: none; /* Removes underline */
    color: inherit;      /* Inherits color from the h2, or define a specific color */
    /* You can add more styles here, like: */
    /* display: block; */ /* Makes the whole area clickable */
}

.section-title-link:hover {
    color: #f9f9f9; /* Change to a color you prefer on hover */
}
/* --- Location Section --- */
.location-section {
    padding: 80px 20px;
    background-color: #f9f9f9;
}

.location-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.location-map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* --- New Attractive Contact Section --- */
.contact-section {
    background-color: #f9f9f9;
}
.contact-wrapper {
    display: flex;
    gap: 40px;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.contact-info, .contact-form {
    flex: 1;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #0057d8;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-info-item i {
    font-size: 1.2rem;
    color: #0057d8;
    margin-top: 5px;
}

.contact-info-item p {
    margin: 0;
    line-height: 1.6;
}

.contact-info-item a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info-item a:hover {
    color: #0057d8;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    border-color: #0057d8;
    box-shadow: 0 0 5px rgba(0, 87, 216, 0.3);
    outline: none;
}

.contact-form button {
    background: #0057d8;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s;
    display: inline-block;
    width: 100%;
    margin-top: 10px;
}

.contact-form button:hover {
    background: #0045aa;
}

/* --- Floating Contact Button --- */
#floating-contact-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #0057d8;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.3s ease, background-color 0.3s ease;
    animation: pulse 2s infinite;
}

#floating-contact-btn:hover {
    background-color: #0045aa;
    transform: scale(1.1);
    animation: none; /* Stop pulsing on hover */
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 87, 216, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(0, 87, 216, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 87, 216, 0.2);
    }
}

/* --- Form Submission Popup --- */
.popup {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.popup-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.popup-content.success {
    border-top: 5px solid #28a745;
}

.popup-content.error {
    border-top: 5px solid #dc3545;
}

.popup-close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.popup-close:hover {
    color: #000;
}


/* --- Footer --- */
.footer {
    background: #002244;
    color: #a9c2d8;
    text-align: center;
    padding: 30px 40px;
    margin-top: 80px;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
}

.footer-container p {
    margin: 0;
    font-size: 1rem;
    color: #ffffff;
}

.social-links {
    display: flex;
    flex-direction: row;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.social-links a {
    text-decoration: none;
    color: #ffffff;
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    color: #f4b400;
    transform: scale(1.2);
}

/* --- Responsive --- */
.nav-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #333;
}

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background: #fff;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        margin: 10px 0;
        padding: 10px 0;
        width: 100%;
    }

    .nav-links a:not(:last-child) {
        border-bottom: 1px solid #eee;
    }

    .logo-text {
        font-size: 1.3rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .services-grid, .team-grid, .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        flex-direction: column;
        padding: 20px;
    }
    
    #floating-contact-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }

}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    section {
        padding: 60px 15px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .btn, .contact-form button {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .logo-img {
        width: 35px;
    }
}