/*
 * Custom CSS Style Sheet
 * Elephant Hook Technologies OPC Private Limited
 */

/* --------------------------------------------------------
   1. Design System & Global Styles
   -------------------------------------------------------- */
:root {
    --primary: #2C3E50; /* Slate Grey / Elephant Charcoal */
    --secondary: #E67E22; /* Sunset Orange */
    --accent: #F39C12; /* Sun Yellow-Amber */
    --dark: #1E1F22; /* Dark Charcoal Black */
    --light: #F4F1EA; /* Warm Logo Paper Beige */
    --white: #FFFFFF;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-600: #4B5563;
    
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
}

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

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

p {
    color: var(--gray-600);
}

.text-justify {
    text-align: justify;
}

/* Custom Selection Color */
::selection {
    background-color: var(--secondary);
    color: var(--white);
}

/* --------------------------------------------------------
   2. Preloader Animation
   -------------------------------------------------------- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity var(--transition-normal);
}

.spinner-container {
    text-align: center;
}

.elephant-spinner {
    margin-bottom: 20px;
    animation: bounce 1.5s infinite ease-in-out;
}

.loader-line {
    width: 100px;
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.loader-line::after {
    content: '';
    display: block;
    width: 40px;
    height: 100%;
    background: var(--primary);
    position: absolute;
    left: -40px;
    animation: loadingSlide 1.2s infinite linear;
}

/* --------------------------------------------------------
   3. Custom Buttons & Common Elements
   -------------------------------------------------------- */
.btn {
    font-family: var(--font-heading);
    font-weight: 500;
    padding: 0.75rem 2rem;
    transition: all var(--transition-fast);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}
.btn-primary:hover, .btn-primary:focus {
    background-color: #082d6b;
    border-color: #082d6b;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
}
.btn-secondary:hover, .btn-secondary:focus {
    background-color: #008cc2;
    border-color: #008cc2;
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}
.btn-accent:hover, .btn-accent:focus {
    background-color: #17a673;
    border-color: #17a673;
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline-primary:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.hover-up {
    transition: transform var(--transition-fast) !important;
}
.hover-up:hover {
    transform: translateY(-3px) !important;
}

.section-padding {
    padding: 80px 0;
}

.bg-light-custom {
    background-color: var(--light);
}

.bg-dark-custom {
    background-color: var(--dark);
    color: var(--white);
}

.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 25px;
}
.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: var(--secondary);
    border-radius: 2px;
}

.section-title-center {
    text-align: center;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 45px;
}
.section-title-center::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: var(--secondary);
    border-radius: 2px;
}

/* --------------------------------------------------------
   4. Navbar Styling
   -------------------------------------------------------- */
#mainNavbar {
    padding: 20px 0;
    transition: all var(--transition-normal);
    z-index: 10000;
}

#mainNavbar.navbar-scrolled {
    padding: 10px 0;
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#mainNavbar .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 15px;
    transition: color var(--transition-fast);
}

#mainNavbar .nav-link:hover,
#mainNavbar .nav-link.active {
    color: var(--secondary);
}

/* Navbar Brand Icon wrapper */
.logo-icon-wrapper {
    background-color: var(--secondary);
    color: var(--white);
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    animation: pulseGlow 3s infinite;
}

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

.hero-mesh-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(11, 61, 145, 0.25) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 168, 232, 0.2) 0%, transparent 40%);
    z-index: 1;
}

.hero-backdrop-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    z-index: 2;
    pointer-events: none;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--white);
    margin-bottom: 20px;
}

.hero-title span {
    background: linear-gradient(135deg, var(--white) 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--gray-300);
    margin-bottom: 35px;
    max-width: 650px;
}

/* Animated Floating Graphic */
.floating-graphic-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
}

.floating-graphic {
    animation: floatGraphic 6s infinite ease-in-out;
}

/* --------------------------------------------------------
   6. Statistics Counter Section
   -------------------------------------------------------- */
.stat-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-600);
    text-uppercase;
    letter-spacing: 1px;
}

