/* ==================== RESET & VARIABLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-color: #1a5490;
    --secondary-color: #2874c7;
    --accent-color: #ff6b35;
    --dark-color: #0f1419;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #1a5490 0%, #2874c7 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(26, 84, 144, 0.95) 0%, rgba(40, 116, 199, 0.9) 100%);

    /* Typography */
    --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-base: 1rem;
    --font-size-sm: 0.875rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3rem;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Other */
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);

    /* Header height */
    --header-height: 80px;
}

/* ==================== BASE STYLES ==================== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

section {
    padding: var(--spacing-3xl) 0;
}

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

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

ul {
    list-style: none;
}

/* ==================== HEADER ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.header.scroll-header {
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.nav__logo {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo__text {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.logo__subtitle {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    font-weight: 400;
}

.nav__list {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav__link {
    font-weight: 500;
    color: var(--gray-700);
    position: relative;
    padding: 0.5rem 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__link--cta {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
}

.nav__link--cta::after {
    display: none;
}

.nav__link--cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    cursor: pointer;
}

.nav__toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--gray-800);
    border-radius: 2px;
    transition: var(--transition);
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a5490 0%, #2874c7 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="2" height="2" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 50px 50px;
    opacity: 0.3;
    animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero__description {
    font-size: var(--font-size-xl);
    font-weight: 300;
    margin-bottom: var(--spacing-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.hero__buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.hero__scroll {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.scroll__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--white);
    font-size: var(--font-size-sm);
    gap: 0.5rem;
}

.scroll__arrow {
    width: 24px;
    height: 24px;
    border: 2px solid var(--white);
    border-left: none;
    border-top: none;
    transform: rotate(45deg);
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-size: var(--font-size-base);
}

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

.btn--primary:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

.btn--full {
    width: 100%;
}

/* ==================== SECTION HEADERS ==================== */
.section__header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section__subtitle {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-sm);
}

.section__title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.section__description {
    font-size: var(--font-size-lg);
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto;
}

/* ==================== SERVICES SECTION ==================== */
.services {
    background-color: var(--gray-100);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.service__card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.service__card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service__icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    color: var(--white);
}

.service__icon svg {
    width: 32px;
    height: 32px;
}

.service__title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--spacing-sm);
}

.service__description {
    color: var(--gray-600);
    line-height: 1.8;
}

/* ==================== PROJECTS SECTION ==================== */
.projects__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.project__card {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    aspect-ratio: 4/3;
    cursor: pointer;
}

.project__image {
    width: 100%;
    height: 100%;
    position: relative;
}

.project__placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    position: relative;
}

.project__placeholder--1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.project__placeholder--2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.project__placeholder--3 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.project__placeholder--4 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }

.project__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 84, 144, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    color: var(--white);
    opacity: 0;
    transition: var(--transition);
}

.project__card:hover .project__overlay {
    opacity: 1;
}

.project__overlay h3 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

.project__overlay p {
    text-align: center;
    font-size: var(--font-size-lg);
}

/* ==================== ABOUT SECTION ==================== */
.about {
    background-color: var(--white);
}

.about__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.about__paragraph {
    font-size: var(--font-size-lg);
    color: var(--gray-600);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.about__features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.feature {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.feature__icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: var(--font-size-xl);
    flex-shrink: 0;
}

.feature__text h4 {
    font-size: var(--font-size-lg);
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.feature__text p {
    color: var(--gray-600);
}

.about__image-placeholder {
    width: 100%;
    height: 500px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
}

.about__image-main {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
}

/* ==================== STATS SECTION ==================== */
.stats {
    background: var(--gradient-primary);
    color: var(--white);
    padding: var(--spacing-2xl) 0;
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    text-align: center;
}

.stat__number {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.stat__label {
    font-size: var(--font-size-lg);
    opacity: 0.9;
}

/* ==================== CONTACT SECTION ==================== */
.contact {
    background-color: var(--gray-100);
}

.contact__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.info__card {
    display: flex;
    gap: var(--spacing-md);
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.info__card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.info__icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.info__icon svg {
    width: 24px;
    height: 24px;
}

.info__text h4 {
    font-size: var(--font-size-lg);
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.info__text p {
    color: var(--gray-600);
    line-height: 1.6;
}

.contact__form {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.form__group {
    margin-bottom: var(--spacing-md);
}

.form__input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    transition: var(--transition);
}

.form__input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 84, 144, 0.1);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

/* ==================== FOOTER ==================== */
.footer {
    background-color: var(--gray-900);
    color: var(--gray-300);
    padding: var(--spacing-2xl) 0 var(--spacing-md);
}

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

.footer__logo {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

.footer__description {
    line-height: 1.8;
    opacity: 0.8;
}

.footer__title {
    color: var(--white);
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer__links a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer__links a:hover {
    opacity: 1;
    color: var(--secondary-color);
    transform: translateX(5px);
}

.footer__social {
    display: flex;
    gap: var(--spacing-md);
}

.social__link {
    width: 40px;
    height: 40px;
    background: var(--gray-800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social__link:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.social__link svg {
    width: 20px;
    height: 20px;
}

.footer__bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--gray-800);
    opacity: 0.7;
}

/* ==================== SCROLL TO TOP ==================== */
.scroll-top {
    position: fixed;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.scroll-top svg {
    width: 24px;
    height: 24px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
    .about__content,
    .contact__content {
        grid-template-columns: 1fr;
    }

    .about__image-placeholder,
    .about__image-main {
        height: 400px;
    }
}

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

    .nav__menu {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 70%;
        height: calc(100vh - var(--header-height));
        background-color: var(--white);
        box-shadow: var(--shadow-lg);
        padding: var(--spacing-xl) var(--spacing-lg);
        transition: right 0.3s ease;
    }

    .nav__menu.show {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }

    .nav__link--cta {
        width: 100%;
        text-align: center;
    }

    .nav__toggle {
        display: flex;
    }

    .nav__toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav__toggle.active span:nth-child(2) {
        opacity: 0;
    }

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

    .hero {
        height: calc(100vh - var(--header-height));
    }

    .services__grid,
    .projects__grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    section {
        padding: var(--spacing-2xl) 0;
    }

    .hero__buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

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

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