/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&family=Playfair+Display:wght@500;700;800&display=swap');

/* ===== Logo Pulse Preloader ===== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.preloader-hidden {
    opacity: 0;
    visibility: hidden;
}
.preloader-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.preloader-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    animation: logoPulse 1.5s ease-in-out infinite;
    z-index: 2;
}
.preloader-ring {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 3px solid transparent;
    border-top: 3px solid #e63946;
    border-right: 3px solid #e63946;
    border-radius: 50%;
    animation: ringSpinner 1s linear infinite;
}
@keyframes logoPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
}
@keyframes ringSpinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== Testimonial Card ===== */
.testimonial-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.3s;
}
.testimonial-card:hover {
    transform: translateY(-3px);
}

/* ===== Continuous Marquee Scroll ===== */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}
.marquee-wrapper::before,
.marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}
.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #f8f9fa, transparent);
}
.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #f8f9fa, transparent);
}
.marquee-track {
    display: flex;
    align-items: center;
    gap: 60px;
    animation: marqueeScroll 20s linear infinite;
    width: max-content;
}
.marquee-track:hover {
    animation-play-state: paused;
}
.marquee-item {
    flex-shrink: 0;
}
.marquee-item img {
    max-height: 60px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.4s ease;
}
.marquee-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}
@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

:root {
    --primary: #e63946; /* Vibrant Red */
    --primary-dark: #b82d38;
    --primary-light: rgba(230, 57, 70, 0.1);
    
    --black: #0a0a0c; /* Deep Black */
    --black-light: #16161a;
    --black-lighter: #24242b;
    
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --gray: #8d8d99;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    
    --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-soft: 0 15px 35px rgba(0,0,0,0.05);
    --shadow-strong: 0 20px 40px rgba(0,0,0,0.15);
    --shadow-glow: 0 10px 30px rgba(230, 57, 70, 0.3);
}

/* Base Styles */
html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--black-light);
    background-color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--black);
    font-weight: 700;
    line-height: 1.2;
}

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

a:hover {
    color: var(--primary-dark);
}

/* Background Utilities */
.bg-dark { background-color: var(--black) !important; }
.bg-light { background-color: var(--gray-light) !important; }
.text-danger { color: var(--primary) !important; }
.bg-danger { background-color: var(--primary) !important; }

/* Custom Buttons */
.btn-primary-custom {
    background-color: var(--primary);
    color: var(--white);
    padding: 14px 35px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    z-index: 1;
    transition: all var(--transition);
    box-shadow: var(--shadow-glow);
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 0%; height: 100%;
    background-color: var(--black);
    transition: all var(--transition);
    z-index: -1;
}

.btn-primary-custom:hover {
    color: var(--white);
    transform: translateY(-3px);
}

.btn-primary-custom:hover::before {
    width: 100%;
}

.btn-outline-custom {
    background-color: transparent;
    color: var(--black);
    border: 2px solid var(--black);
    padding: 12px 35px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    transition: all var(--transition);
}

.btn-outline-custom:hover {
    background-color: var(--black);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
}

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

.btn-outline-custom.border-white:hover {
    background-color: var(--white);
    color: var(--black);
}

/* Navbar */
.navbar-custom {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 15px 30px;
    transition: all 0.4s ease;
    
    /* Floating Pill Design */
    margin: 20px auto;
    max-width: 1140px; /* Matches bootstrap .container */
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.5);
    left: 20px; 
    right: 20px;
    width: auto;
}

.navbar-custom.shadow-sm {
    background-color: rgba(255, 255, 255, 0.98);
    padding: 10px 30px;
    margin-top: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
}

.navbar-custom .navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--black);
    letter-spacing: 1px;
}

.navbar-custom .navbar-brand span {
    color: var(--primary);
}

.navbar-custom .nav-link {
    color: var(--black) !important;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 15px;
    position: relative;
    padding-bottom: 5px;
}

.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    background-color: var(--black);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(10,10,12,0.9) 0%, rgba(10,10,12,0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 25px;
    color: var(--white);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 50px;
    font-weight: 300;
    color: rgba(255,255,255,0.8);
    font-family: var(--font-body);
}

/* Hero Vector Bottom Divider */
.hero-bottom-vector {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 3;
}

.hero-bottom-vector svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.hero-bottom-vector .shape-fill {
    fill: var(--gray-light);
}

.hero-bottom-vector .shape-fill-accent {
    fill: var(--primary);
}

/* Sections General */
.section-padding {
    padding: 100px 0;
}

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

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

.section-title h2 {
    font-size: 3rem;
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    border-radius: 2px;
}

