/* 
   Metroyol Premium Styles
   Theme: Light Corporate & Professional
*/

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;600;800&family=Oswald:wght@300;500;700&display=swap');

:root {
    --bg-dark: #ffffff;
    /* White bg */
    --bg-card: #f4f6f8;
    /* Light grey card */
    --primary: #FFD700;
    /* Gold Accent */
    --primary-hover: #E6C200;
    --text-main: #333333;
    /* Dark text */
    --text-muted: #666666;
    --accent-blue: #00d2ff;

    /* Adjusted glass variables for light theme */
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.05);
    /* Subtle border */
    --glass-blur: 10px;

    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --spacing-section: 100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    color: #222;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Container --- */
.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Header & Nav --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    /* White scrolled header */
    padding: 15px 0;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    /* Initial logo color white on hero */
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

header.scrolled .logo {
    color: #333;
    /* Dark logo on scroll */
    text-shadow: none;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.9rem;
    font-family: 'Oswald', sans-serif;
    color: #fff;
    /* Initial links white */
    position: relative;
    padding: 5px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

header.scrolled .nav-links a {
    color: #333;
    text-shadow: none;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: #fff;
}

header.scrolled .nav-toggle {
    color: #333;
}

/* --- Hero Slider --- */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    /* Centered vertically but we have padding options */
    justify-content: center;
}

.slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark overlay for readability of white text */
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 20px;
    /* Pushed down significantly to avoid header overlap */
    margin-top: 150px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 1s ease 0.5s;
    color: white;
    /* Ensure hero text remains white on images */
}

.slide.active .hero-content {
    transform: translateY(0);
    opacity: 1;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #eee;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary);
    color: #000;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    letter-spacing: 1px;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: var(--transition);
}

.btn-primary:hover {
    background: #000;
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.slider-controls {
    position: absolute;
    bottom: 50px;
    right: 50px;
    z-index: 10;
    display: flex;
    gap: 10px;
}

.slider-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.slider-btn:hover {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

/* --- Section Styling --- */
section {
    padding: var(--spacing-section) 0;
    position: relative;
    background: #fff;
}

/* Alternating background like requested (grey tones) */
section:nth-child(even) {
    background-color: #f9f9f9;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #222;
}

.section-title h2 span {
    color: var(--primary);
}

.section-title p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-img img {
    width: 100%;
    height: auto;
    transition: transform 0.8s ease;
}

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

.about-text h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #222;
}

.about-text p {
    color: #555;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item h4 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-item p {
    color: #888;
}

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

.service-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 40px;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.service-card:hover {
    background: #fff;
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-card h3 {
    color: #222;
}

.service-card p {
    color: #666;
}

/* --- Projects --- */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.project-item {
    position: relative;
    height: 300px;
    overflow: hidden;
    cursor: pointer;
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

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

.project-item:hover .project-overlay {
    opacity: 1;
}

.project-overlay h4 {
    color: var(--primary);
    transform: translateY(20px);
    transition: 0.4s ease 0.1s;
}

.project-item:hover .project-overlay h4 {
    transform: translateY(0);
}

/* --- Contact --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    padding: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: #fff;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background: #f9f9f9;
    border: 1px solid #eee;
    color: #333;
    font-family: inherit;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
}

/* --- Footer --- */
footer {
    background: #111;
    padding: 50px 0 20px;
    border-top: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #aaa;
}

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

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #666;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .hero h1 {
        font-size: 3rem;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s ease;
        z-index: 999;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-links a {
        color: #333;
    }

    .nav-links.active {
        right: 0;
    }

    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}