/* 
   Sultech Corporate Website
   Theme: Teal and Gold
*/

:root {
    --primary-teal: #114232;
    --primary-teal-light: #1A5340;
    --primary-teal-dark: #0A2E22;
    --accent-gold: #C99A45;
    --accent-gold-hover: #b58838;
    --text-dark: #2C3333;
    --text-light: #F5F5F5;
    --bg-light: #F9F9F9;
    --white: #FFFFFF;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

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

/* Custom Utilities */
.bg-teal { background-color: var(--primary-teal) !important; }
.text-teal { color: var(--primary-teal) !important; }
.bg-gold { background-color: var(--accent-gold) !important; }
.text-gold { color: var(--accent-gold) !important; }

.font-outfit { font-family: 'Outfit', sans-serif; }
.font-inter { font-family: 'Inter', sans-serif; }

/* Buttons */
.btn-gold {
    background-color: var(--accent-gold);
    color: var(--white);
    border: none;
    transition: all 0.3s ease;
}
.btn-gold:hover {
    background-color: var(--accent-gold-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(201, 154, 69, 0.3);
}

.btn-outline-gold {
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    background: transparent;
    transition: all 0.3s ease;
}
.btn-outline-gold:hover {
    background: var(--accent-gold);
    color: var(--white);
}

.btn-outline-teal {
    border: 2px solid var(--primary-teal);
    color: var(--primary-teal);
    background: transparent;
    transition: all 0.3s ease;
}
.btn-outline-teal:hover {
    background: var(--primary-teal);
    color: var(--white);
}

/* Navbar */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem;
    position: relative;
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--accent-gold);
}
.navbar-dark .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: var(--accent-gold);
    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);
}

/* Loading Animation */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-teal);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-content {
    text-align: center;
    color: var(--white);
}

.voltoline-svg-logo {
    width: 100%;
    max-width: 600px;
    height: auto;
}

.voltoline-text {
    font-family: 'Outfit', sans-serif;
    font-size: 80px;
    font-weight: 900;
    font-style: italic;
    fill: transparent;
    stroke: var(--white);
    stroke-width: 1.5;
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    animation: drawText 2s ease forwards, fillText 0.5s ease forwards 2s, glowText 2s infinite alternate 2.5s;
    letter-spacing: 2px;
}

.lightning-bolt {
    fill: var(--accent-gold);
    opacity: 0;
    transform-origin: center;
    transform: scale(0);
    animation: strike 0.3s ease-in forwards 1.8s, flicker 0.2s ease-in-out infinite 2.1s;
}

@keyframes drawText {
    to { stroke-dashoffset: 0; }
}

@keyframes fillText {
    from { fill: transparent; stroke: var(--white); }
    to { fill: var(--white); stroke: transparent; }
}

@keyframes glowText {
    from { filter: drop-shadow(0 0 2px rgba(255,255,255,0.2)); }
    to { filter: drop-shadow(0 0 15px rgba(201,154,69,0.8)); }
}

@keyframes strike {
    0% { transform: scale(0) translateY(-50px); opacity: 0; }
    50% { transform: scale(1.5) translateY(10px); opacity: 1; filter: drop-shadow(0 0 20px var(--accent-gold)); }
    100% { transform: scale(1) translateY(0); opacity: 0.8; }
}

@keyframes flicker {
    0% { opacity: 0.8; }
    50% { opacity: 1; filter: drop-shadow(0 0 15px var(--accent-gold)); }
    100% { opacity: 0.8; }
}

.loader-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    margin-top: 20px;
    opacity: 0;
    animation: fadeIn 1s forwards 1.8s;
}

.loader-progress {
    width: 200px;
    height: 2px;
    background-color: rgba(255,255,255,0.2);
    margin: 30px auto 0;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 0.5s forwards 2s;
}

.loader-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: var(--accent-gold);
    transform: translateX(-100%);
    animation: progressFill 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards 2.2s;
}

