/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.swiper {
    width: 100%;
    height: 500px;
    position: relative;
}

.swiper-slide img {
    width: 50%;
    height: 40vh;
    object-fit: cover;
    display: block;
}

.swiper-button-next,
.swiper-button-prev {
    color: #fff;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.logo-2 {
    width: 25px;
    border-radius: 50px;
}

body {
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #222;
    color: #fff;
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    text-transform: uppercase;
}

.logo p {
    font-size: 1.5rem;
    font-weight: bold;
    margin-left: 10px;
}

.logo span {
    color: #ff9900;
    /* Construction Orange */
}

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

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: #fff;
    font-size: 1rem;
    border: 1px solid #ddd;
    padding: 5px;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #ff9900;
    background-color: #111;
}

/* Sections */
section {
    padding: 100px 10%;
    min-height: 80vh;
}

/* Home Section */
.hero {
    background-image: url('images/website-hosting-concept-with-circuits.jpg');
    display: flex;
    align-items: center;
    margin: 50px 0 0 0;
    gap: 30px;
}

.hero img {
    width: 100%;
    height: 80vh;
}

.hero p {
    font-size: 1.5rem;
    font-weight: 100;
    color: #e0e0e0;
    line-height: 50px;
}

.hero h1 {
    font-size: 3rem;
    color: #f4f4f4;
    margin-bottom: 20px;
}

.hero-content {
    flex: 0 0 60%;
}

.services-grid {
    flex: 0 0 40%;
}

/* Works Slider */
.works-section {
    background: #e0e0e0;
    text-align: center;
}

.works-section h2 {
    font-size: 2rempx;
    margin-bottom: 30px;
}

.slider-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.slider-container>div {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    padding: 20px 20px;
}

.slider-container img {
    width: 50%;
}

.slider-container h2 {
    font-size: 1.3rem;
    margin-top: 15px;
}

.slider-container h3 {
    font-size: 1.3rem;
    font-weight: 400;
}

.slider-container p {
    font-size: 1rem;
    margin-top: 25px;
}

.slider-container ul {
    margin-top: 15px;
}

.slider-container li {
    margin: 0 30px;
    font-size: 1rem;
    text-align: left;
}

.slider-container span {
    font-weight: bold;
}

.slider img {
    width: 100%;
    display: none;
}

.slider img.active {
    display: block;
    animation: fadeIn 0.5s;
}

.next-btn {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: rgba(255, 153, 0, 0.8);
    border: none;
    color: white;
    padding: 15px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 50%;
}

/* Contact Section */
.contact-section {
    background: #222;
    color: white;
    text-align: center;
    min-height: 10vh;
}

/* .contact-section h2 { margin: 0;} */
.contact-card {
    background: #333;
    padding: 40px;
    border-radius: 10px;
    display: inline-block;
    margin-top: 30px;
}

.info-item {
    margin: 15px 0;
}

.info-item a {
    color: #ff9900;
}

footer {
    text-align: center;
    padding: 20px;
    background: #111;
    color: #777;
}

i {
    font-size: 1.2rem;
    margin: 10px;
    transition: 0.3s;
}

.fa-whatsapp:hover {
    color: #25D366;
}

.fa-x-twitter:hover {
    color: #000000;
}

.fa-instagram:hover {
    color: #E1306C;
}

.social-icon {
    text-decoration: none;
    color: inherit;
}

/* Add a nice "pop" effect when you hover over the link */
.social-icon:hover {
    transform: scale(1.2);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- Media Query for Mobile Devices --- */
@media (max-width: 768px) {

    /* 1. Navbar: Stack the logo and links vertically */
    .navbar {
        flex-direction: column;
        padding: 1rem;
        position: static;
        /* Optional: un-fix it if it takes up too much screen space */
    }

    .nav-links {
        margin-top: 15px;
        justify-content: center;
        width: 100%;
    }

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

    .nav-links a {
        font-size: 18px;
        /* Reduced from 30px */
    }

    /* 2. Hero Section: Stack text and image */
    .hero {
        flex-direction: column;
        padding: 40px 5%;
        text-align: center;
        margin-top: 0;
    }
    .hero-content,
    .services-grid {
        flex: 0 0 100%;
        width: 100%;
    }
    .hero h1 {
        font-size: 32px;
        /* Reduced from 70px */
        line-height: 1.2;
        
    }
    .hero p {
        font-size: 18px;
        line-height: 28px;
    }
    .hero img {
        width: 100%;
        height: 60vh;
    }
    .slider-container {
        grid-template-columns: 1fr;
        /* Stack the cards */
        gap: 30px;
    }
    .slider-container li {
        font-size: 16px;
        /* Smaller list text */
        margin: 0 15px;
    }
    /* 4. Section Spacing */
    section {
        padding: 50px 5%;
    }

    .works-section h2 {
        font-size: 28px;
    }

    /* 5. Contact Card */
    .contact-card {
        width: 100%;
        padding: 20px;
    }
}