/* 
   GSCPL - Premium Corporate Website
   Global Standard Certification Pvt. Ltd.
*/

:root {
    /* Color Palette based on User Input */
    --primary-blue: #0f4281;
    --leaf-green: #205a39;
    --silver: #afb4ba;
    --gold-accent: #9f512c;
    --dark-grey: #2B2B2B;
    --light-grey: #F8F9FA;
    --white: #FFFFFF;

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

/* Base Styles */
body {
    font-family: var(--font-primary);
    color: var(--dark-grey);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-outfit {
    font-family: var(--font-heading);
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Custom Text Colors */
.text-primary-blue { color: var(--primary-blue) !important; }
.text-leaf-green { color: var(--leaf-green) !important; }
.text-gold { color: var(--gold-accent) !important; }
.text-silver { color: var(--silver) !important; }

/* Custom Backgrounds */
.bg-primary-blue { background-color: var(--primary-blue) !important; }
.bg-leaf-green { background-color: var(--leaf-green) !important; }
.bg-light-grey { background-color: var(--light-grey) !important; }
.bg-gold { background-color: var(--gold-accent) !important; }

/* Custom Buttons */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #155aa8 100%);
    color: var(--white);
    border: none;
    box-shadow: 0 4px 15px rgba(15, 66, 129, 0.3);
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 66, 129, 0.4);
    color: var(--white);
}

.btn-gold {
    background-color: var(--gold-accent);
    color: var(--white);
    border: none;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background-color: #7d3f22; 
    color: var(--white);
    transform: translateY(-2px);
}

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

/* Top Bar */
.top-bar {
    background-color: var(--primary-blue);
    font-size: 0.85rem;
}

.top-bar .social-icons a {
    color: rgba(255, 255, 255, 0.8);
    margin: 0 8px;
    font-size: 0.9rem;
}

.top-bar .social-icons a:hover {
    color: var(--gold-accent);
}

/* Header Navbar */
.main-header {
    transition: all 0.4s ease;
    background: var(--white);
}

.main-header .navbar {
    padding: 1rem 0;
    transition: all 0.4s ease;
}

.main-header.scrolled .navbar {
    padding: 0.5rem 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05) !important;
}

.navbar-nav .nav-link {
    color: var(--dark-grey);
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    position: relative;
    font-size: 0.95rem;
}

.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link.active {
    color: var(--primary-blue);
}

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

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

/* Mega Menu */
.mega-menu {
    width: 800px;
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 2rem;
    border-radius: 10px;
    border-top: 4px solid var(--primary-blue);
}
.mega-menu-list a {
    color: var(--dark-grey);
    padding: 8px 12px;
    display: block;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid #eee;
    border-left: 3px solid transparent;
}
.mega-menu-list a:hover {
    color: var(--primary-blue);
    padding-left: 18px;
    background: rgba(15, 66, 129, 0.05);
    border-left: 3px solid var(--leaf-green);
    border-bottom-color: transparent;
}

/* Hero Section */
.hero-section {
    min-height: 85vh;
    background: linear-gradient(rgba(15, 66, 129, 0.9), rgba(15, 66, 129, 0.8)), url('https://images.unsplash.com/photo-1497366216548-37526070297c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    position: relative;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
}

.pulse-animation {
    animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(159, 81, 44, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(159, 81, 44, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(159, 81, 44, 0); }
}

/* Glassmorphism */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(175, 180, 186, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
    border-radius: 15px;
}

/* Smooth transitions for all sections */
section {
    padding: 80px 0;
}

/* About Section */
.about-image-stack img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Service Cards */
.service-card {
    transition: all 0.4s ease;
    border-top: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1) !important;
    border-top: 4px solid var(--gold-accent);
}

.icon-wrapper {
    transition: all 0.3s ease;
    width: 70px;
    height: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.service-card:hover .icon-wrapper {
    transform: scale(1.1);
    background-color: var(--primary-blue) !important;
    color: var(--white) !important;
}

/* Accordion Customization */
.accordion-button:not(.collapsed) {
    background-color: rgba(15, 66, 129, 0.1);
    color: var(--primary-blue);
    font-weight: bold;
}
.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(15, 66, 129, 0.2);
}

/* Timeline */
.process-step {
    position: relative;
    padding: 2rem 1rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border: 1px solid #eee;
    height: 100%;
}
.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(15, 66, 129, 0.1);
    border-color: var(--primary-blue);
}
.step-icon {
    width: 60px; height: 60px;
    font-weight: bold; font-size: 1.2rem;
    background: var(--light-grey);
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem auto;
    transition: all 0.3s;
}
.process-step:hover .step-icon {
    background: var(--primary-blue);
    color: var(--white);
}

/* Logo Sizing */
.navbar-brand img {
    height: 60px;
    width: auto;
}

/* Custom Footer Design */
.custom-footer {
    background-color: #2b3651;
}
.btn-footer-action {
    background-color: #2d6098;
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 0.85rem;
    border: none;
    transition: all 0.3s;
}
.btn-footer-action:hover {
    background-color: #1a426e;
    color: var(--white);
}
.footer-links-dashed li {
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
    color: var(--white);
}
.footer-links-dashed li:last-child {
    border-bottom: none;
}
.footer-links-dashed a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s;
}
.footer-links-dashed a:hover {
    color: var(--gold-accent);
}
.social-icons-footer .social-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
}
.social-icons-footer .social-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}
.footer-address-dashed {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

/* Sticky Contact Buttons */
.sticky-contact-buttons {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sticky-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-size: 24px;
    transition: all 0.3s ease;
    text-decoration: none !important;
}
@keyframes floatBtnPhone {
    0%, 100% {
        transform: translateY(0);
        box-shadow: none;
    }
    50% {
        transform: translateY(-12px);
        box-shadow: 0 0 20px 5px rgba(13, 110, 253, 0.8);
    }
}

@keyframes floatBtnWhatsapp {
    0%, 100% {
        transform: translateY(0);
        box-shadow: none;
    }
    50% {
        transform: translateY(-12px);
        box-shadow: 0 0 20px 5px rgba(37, 211, 102, 0.8);
    }
}

.sticky-btn.phone {
    background-color: #0d6efd;
    animation: floatBtnPhone 2.5s infinite ease-in-out;
}
.sticky-btn.whatsapp {
    background-color: #25d366;
    animation: floatBtnWhatsapp 2.5s infinite ease-in-out;
    animation-delay: 0.3s;
}
.sticky-btn:hover {
    transform: scale(1.1);
}
.sticky-btn.phone:hover {
    box-shadow: 0 0 0 12px rgba(13, 110, 253, 0.35);
}
.sticky-btn.whatsapp:hover {
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0.35);
}

@media (max-width: 768px) {
    .sticky-contact-buttons {
        left: 15px;
        gap: 10px;
    }
    .sticky-btn {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

}

/* Services Grid Styles */
.services-box {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #eee;
}
.services-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: var(--primary-blue);
}
.services-box .icon-img img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 15px;
}
.services-box h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 10px;
}
.services-box p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}
.read-more-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold-accent);
    text-transform: uppercase;
}
.service-link {
    text-decoration: none;
    display: block;
    height: 100%;
}



/* Trademark Dropdown Hover Fix */
.dropdown-menu .dropdown-item.text-white:hover, .dropdown-menu .dropdown-item.text-white:focus {
    color: var(--primary-blue) !important;
    background-color: #ffffff;
}
