/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1d4ed8;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.5;
}

.btn--primary {
    background-color: #2563eb;
    color: white;
}

.btn--primary:hover {
    background-color: #1d4ed8;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn--secondary {
    background-color: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.btn--secondary:hover {
    background-color: #2563eb;
    color: white;
    transform: translateY(-2px);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header__logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.header__logo-link:hover {
    opacity: 0.8;
}

.header__logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.header__logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    margin: 0;
}

/* Navigation */
.nav__list {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav__link {
    font-weight: 500;
    color: #333;
    padding: 0.5rem 0;
    position: relative;
}

.nav__link:hover,
.nav__link--active {
    color: #2563eb;
}

.nav__link--active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #2563eb;
}

/* Mobile Menu Button */
.header__mobile-menu {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
}

.header__mobile-menu-line {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
}

/* Main Content */
.main {
    min-height: calc(100vh - 80px - 300px);
    /* Account for header and footer */
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 4rem 0;
}

.hero__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero__title {
    font-size: 3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    text-align: center;
}

.hero__description {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 2rem;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero__image {
    position: relative;
}

.hero__img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Services Preview Section */
.services-preview {
    padding: 5rem 0;
    background-color: white;
}

.services-preview__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.services-preview__title {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 1rem;
    text-align: center;
}

.services-preview__subtitle {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 3rem;
}

.services-preview__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    justify-items: center;
}

/* First row: 3 cards */
.services-preview__grid .service-card:nth-child(-n+3) {
    grid-column: span 1;
}

/* Second row: 4 cards - centered layout */
.services-preview__grid .service-card:nth-child(4) {
    grid-column: 1 / 2;
}

.services-preview__grid .service-card:nth-child(5) {
    grid-column: 2 / 3;
}

.services-preview__grid .service-card:nth-child(6) {
    grid-column: 3 / 4;
}

.services-preview__grid .service-card:nth-child(7) {
    grid-column: 2 / 3;
    grid-row: 3;
}

.service-card {
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.service-card__icon {
    margin-bottom: 1.5rem;
}

.service-card__icon-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
}

.service-card__title {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 1rem;
}

.service-card__description {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.service-card__link {
    color: #2563eb;
    font-weight: 500;
}

.service-card__link:hover {
    text-decoration: underline;
}

.services-preview__cta {
    margin-top: 2rem;
}

/* About Preview Section */
.about-preview {
    padding: 5rem 0;
    background-color: #f8fafc;
}

.about-preview__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-preview__title {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 1.5rem;
    text-align: center;
}

.about-preview__description {
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.about-preview__image {
    position: relative;
}

.about-preview__img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Team Preview Section */
.team-preview {
    padding: 5rem 0;
    background-color: white;
}

.team-preview__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.team-preview__title {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 1rem;
    text-align: center;
}

.team-preview__subtitle {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 3rem;
}

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

.team-member {
    text-align: center;
}

.team-member__photo {
    margin-bottom: 1.5rem;
}

.team-member__img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.team-member__name {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.team-member__title {
    font-size: 1.125rem;
    color: #2563eb;
    font-weight: 500;
    margin-bottom: 1rem;
}

.team-member__description {
    color: #64748b;
}

.team-preview__cta {
    margin-top: 2rem;
}





/* Footer */
.footer {
    background-color: #1e293b;
    color: white;
    padding: 3rem 0 1rem;
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

.footer__section {
    margin-bottom: 1rem;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer__logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.footer__logo-link:hover {
    opacity: 0.8;
}

.footer__logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer__logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.footer__description {
    color: #cbd5e1;
    line-height: 1.6;
}

.footer__section-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer__links {
    list-style: none;
}

.footer__links li {
    margin-bottom: 0.5rem;
}

.footer__link {
    color: #cbd5e1;
    transition: color 0.3s ease;
}

.footer__link:hover {
    color: white;
}

.footer__contact-item {
    color: #cbd5e1;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer__bottom {
    border-top: 1px solid #334155;
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__copyright {
    color: #94a3b8;
    margin: 0;
}

.footer__powered-by {
    color: #94a3b8;
    margin: 0;
    font-size: 0.875rem;
}

.footer__netria-logo {
    height: 1rem;
    width: auto;
    vertical-align: middle;
    margin: 0 0.25rem;
}

/* Responsive Design */
@media (max-width: 768px) {

    /* Header */
    .header__container {
        height: 70px;
    }

    .nav {
        display: none;
    }

    .header__mobile-menu {
        display: flex;
    }

    /* Typography */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    /* Hero Section */
    .hero {
        padding: 2rem 0;
    }

    .hero__container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__description {
        font-size: 1.125rem;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__img {
        height: 300px;
    }

    /* Services Preview */
    .services-preview {
        padding: 3rem 0;
    }

    .services-preview__title {
        font-size: 2rem;
    }

    .services-preview__subtitle {
        font-size: 1.125rem;
    }

    .services-preview__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Reset grid positioning for mobile */
    .services-preview__grid .service-card:nth-child(4),
    .services-preview__grid .service-card:nth-child(5),
    .services-preview__grid .service-card:nth-child(6),
    .services-preview__grid .service-card:nth-child(7) {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    /* About Preview */
    .about-preview {
        padding: 3rem 0;
    }

    .about-preview__container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .about-preview__title {
        font-size: 2rem;
    }

    .about-preview__img {
        height: 300px;
    }

    /* Team Preview */
    .team-preview {
        padding: 3rem 0;
    }

    .team-preview__title {
        font-size: 2rem;
    }

    .team-preview__subtitle {
        font-size: 1.125rem;
    }

    .team-preview__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }



    /* Contact CTA */


    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer__content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Footer Bottom - Stack elements vertically on mobile */
    .footer__bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .hero__title {
        font-size: 1.75rem;
    }

    .hero__description {
        font-size: 1rem;
    }

    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .team-member__img {
        width: 150px;
        height: 150px;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.btn:focus,
.nav__link:focus,
.service-card__link:focus,
.footer__link:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn--primary {
        background-color: #000;
        color: #fff;
        border: 2px solid #000;
    }

    .btn--secondary {
        background-color: #fff;
        color: #000;
        border: 2px solid #000;
    }
}