/* CSS Custom Properties */
:root {
    --color-navy: #1a2744;
    --color-navy-dark: #0f172a;
    --color-navy-light: #2d3e5f;
    --color-blue: #3b82f6;
    --color-blue-light: #60a5fa;
    --color-white: #ffffff;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-600: #4b5563;
    --color-gray-800: #1f2937;

    --font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-family-heading: 'Bebas Neue', sans-serif;
    --container-width: 1200px;
    --header-height: 80px;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--color-gray-800);
    background-color: var(--color-white);
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--color-navy);
    z-index: 1000;
    overflow: visible;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    position: relative;
    z-index: 1001;
}

.logo img {
    height: 110px;
    width: auto;
    position: relative;
    top: 15px;
}

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

.nav-list a {
    color: var(--color-white);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-list a:hover {
    color: var(--color-blue-light);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-white);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-top: var(--header-height);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(26, 39, 68, 0.7);
}

.hero-content {
    position: relative;
    text-align: center;
    color: var(--color-white);
    padding: 2rem;
}

.hero h1 {
    font-family: var(--font-family-heading);
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 400;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.hero .btn {
    margin-top: 2rem;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-title {
    font-family: var(--font-family-heading);
    text-align: center;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--color-navy);
    margin-bottom: 3rem;
    letter-spacing: 0.1em;
}

/* Services Section */
.services {
    background-color: var(--color-gray-100);
}

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

.card {
    background-color: #d4e4fc;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    color: var(--color-navy);
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.card h3 {
    font-family: var(--font-family-heading);
    color: var(--color-navy);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.card p {
    color: var(--color-gray-600);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.card p:last-of-type {
    margin-bottom: 1.5rem;
}

.card-link {
    display: inline-block;
    margin-top: auto;
    padding: 0.75rem 1.5rem;
    background-color: var(--color-navy);
    color: var(--color-white);
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.card-link:hover {
    background-color: var(--color-navy-light);
}

/* About Section */
.about {
    background-color: var(--color-navy);
    color: var(--color-white);
}

.about .section-title,
.about h2 {
    color: var(--color-white);
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-image {
    width: 180px;
    height: 180px;
    margin-bottom: 2rem;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.about-text h2 {
    font-family: var(--font-family-heading);
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-gray-200);
    margin-bottom: 1rem;
}

.about-text p:last-of-type {
    margin-bottom: 1.5rem;
}

.about-linkedin {
    display: inline-block;
    color: var(--color-blue-light);
    transition: color 0.3s ease;
}

.about-linkedin:hover {
    color: var(--color-white);
}

.about-linkedin svg {
    width: 32px;
    height: 32px;
}

.about-text strong {
    color: var(--color-white);
}

/* Domains Section */
.domains {
    background-color: var(--color-gray-100);
}

.cards-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.domain-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.domain-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.domain-card:hover img {
    transform: scale(1.05);
}

.domain-card-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(26, 39, 68, 0.6);
    transition: background-color 0.3s ease;
}

.domain-card:hover .domain-card-content {
    background-color: rgba(26, 39, 68, 0.75);
}

.domain-card h3 {
    font-family: var(--font-family-heading);
    color: var(--color-white);
    font-size: 1.75rem;
    font-weight: 400;
    text-align: center;
    letter-spacing: 0.05em;
}

/* Button */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--color-navy);
    color: var(--color-white);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: var(--color-navy-light);
}

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

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

/* Contact/Footer Section */
.contact-footer {
    background-color: var(--color-navy-dark);
    color: var(--color-gray-200);
    padding: 3rem 0;
}

.contact-footer .section-title {
    color: var(--color-white);
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 2rem;
}

.footer-column h3 {
    font-family: var(--font-family-heading);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--color-white);
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.footer-column p {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.footer-column a {
    color: var(--color-gray-200);
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--color-white);
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 0.75rem;
}

.footer-menu a {
    color: var(--color-gray-200);
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: var(--color-white);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--color-white);
    border-radius: 50%;
    color: var(--color-navy-dark);
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: var(--color-gray-200);
}

.social-links svg {
    width: 18px;
    height: 18px;
}

.copyright {
    margin-top: 2rem;
    font-size: 0.9rem;
}

/* Service Pages */
.service-page {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 4rem;
    min-height: calc(100vh - 200px);
}

.service-page h1 {
    font-family: var(--font-family-heading);
    font-size: 3rem;
    font-weight: 400;
    color: var(--color-navy);
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
}

.service-content {
    max-width: 800px;
    margin-bottom: 2rem;
}

.service-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-gray-600);
    margin-bottom: 1.5rem;
}

.service-content strong {
    color: var(--color-navy);
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.service-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1.1rem;
    color: var(--color-gray-600);
}

.service-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-navy);
}

.service-content h2 {
    font-family: var(--font-family-heading);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--color-navy);
    margin-top: 2rem;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.service-content h2:first-child {
    margin-top: 0;
}

.tech-list {
    background-color: var(--color-gray-100);
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

/* Service Row Layout (image left, text right) */
.service-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: start;
}

.service-row:last-of-type {
    margin-bottom: 2rem;
}

.service-row-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.service-row-image img {
    width: 100%;
    height: auto;
    display: block;
}

.service-row-content h2 {
    font-family: var(--font-family-heading);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--color-navy);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.service-row-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-gray-600);
    margin-bottom: 1.25rem;
}

.service-row-content p:last-child {
    margin-bottom: 0;
}

.service-row-content strong {
    color: var(--color-navy);
}

@media (max-width: 768px) {
    .service-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-row-image {
        max-width: 400px;
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .logo img {
        height: 88px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav {
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: var(--color-navy);
        padding: 1rem;
        display: none;
    }

    .nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-list li {
        border-bottom: 1px solid var(--color-navy-light);
    }

    .nav-list li:last-child {
        border-bottom: none;
    }

    .nav-list a {
        display: block;
        padding: 1rem;
    }

    .hero {
        background-attachment: scroll;
    }

    section {
        padding: 3rem 0;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .cards-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .cards-grid-4 {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        letter-spacing: 0.05em;
    }

    .logo img {
        height: 66px;
    }
}
