/* ============================================
   ITRelated Website - Main Stylesheet
   Color Theme: Red (#8B0000), Black, White, Grey
   ============================================ */

:root {
    --primary-red: #8B0000;
    --primary-black: #000000;
    --primary-white: #FFFFFF;
    --primary-grey: #808080;
    --light-grey: #f8f9fa;
    --dark-grey: #333333;
}

/* ============================================
   Typography
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-grey);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-black);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

a {
    color: var(--primary-red);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-red);
    opacity: 0.8;
}

.highlight-text {
    color: var(--primary-red);
}

/* ============================================
   Navigation Bar
   ============================================ */

.custom-navbar {
    background: transparent !important;
    padding: 1rem 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background 0.3s ease;
}

.custom-navbar.scrolled {
    background: rgba(0, 0, 0, 0.9) !important;
}

.navbar-brand img {
    height: 50px;
    width: auto;
}

.navbar-nav .nav-link {
    color: var(--primary-white) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-red) !important;
}

.navbar-nav .dropdown-menu {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 5px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.navbar-nav .dropdown-item {
    color: var(--primary-white) !important;
    padding: 0.75rem 1.5rem;
    transition: background 0.3s ease;
}

.navbar-nav .dropdown-item:hover {
    background: var(--primary-red);
    color: var(--primary-white) !important;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.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%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================
   Hero Sections
   ============================================ */

.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--primary-white);
    padding: 2rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--primary-red);
    color: var(--primary-white);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
}

/* ============================================
   Carousel (Home Page)
   ============================================ */

.home-carousel {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 3;
    pointer-events: none;
}

.carousel-content-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.carousel-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--primary-white);
    padding: 2rem;
    width: 100%;
    max-width: 800px;
    opacity: 0;
    display: none;
    transition: opacity 1s ease-in-out;
}

.carousel-content.active {
    opacity: 1;
    display: block;
}

.carousel-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-white) !important;
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.carousel-content .lead {
    font-size: 1.5rem;
    color: var(--primary-white) !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.5);
    font-weight: 400;
}

