/* 
 * Main Frontend Styling - SCSS Structure
 * Colors, Typography, and Component-based Design
 */

:root {
    /* Color Palette */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --secondary: #64748b;
    --dark: #0f172a;
    --light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --text-main: #1e293b;
    --text-muted: #64748b;
    
    /* Transitions & Shadow */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.625;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--dark);
    font-weight: 700;
}

a {
    transition: var(--transition);
    text-decoration: none;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
}

.preloader-overlay {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

/* Layout Components */
.top-ribbon {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-ribbon a {
    color: white;
    margin-left: 15px;
    opacity: 0.7;
}

.top-ribbon a:hover {
    opacity: 1;
    color: var(--primary-light);
}

header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

header.scrolled {
    padding: 10px 5%;
    box-shadow: var(--shadow);
}

.logo-img {
    height: 60px;
    width: auto;
}

/* Navigation */
nav {
    display: flex;
    gap: 25px;
}

nav a {
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
}

nav a:hover, nav a.active {
    color: var(--primary);
}

nav a:hover, nav a.active {
    color: var(--primary);
}

nav .dropdown-menu {
    margin-top: 15px;
    border-radius: 12px;
    padding: 15px 0;
    min-width: 220px;
    animation: fadeIn 0.3s ease;
}

nav .dropdown-menu .dropdown-item {
    padding: 8px 25px;
    font-size: 0.9rem;
    color: var(--text-main);
    transition: var(--transition);
}

nav .dropdown-menu .dropdown-item:hover {
    background-color: var(--light);
    color: var(--primary);
    padding-left: 30px;
}

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

/* Hero Slider (Bootstrap Carousel) */
.hero-carousel .carousel-item {
    height: 90vh;
    min-height: 500px;
}

.hero-carousel .carousel-caption {
    text-align: left;
    left: 8%;
    right: 8%;
    bottom: 25%;
    z-index: 10;
}

.hero-overlay {
    display: none;
}
/* Sections */
section {
    padding: 100px 5%;
}

.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.subtitle {
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 1.6rem;
    display: block;
    margin-bottom: 15px;
}

.title-lg {
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    line-height: 1.1;
    margin-bottom: 15px;
}

/* Cards & Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.custom-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.custom-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.card-image-wrapper {
    height: 240px;
    overflow: hidden;
    background: var(--light);
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.custom-card:hover .card-image-wrapper img {
    transform: scale(1.1);
}

.card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Tabs */
.horizontal-tabs {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 10px;
    margin-bottom: 40px;
    scrollbar-width: none; /* Firefox */
}

.horizontal-tabs::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.tab-btn {
    white-space: nowrap;
    padding: 12px 25px;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 30px;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

/* Buttons */
.btn-main {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e0e0e0;
    margin-top: auto;
}

.footer-main {
    display: grid;
    grid-template-columns: auto 1fr 1fr 1fr auto;
    gap: 2rem;
    padding: 3rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}

/* Image columns - fixed width */
.footer-col-image {
    width: 180px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Text columns - flexible */
.footer-col {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Image containers */
.footer-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 250px;
}

.footer-image {
    max-width: 100%;
    max-height: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    transition: transform 0.3s ease;
    background-color: white;
}

.footer-image:hover {
    transform: scale(1.05);
}

/* Text columns styling */
.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #B76E2E, #FFA559);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #FFA559;
    transform: translateX(5px);
}

/* Contact info styling */
.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.contact-info li i {
    color: #FFA559;
    font-size: 1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.contact-info li span {
    color: #cbd5e1;
    word-break: break-word;
    flex: 1;
}

/* Address specific styling */
.address-text {
    display: block;
    line-height: 1.6;
}

/* Footer bottom */
.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .footer-main {
        grid-template-columns: auto 1fr 1fr auto;
        gap: 1.5rem;
    }
    
    .footer-col-image {
        width: 150px;
    }
}

@media (max-width: 992px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-col-image {
        width: 100%;
        grid-column: span 1;
    }
    
    .footer-col {
        grid-column: span 1;
    }
    
    /* Reorder for tablet */
    .footer-col-image:first-child {
        order: 1;
    }
    .footer-col:nth-child(2) {
        order: 2;
    }
    .footer-col:nth-child(3) {
        order: 3;
    }
    .footer-col:nth-child(4) {
        order: 4;
    }
    .footer-col-image:last-child {
        order: 5;
    }
    
    .footer-image-wrapper {
        min-height: 200px;
    }
}

@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-col-image {
        width: 100%;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .contact-info li {
        justify-content: center;
    }
    
    .footer-links a:hover {
        transform: translateX(0);
    }
    
    .footer-image-wrapper {
        min-height: 150px;
    }
    
    .footer-image {
        max-height: 120px;
    }
}

@media (max-width: 480px) {
    .footer-main {
        padding: 1.5rem;
    }
}
/* Mobile Responsive */
@media (max-width: 1024px) {
    header nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 40px;
        transition: var(--transition);
        z-index: 1001;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        display: flex;
        gap: 20px;
    }
    
    header nav.active {
        right: 0;
    }

    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(15, 23, 42, 0.5);
        backdrop-filter: blur(4px);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    header nav .nav-item.dropdown {
        display: block !important;
        width: 100%;
    }

    header nav .dropdown-menu {
        position: static;
        box-shadow: none;
        padding: 0 0 0 15px;
        margin-top: 10px;
        display: none;
    }
    
    header nav .dropdown-menu.show {
        display: block;
    }

    /* .footer-main {
        grid-template-columns: 1fr 1fr;
    } */
}

@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    section {
        padding: 60px 5%;
    }
}

@media (max-width: 480px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}
/* Projects Redesign Styles */
.project-img-wrapper {
    position: relative;
    transition: var(--transition);
}

.project-img-wrapper:hover {
    transform: scale(1.02);
}

.projects .row {
    transition: var(--transition);
}

.italic {
    font-style: italic;
}

.tracking-widest {
    letter-spacing: 0.2em;
}

/* Pagination Styling */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination a, .pagination span {
    padding: 10px 18px;
    border-radius: 50%;
    background: var(--light);
    color: var(--dark);
    font-weight: 600;
    transition: var(--transition);
}

.pagination .active {
    background: var(--primary);
    color: white;
}

.pagination a:hover {
    background: var(--primary-light);
    color: white;
}
.img-fluid {
    max-width: 100%;
    height: auto;
}
.img-fluid-team {
    max-width: 100%;
    height: 550px;
}
