/* ===================================
   Techno Genesys (TGBD) - Main Stylesheet
   =================================== */

:root {
    --primary-color: #0066CC;
    --secondary-color: #FF6600;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --text-color: #333;
    --border-color: #dee2e6;
    --whatsapp-color: #25d366;
}

/* ===================================
   Global & Typography
   =================================== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
}

/* ===================================
   Buttons & Utilities
   =================================== */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0052a3;
    border-color: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

.btn-outline-dark {
    padding: 10px 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.text-primary { color: var(--primary-color) !important; }
.text-orange { color: var(--secondary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }

.shadow-sm { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important; }
.shadow { box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important; }

/* ===================================
   Navbar
   =================================== */
.navbar {
    padding: 10px 0;
    transition: all 0.3s ease;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    padding: 10px 15px !important;
    color: var(--text-color) !important;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* ===================================
   Hero Section
   =================================== */
.hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
}

.hero-buttons .btn {
    margin: 10px 5px;
}

.hero-image img {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* ===================================
   Services & Cards
   =================================== */
.service-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 10px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

.service-icon {
    height: 80px;
    width: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 102, 204, 0.1);
    border-radius: 50%;
}

.service-card ul li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* ===================================
   Industries Section
   =================================== */
.industry-item {
    background: var(--light-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: default;
}

.industry-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

.industry-item:hover i,
.industry-item:hover p {
    color: white;
}

/* ===================================
   Features (Why Choose Us)
   =================================== */
.feature-box {
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

/* ===================================
   Process Timeline
   =================================== */
.process-timeline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    position: relative;
}

.process-step {
    flex: 0 0 calc(12.5% - 20px);
    text-align: center;
    position: relative;
    min-width: 100px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 15px;
    position: relative;
    z-index: 2;
}

.process-step h5 {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ===================================
   Contact Page & Forms
   =================================== */
.page-header {
    margin-top: 76px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0052a3 100%);
}

.cta-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.form-control,
.form-select {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

/* ===================================
   Footer
   =================================== */
footer {
    background: var(--dark-color) !important;
}

footer a:hover {
    color: var(--secondary-color) !important;
}

/* ===================================
   Floating Action Buttons (Back to Top & WhatsApp)
   =================================== */

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
    text-decoration: none;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
    color: white;
}

/* WhatsApp Floating Chat Widget */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 100px; /* Positioned above the "Back to Top" button */
    right: 30px;
    background-color: var(--whatsapp-color);
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 2px 2px 10px 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: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #FFF;
    transform: scale(1.1);
    animation: none; /* Stop pulsing on hover */
}

.whatsapp-float i {
    margin-top: 2px; /* Visual centering adjustment for the icon */
}

/* WhatsApp Tooltip Styling */
.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background-color: #333;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Tooltip Arrow */
.whatsapp-tooltip::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent transparent #333;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 80px; /* Slight slide-in animation */
}

/* WhatsApp Pulse Animation */
@keyframes pulse-whatsapp {
    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);
    }
}

/* ===================================
   Animations & Scrollbar
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .process-step {
        flex: 0 0 calc(25% - 20px);
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .process-step {
        flex: 0 0 calc(33.333% - 20px);
    }

    /* Adjust Floating Buttons for Mobile */
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 90px;
        right: 20px;
        font-size: 28px;
    }
    
    .whatsapp-tooltip {
        display: none; /* Hide tooltip on mobile to save screen space */
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .process-step {
        flex: 0 0 calc(50% - 20px);
    }
    
    .hero-buttons .btn {
        display: block;
        margin: 10px auto;
        max-width: 250px;
    }
}

/* ===================================
   Team Page Styling
   =================================== */

.team-card {
    transition: all 0.4s ease;
    overflow: hidden;
    border-radius: 12px;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Image Wrapper & Zoom Effect */
.team-img-wrapper {
    overflow: hidden;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    height: 280px; /* Fixed height for uniform cards */
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-img-wrapper img {
    transform: scale(1.1); /* Slight zoom on hover */
}

/* Social Icons */
.team-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.team-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-color);
    color: var(--primary-color);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.team-social a:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}