@media (max-width: 768px) {
    .carousel-content h1 {
        font-size: 2rem;
    }
    
    .carousel-content .lead {
        font-size: 1.2rem;
    }
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(139, 0, 0, 0.7);
    color: var(--primary-white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control:hover {
    background: var(--primary-red);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
    left: 30px;
}

.carousel-control.next {
    right: 30px;
}

/* ============================================
   3D Carousel (Projects Page)
   ============================================ */

.carousel-3d-container {
    perspective: 1200px;
    width: 100%;
    height: 500px;
    position: relative;
    margin: 3rem auto;
    overflow: visible;
}

.carousel-3d-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.carousel-3d-item {
    position: absolute;
    width: 300px;
    height: 400px;
    left: 50%;
    top: 50%;
    margin-left: -150px;
    margin-top: -200px;
    transform-style: preserve-3d;
    transition: transform 0.6s ease-in-out;
    cursor: pointer;
}

.carousel-3d-item.active {
    transform: translateZ(0px) rotateY(0deg) !important;
    z-index: 5;
}

.carousel-3d-item.prev {
    transform: translateZ(-200px) rotateY(45deg) translateX(-350px) !important;
    z-index: 4;
    opacity: 0.7;
}

.carousel-3d-item.next {
    transform: translateZ(-200px) rotateY(-45deg) translateX(350px) !important;
    z-index: 4;
    opacity: 0.7;
}

.carousel-3d-item.far-prev {
    transform: translateZ(-400px) rotateY(70deg) translateX(-600px) !important;
    z-index: 3;
    opacity: 0.4;
}

.carousel-3d-item.far-next {
    transform: translateZ(-400px) rotateY(-70deg) translateX(600px) !important;
    z-index: 3;
    opacity: 0.4;
}

.carousel-3d-item.hidden {
    opacity: 0;
    pointer-events: none;
}

.project-card-3d {
    width: 100%;
    height: 100%;
    background: var(--primary-white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 3px solid var(--primary-red);
}

.project-card-3d:hover {
    box-shadow: 0 15px 40px rgba(139, 0, 0, 0.4);
    transform: scale(1.05);
}

.project-card-3d i {
    font-size: 4rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.project-card-3d h3 {
    color: var(--primary-black);
    margin-bottom: 0.5rem;
}

.carousel-3d-controls {
    text-align: center;
    margin: 2rem 0;
}

.carousel-3d-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 1rem 0;
}

.carousel-3d-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-grey);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-3d-indicator.active {
    background: var(--primary-red);
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .carousel-3d-item {
        width: 250px;
        height: 350px;
        margin-left: -125px;
        margin-top: -175px;
    }
    
    .carousel-3d-item.prev {
        transform: translateZ(-150px) rotateY(45deg) translateX(-250px) !important;
    }
    
    .carousel-3d-item.next {
        transform: translateZ(-150px) rotateY(-45deg) translateX(250px) !important;
    }
}

/* ============================================
   Feature Cards
   ============================================ */

.modern-feature-card {
    background: var(--primary-white);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border-top: 4px solid var(--primary-red);
}

.modern-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(139, 0, 0, 0.2);
}

.modern-feature-card i {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.modern-feature-card h3 {
    color: var(--primary-black);
    margin-bottom: 1rem;
}

/* ============================================
   Service Flip Cards
   ============================================ */

.service-card-flip {
    perspective: 1000px;
    width: 100%;
    height: 350px;
    margin-bottom: 2rem;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.service-card-flip:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.service-card-front {
    background: var(--primary-white);
    border-top: 4px solid var(--primary-red);
}

.service-card-back {
    background: var(--primary-red);
    color: var(--primary-white);
    transform: rotateY(180deg);
}

.service-card-front i {
    font-size: 3.5rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.service-card-back ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.service-card-back ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.service-card-back ul li:last-child {
    border-bottom: none;
}

/* ============================================
   Partner Cards
   ============================================ */

.partner-card {
    background: var(--primary-white);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(139, 0, 0, 0.2);
}

.partner-card img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.partner-card:hover img {
    filter: grayscale(0%);
}

/* ============================================
   Client Cards
   ============================================ */

.client-card {
    background: var(--primary-white);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border-left: 4px solid var(--primary-red);
}

.client-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(139, 0, 0, 0.2);
}

.client-card i {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

/* ============================================
   Forms
   ============================================ */

.styled-input {
    position: relative;
    margin-bottom: 1.5rem;
}

.styled-input input,
.styled-input textarea,
.styled-input select {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--primary-white);
}

.styled-input input:focus,
.styled-input textarea:focus,
.styled-input select:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

.styled-input i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-grey);
}

.styled-input textarea {
    padding-left: 3rem;
    min-height: 150px;
    resize: vertical;
}

.styled-input.file-input {
    padding: 0.75rem;
    border: 2px dashed #ddd;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.styled-input.file-input:hover {
    border-color: var(--primary-red);
    background: rgba(139, 0, 0, 0.05);
}

.styled-input.file-input input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-input-label {
    display: block;
    padding: 1rem;
    color: var(--primary-grey);
}

.file-name-display {
    margin-top: 0.5rem;
    color: var(--primary-red);
    font-weight: 600;
}

.btn-modern-primary {
    background: var(--primary-red);
    color: var(--primary-white);
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-modern-primary:hover {
    background: #6b0000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.3);
}

.btn-modern-outline {
    background: transparent;
    color: var(--primary-red);
    padding: 0.75rem 2rem;
    border: 2px solid var(--primary-red);
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-modern-outline:hover {
    background: var(--primary-red);
    color: var(--primary-white);
    transform: translateY(-2px);
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    border: 1px solid #c3e6cb;
}

/* ============================================
   Sections
   ============================================ */

.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-black);
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--primary-grey);
    font-size: 1.1rem;
}

.parallax-section {
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 5rem 0;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 2;
    color: var(--primary-white);
    text-align: center;
}

.bg-light {
    background: var(--light-grey);
}

.bg-dark {
    background: var(--dark-grey);
    color: var(--primary-white);
}

.bg-dark h2,
.bg-dark h3 {
    color: var(--primary-white);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--dark-grey);
    color: var(--primary-white);
    padding: 3rem 0 1rem;
}

.footer h5 {
    color: var(--primary-white);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-red);
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    margin-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   Info Boxes
   ============================================ */

.info-box {
    background: var(--light-grey);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-red);
}

.info-box h4 {
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.info-box ul {
    list-style: none;
    padding: 0;
}

.info-box ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.info-box ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-weight: bold;
}

/* ============================================
   Utilities
   ============================================ */

.text-center {
    text-align: center;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* ============================================
   Responsive Adjustments
   ============================================ */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .carousel-control {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .carousel-control.prev {
        left: 10px;
    }
    
    .carousel-control.next {
        right: 10px;
    }
    
    .service-card-flip {
        height: 300px;
    }
}

