/* CSS Variables */
:root {
    --black: #000000;
    --cyan-bluish-gray: #abb8c3;
    --white: #ffffff;
    --pale-pink: #f78da7;
    --vivid-red: #cf2e2e;
    --luminous-vivid-orange: #ff6900;
    --luminous-vivid-amber: #fcb900;
    --light-green-cyan: #7bdcb5;
    --vivid-green-cyan: #00d084;
    --pale-cyan-blue: #8ed1fc;
    --vivid-cyan-blue: #0693e3;
    --vivid-purple: #9b51e0;
    --gradient-vivid-cyan-blue-to-purple: linear-gradient(135deg, rgba(6, 147, 227, 1) 0%, rgb(155, 81, 224) 100%);
    --gradient-orange-to-red: linear-gradient(135deg, rgba(255, 105, 0, 1) 0%, rgb(207, 46, 46) 100%);
    --gradient-cool-to-warm: linear-gradient(135deg, rgb(74, 234, 220) 0%, rgb(151, 120, 209) 20%, rgb(207, 42, 186) 40%, rgb(238, 44, 130) 60%, rgb(251, 105, 98) 80%, rgb(254, 248, 76) 100%);
    --shadow-deep: 12px 12px 50px rgba(0, 0, 0, 0.4);
    
    /* Additional Variables */
    --primary-bg: #f8fafc;
    --secondary-bg: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --nav-height: 80px;
    --footer-bg: #1a2b3c;
    
    /* Font Sizes */
    --font-small: 0.875rem;
    --font-medium: 1rem;
    --font-large: 1.125rem;
    --font-x-large: 1.25rem;
    --font-2xl: 1.5rem;
    --font-3xl: 2rem;
    --font-4xl: 2.5rem;
    --font-5xl: 3rem;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--primary-bg);
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Main Content */
.main-content {
    margin-top: var(--nav-height);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide.active {
    opacity: 1;
}

.hero-image-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 10s ease;
}

.hero-slide.active .hero-image-bg {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    height: 100%;
}

.hero-text {
    color: var(--white);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--pale-cyan-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeIn 1s ease forwards;
}

.hero-subtitle {
    font-size: var(--font-2xl);
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--pale-cyan-blue);
}

.hero-description {
    font-size: var(--font-large);
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-placeholder {
    width: 400px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.hero-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.hero-image-placeholder:hover .hero-main-image {
    transform: scale(1.05);
}

.image-placeholder {
    background: var(--white);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-deep);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 250px;
    overflow: hidden;
}

.section-image-content {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-placeholder:hover .section-image-content {
    transform: scale(1.05);
}

.hero-navigation {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 3;
}

.hero-nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-nav-dot.active {
    background: var(--white);
    transform: scale(1.2);
}

.hero-nav-dot:hover {
    background: var(--white);
}

/* Buttons */
.btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: var(--font-medium);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--gradient-vivid-cyan-blue-to-purple);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(6, 147, 227, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(6, 147, 227, 0.4);
     background: transparent;
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--text-primary);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--vivid-cyan-blue);
    transform: translateY(-3px);
}

/* Ripple Effect */
.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Sections */
.section {
    padding: 5rem 0;
    position: relative;
}

.section:nth-child(even) {
    background: var(--secondary-bg);
}

.section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.section-content.reverse {
    grid-template-columns: 1fr 1fr;
}

.section-header {
    margin-bottom: 3rem;
}

.section-header.text-center {
    text-align: center;
}

.section-title {
    font-size: var(--font-4xl);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.section-description {
    font-size: var(--font-large);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.section-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.feature i {
    font-size: 1.5rem;
    color: var(--vivid-cyan-blue);
}

.service-list {
    list-style: none;
    margin-top: 2rem;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem 0;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateX(5px);
}

.service-item i {
    color: var(--vivid-green-cyan);
    font-size: 1.25rem;
}

/* Terminals Section */
.terminals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.terminal-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    border: 1px solid var(--border-color);
}

.terminal-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.terminal-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-vivid-cyan-blue-to-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    overflow: hidden;
}

.terminal-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-vivid-cyan-blue-to-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.terminal-icon i {
    font-size: 2rem;
    color: var(--white);
}

