/* 
======================================
  INNOSPHERE IT WEBSITE CUSTOM STYLES
======================================
*/

:root {
    --primary-color: #ff3e3e;      /* Red */
    --secondary-color: #000000;    /* Black */
    --light-color: #ffffff;        /* White */
    --light-gray: #f8f9fa;
    --dark-gray: #212529;
    --transition: all 0.3s ease;
}

/* Global Styles */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-gray);
    overflow-x: hidden;
    padding-top: 76px; /* Add padding to account for fixed header height */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--dark-gray);
    transition: var(--transition);
}

.btn {
    border-radius: 30px;
    padding: 10px 24px;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-light {
    color: var(--light-color);
    border-color: var(--light-color);
}

.btn-outline-light:hover {
    background-color: var(--light-color);
    color: var(--secondary-color);
}

.text-primary {
    color: var(--primary-color) !important;
}

section {
    padding: 80px 0;
    position: relative;
}

/* Header/Navbar */
header {
    transition: var(--transition);
    background-color: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

.navbar {
    background-color: #ffffff;
    padding: 15px 0;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    background-color: var(--light-color);
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar-light .navbar-nav .nav-link {
    color: var(--secondary-color);
    font-weight: 500;
    padding: 8px 15px;
    margin: 0 5px;
    position: relative;
}

.navbar-light .navbar-nav .nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-light .navbar-nav .nav-link:hover:after,
.navbar-light .navbar-nav .nav-link.active:after {
    width: 50%;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

/* Navbar toggler fixes */
.navbar-toggler {
    padding: 6px 10px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    margin-right: 5px;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.5%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-brand img {
    transition: var(--transition);
}

.navbar.scrolled .navbar-brand img {
    transform: scale(0.9);
}

/* Hero Section */
.hero-section {
    background: #671717 linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://placehold.co/1920x1080/222/fff?text=Innosphere+IT') no-repeat center;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--light-color);
    margin-top: -1px; /* Fix gap between header and hero */
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,0,0,0.8), rgba(255,62,62,0.5));
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-section .lead {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-image {
    position: relative;
    z-index: 1;
    transform: perspective(1000px) rotateY(-15deg);
    transition: transform 1s ease;
    animation: float 3s ease-in-out infinite;
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0deg);
}

@keyframes float {
    0% {
        transform: perspective(1000px) rotateY(-15deg) translateY(0px);
    }
    50% {
        transform: perspective(1000px) rotateY(-15deg) translateY(-15px);
    }
    100% {
        transform: perspective(1000px) rotateY(-15deg) translateY(0px);
    }
}

/* Services Section */
.service-card {
    background-color: var(--light-color);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
    border-bottom: 3px solid transparent;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid var(--primary-color);
}

.icon-box {
    width: 80px;
    height: 80px;
    background-color: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--primary-color);
    font-size: 30px;
    transition: var(--transition);
}

.service-card:hover .icon-box {
    background-color: var(--primary-color);
    color: var(--light-color);
    transform: rotateY(360deg);
    transition: transform 0.8s ease-in-out, background-color 0.3s ease, color 0.3s ease;
}

.service-card h4 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p {
    color: #6c757d;
    margin-bottom: 0;
}

/* About Section */
.about-image {
    overflow: hidden;
    border-radius: 10px;
}

.about-image img {
    transition: transform 0.8s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.experience-badge {
    position: absolute;
    right: -30px;
    bottom: 30px;
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(255, 62, 62, 0.3);
}

.experience-badge .years {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.icon-box-sm {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 62, 62, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 16px;
}

/* Portfolio Section */
.portfolio-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(255, 62, 62, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay .content {
    text-align: center;
    color: var(--light-color);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay .content {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-overlay h5 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.portfolio-overlay p {
    font-size: 1rem;
    margin-bottom: 15px;
}

/* Testimonial Section */
.testimonial-card {
    background-color: var(--light-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
}

.rating i {
    color: #FFD700;
    font-size: 20px;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin: 20px 0;
}

.testimonial-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    background-color: #ced4da;
    border-radius: 50%;
    margin: 0 5px;
}

.testimonial-indicators .active {
    background-color: var(--primary-color);
}

/* Contact Section */
.contact-form-wrapper {
    background-color: var(--light-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
}

.form-control {
    height: auto;
    padding: 15px 20px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    margin-bottom: 20px;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 62, 62, 0.25);
}

/* Footer */
.footer {
    background-color: var(--light-gray);
    color: var(--dark-gray);
    padding-top: 70px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-title {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--dark-gray);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--secondary-color);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    transform: translateY(-5px);
}

.newsletter-form .form-control {
    background-color: rgba(0, 0, 0, 0.05);
    border: none;
    color: var(--dark-gray);
    border-radius: 5px 0 0 5px;
    margin-bottom: 0;
}

.newsletter-form .form-control::placeholder {
    color: #6c757d;
}

.newsletter-form .btn {
    padding: 15px;
    border-radius: 0 5px 5px 0;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-form .input-group {
    display: flex;
    flex-wrap: nowrap;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.03);
    padding: 20px 0;
    margin-top: 50px;
    color: var(--dark-gray);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(255, 62, 62, 0.3);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    color: var(--light-color);
    transform: translateY(-5px);
}

/* Animation Styles */
[data-aos] {
    opacity: 0;
    transition-duration: 1s;
    transition-timing-function: ease;
}

@media (max-width: 991.98px) {
    body {
        padding-top: 70px; /* Adjust padding for smaller screens */
    }

    .navbar-toggler {
        border: 1px solid rgba(0, 0, 0, 0.2);
        margin-right: 0;
    }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 15px;
        right: 15px;
        z-index: 1030;
        background-color: #ffffff;
        padding: 15px;
        border-radius: 5px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .nav-link {
        color: #000 !important;
        padding: 10px 15px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }
    
    .hero-section {
        min-height: auto;
        background-color: #671717;
    }
}

@media (max-width: 767.98px) {
    body {
        padding-top: 66px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-top: 20px;
    }
    
    .hero-image {
        margin-top: 40px;
    }
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light-gray);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Additional Animations */
.animated-card {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
} 