/* --------------------------------------------------------
   7. Cards & Custom Service Elements
   -------------------------------------------------------- */
.service-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 40px 30px;
    height: 100%;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

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

.service-card:hover::after {
    transform: scaleX(1);
    background-color: var(--secondary);
}

.service-card .icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background-color: rgba(11, 61, 145, 0.05);
    color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
    transition: all var(--transition-fast);
}

.service-card:hover .icon-box {
    background-color: var(--secondary);
    color: var(--white);
}

/* --------------------------------------------------------
   8. Slider Implementations
   -------------------------------------------------------- */
/* Infinite Clients Logo Ticker */
.logo-slider-container {
    overflow: hidden;
    padding: 20px 0;
    position: relative;
}

.logo-slider-container::before,
.logo-slider-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.logo-slider-container::before {
    left: 0;
    background: linear-gradient(to right, var(--white) 0%, transparent 100%);
}

.logo-slider-container::after {
    right: 0;
    background: linear-gradient(to left, var(--white) 0%, transparent 100%);
}

.logo-track {
    display: flex;
    width: calc(250px * 10);
    animation: scrollLogos 25s linear infinite;
}

.logo-slide {
    width: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-card {
    background-color: var(--light);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    width: 190px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all var(--transition-fast);
}

.logo-card:hover {
    filter: grayscale(0%);
    opacity: 1;
    background-color: var(--white);
    border-color: var(--secondary);
}

/* --------------------------------------------------------
   9. Testimonials Section
   -------------------------------------------------------- */
.testimonial-card {
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 40px;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
}

.testimonial-card .quote-icon {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: rgba(11, 61, 145, 0.05);
}

.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
}

/* --------------------------------------------------------
   10. Case Studies Styling
   -------------------------------------------------------- */
.case-card {
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    height: 100%;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.case-header {
    background-color: var(--primary);
    color: var(--white);
    padding: 25px;
    position: relative;
    overflow: hidden;
}

.case-header::after {
    content: '';
    position: absolute;
    right: -10px;
    bottom: -10px;
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.case-metric {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent);
    border-left: 3px solid var(--accent);
    padding-left: 10px;
    margin-top: 10px;
}

/* --------------------------------------------------------
   11. Technology Badge Styles
   -------------------------------------------------------- */
.tech-category-box {
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 30px;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.tech-category-box:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--secondary);
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-badge {
    background-color: var(--light);
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
}

.tech-badge:hover {
    background-color: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
    transform: scale(1.05);
}

/* --------------------------------------------------------
   12. Value Grid Cards (About Page)
   -------------------------------------------------------- */
.value-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all var(--transition-normal);
    height: 100%;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.value-card .value-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(28, 200, 138, 0.08);
    color: var(--accent);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* --------------------------------------------------------
   13. Footer & Contact Layout
   -------------------------------------------------------- */
.footer {
    border-top: 5px solid var(--secondary);
    color: var(--white) !important;
}

.footer p,
.footer span,
.footer li,
.footer small,
.footer .text-muted {
    color: rgba(255, 255, 255, 0.9) !important;
}

.footer-links li a,
.footer a {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: all var(--transition-fast);
}

.footer-links li a:hover,
.footer a:hover {
    color: var(--secondary) !important;
    padding-left: 5px;
}

/* Back to top button style */
.back-to-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 25px;
    bottom: 25px;
    z-index: 9999;
    background: var(--secondary);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: var(--white);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.back-to-top:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.back-to-top.active {
    visibility: visible;
    opacity: 1;
}

/* --------------------------------------------------------
   14. Animations Definition
   -------------------------------------------------------- */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes loadingSlide {
    0% {
        left: -40px;
    }
    100% {
        left: 100px;
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 168, 232, 0.4);
    }
    50% {
        box-shadow: 0 0 15px 5px rgba(0, 168, 232, 0.2);
    }
}

@keyframes floatGraphic {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-250px * 5));
    }
}

.animate-pulse {
    animation: pulseIcon 2s infinite ease-in-out;
}

@keyframes pulseIcon {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Scroll Fade Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