.terminal-title {
    font-size: var(--font-x-large);
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.terminal-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.terminal-features {
    list-style: none;
    text-align: left;
}

.terminal-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.terminal-features li:hover {
    transform: translateX(5px);
}

.terminal-features i {
    color: var(--vivid-green-cyan);
    font-size: 0.875rem;
}

/* Energy Section */
.energy-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2.5rem 0;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: var(--font-4xl);
    font-weight: 800;
    color: var(--vivid-green-cyan);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: var(--font-small);
    color: var(--text-secondary);
    font-weight: 500;
}

.energy-initiatives {
    margin-top: 3rem;
}

.initiative {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.initiative:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.initiative i {
    font-size: 2rem;
    color: var(--vivid-green-cyan);
    margin-top: 0.25rem;
}

.initiative h4 {
    font-size: var(--font-large);
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.initiative p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsibility Section */
.responsibility-pillars {
    margin-top: 3rem;
}

.pillar {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.pillar:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.pillar-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-vivid-cyan-blue-to-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pillar-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.pillar-content h4 {
    font-size: var(--font-large);
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.pillar-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Careers Section */
.careers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.career-benefit {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
}

.career-benefit:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-vivid-cyan-blue-to-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.benefit-icon i {
    font-size: 2rem;
    color: var(--white);
}

.career-benefit h3 {
    font-size: var(--font-x-large);
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.career-benefit p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.careers-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--gradient-vivid-cyan-blue-to-purple);
    border-radius: 20px;
    color: var(--white);
    margin-top: 3rem;
    transition: all 0.3s ease;
}

.careers-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(6, 147, 227, 0.4);
}

.careers-cta h3 {
    font-size: var(--font-3xl);
    font-weight: 700;
    margin-bottom: 1rem;
}

.careers-cta p {
    font-size: var(--font-large);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.career-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.career-buttons .btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.career-buttons .btn-secondary:hover {
    background: var(--white);
    color: var(--vivid-cyan-blue);
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 1.5rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: var(--font-small);
    color: var(--text-secondary);
}

.news-category {
    color: white;
    font-weight: 600;
}

.news-title {
    font-size: var(--font-large);
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.news-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--vivid-cyan-blue);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-link:hover {
    color: var(--vivid-purple);
    transform: translateX(5px);
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../assets/MAFINA/mafina-images-pack/tank\ 6.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: var(--font-4xl);
    margin-bottom: 1.5rem;
}

.cta-description {
    font-size: var(--font-large);
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--footer-bg);
    color: var(--white);
    padding: 5rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-title {
    font-size: var(--font-large);
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-description {
    opacity: 0.8;
    line-height: 1.6;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.contact-item i {
    margin-top: 0.25rem;
    color: var(--pale-cyan-blue);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: var(--white);
    opacity: 0.8;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    opacity: 1;
    color: var(--pale-cyan-blue);
    transform: translateX(5px);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    opacity: 0.7;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.legal-link {
    color: var(--white);
    opacity: 0.7;
    text-decoration: none;
    transition: all 0.3s ease;
}

.legal-link:hover {
    opacity: 1;
    color: var(--pale-cyan-blue);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-vivid-cyan-blue-to-purple);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(6, 147, 227, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 16px rgba(6, 147, 227, 0.4);
}

/* Animation Classes */
.typewriter {
    overflow: hidden;
    white-space: nowrap;
    animation: typewriter 3s steps(20) forwards;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    animation: fadeInLeft 1s ease forwards;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    animation: fadeInRight 1s ease forwards;
}

.zoom-in {
    transform: scale(0.8);
    opacity: 0;
    animation: zoomIn 1s ease forwards;
}

.zoom-in-hover:hover {
    transform: scale(1.05);
}

/* Keyframes */
@keyframes typewriter {
    0% { width: 0; }
    100% { width: 100%; }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInStaggered {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 0 1rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .section-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .section-content.reverse {
        grid-template-columns: 1fr;
    }

    .terminals-grid {
        grid-template-columns: 1fr;
    }

    .energy-stats {
        grid-template-columns: 1fr;
    }

    .careers-grid {
        grid-template-columns: 1fr;
    }

    .career-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-image-placeholder {
        width: 300px;
        height: 225px;
        margin: 0 auto;
    }

    .section-title {
        font-size: var(--font-3xl);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: var(--font-small);
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}