/* Premium Glass Cards */
.premium-card {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: var(--shadow-soft);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition);
    height: 100%;
    position: relative;
    z-index: 1;
}

.premium-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--primary);
    transition: all var(--transition);
    z-index: -1;
    opacity: 0.05;
}

.premium-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-strong);
}

.premium-card:hover::after {
    height: 100%;
}

.premium-card .card-img-top {
    height: 280px;
    object-fit: cover;
    transition: transform 0.8s ease;
}

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

.premium-card .card-body {
    padding: 40px 30px;
}

.premium-card .card-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    transition: color var(--transition);
}

.premium-card:hover .card-title {
    color: var(--primary);
}

/* Portfolio Card Design (Screenshot matching) */
.portfolio-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    height: 450px;
    display: block;
    text-decoration: none;
    box-shadow: var(--shadow-soft);
}

.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
    padding: 40px 20px 20px;
    z-index: 2;
}

.portfolio-category {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    display: block;
}

.portfolio-title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    font-family: var(--font-body);
    text-transform: uppercase;
}

/* Projects Image Hover (Legacy) */
.project-item .card {
    border-radius: 0;
}

.project-item .card-body {
    padding: 30px;
    transition: all var(--transition);
}

.project-item:hover .card-body {
    background-color: var(--black) !important;
}

.project-item:hover .card-title {
    color: var(--white) !important;
}

.project-item:hover .card-text {
    color: rgba(255,255,255,0.7) !important;
}

/* Footer */
.footer {
    background-color: var(--black);
    color: var(--white);
    padding: 80px 0 30px;
    border-top: 5px solid var(--primary);
}

.footer h5 {
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

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

.footer p, .footer ul li {
    color: var(--gray);
    font-size: 0.95rem;
}

.footer a {
    color: var(--gray);
    transition: all var(--transition);
}

.footer a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer .social-links a {
    display: inline-block;
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    margin-right: 12px;
    font-size: 1.2rem;
    color: var(--white);
    transition: all var(--transition);
}

.footer .social-links a:hover {
    background: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    padding-left: 0; /* Reset hover from general 'a' */
}

/* Page Header */
.page-header {
    background-color: var(--black);
    padding: 160px 0 100px;
    text-align: center;
    color: var(--white);
    position: relative;
    background-attachment: fixed;
}

.page-header h1 {
    color: var(--white);
    font-size: 4rem;
    margin-bottom: 15px;
}

/* Form Controls */
.form-control {
    padding: 15px 20px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.1);
    background-color: var(--gray-light);
    transition: all var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem var(--primary-light);
    background-color: var(--white);
}

/* WhatsApp Floating Widget */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all var(--transition);
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #fff;
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0px 8px 25px rgba(37, 211, 102, 0.4);
}

.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--black-light);
    margin-bottom: 8px;
}

/* Badges */
.badge {
    padding: 8px 12px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .navbar-custom { 
        background-color: rgba(255, 255, 255, 0.98); 
        margin: 10px;
        left: 0; right: 0;
        width: calc(100% - 20px);
        padding: 10px 20px;
    }
    .hero-title { font-size: 3.5rem; }
}

/* Mobile Bottom Nav */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .section-padding { padding: 60px 0; }
    .page-header { padding: 120px 0 60px; }
    .page-header h1 { font-size: 2.5rem; }
    .section-title h2 { font-size: 2.2rem; }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 100px;
        right: 15px;
        font-size: 30px;
    }

    body {
        padding-bottom: 90px;
    }
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 15px;
        left: 15px;
        right: 15px;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        border: 1px solid rgba(0,0,0,0.05);
        border-radius: 40px; /* Added border radius to make it a floating pill */
        z-index: 1030;
        padding: 12px 5px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        justify-content: space-around;
    }
    .mobile-bottom-nav .nav-item {
        flex: 1;
        text-align: center;
    }
    .mobile-bottom-nav .nav-link {
        color: var(--black-light);
        font-size: 0.75rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        font-weight: 600;
    }
    .mobile-bottom-nav .nav-link i {
        font-size: 1.2rem;
        margin-bottom: 4px;
        color: var(--black);
    }
    .mobile-bottom-nav .nav-link:hover,
    .mobile-bottom-nav .nav-link.active,
    .mobile-bottom-nav .nav-link:hover i,
    .mobile-bottom-nav .nav-link.active i {
        color: var(--primary);
    }
    
    /* Make sure navbar collapse works properly on mobile */
    .navbar-collapse {
        background: #fff;
        border-radius: 15px;
        padding: 15px;
        margin-top: 10px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
}
