/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0d47a1;
    --secondary-color: #1976d2;
    --accent-color: #ff6b35;
    --accent-light: #ff8c65;
    --text-dark: #1a1a1a;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --bg-dark: #0a1929;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, #0d47a1 0%, #1976d2 50%, #42a5f5 100%);
    --gradient-accent: linear-gradient(135deg, #ff6b35 0%, #ff8c65 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    overflow-x: hidden;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
}

.logo h2 {
    color: var(--primary-color);
    font-size: 1.6rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    margin-top: 70px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: zoomIn 20s ease-in-out infinite alternate;
}

@keyframes zoomIn {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.85) 0%, rgba(25, 118, 210, 0.75) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    padding: 2rem;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    opacity: 0.95;
    font-weight: 400;
    font-family: 'Poppins', sans-serif;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.8s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid var(--white);
    border-radius: 25px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: var(--shadow);
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, #ff5722 0%, #ff6b35 100%);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* Section Styles */
section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.title-underline {
    width: 100px;
    height: 5px;
    background: var(--gradient-accent);
    margin: 0 auto;
    border-radius: 3px;
    position: relative;
}

.title-underline::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
}

.section-intro {
    text-align: center;
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 4rem;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    line-height: 1.8;
}

/* About Section */
.about {
    background: var(--white);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: rotate(-2deg);
    transition: var(--transition);
}

.about-image:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-text {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-light);
    font-weight: 300;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.feature-card:hover .feature-icon-wrapper {
    transform: rotate(360deg) scale(1.1);
}

.feature-icon {
    width: 40px;
    height: 40px;
    color: var(--white);
    stroke-width: 2;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 300;
}

/* Mission Section */
.mission {
    position: relative;
    background: var(--bg-dark);
    color: var(--white);
    overflow: hidden;
}

.mission-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.mission-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.mission-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.9) 0%, rgba(10, 25, 41, 0.95) 100%);
    z-index: 1;
}

.mission .container {
    position: relative;
    z-index: 2;
}

.mission .section-title {
    color: var(--white);
}

.mission .title-underline {
    background: var(--accent-color);
}

.mission-content {
    max-width: 950px;
    margin: 0 auto;
    position: relative;
}

.mission-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    color: var(--accent-color);
    animation: pulse 2s ease-in-out infinite;
}

.mission-icon svg {
    width: 100%;
    height: 100%;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.mission-content p {
    font-size: 1.2rem;
    line-height: 2;
    text-align: center;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 300;
}

/* Services Section */
.services {
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 5rem;
}

.service-card {
    background: var(--white);
    border-radius: 25px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.service-card:hover::after {
    opacity: 0.95;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-xl);
}

.service-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 2.5rem;
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.service-card:hover .service-content {
    color: var(--white);
}

.service-content h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-card:hover .service-content h3 {
    color: var(--white);
}

.service-content p {
    color: var(--text-light);
    line-height: 1.7;
    font-weight: 300;
    transition: var(--transition);
}

.service-card:hover .service-content p {
    color: rgba(255, 255, 255, 0.95);
}

.detailed-services {
    margin-top: 5rem;
}

.subsection-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 3rem 0 2rem;
    font-weight: 700;
    text-align: center;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.service-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    border-left: 5px solid var(--accent-color);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.service-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--primary-color);
}

.service-item h4 {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Solutions Section */
.solutions {
    background: var(--white);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.solution-card {
    background: var(--white);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-accent);
    z-index: 1;
}

.solution-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.solution-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.solution-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.solution-card:hover .solution-image img {
    transform: scale(1.15);
}

.solution-content {
    padding: 2.5rem;
    text-align: center;
}

.solution-content h3 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.solution-content p {
    color: var(--text-light);
    font-size: 1.15rem;
    font-weight: 300;
}

/* QHSE Section */
.qhse {
    background: var(--bg-light);
}

.qhse-content {
    max-width: 950px;
    margin: 0 auto;
}

.qhse-content > p {
    font-size: 1.2rem;
    line-height: 1.9;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 4rem;
    font-weight: 300;
}

.qhse-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.qhse-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    box-shadow: var(--shadow);
}

.qhse-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.qhse-item.highlight {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: var(--accent-color);
    transform: scale(1.05);
}

.qhse-item.highlight:hover {
    transform: scale(1.08) translateY(-8px);
}

.qhse-item h4 {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.qhse-item.highlight h4 {
    color: var(--white);
}

/* Contact Section */
.contact {
    background: var(--gradient-primary);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.contact-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.4;
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.85) 0%, rgba(25, 118, 210, 0.75) 100%);
    z-index: 1;
}

.contact .container {
    position: relative;
    z-index: 2;
}

.contact .section-title {
    color: var(--white);
}

.contact .title-underline {
    background: var(--accent-color);
}

.contact-content {
    max-width: 900px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.contact-item {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-10px);
    border-color: var(--accent-color);
}

.contact-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.contact-item a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.15rem;
    transition: var(--transition);
    font-weight: 400;
    display: inline-block;
}

.contact-item a:hover {
    color: var(--accent-color);
    transform: scale(1.05);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--white);
    text-align: center;
    padding: 2.5rem 0;
    font-weight: 300;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
    text-decoration: none;
    animation: pulse-whatsapp 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
    color: var(--white);
    fill: var(--white);
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: var(--text-dark);
    color: var(--white);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    pointer-events: none;
    font-family: 'Poppins', sans-serif;
    box-shadow: var(--shadow-lg);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid var(--text-dark);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        transform: rotate(0deg);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 1.2rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .about-features,
    .services-grid,
    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .services-list {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .container {
        padding: 0 15px;
    }

    section {
        padding: 4rem 0;
    }

    .hero {
        min-height: 600px;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }

    .whatsapp-tooltip {
        display: none;
    }
}
