@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette - Premium Oilfield Aesthetic */
    --clr-primary: #D32F2F; /* Industrial Red */
    --clr-primary-glow: rgba(211, 47, 47, 0.4);
    --clr-secondary: #1A1A1A; /* Deep Carbon */
    --clr-accent: #FFC107; /* Caution Amber */
    
    --clr-bg-deep: #050505;
    --clr-bg-surface: #0E0E0E;
    --clr-bg-card: #141414;
    
    --clr-text-main: #F5F5F5;
    --clr-text-muted: #A0A0A0;
    --clr-text-dim: #666666;
    
    /* Typography */
    --ff-heading: 'Outfit', sans-serif;
    --ff-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Spacing & Layout */
    --container-width: 1300px;
    --section-padding: clamp(5rem, 10vw, 8rem);
    --border-radius: 12px;
    
    /* Transitions */
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

/* Base Resets */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--clr-bg-deep);
    color: var(--clr-text-main);
    font-family: var(--ff-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography Utility */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--ff-heading);
    font-weight: 700;
    line-height: 1.1;
    color: var(--clr-text-main);
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 900; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.5rem, 2.5vw, 2.25rem); }

p { font-size: 1.1rem; color: var(--clr-text-muted); }

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, #888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-accent { color: var(--clr-primary); }

/* Layout Components */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

.grid { display: grid; gap: 2rem; }
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    
    .flex-between { flex-direction: column; gap: 1.5rem; text-align: center; }
    .site-header .container.flex-between { flex-direction: row; text-align: left; }
}

/* Premium Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
}

.site-header.scrolled {
    padding: 1rem 0;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--clr-text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-fast);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--clr-primary);
}

/* Logo Design */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--clr-primary);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    position: relative;
}

.logo-text {
    font-family: var(--ff-heading);
    font-weight: 900;
    font-size: 1.5rem;
    color: #fff;
    line-height: 0.9;
}

.logo-text span {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--clr-text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-family: var(--ff-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    text-decoration: none;
    font-size: 0.85rem;
}

.btn-primary {
    background: var(--clr-primary);
    color: white;
    box-shadow: 0 4px 15px var(--clr-primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--clr-primary-glow);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-outline:hover {
    background: white;
    color: black;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 5rem;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(211, 47, 47, 0.15) 0%, transparent 50%),
                linear-gradient(to right, rgba(5,5,5,0.95) 0%, rgba(5,5,5,0.4) 100%);
    z-index: 1;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.subtitle {
    display: inline-block;
    color: var(--clr-primary);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 800;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    border-left: 3px solid var(--clr-primary);
    padding-left: 1rem;
}

/* Cards & Interaction */
.card {
    background: var(--clr-bg-card);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

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

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(211, 47, 47, 0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.card:hover::before {
    transform: scaleX(1);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(211, 47, 47, 0.1);
    color: var(--clr-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Image Integration */
.image-reveal {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.image-reveal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-reveal:hover img {
    transform: scale(1.05);
}

/* 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);
}

/* Footer */
.site-footer {
    background: var(--clr-bg-surface);
    padding: 6rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-title {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--clr-text-muted);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--clr-primary);
    padding-left: 5px;
}

/* Mobile Menu Button Styling */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1100;
    padding: 10px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: white;
    transition: var(--transition-fast);
}

.mobile-menu-btn.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 968px) {
    .mobile-menu-btn { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--clr-bg-deep);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: var(--transition-smooth);
        z-index: 1050;
    }

    .nav-links.active { right: 0; }
    
    .nav-links a { font-size: 1.5rem; }

    /* Fix sections for mobile spacing */
    .section { padding: 4rem 0; }
    
    .hero { text-align: center; padding-top: 8rem; }
    .hero-btns { justify-content: center; }
    
    .grid { gap: 1.5rem; }
    
    .card { padding: 2rem; }
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
    .footer-col { display: flex; flex-direction: column; align-items: center; }
    .footer-bottom { flex-direction: column; gap: 2rem; text-align: center; }

    /* Specific content adjustments */
    .section .grid-2 { gap: 3rem; }
    .section .grid-2 div:nth-child(2) { order: -1; } /* Image above text on mobile */
    .image-reveal { height: 350px !important; }
}

@media (max-width: 500px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .subtitle { font-size: 0.75rem; letter-spacing: 2px; }
}
