/* Base & Reset */
:root {
    --bg-dark: #0f1115;
    --bg-darker: #08090a;
    --bg-light: #f4f5f7;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dark: #1e293b;
    --accent-primary: #ffb703; /* Industrial Yellow */
    --accent-hover: #ff9e00;
    --metallic-silver: #c0c6cc;
    --border-color: rgba(255, 255, 255, 0.1);
    
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Sections */
.section-dark {
    background-color: var(--bg-dark);
    position: relative;
}

.section-light {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.honeycomb-bg {
    background-image: url('images/bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
}

.honeycomb-bg-subtle {
    background-image: linear-gradient(rgba(15, 17, 21, 0.95), rgba(15, 17, 21, 0.95)), url('images/bg.png');
    background-size: 300px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(15, 17, 21, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-subtext {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-main);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-primary);
}

/* Buttons */
.btn-primary, .btn-primary-outline, .btn-secondary {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: var(--bg-darker);
    border: 2px solid var(--accent-primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(255, 183, 3, 0.4);
}

.btn-primary-outline {
    background-color: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
}

.btn-primary-outline:hover {
    background-color: var(--accent-primary);
    color: var(--bg-darker);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 5rem;
}

.hero .overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(8, 9, 10, 0.9) 0%, rgba(15, 17, 21, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 2rem;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero h1 span {
    color: var(--accent-primary);
    display: block;
}

.hero p {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--metallic-silver);
    margin-bottom: 3rem;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* About Section */
.about {
    padding: 8rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text h2 span {
    color: #ff9e00; /* Darker accent for light bg */
}

.about-text .lead {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border-bottom: 4px solid var(--accent-primary);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-muted);
}

/* Services Section */
.services {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 600px;
    margin-inline: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
    text-transform: uppercase;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.service-card:hover {
    transform: translateY(-15px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-primary);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(255, 183, 3, 0.1);
    color: var(--accent-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .icon-wrapper {
    background: var(--accent-primary);
    color: var(--bg-darker);
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background-color: var(--bg-darker);
    padding: 4rem 0 0 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.brand-col p {
    margin-top: 1rem;
    color: var(--text-muted);
    max-width: 400px;
}

.links-col h3 {
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
}

.links-col p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.footer-bottom {
    padding: 1.5rem 5%;
    background-color: #050607;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
.reveal, .reveal-left, .reveal-right, .reveal-up {
    opacity: 0;
}

.reveal.active {
    animation: fadeIn 1s ease forwards;
}

.reveal-left.active {
    animation: fadeLeft 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.reveal-right.active {
    animation: fadeRight 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.reveal-up.active {
    animation: fadeUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Basic mobile nav hidden for simplicity */
    }
    
    .about-grid, .footer-content {
        grid-template-columns: 1fr;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

/* Projects Gallery */
.projects-header {
    padding: 12rem 0 4rem 0;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    padding-bottom: 8rem;
}

.project-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 1px solid var(--border-color);
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-card:hover .project-image {
    transform: scale(1.08);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8, 9, 10, 0.95) 0%, rgba(8, 9, 10, 0.2) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0.9;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(8, 9, 10, 0.95) 0%, rgba(8, 9, 10, 0.6) 100%);
}

.project-title {
    color: var(--accent-primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-desc {
    color: var(--text-main);
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transition-delay: 0.1s;
}

.project-card:hover .project-title,
.project-card:hover .project-desc {
    transform: translateY(0);
    opacity: 1;
}

/* Mobile Responsiveness Improvements */
@media (max-width: 900px) {
    .about-grid, .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .about-text h2 {
        font-size: 2rem;
    }
    .about-stats {
        justify-content: center;
        margin-top: 1rem;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
}

@media (max-width: 600px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    .nav-links {
        display: flex; /* Override previous display: none */
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    .nav-links a {
        font-size: 0.9rem;
        padding: 0.2rem 0;
    }
    .btn-primary-outline {
        padding: 0.4rem 1rem;
    }
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .projects-header {
        padding: 10rem 0 2rem 0;
    }
    .projects-header h1 {
        font-size: 2.5rem;
    }
}

/* Fixes from Mobile Verification */
@media (max-width: 600px) {
    .hero {
        padding-top: 8rem; /* Prevent overlap with header */
    }
    .hero h1 {
        font-size: 2rem;
        margin-top: 2rem;
    }
    .about-stats {
        grid-template-columns: 1fr; /* Stack stats cards */
    }
    .nav-links {
        background: rgba(15, 17, 21, 0.95);
        padding: 1rem;
        border-radius: 8px;
        border: 1px solid var(--border-color);
        margin-top: 1rem;
    }
}
