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

:root {
    /* Colors */
    --primary: #F97316;       /* Modern Orange */
    --primary-hover: #EA580C;
    --bg-dark: #020617;       /* Deep Midnight */
    --bg-card: #0F172A;       /* Slate Black */
    --bg-accent: #1E293B;     /* Charcoal */
    --text-primary: #F8FAFC;  /* Off-white */
    --text-secondary: #94A3B8; /* Muted Silver */
    --accent-gray: #475569;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Web Components Pre-upgrade */
service-card, makis-header, makis-footer {
    display: block;
}

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

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

/* Section Spacing */
section {
    padding: var(--space-xl) 0;
}

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    background: url('../assets/hero.png') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.4));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    margin-bottom: var(--space-sm);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.hero-btns {
    display: flex;
    gap: var(--space-sm);
}

/* Services */
.section-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: var(--space-xs);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr; /* Force all rows to be equal height */
    gap: 2rem;
    padding: var(--space-md) 0;
    align-items: stretch; /* Ensure children stretch to same height */
}

.service-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-item service-card {
    width: 100%;
    flex: 1;
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }
}

/* Why Us */
.bg-accent {
    background-color: var(--bg-card);
}

.grid-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.why-us-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.why-us-content h2 {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.why-us-content ul li {
    margin-bottom: var(--space-sm);
    padding-left: var(--space-md);
    position: relative;
}

.why-us-content ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Contact Section */
.contact-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-info {
    padding: var(--space-lg);
    background: linear-gradient(135deg, var(--bg-accent), var(--bg-dark));
}

.contact-info h2 {
    margin-bottom: var(--space-sm);
}

.contact-details {
    margin-top: var(--space-md);
}

.contact-details p {
    margin-bottom: var(--space-xs);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    width: 100%;
}

.contact-form input, 
.contact-form select, 
.contact-form textarea {
    width: 100%;
    padding: 1.1rem;
    background-color: var(--bg-accent);
    border: 1px solid var(--accent-gray);
    border-radius: var(--border-radius);
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--bg-card);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
}

.contact-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394A3B8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5rem;
}

/* Utilities */
.text-accent {
    color: var(--primary);
}

/* Reveal on Scroll */
.reveal-on-scroll.animate-fade {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

@media (max-width: 768px) {
    .grid-two-cols, .contact-card {
        grid-template-columns: 1fr;
    }
    
    .hero-btns {
        flex-direction: column;
    }
}
