/* Global Font Variables */
:root {
    --font-heading: 'Outfit', sans-serif;
    --font-logo: 'Audiowide', cursive;
    --font-body: 'Rajdhani', sans-serif;
    --primary: #39ff14;
    /* Neon Green */
    --tech-blue: #00f3ff;
    /* Cyber Blue */
    --glass-border: rgba(255, 255, 255, 0.1);
    --bg-dark: #050505;
    --panel-bg: #111;
    --text-muted: #aaa;
    --transition: all 0.3s ease;
}

body {
    background-color: var(--bg-dark);
    color: #fff;
    font-family: var(--font-body);
    margin: 0;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Utilities & Effects --- */
.text-gradient {
    background: linear-gradient(to right, var(--primary), var(--tech-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--primary);
    display: inline-block;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    transition: var(--transition);
    cursor: pointer;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    box-sizing: border-box;
}

.btn-primary {
    background: var(--primary);
    color: #000;
    border: 2px solid var(--primary);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.4);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary);
    box-shadow: 0 0 25px rgba(57, 255, 20, 0.6);
}

.section-padding {
    padding: 5rem 0;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    background: rgba(5, 5, 8, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-logo);
    font-size: 2rem;
    color: var(--primary);
    text-decoration: none;
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
}

.logo img {
    height: 50px;
    mix-blend-mode: screen;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* --- Hero --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: url('../images/mprc_hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-top: -80px;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.6), var(--bg-dark));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 2rem;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.4rem;
    color: #ddd;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Services (Boxes) --- */
/* FIX: Use Flexbox with max-width to center orphans naturally */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* This centers the orphans */
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.service-card {
    /* Uses .glass-panel styles via HTML class, overrides below */
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;

    /* 
       Width Logic: 
       calc(33.333% - 2rem) creates a 3-column grid feel.
       But because it's Flex + Center, if there are only 2 items on the last row,
       they will center themselves.
    */
    flex: 0 1 350px;
    /* Base size */
    width: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(57, 255, 20, 0.2);
}

.service-card i {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #fff;
}

.service-card p {
    color: var(--text-muted);
}

/* --- Reviews/Google (Restored & Centered) --- */
.reviews-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    height: 350px;
    /* Fixed height for carousel */
    overflow: hidden;
    display: flex;
    /* Helps center the absolute children content context */
    align-items: center;
    justify-content: center;
}

.review-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateX(100px);
    /* Initial state off-center */
    width: 100%;
    padding: 0 3rem;
    text-align: center;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;

    /* Flex content centering */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.review-card.active {
    opacity: 1;
    transform: translate(-50%, -50%) translateX(0);
    /* Perfect Center */
    pointer-events: auto;
}

.review-card.exit {
    opacity: 0;
    transform: translate(-50%, -50%) translateX(-100px);
}

/* Disclaimer Box */
.disclaimer-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    padding: 2rem;
    margin-top: 4rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.disclaimer-box h4 {
    color: #fff;
    margin-top: 0;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.disclaimer-box ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.disclaimer-box li {
    margin-bottom: 0.5rem;
}

.review-text {
    font-size: 1.4rem;
    font-style: italic;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.review-stars {
    color: #ffc107;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.review-author {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Footer --- */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
    background: #020202;
    text-align: left;
}

footer .container>div:first-child {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-links {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1.2rem;
}

.footer-links a:hover {
    color: var(--primary);
}

footer ul li {
    margin-bottom: 0.8rem;
}

footer ul a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
}

footer ul a:hover {
    color: var(--primary);
}

/* --- Mobile --- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    footer .container>div:first-child {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .services-grid {
        justify-content: center;
    }
}

/* --- Dropdowns & Forms (FIXED: Black on White & Spaced) --- */
.form-control,
select,
input,
textarea {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #ccc;
    /* Lighter border for clean look */
    padding: 1rem 1.2rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: 1rem;
    /* More spacing between fields */
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

select option {
    background-color: #ffffff !important;
    color: #000000 !important;
}

select:focus,
input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 8px rgba(57, 255, 20, 0.25);
    background-color: #ffffff !important;
    color: #000000 !important;
}