/* General Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #f0f2f5;
    color: #333;
    overflow-x: hidden;
}

/* Navbar Styles */
.navbar {
    background: linear-gradient(90deg, #1a1a3d, #2a2a5e);
    padding: 1rem 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff !important;
}

.navbar-brand img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: rotate(360deg);
}

.nav-link {
    color: #fff !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #00ddeb !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: #00ddeb;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Carousel Styles */
#visiotechCarousel {
    height: 50vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.carousel-inner {
    height: 100%;
}

.carousel-item img {
    height: 50vh;
    object-fit: cover;
    filter: brightness(70%);
    transition: transform 0.5s ease;
}

.carousel-item:hover img {
    transform: scale(1.05);
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    padding: 1.5rem;
    bottom: 15%;
    transform: translateY(0);
    animation: fadeInUp 1s ease;
}

.carousel-caption h5 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #00ddeb;
}

.carousel-caption p {
    font-size: 1.1rem;
    color: #fff;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
    background-size: 50%;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s ease;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #007bff, #6610f2);
    color: #fff;
    padding: 4rem 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
    animation: slideIn 1s ease;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
    z-index: 0;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.hero-section p {
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a3d;
}

.card-text {
    color: #6c757d;
    font-size: 1rem;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.1);
}

/* Contact Form */
.contact-form {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease;
}

.contact-form .form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: #00ddeb;
    box-shadow: 0 0 10px rgba(0, 221, 235, 0.3);
}

.contact-form button {
    background: linear-gradient(90deg, #007bff, #00ddeb);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 221, 235, 0.4);
}

/* Footer */
footer {
    background: linear-gradient(90deg, #1a1a3d, #2a2a5e);
    color: #fff;
    padding: 2rem 0;
    font-size: 1rem;
    position: relative;
}

footer p {
    margin: 0;
}

/* Realisations Page */
.realisation-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.realisation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.realisation-card .btn-primary {
    background: linear-gradient(90deg, #007bff, #00ddeb);
    border: none;
    border-radius: 10px;
    transition: background 0.3s ease;
}

.realisation-card .btn-primary:hover {
    background: linear-gradient(90deg, #0056b3, #0099cc);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1.2rem;
    }

    .carousel-caption h5 {
        font-size: 1.2rem;
    }

    .carousel-caption p {
        font-size: 0.9rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .navbar-brand img {
        width: 40px;
        height: 40px;
    }

    .card-title {
        font-size: 1.2rem;
    }

    .card-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    #visiotechCarousel {
        height: 40vh;
    }

    .carousel-item img {
        height: 40vh;
    }

    .carousel-caption {
        bottom: 10%;
        padding: 1rem;
    }

    .hero-section {
        padding: 2rem 1rem;
    }
}