/* Reset some basic styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Discount Banner */
.discount-banner {
    background-color: #ff6347;
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 1.2rem;
    animation: slideDown 0.8s ease;
}

.discount-banner p {
    margin: 0;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Navigation */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');

nav {
    background: #ffffff;
    padding: 10px 20px;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}


.menu {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.logo a {
    font-size: 28px;
    font-weight: bold;
    color: #31344b;
    text-decoration: none;
    
}

.nav-links {
    display: flex;
    list-style: none;

 
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    color: #000000;
    text-decoration: none;
    font-size: 18px;
    padding: 8px 12px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #3498db;
}

.menu-icon {
    display: none;
    font-size: 28px;
    cursor: pointer;
    margin-left: 180px;
}

#menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        flex-direction: column;
        background: #ffffff;
        width: 80%;
        max-width: 400px;
        height: 100%;
        padding-top: 60px;
        transition: left 0.3s ease;
        box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
        z-index: 500;
    }

    .nav-links li {
        margin: 20px 0;
        text-align: center;
    }

    .menu-icon {
        display: block;
        color: #000000;
    }

    #menu-toggle:checked+.menu-icon+.nav-links {
        left: 0;
    }
}
.hero {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: url('assets/images/herosec.jpg') center/cover no-repeat;
    transition: background 2s ease-in-out;
    /* Adding transition */
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.fadeInImage {
    background-image: url('assets/images/herosec.jpg');
    opacity: 1;
}
/* Hero Content */
.hero-content {
    max-width: 800px;
    padding: 20px;
    opacity: 0;
    animation: fadeIn 2s ease forwards;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    background-color: #ffffff50;
    /* Added shadow */
}

/* Hero Title */
.hero-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ff6347;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: slideIn 1.5s ease forwards;
    opacity: 0;
    animation-delay: 0.3s;
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #3e3e3e;
    opacity: 0;
    animation: slideIn 1.5s ease 0.5s forwards;
}

/* Hero Button */
.hero-button {
    padding: 15px 30px;
    font-size: 1.2rem;
    color: #333;
    background-color: #ff6347;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    letter-spacing: 1px;
    animation: bounce 2s infinite;
}

/* Hero Button Hover */
.hero-button:hover {
    background-color: #fff;
    color: #333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
}

.hero-button:focus {
    outline: none;
}

/* Keyframes for Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

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

@keyframes backgroundAnimation {
    0% {
        background-image: url('assets/images/herosec.jpg');
    }
    25% {
        background-image: url('assets/images/herosec.jpg');
    }
    50% {
        background-image: url('assets/images/herosec.jpg');
    }

    100% {
        background-image: url('assets/images/herosec.jpg');
    }
}

/* Bouncing Animation for Button */
@keyframes bounce {

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

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

/* Responsive Font Sizing */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

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

    .hero-button {
        font-size: 1.1rem;
        padding: 12px 25px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

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

    .hero-button {
        font-size: 1rem;
        padding: 10px 20px;
    }
}

/* Projects Section */
/* Projects Section */
/* Main Projects Section */
.projects-section {
    padding: 80px 20px;
    background-color: #f5f5f5;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 40px;
    font-weight: bold;
}

/* Grid Layout for Project Cards */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 20px;
}

/* Individual Project Card */
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    background-color: #fff;
    /* Adds background to card */
    cursor: pointer;
    /* Makes it clickable */
    height: 100%;
}

/* Hover Effects for Cards */
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.project-card:hover img {
    transform: scale(1.05);
    /* Zooms image slightly */
}

.project-card:hover .project-info {
    opacity: 1;
    /* Fade in project info */
    transform: translateY(0);
}

/* Project Image */
.project-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

/* Info on Hover */
.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.project-info h3 {
    font-size: 1.5rem;
    margin: 0;
}

.project-info p {
    font-size: 1rem;
    margin: 10px 0;
    color: #d3d3d3;
}

