/* style.css */

/* General Styles */
:root {
    --primary-color: #0056b3; /* Darker blue for a corporate feel */
    --secondary-color: #007bff; /* Lighter blue for accents */
    --text-color: #333;
    --light-grey: #f8f9fa;
    --dark-grey: #6c757d;
    --white: #fff;
    --font-family: 'Arial', sans-serif;
    --heading-font-size: 2.5rem;
    --subheading-font-size: 1.8rem;
    --paragraph-font-size: 1rem;
    --spacing-unit: 1rem;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

.heading-text {
    text-align: center;
    font-size: var(--heading-font-size);
    margin-bottom: calc(2 * var(--spacing-unit));
    color: var(--primary-color);
    position: relative;
    padding-bottom: var(--spacing-unit);
}

.heading-text::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.main-section {
    padding: calc(4 * var(--spacing-unit)) 0;
}

.bg-lightgrey {
    background-color: var(--light-grey);
}

/* Navigation Bar */
.navbar {
    background-color: var(--primary-color);
    padding: var(--spacing-unit) 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    margin: 0;
    color: var(--white);
    font-size: var(--subheading-font-size);
}

.brand-accent {
    color: var(--secondary-color);
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-menu li {
    margin-left: calc(2 * var(--spacing-unit));
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 60px; /* Adjust for fixed navbar */
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
    filter: brightness(0.6); /* Darken images for text readability */
}

.hero-slider .slide.active {
    opacity: 1;
}

.hero-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: calc(2 * var(--spacing-unit));
}

.banner-section h1 {
    font-size: 4rem;
    margin-bottom: var(--spacing-unit);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-section p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.slider-controls {
    position: absolute;
    bottom: calc(2 * var(--spacing-unit));
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: var(--spacing-unit);
}

.slider-btn {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: var(--white);
    padding: 0.8rem 1rem;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: background 0.3s ease, transform 0.2s ease;
}

.slider-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.dot.active {
    background: var(--secondary-color);
    transform: scale(1.2);
}

/* About Us Section */
.about-section {
    background-color: var(--white);
}

.about-cards {
    display: flex;
    flex-wrap: wrap;
    gap: calc(2 * var(--spacing-unit));
    justify-content: center;
}

.about-card {
    background-color: var(--light-grey);
    padding: calc(2 * var(--spacing-unit));
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    flex: 1 1 300px; /* Responsive sizing */
    max-width: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-unit);
}

.about-card h3 {
    font-size: var(--subheading-font-size);
    color: var(--primary-color);
    margin-bottom: var(--spacing-unit);
}

.about-card p {
    font-size: var(--paragraph-font-size);
    color: var(--dark-grey);
    margin-bottom: calc(2 * var(--spacing-unit));
}

.card-stats {
    display: flex;
    justify-content: space-around;
    margin-top: var(--spacing-unit);
    border-top: 1px solid #ddd;
    padding-top: var(--spacing-unit);
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--secondary-color);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--dark-grey);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(2 * var(--spacing-unit));
}

.service-card {
    background-color: var(--white);
    padding: calc(2 * var(--spacing-unit));
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-unit);
}

.service-card h3 {
    font-size: var(--subheading-font-size);
    color: var(--primary-color);
    margin-bottom: var(--spacing-unit);
}

.service-card p {
    font-size: var(--paragraph-font-size);
    color: var(--dark-grey);
    min-height: 70px; /* Ensure consistent card height */
}

.service-features {
    margin-top: var(--spacing-unit);
    margin-bottom: calc(2 * var(--spacing-unit));
}

.feature-tag {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin: 0.2rem;
}

.service-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.service-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Testimonial Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(2 * var(--spacing-unit));
}

.testimonial-card {
    background-color: var(--white);
    padding: calc(2 * var(--spacing-unit));
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-unit);
}

.testimonial-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: var(--spacing-unit);
    border: 3px solid var(--secondary-color);
}

.testimonial-info h4 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.testimonial-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--dark-grey);
}

.rating .fa-star {
    color: #ffc107; /* Gold star color */
    font-size: 1rem;
}

.testimonial-content {
    position: relative;
    margin-bottom: var(--spacing-unit);
}

.quote-icon {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 2rem;
    color: rgba(0, 0, 0, 0.1);
}

.testimonial-content p {
    font-style: italic;
    padding-left: calc(2 * var(--spacing-unit));
    color: var(--text-color);
}

.testimonial-footer {
    text-align: right;
    font-size: 0.8rem;
    color: var(--dark-grey);
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(2 * var(--spacing-unit));
}

.portfolio-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-content {
    padding: calc(1.5 * var(--spacing-unit));
}

