@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Open+Sans:wght@400;600&display=swap');

:root {
    --primary-color: #0f3460;
    --secondary-color: #e94560;
    --accent-color: #fca311;
    --text-dark: #1a1a2e;
    --text-light: #f0f0f0;
    --bg-light: #ffffff;
    --bg-gray: #f4f6f8;
    --border-radius: 4px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

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

ul {
    list-style: none;
}

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

/* Layout */
.x-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
.x-nav-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
}

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

.x-brand-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.x-main-menu {
    display: none;
}

.x-menu-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.x-link {
    font-weight: 600;
    color: var(--text-dark);
}

.x-link:hover {
    color: var(--secondary-color);
}

.x-cta-btn {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 10px 25px;
    border-radius: var(--border-radius);
    font-weight: 600;
}

.x-cta-btn:hover {
    background-color: #d1344e;
    transform: translateY(-2px);
}

/* Mobile Toggle */
.x-mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.x-mobile-toggle span {
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.x-mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 6px);
}
.x-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}
.x-mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -5px);
}

/* Mobile Menu */
.x-mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    transform: translateY(-150%);
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow);
}

.x-mobile-menu.active {
    transform: translateY(0);
}

.x-m-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.x-m-list a {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Hero Section */
.z-hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-top: 70px;
}

.z-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.z-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 52, 96, 0.7);
    z-index: -1;
}

.z-hero-content {
    z-index: 1;
}

.z-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.z-subtitle {
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.z-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.z-btn-primary, .z-btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    min-height: 50px;
    line-height: 20px;
    transition: var(--transition);
}

.z-btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
}

.z-btn-primary:hover {
    background-color: #e0910f;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(252, 163, 17, 0.4);
}

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

.z-btn-secondary:hover {
    background-color: #fff;
    color: var(--primary-color);
}

/* Services */
.q-services-section {
    padding: 80px 0;
    background-color: var(--bg-gray);
}

.q-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.q-section-header h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.q-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.q-card {
    background: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-bottom: 4px solid transparent;
}

.q-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-bottom: 4px solid var(--accent-color);
}

.q-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.q-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.q-hidden-info {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    text-align: center;
    margin-top: 10px;
}

.q-hidden-info.open {
    max-height: 200px;
}

.q-read-more {
    margin-top: auto;
    padding-top: 20px;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Tech Section */
.w-tech-section {
    padding: 80px 0;
    background-color: #fff;
}

.w-flex {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.w-image-box img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.w-content-box h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.w-list {
    margin-top: 20px;
}

.w-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.w-list li i {
    color: var(--accent-color);
}

/* Projects */
.j-projects-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: #fff;
}

.j-projects-section .q-section-header h2 {
    color: #fff;
}

.j-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.j-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    height: 300px;
}

.j-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.j-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 20px;
    transform: translateY(100%);
    transition: var(--transition);
}

.j-item:hover img {
    transform: scale(1.1);
}

.j-item:hover .j-overlay {
    transform: translateY(0);
}

.j-overlay h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--accent-color);
}

/* Contact */
.k-contact-section {
    padding: 80px 0;
    background-color: var(--bg-gray);
}

.k-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.k-info {
    padding: 30px;
    background-color: var(--primary-color);
    color: #fff;
}

.k-info h2 {
    font-family: var(--font-heading);
    margin-bottom: 15px;
}

.k-details {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.k-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.k-row i {
    color: var(--accent-color);
    width: 20px;
}

.k-form-box {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

input {
    min-height: 48px;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.1);
}

input:invalid:not(:placeholder-shown) {
    border-color: var(--secondary-color);
}

.full-width {
    width: 100%;
}

/* Footer */
.f-footer {
    background-color: #1a1a2e;
    color: #ccc;
    padding: 60px 0 20px;
}

.f-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.f-col h3, .f-col h4 {
    color: #fff;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.f-col ul li {
    margin-bottom: 10px;
}

.f-col a:hover {
    color: var(--accent-color);
}

.f-legal-btn {
    display: block;
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    padding: 0;
    margin-bottom: 10px;
    text-align: left;
    font-size: 1rem;
}

.f-legal-btn:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.f-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* Modals */
.legal-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    overflow: auto;
}

.legal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 40px;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(26, 26, 46, 0.95);
    color: #fff;
    padding: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.cookie-banner.hidden {
    display: none !important;
}

.c-buttons {
    display: flex;
    gap: 10px;
}

.c-btn-accept, .c-btn-decline {
    padding: 10px 20px;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    font-weight: 600;
    flex: 1;
}

.c-btn-accept {
    background-color: var(--accent-color);
    color: #fff;
}

.c-btn-decline {
    background-color: transparent;
    border: 1px solid #fff;
    color: #fff;
}

/* Responsive */
@media (min-width: 576px) {
    .z-title { font-size: 3rem; }
    .cookie-banner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 20px 40px;
    }
    .c-content { max-width: 60%; }
    .c-buttons { flex: 0 0 auto; }
}

@media (min-width: 768px) {
    .q-grid { grid-template-columns: repeat(2, 1fr); }
    .w-flex { flex-direction: row; align-items: center; }
    .w-image-box, .w-content-box { flex: 1; }
    .j-gallery { grid-template-columns: repeat(2, 1fr); }
    .k-wrapper { flex-direction: row; }
    .k-info, .k-form-box { flex: 1; }
    .f-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .x-mobile-toggle, .x-mobile-menu { display: none; }
    .x-main-menu { display: block; }
    .q-grid { grid-template-columns: repeat(3, 1fr); }
    .j-gallery { grid-template-columns: repeat(3, 1fr); }
    .f-grid { grid-template-columns: repeat(3, 1fr); }
}