/* Project Link (View Project Button) */
.project-link {
    display: inline-block;
    padding: 8px 15px;
    background-color: #ff6347;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.project-link:hover {
    background-color: #e55337;
}

/* Image Hover Animations */
.project-card img {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.project-card:hover img {
    transform: scale(1.1);
    /* Slightly zooms image on hover */
    opacity: 0.9;
}

/* SEO - alt text and descriptive image names are important here */

/* Responsive Design Adjustments */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2rem;
    }

    .projects-section {
        padding: 60px 15px;
    }

    .project-info p {
        font-size: 0.95rem;
    }

    .project-link {
        font-size: 0.85rem;
        padding: 7px 12px;
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .project-info h3 {
        font-size: 1.3rem;
    }

    .project-info p {
        font-size: 0.9rem;
    }

    .project-link {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .project-info {
        padding: 15px;
    }

    .project-info h3 {
        font-size: 1.2rem;
    }

    .project-info p {
        font-size: 0.85rem;
    }

    .project-link {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
}



/* Services Section */
/* Services Section */
.services-section {
    padding: 80px 20px;
    background-color: #f5f5f5;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 40px;
    font-family: 'Poppins', sans-serif;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding-bottom: 40px;
}

.service-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.service-card:hover img {
    transform: scale(1.05);
}

.service-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.service-card:hover .service-info {
    opacity: 1;
    transform: translateY(0);
}

.service-info h3 {
    font-size: 1.5rem;
    margin: 0;
}

.service-info p {
    font-size: 1rem;
    margin: 10px 0;
    color: #d3d3d3;
}

.service-link {
    display: inline-block;
    padding: 8px 15px;
    background-color: #ff6347;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.service-link:hover {
    background-color: #e55337;
}

/* Scroll Animation (AOS or other libraries) */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}



/* Responsive Styles for Services Section */

/* For small devices like smartphones (less than 768px) */
@media (max-width: 767px) {
    .services-section {
        padding: 60px 10px;
        /* Reduced padding for smaller screens */
    }

    .section-title {
        font-size: 2rem;
        /* Smaller font size for titles */
    }

    .services-grid {
        grid-template-columns: 1fr;
        /* Stack cards vertically */
        gap: 15px;
        /* Reduced gap between cards */
    }

    .service-card {
        padding: 10px;
        /* Reduced padding on cards */
    }

    .service-info h3 {
        font-size: 1.3rem;
        /* Smaller font for service title */
    }

    .service-info p {
        font-size: 0.9rem;
        /* Smaller font for description */
    }

    .service-link {
        padding: 6px 12px;
        /* Smaller button size */
    }
}

/* For medium devices like tablets (768px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .services-section {
        padding: 70px 20px;
        /* Adjusted padding for tablets */
    }

    .section-title {
        font-size: 2.2rem;
        /* Slightly larger font size */
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Two cards per row on tablets */
        gap: 20px;
        /* Moderate gap between cards */
    }

    .service-card {
        padding: 15px;
        /* Slightly increased padding for better spacing */
    }

    .service-info h3 {
        font-size: 1.4rem;
        /* Moderate font size for service title */
    }

    .service-info p {
        font-size: 1rem;
        /* Moderate font size for description */
    }

    .service-link {
        padding: 8px 14px;
        /* Adjusted button size */
    }
}

/* For larger devices (desktops, larger tablets) */
@media (min-width: 1025px) {
    .services-section {
        padding: 80px 40px;
        /* Standard padding for larger screens */
    }

    .section-title {
        font-size: 2.5rem;
        /* Larger font size for the title */
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        /* Three cards per row */
        gap: 30px;
        /* Standard gap between cards */
    }

    .service-card {
        padding: 20px;
        /* Standard padding for cards */
    }

    .service-info h3 {
        font-size: 1.6rem;
        /* Larger font size for service title */
    }

    .service-info p {
        font-size: 1.1rem;
        /* Larger font size for description */
    }

    .service-link {
        padding: 10px 18px;
        /* Larger button size */
    }
}



