/* MatrixAI.no Modern & Energetic Design System */

:root {
    --primary-dark: #002d3d;
    --primary-light: #00bfff;
    --accent-coral: #ff6b6b;
    --text-dark: #333333;
    --text-light: #f5f5f5;
    --white: #ffffff;
    --bg-light: #f9fbfd;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

/* Header & Navigation */
header {
    background: var(--white);
    color: var(--primary-dark);
    padding: 0.8rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

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

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

.nav-links a {
    color: var(--primary-dark);
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--primary-light);
}

/* Hero Section */
.hero {
    min-height: 70vh;
    background: linear-gradient(rgba(0, 45, 61, 0.7), rgba(0, 45, 61, 0.7)), url('../images/hero.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 80px; /* Account for fixed header */
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 191, 255, 0.3);
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background-color: var(--primary-light);
}

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

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--primary-light);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    background-color: var(--white);
    color: var(--text-dark);
    padding: 60px 0 30px;
    border-top: 1px solid #e0e0e0;
}

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

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.footer-links ul li {
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.footer-links ul li:hover {
    color: var(--primary-light);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
    color: var(--text-dark);
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Custom Grids for Contact and Services Detail */
.contact-grid, .services-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

/* Responsive */
@media (max-width: 992px) {
    .contact-grid, .services-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 50vh;
        padding-top: 100px;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .nav-links {
        display: none;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .hero-btns .btn {
        margin-left: 0 !important;
    }

    section {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}
