/* 
 * Madushan Aluminium - Premium Custom CSS
 * Colors: Black (#121212), Gold (#D4AF37), White (#FFFFFF)
 */

 :root {
    --primary-black: #121212;
    --secondary-black: #1c1c1c;
    --primary-gold: #1774BE; /* Logo Vibrant Blue */
    --hover-gold: #10538a;   /* Logo Dark Blue hover */
    --text-light: #f8f9fa;
    --text-muted: #ffffff;
    --glass-bg: rgba(28, 28, 28, 0.7);
    --glass-border: rgba(23, 116, 190, 0.2); /* Blue border tint */
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--primary-black);
    color: var(--text-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .brand-text {
    font-family: 'Playfair Display', serif;
}

/* Helper Classes */
.text-gold { color: var(--primary-gold) !important; }
.text-muted { color: #ffffff !important; }
.bg-black { background-color: var(--primary-black) !important; }
.bg-dark-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}
.letter-spacing-1 { letter-spacing: 1px; }
.letter-spacing-2 { letter-spacing: 2px; }
.hover-gold:hover { color: var(--primary-gold) !important; transition: color 0.3s ease; }

/* Topbar */
.topbar { font-size: 0.85rem; }

/* Navbar */
.navbar {
    background-color: rgba(18, 18, 18, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-top: 15px;
    padding-bottom: 15px;
    transition: all 0.3s ease;
}
.navbar.scrolled {
    padding-top: 10px;
    padding-bottom: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}
.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin: 0 10px;
    position: relative;
    transition: all 0.3s;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary-gold) !important;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-gold);
    transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Buttons */
.btn-outline-gold {
    color: var(--primary-gold);
    border-color: var(--primary-gold);
    background: transparent;
    font-weight: 500;
}
.btn-outline-gold:hover {
    background-color: var(--primary-gold);
    color: var(--primary-black);
}
.btn-gold {
    background-color: var(--primary-gold);
    color: var(--primary-black);
    font-weight: 600;
    border: none;
}
.btn-gold:hover {
    background-color: var(--hover-gold);
    color: var(--primary-black);
}
.btn-whatsapp {
    background-color: #25D366;
    color: white;
    font-weight: 500;
    border: none;
}
.btn-whatsapp:hover {
    background-color: #1ebe5d;
    color: white;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(to right, rgba(18,18,18,0.9) 0%, rgba(18,18,18,0.4) 100%), url('../images/new/WhatsApp Image 2026-05-12 at 18.30.59 (2).jpeg') no-repeat center center/cover;
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 600px;
}

/* Sections */
.section-padding { padding: 100px 0; }
.section-title {
    margin-bottom: 50px;
}
.section-subtitle {
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
}

/* Service Cards */
.service-card {
    overflow: hidden;
    border-radius: 15px;
    position: relative;
    border: 1px solid rgba(255,255,255,0.05);
}
.service-img-wrapper {
    overflow: hidden;
    position: relative;
}
.service-img-wrapper img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.service-card:hover .service-img-wrapper img {
    transform: scale(1.1);
}
.service-content {
    padding: 20px;
    background: var(--secondary-black);
    position: relative;
    z-index: 2;
}

/* Gallery Hover Effect */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(18,18,18,0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}
.floating-whatsapp:hover {
    background-color: #128C7E;
    color: white;
    transform: scale(1.1);
}
.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background: white;
    color: #121212;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent white;
}
.floating-whatsapp:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Forms */
.custom-input {
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
}
.custom-input:focus {
    background-color: rgba(255,255,255,0.08);
    border-color: var(--primary-gold);
    color: white;
    box-shadow: none;
}
.custom-select {
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
}
.custom-select option {
    background-color: var(--primary-black);
    color: white;
}

/* Footer */
.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 30px;
    height: 2px;
    background: var(--primary-gold);
}
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: var(--primary-gold);
    padding-left: 5px;
}
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    color: var(--text-light);
    transition: all 0.3s;
}
.social-icon:hover {
    background: var(--primary-gold);
    color: var(--primary-black);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 991px) {
    .hero-title { font-size: 2.5rem; }
    .navbar { background-color: var(--primary-black) !important; }
}

/* primary-ma brand utility classes */
.text-primary-ma { color: var(--primary-gold) !important; }
.bg-primary-ma { background-color: var(--primary-gold) !important; }
.border-primary-ma { border-color: var(--primary-gold) !important; }
.btn-primary-ma {
    background-color: var(--primary-gold) !important;
    color: white !important;
    border: none;
    font-weight: 500;
    transition: all 0.3s ease;
}
.btn-primary-ma:hover {
    background-color: var(--hover-gold) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(23, 116, 190, 0.4);
}

/* Preloader Screen */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0c0c0c;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}
.preloader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}
.preloader-logo {
    max-width: 150px;
    height: auto;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(23, 116, 190, 0.35);
    animation: pulseLogo 2s infinite ease-in-out;
}
.preloader-spinner {
    width: 45px;
    height: 45px;
    border: 3.5px solid rgba(23, 116, 190, 0.15);
    border-top: 3.5px solid var(--primary-gold);
    border-radius: 50%;
    animation: spinSpinner 0.85s linear infinite;
}
@keyframes pulseLogo {
    0%, 100% { transform: scale(1); box-shadow: 0 10px 30px rgba(23, 116, 190, 0.35); }
    50% { transform: scale(1.06); box-shadow: 0 15px 45px rgba(23, 116, 190, 0.55); }
}
@keyframes spinSpinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