/* Animations */
@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    to { opacity: 1; }
}
@keyframes scaleIn {
    to { transform: scaleX(1); }
}
@keyframes progressFill {
    to { transform: translateX(0); }
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 140px 0 120px 0;
    background-image: linear-gradient(135deg, rgba(17, 66, 50, 0.85), rgba(10, 46, 34, 0.95)), url('../images/manufacturing_plant_1786714191148.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    overflow: hidden;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 10px;
    background: linear-gradient(90deg, var(--accent-gold), transparent);
}

/* Inner Page Headers */
.page-header-bg {
    position: relative;
    padding: 80px 0;
    background-image: linear-gradient(135deg, rgba(17, 66, 50, 0.8), rgba(201, 154, 69, 0.2)), url('../images/hero_pipes_1786713968413.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    border-bottom: 4px solid var(--accent-gold);
}
.page-header-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(17, 66, 50, 0.75);
    z-index: 1;
}
.page-header-bg .container {
    position: relative;
    z-index: 2;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at top right, var(--primary-teal-light) 0%, transparent 70%);
}
.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background-color: rgba(201, 154, 69, 0.1);
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
}
.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}
.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-image-round {
    width: 360px;
    height: 360px;
    max-width: 85vw;
    max-height: 85vw;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 8px solid var(--accent-gold);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 25px rgba(201, 154, 69, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-image-round:hover {
    transform: scale(1.03);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 35px rgba(201, 154, 69, 0.5);
}

.hero-image-round img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Feature Cards */
.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border-bottom: 4px solid transparent;
}
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-bottom-color: var(--accent-gold);
}
.feature-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(17, 66, 50, 0.05);
    color: var(--primary-teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* Footer links */
.footer-link {
    transition: color 0.3s ease;
}
.footer-link:hover {
    color: var(--accent-gold) !important;
}

/* Floating WhatsApp Button */
.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: 2px 2px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: whatsappPulse 2s infinite;
}
.whatsapp-float:hover {
    background-color: #128C7E;
    color: #FFF;
    transform: scale(1.1);
    box-shadow: 2px 2px 25px rgba(37,211,102,0.6);
}
.whatsapp-float i {
    margin-top: -2px;
}

@keyframes whatsappPulse {
    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); }
}

/* CTA Pulse Animation */
.pulse-animation {
    animation: ctaPulse 2s infinite;
}

@keyframes ctaPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(201, 154, 69, 0.7); }
    50% { transform: scale(1.03); box-shadow: 0 0 0 10px rgba(201, 154, 69, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(201, 154, 69, 0); }
}

/* Electric Spark Hover Effect */
.electric-hover {
    position: relative;
    transition: all 0.3s ease;
    z-index: 1;
}

.electric-hover::after {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(90deg, transparent, rgba(201, 154, 69, 0.8), transparent);
    background-size: 200% 100%;
    z-index: -1;
    opacity: 0;
    border-radius: inherit;
    pointer-events: none;
}

.electric-hover:hover {
    box-shadow: 0 0 15px rgba(201, 154, 69, 0.5), inset 0 0 8px rgba(201, 154, 69, 0.3);
    animation: sparkFlicker 0.2s ease-in-out 2;
}

.electric-hover:hover::after {
    opacity: 1;
    animation: electricFlow 0.8s linear infinite;
}

/* Hover Lift Effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}
.hover-lift:hover, .hover-lift:focus-within {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important;
    z-index: 10;
}

@keyframes sparkFlicker {
    0% { filter: brightness(1); }
    50% { filter: brightness(1.3) contrast(1.1); box-shadow: 0 0 25px rgba(201, 154, 69, 0.8); }
    100% { filter: brightness(1); }
}

@keyframes electricFlow {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.btn-gold.electric-hover:hover {
    box-shadow: 0 0 20px rgba(201, 154, 69, 0.8), 0 0 40px rgba(201, 154, 69, 0.4);
    color: #fff;
}

/* Cinematic Reveal Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.reveal-fade {
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity;
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.is-revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Base Page Load Animation */
body {
    animation: pageLoadFade 0.8s ease-out forwards;
}

@keyframes pageLoadFade {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Cinematic Section Hover */
.section-hover-cinematic {
    transition: background-color 0.5s ease, box-shadow 0.5s ease;
}
.section-hover-cinematic:hover {
    background-color: rgba(6, 64, 73, 0.02); /* Extremely subtle teal tint */
}

/* Cinematic Dropdown Menus */
.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    padding: 15px 10px;
    margin-top: 10px;
    
    /* Animation base states */
    display: block;
    visibility: hidden;
    opacity: 0;
    transform: translateY(15px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform-origin: top center;
}

.dropdown-menu.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.dropdown-item {
    border-radius: 8px;
    padding: 10px 20px;
    margin-bottom: 2px;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: rgba(247, 168, 0, 0.1);
    color: var(--primary-teal);
    transform: translateX(5px);
}

.dropdown-header {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    padding-left: 20px;
}
