:root {
    --color-bg: #0a192f;
    --color-bg-light: #112240;
    --color-text: #ccd6f6;
    --color-text-heading: #e6f1ff;
    --color-primary: #64ffda;
    --color-secondary: #112240;
    --color-accent: #8892b0;
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    --glass-bg: rgba(17, 34, 64, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: transparent;
    color: var(--color-primary);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(100, 255, 218, 0.1);
    z-index: -1;
    transition: var(--transition);
}

.btn-primary:hover::after {
    width: 100%;
}

/* Header */
.header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: var(--glass-border);
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 150px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(100, 255, 218, 0.3));
    transition: var(--transition);
    cursor: pointer;
}

.logo-img:hover {
    filter: drop-shadow(0 0 20px rgba(100, 255, 218, 0.6));
    transform: scale(1.05);
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-list a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-heading);
}

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

.lang-switcher select {
    background-color: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-primary);
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-main);
}

.lang-switcher select:focus {
    outline: none;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    background-image: url('./assets/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.85) 0%, rgba(17, 34, 64, 0.75) 50%, rgba(10, 25, 47, 0.9) 100%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(100, 255, 218, 0.1) 0%, transparent 50%);
    z-index: 1;
    animation: pulse 8s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--color-text-heading);
    line-height: 1.1;
    background: linear-gradient(to right, #e6f1ff, #64ffda);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.3rem;
    color: var(--color-accent);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero .btn {
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

/* Services */
.services {
    padding: 120px 0;
    background-image: url('./assets/services-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(10, 25, 47, 0.92) 0%, rgba(10, 25, 47, 0.88) 50%, rgba(10, 25, 47, 0.92) 100%);
    z-index: 0;
}

.services .container {
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 60px;
    text-align: center;
    color: var(--color-text-heading);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), #00d4ff);
    margin: 10px auto 0;
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.5);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(17, 34, 64, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 45px 35px;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    background-clip: padding-box;
    height: 100%;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.3), rgba(0, 212, 255, 0.3));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: var(--transition);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.08) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
    border-radius: 16px;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 30px 60px -15px rgba(100, 255, 218, 0.4),
        0 0 40px rgba(100, 255, 218, 0.25);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover::after {
    opacity: 1;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(100, 255, 218, 0.1);
    border-radius: 16px;
    transition: var(--transition);
}

.service-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: rgba(100, 255, 218, 0.2);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.3);
}

.service-card:hover .service-icon img {
    filter: drop-shadow(0 0 15px rgba(100, 255, 218, 0.8));
}

.service-card h3 {
    color: var(--color-text-heading);
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
}

.service-card p {
    color: var(--color-accent);
    font-size: 1rem;
}

/* Contact */
.contact {
    padding: 120px 0;
    text-align: center;
    background-image: url('./assets/contact-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(10, 25, 47, 0.9) 0%, rgba(2, 12, 27, 0.95) 100%);
    z-index: 0;
}

.contact-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact p {
    color: var(--color-accent);
    margin-bottom: 40px;
    font-size: 1.2rem;
}

.contact-form {
    text-align: left;
    background: rgba(17, 34, 64, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 20px 60px -10px rgba(2, 12, 27, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(100, 255, 218, 0.15);
}

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

.form-group label {
    display: block;
    margin-bottom: 12px;
    color: var(--color-text-heading);
    font-size: 0.95rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background-color: rgba(2, 12, 27, 0.5);
    border: 1.5px solid rgba(136, 146, 176, 0.3);
    border-radius: 8px;
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: rgba(2, 12, 27, 0.8);
    box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.1),
        0 0 20px rgba(100, 255, 218, 0.2);
    transform: translateY(-2px);
}

.contact-form .btn-primary {
    width: 100%;
    margin-top: 10px;
    padding: 16px 28px;
    font-size: 1.05rem;
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.1) 0%, transparent 100%);
    border: 2px solid var(--color-primary);
    position: relative;
    overflow: hidden;
}

.contact-form .btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(100, 255, 218, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.contact-form .btn-primary:hover::before {
    width: 400px;
    height: 400px;
}

.contact-form .btn-primary:hover {
    box-shadow: 0 0 30px rgba(100, 255, 218, 0.4);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    padding: 30px 0;
    text-align: center;
    color: var(--color-accent);
    font-size: 0.9rem;
    background-color: #020c1b;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-list {
        display: none;
        /* Should implement a hamburger menu for real mobile support, but sticking to simple for now */
    }

    .header-container {
        padding: 0 10px;
    }
}