/* Contact Section */
/* Contact Section Styles */
.contact-section {
    padding: 80px 40px;
    background-color: #f7f7f7;
    text-align: center;
}

.contact-section .section-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #333;
    animation: fadeIn 1s ease-out;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

.contact-form,
.contact-details {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
}

.contact-form h3,
.contact-details h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form .form-group input,
.contact-form .form-group textarea {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 5px;
}

.contact-form button {
    padding: 12px 30px;
    font-size: 1.1rem;
    background-color: #f74f4f;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #c13535;
}

.contact-details p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info .info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    color: #333;
}

.contact-info .info-item i {
    font-size: 1.5rem;
    color: #f74f4f;
}

.contact-info .info-item span {
    font-size: 1rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive Styles for Contact Section */

/* For small devices like smartphones (less than 768px) */
@media (max-width: 767px) {
    .contact-section {
        padding: 60px 15px;
    }

    .contact-section .section-title {
        font-size: 2rem;
    }

    .contact-content {
        flex-direction: column;
        gap: 20px;
    }

    .contact-form,
    .contact-details {
        width: 100%;
        padding: 20px;
    }

    .contact-form button {
        padding: 10px 25px;
    }
}

/* For medium devices like tablets (768px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .contact-section {
        padding: 70px 20px;
    }

    .contact-form,
    .contact-details {
        padding: 30px;
    }

    .contact-form button {
        padding: 10px 25px;
    }
}

/* For larger devices (desktops) */
@media (min-width: 1025px) {
    .contact-section {
        padding: 80px 40px;
    }

    .contact-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .contact-form,
    .contact-details {
        width: 48%;
    }

    .contact-form button {
        padding: 12px 30px;
    }
}



/* CSS for error handling */
.error {
    border: 2px solid #f74f4f;
    background-color: #ffe6e6;
}

/* CSS for form animation (fade-in effect) */
.form.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
/* Footer */
/* Footer Section */
.footer {
    background-color: #222;
    color: #fff;
    padding: 40px 0;
    font-family: 'Arial', sans-serif;
    position: relative;
    overflow: hidden;
}

/* Footer Container */
.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
    animation: slideUp 1s ease-out;
}

/* Footer Logo */
.footer-logo {
    flex: 1;
    max-width: 200px;
}

.footer-logo-img {
    width: 100%;
    height: auto;
    animation: fadeIn 1.5s ease-in;
}

/* Footer Links */
.footer-links {
    flex: 1 1 30%;
}

.footer-links h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-transform: uppercase;
    font-weight: bold;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ff6347;
}

/* Footer Social Media */
.footer-social {
    flex: 1 1 30%;
}

.footer-social h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-transform: uppercase;
    font-weight: bold;
}

.social-links {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 20px;
}

.social-links li a {
    color: #fff;
    font-size: 20px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-links li a:hover {
    color: #ff6347;
    transform: scale(1.2);
}

/* Footer Newsletter */
.footer-newsletter {
    flex: 1 1 30%;
}

.footer-newsletter h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-transform: uppercase;
    font-weight: bold;
}

.newsletter-input {
    padding: 10px;
    width: 80%;
    margin-right: 10px;
    border: 2px solid #fff;
    background-color: transparent;
    color: #fff;
}

.subscribe-btn {
    padding: 10px 20px;
    background-color: #ff6347;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.subscribe-btn:hover {
    background-color: #d85d42;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
    padding-top: 20px;
    color: #bbb;
}

/* Scroll Animation */
@keyframes slideUp {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-logo,
    .footer-links,
    .footer-social,
    .footer-newsletter {
        flex: 1 1 100%;
        text-align: center;
        margin-bottom: 20px;
    }

    .newsletter-input {
        width: 60%;
    }

    .social-links {
        justify-content: center;
    }
}