/* 
* DLS Inframaker - Custom Styles
* This file contains custom styles for the DLS Inframaker website
*/

/* CSS Variables */
:root {
    --primary-color: #8B0000; /* Deep red from logo */
    --secondary-color: #FF9900; /* Orange/gold from logo */
    --dark-color: #1d3557;
    --light-color: #f1faee;
    --gray-color: #333;
    --light-gray: #f8f9fa;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
    --accent-color: #FF9900; /* Orange/gold accent */
    --primary-dark: #600000; /* Darker red for hover states */
    --secondary-dark: #CC7A00; /* Darker orange for hover states */
    --header-footer-color: #222222; /* Dark gray for header and footer */
}

/* Preloader Animation */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #222;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader {
    position: relative;
    width: 300px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.loader-logo-container {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.loader-logo {
    width: 100px;
    height: auto;
    z-index: 2;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.loader-progress-container {
    width: 200px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 15px;
}

.loader-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    animation: progress 2s ease-in-out forwards;
}

.loader-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.loader-spinner {
    position: absolute;
    width: 140px;
    height: 140px;
    border: 2px solid transparent;
    border-radius: 50%;
    border-top-color: var(--primary-color);
    border-bottom-color: var(--secondary-color);
    animation: spin 1.5s linear infinite;
}

.loader-spinner:before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 2px solid transparent;
    border-radius: 50%;
    border-left-color: var(--primary-color);
    border-right-color: var(--secondary-color);
    animation: spin 2s linear infinite reverse;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes progress {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

/* Page Transition Animation */
.page-transition {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

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

/* General Styles */
body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

p {
    font-weight: 400;
    margin-bottom: 1rem;
}

.lead {
    font-weight: 300;
    font-size: 1.2rem;
}

.btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.6rem 1.5rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Navbar Styles */
.navbar {
    background-color: var(--gray-color);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: all 0.3s ease;
}

/* Add a class for when the navbar is scrolled */
.navbar.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(51, 51, 51, 0.95);
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.logo {
    height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: white;
    text-transform: uppercase;
}

.brand-suffix {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 0.8rem;
    color: #f1f1f1;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-dark .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: white;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 500px;
    background-image: url('../images/hero-placeholder.jpg');
    background-size: cover;
    background-position: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-section h1 {
    font-weight: 800;
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section .lead {
    font-weight: 400;
    font-size: 1.25rem;
    max-width: 800px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Section Styles */
section {
    padding: 4rem 0;
}

.section-title {
    position: relative;
    display: inline-block;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Card Styles */
.card {
    border: none;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-title {
    font-weight: 700;
    color: var(--dark-color);
}

.service-icon, .value-icon, .feature-icon {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Image Styles */
.img-container {
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.img-zoom {
    transition: transform 0.5s ease;
}

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

.img-overlay {
    position: relative;
    overflow: hidden;
}

.img-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.img-overlay:hover::after {
    opacity: 1;
}

.service-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.project-img {
    height: 220px;
    object-fit: cover;
    width: 100%;
}

.team-img {
    height: 300px;
    object-fit: cover;
    width: 100%;
    border-radius: 0.5rem;
}

.team-img-circle {
    height: 200px;
    width: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    border: 5px solid var(--light-gray);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.team-img-container {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: var(--light-gray);
}

.team-img-small {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    max-width: 135%;
    border: 3px solid var(--light-gray);
    border-radius: 50%;
}

/* Testimonial Styles */
.testimonial-item {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-content p {
    font-style: italic;
    font-weight: 400;
}

.testimonial-content h5 {
    font-weight: 600;
}

/* Footer Styles */
footer {
    background-color: var(--gray-color);
}

.footer-logo {
    height: 40px;
    width: auto;
}

.footer-heading {
    font-weight: 600;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-links li, .footer-contact li {
    margin-bottom: 0.5rem;
}

.footer-links a, .footer-contact a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover, .footer-contact a:hover {
    color: var(--primary-color) !important;
}

.social-icons a {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: white !important;
}

.bg-darker {
    background-color: #222;
}

/* Timeline Styles */
.timeline-marker {
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.timeline-item {
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--secondary-color);
    z-index: 0;
}

.col-md-6:nth-child(odd) .timeline-item::before {
    right: 0;
}

.col-md-6:nth-child(even) .timeline-item::before {
    left: 0;
}

.col-md-6:nth-child(odd) .timeline-marker {
    right: -10px;
}

.col-md-6:nth-child(even) .timeline-marker {
    left: -10px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: none;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    color: white;
}

/* Page Header */
.page-header {
    background-color: var(--primary-color);
    padding: 4rem 0;
}

.page-header h1 {
    font-weight: 800;
    margin-bottom: 0.5rem;
}

/* About Page */
.team-card img {
    object-fit: cover;
}

/* Services Page */
.process-icon .icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-weight: 700;
}

/* Projects Page */
.project-card img {
    height: 220px;
    object-fit: cover;
}

.project-filters button {
    margin: 0.25rem;
    transition: all 0.3s ease;
}

.project-filters button.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.project-filters button.active:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.project-filters button:not(.active):hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.stats-number {
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* Contact Page */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    margin-bottom: 1rem;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-icon-small {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-form label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.map-container {
    height: 400px;
    border-radius: 0.5rem;
    overflow: hidden;
}

/* FAQ Section */
.accordion-button {
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

/* Utility Classes */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.bg-light {
    background-color: var(--light-gray) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-two-tone {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .hero-section {
        height: 70vh;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .navbar-collapse {
        background-color: var(--gray-color);
        padding: 1rem;
        border-radius: 0.5rem;
        margin-top: 1rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        height: 60vh;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .brand-name {
        font-size: 1rem;
    }
    
    .brand-suffix {
        font-size: 0.7rem;
    }
    
    .logo {
        height: 40px;
    }
    
    .team-img-circle {
        height: 150px;
        width: 150px;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        height: 50vh;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

/* About Section Styles */
.about-section .row {
    display: flex;
    align-items: center;
}

.about-section .img-container {
    height: auto;
    margin-bottom: 0;
    max-height: 400px;
    overflow: hidden;
}

.about-section .img-container img {
    width: 100%;
    object-fit: cover;
    max-height: 400px;
}

.about-section .col-lg-6 {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 991.98px) {
    .about-section .img-container {
        margin-bottom: 2rem;
    }
}

/* Project Details Styles */
.projects-container {
    min-height: 500px;
}

.project-details-section {
    background-color: transparent;
}

.project-details-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-details-title {
    color: var(--dark-color);
    font-weight: 700;
}

.achievement-list,
.services-list {
    list-style: none;
    padding-left: 0;
}

.achievement-list li,
.services-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.achievement-list li::before,
.services-list li::before {
    content: '\2022';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.back-to-projects {
    transition: all 0.3s ease;
}

.back-to-projects:hover {
    transform: translateX(-5px);
}

@media (max-width: 991.98px) {
    .project-details-img {
        height: 300px;
    }
}

/* End of file */ 