.portfolio-content h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: var(--spacing-unit);
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.portfolio-tag {
    background-color: var(--light-grey);
    color: var(--dark-grey);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Contact Section */
.contact {
    text-align: center;
}

/* Removed .contact-info as it's moved to footer */
/* .contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: calc(2 * var(--spacing-unit));
    margin-bottom: calc(4 * var(--spacing-unit));
}

.contact-item {
    background-color: var(--white);
    padding: calc(2 * var(--spacing-unit));
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    flex: 1 1 280px;
    max-width: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.contact-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-unit);
}

.contact-item h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-item p {
    font-size: var(--paragraph-font-size);
    color: var(--dark-grey);
} */

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--white);
    padding: calc(3 * var(--spacing-unit));
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: calc(1.5 * var(--spacing-unit));
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}

.submit-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Offer Letter Validation Section */
.validation-section {
    background-color: var(--white);
    padding: calc(3 * var(--spacing-unit));
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.validation-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-unit);
}

.validation-input {
    width: 100%;
    max-width: 300px;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    text-align: center;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.validation-input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}

.validate-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.validate-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.validation-result {
    margin-top: var(--spacing-unit);
    font-size: 1.1rem;
    font-weight: bold;
    min-height: 25px; /* Reserve space */
}

.validation-result.success {
    color: #28a745; /* Green for success */
}

.validation-result.error {
    color: #dc3545; /* Red for error */
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: calc(2 * var(--spacing-unit)) 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start; /* Align items to the start for multi-line addresses */
}

.footer-sect {
    flex: 1 1 20%; /* Adjust width for 5 columns */
    margin-bottom: var(--spacing-unit);
    text-align: left; /* Align text left within each section */
    padding: 0 1rem; /* Add some padding */
}

.footer-sect h4 {
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.footer-sect p, .footer-sect a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-sect a:hover {
    text-decoration: underline;
}

.footer-sect.social-icon {
    flex: 1 1 100%; /* Social icons take full width */
    text-align: center;
    margin-top: var(--spacing-unit);
}

.footer-sect.social-icon a {
    color: var(--white);
    font-size: 1.5rem;
    margin: 0 0.8rem;
    transition: color 0.3s ease;
}

.footer-sect.social-icon a:hover {
    color: var(--secondary-color);
}

.footer-copyright {
    flex: 1 1 100%;
    text-align: center;
    margin-top: var(--spacing-unit);
    padding-top: var(--spacing-unit);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .nav-menu {
        display: none; /* Hide menu for smaller screens, will add hamburger */
    }

    .navbar .container {
        justify-content: center; /* Center brand if menu is hidden */
    }

    .hero-section {
        height: 80vh;
    }

    .banner-section h1 {
        font-size: 3rem;
    }

    .banner-section p {
        font-size: 1.2rem;
    }

    .about-cards, .services-grid, .testimonials-grid, .portfolio-grid, .contact-info {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .about-card, .service-card, .testimonial-card, .portfolio-card, .contact-item {
        flex: 1 1 100%; /* Stack cards on smaller screens */
        max-width: 100%;
    }

    .footer .container {
        flex-direction: column;
        align-items: center;
    }

    .footer-sect {
        flex: 1 1 100%;
        text-align: center;
        padding: 0.5rem 0;
    }
}

@media (max-width: 768px) {
    .heading-text {
        font-size: 2rem;
    }

    .hero-section {
        height: 70vh;
    }

    .banner-section h1 {
        font-size: 2.5rem;
    }

    .banner-section p {
        font-size: 1rem;
    }

    .slider-controls {
        bottom: var(--spacing-unit);
    }

    .contact-form {
        padding: calc(2 * var(--spacing-unit));
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.8rem 0;
    }

    .nav-brand h1 {
        font-size: 1.8rem;
    }

    .hero-section {
        height: 60vh;
    }

    .banner-section h1 {
        font-size: 2rem;
    }

    .banner-section p {
        font-size: 0.9rem;
    }

    .slider-btn {
        padding: 0.6rem 0.8rem;
        font-size: 1rem;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .about-card, .service-card, .testimonial-card, .portfolio-card, .contact-item {
        padding: calc(1.5 * var(--spacing-unit));
    }

    .contact-item h3 {
        font-size: 2rem;
    }

    .submit-btn, .validate-btn {
        padding: 0.8rem 1.2rem;
        font-size: 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.about-card, .service-card, .testimonial-card, .portfolio-card, .contact-item {
    animation: slideInUp 0.8s ease-out forwards;
    opacity: 0; /* Start hidden for AOS */
}

/* AOS overrides for smoother integration */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}
[data-aos].aos-animate {
    opacity: 1;
}
[data-aos="fade-up"] {
    transform: translateY(20px);
}
[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}
[data-aos="zoom-in"] {
    transform: scale(0.9);
}
[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

/* Number counting animation */
.stat-number[data-count] {
    transition: all 2s ease-out;
}
