/* =================================
   Fan-Tek Ventures Limited - Styles
   ================================= */

/* CSS Variables */
:root {
    --primary-color: #E8431C;
    --primary-dark: #D63912;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 30px rgba(0,0,0,0.15);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styles */
.logo-container {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.logo-img {
    width: 200px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    margin-top: -5px;
}

.logo-img img {
    transform: scale(1.3);
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: saturate(1.5) contrast(1.1);
    transition: all 0.4s ease;
}

.logo-img img:hover {
    filter: drop-shadow(0 0 8px rgba(232, 67, 28, 0.6));
    transform: scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-text .main {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    letter-spacing: 2px;
    line-height: 1;
}

.logo-text .sub {
    font-size: 11px;
    color: var(--text-light);
    letter-spacing: 1px;
    margin-top: 4px;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    margin-top: 90px;
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1524522173746-f628baad3644?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(232, 67, 28, 0.92), rgba(214, 57, 18, 0.88));
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    animation: float 20s infinite;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    color: white;
    padding: 60px 20px;
}

.hero h1 {
    font-size: 4em;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.5em;
    margin-bottom: 15px;
    opacity: 0.95;
}

.hero .established {
    font-size: 1.2em;
    margin-bottom: 25px;
    opacity: 0.9;
    font-style: italic;
}

.hero .tagline {
    font-size: 1.6em;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.4;
    max-width: 900px;
}

.hero .sub-tagline {
    font-size: 1.2em;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 800px;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-button {
    padding: 18px 45px;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.3);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.cta-button.secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* Stats Bar */
.stats-bar {
    background: var(--white);
    padding: 50px 20px;
    box-shadow: 0 -5px 30px rgba(0,0,0,0.1);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s;
}

.stat-item:hover {
    background: var(--bg-light);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1em;
    color: var(--text-dark);
    font-weight: 500;
}

/* Gallery Section */
.gallery {
    padding: 80px 20px;
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-item {
    position: relative;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: all 0.4s;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(232, 67, 28, 0.3);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.8));
    z-index: 1;
    transition: opacity 0.3s;
}

.gallery-item:hover::before {
    background: linear-gradient(to bottom, rgba(232, 67, 28, 0.3), rgba(0,0,0,0.7));
}

.gallery-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    color: white;
    z-index: 2;
}

.gallery-content h3 {
    font-size: 1.6em;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.gallery-content p {
    font-size: 1em;
    opacity: 0.95;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Sections */
.section {
    padding: 80px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--primary-color);
    margin: 20px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.3em;
    color: var(--text-light);
    margin-bottom: 60px;
}

/* Vision & Mission */
.vision-mission {
    background: var(--bg-light);
}

.vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.vm-card {
    padding: 45px;
    background: white;
    border-radius: 15px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.vm-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(232, 67, 28, 0.2);
}

.vm-card h3 {
    color: var(--primary-color);
    font-size: 2em;
    margin-bottom: 20px;
}

.vm-card p {
    font-size: 1.15em;
    line-height: 1.8;
    color: var(--text-light);
}

/* Services */
.services {
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    border-top: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(232, 67, 28, 0.1), transparent);
    transition: left 0.5s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(232, 67, 28, 0.2);
    background: white;
}

.service-icon {
    font-size: 3.5em;
    margin-bottom: 20px;
    display: inline-block;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.6em;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05em;
}

/* Engineering Section */
.engineering-section {
    background: #f9f9f9;
}

/* Safety Motto */
.safety-motto {
    background: var(--text-dark);
    color: white;
    padding: 50px 20px;
    text-align: center;
    font-size: 2em;
    font-weight: bold;
    letter-spacing: 3px;
    border-top: 5px solid var(--primary-color);
    border-bottom: 5px solid var(--primary-color);
}

/* Values */
.values {
    background: var(--bg-light);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-card {
    text-align: center;
    padding: 35px;
    background: white;
    border-radius: 15px;
    transition: all 0.4s;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.value-card:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    transform: scale(1.08);
    box-shadow: 0 10px 30px rgba(232, 67, 28, 0.3);
}

.value-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.value-card h4 {
    font-size: 1.4em;
    margin-bottom: 12px;
}

/* Partnership */
.partnership {
    padding: 70px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.partnership h3 {
    font-size: 2.2em;
    margin-bottom: 20px;
}

.partnership p {
    font-size: 1.3em;
    margin-bottom: 12px;
}

.partnership a {
    color: white;
    text-decoration: none;
    border-bottom: 2px solid white;
    font-weight: bold;
    transition: all 0.3s;
}

.partnership a:hover {
    opacity: 0.8;
}

/* Tables */
.table-container {
    overflow-x: auto;
    margin-top: 30px;
}

.products-table,
.equipment-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.products-table caption,
.equipment-table caption {
    font-size: 1.2em;
    font-weight: bold;
    padding: 15px;
    text-align: left;
    color: var(--primary-color);
}

.products-table thead tr,
.equipment-table thead tr {
    background: var(--primary-color);
    color: white;
    text-align: left;
}

.products-table th,
.equipment-table th,
.products-table td,
.equipment-table td {
    padding: 15px;
}

.products-table tbody tr,
.equipment-table tbody tr {
    border-bottom: 1px solid #ddd;
}

.products-table tbody tr:hover,
.equipment-table tbody tr:hover {
    background: var(--bg-light);
}

.products-section,
.equipment-section {
    background: white;
}

/* QHSE Section */
.qhse-section {
    background: #002d5b;
    color: #ffffff;
}

.qhse-title {
    color: #ffffff;
}

.qhse-title::after {
    background: #ffcc00;
}

.qhse-subtitle {
    color: #ffffff;
    opacity: 1;
}

.qhse-card {
    background: rgba(255,255,255,0.1);
    border: 1.5px solid #ffffff;
    color: #ffffff;
}

.qhse-card h3 {
    color: #ffcc00;
}

.qhse-card p {
    color: #ffffff;
}

.ncdmb-notice {
    margin-top: 40px;
    text-align: center;
    padding: 25px;
    border: 2px dashed #ffcc00;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
}

.ncdmb-notice p {
    color: #ffffff;
    font-weight: bold;
    font-size: 1.1rem;
}

.ncdmb-notice strong {
    font-weight: bold;
}

/* Clients */
.clients {
    background: white;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.client-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border-left: 4px solid var(--primary-color);
}

.client-card:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(232, 67, 28, 0.2);
    background: white;
}

.client-card h4 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.25em;
}

.client-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Infrastructure Section */
.infrastructure-section {
    background: #f4f4f4;
}

.resource-card {
    text-align: center;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.resource-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* Contact Section */
.contact {
    padding: 80px 20px;
    background: var(--text-dark);
    color: white;
}

.contact-title {
    color: white;
}

.contact-title::after {
    background: white;
}

.contact-subtitle {
    color: rgba(255,255,255,0.8);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.contact-card {
    background: rgba(255,255,255,0.05);
    padding: 35px;
    border-radius: 15px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
}

.contact-card:hover {
    background: rgba(232, 67, 28, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.contact-card h3 {
    margin-bottom: 20px;
    font-size: 1.6em;
    color: var(--primary-color);
}

.contact-card p {
    margin-bottom: 12px;
    line-height: 1.8;
}

.contact-card a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 1px solid transparent;
}

.contact-card a:hover {
    color: white;
    border-bottom-color: white;
}

/* Contact Form */
.form-wrapper {
    max-width: 800px;
    margin: 0 auto 50px;
}

.quote-form {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    color: #333;
}

.quote-form h3 {
    margin-bottom: 20px;
    text-align: center;
    color: var(--primary-color);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
    margin-top: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-btn {
    margin-top: 20px;
    width: 100%;
    background: var(--primary-color);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(232, 67, 28, 0.3);
}

/* Footer */
footer {
    background: #0a0a0a;
    color: white;
    text-align: center;
    padding: 40px 20px;
}

footer p {
    opacity: 0.8;
    margin-bottom: 10px;
}

.footer-sub {
    margin-top: 10px;
    font-size: 0.9em;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(232, 67, 28, 0.4);
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(232, 67, 28, 0.6);
}

.back-to-top.show {
    display: flex;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: pulse-green 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    color: white;
}

.wa-tooltip {
    visibility: hidden;
    width: 120px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
}

.whatsapp-float:hover .wa-tooltip {
    visibility: visible;
    opacity: 1;
}

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

/* Responsive Design */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 90px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 30px 0;
        gap: 25px;
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5em;
    }

    .vm-grid {
        grid-template-columns: 1fr;
    }

    .logo-text .main {
        font-size: 22px;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2em;
    }

    .hero .tagline {
        font-size: 1.2em;
    }

    .section-title {
        font-size: 2em;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-button {
        width: 100%;
        text-align: center;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .logo-img {
        width: 95px;
        height: auto;
    }

    .logo-text .main {
        font-size: 22px;
        margin-left: -5px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        max-width: 100%;
    }
}