@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;800&family=Roboto:wght@300;400;700&display=swap');

:root {
    --primary-color: #00e5ff;
    --secondary-color: #2979ff;
    --bg-dark: #0a0f1a;
    --bg-light: #151e32;
    --text-main: #e0e0e0;
    --text-muted: #8c9eff;
    --font-headers: 'Montserrat', sans-serif;
    --font-text: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-text);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

header {
    position: sticky;
    top: 0;
    background-color: rgba(10, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 229, 255, 0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.logo {
    font-family: var(--font-headers);
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
}

nav a:hover::after {
    width: 100%;
}

main {
    width: 100%;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
    min-height: 80vh;
    position: relative;
}

.hero-text {
    flex: 1;
    position: relative;
    z-index: 2;
}

h1 {
    font-family: var(--font-headers);
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 18px;
    margin-bottom: 40px;
    color: var(--text-muted);
    max-width: 500px;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    color: #fff;
    text-decoration: none;
    font-family: var(--font-headers);
    font-weight: 800;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    transition: left 0.4s ease;
    z-index: -1;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 229, 255, 0.3);
}

.btn:hover::before {
    left: 0;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    animation: float 6s ease-in-out infinite;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.technologies {
    background-color: var(--bg-light);
    padding: 100px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    font-family: var(--font-headers);
    font-size: 36px;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background-color: var(--bg-dark);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(0, 229, 255, 0.1);
}

.card:nth-child(even) {
    background: linear-gradient(145deg, var(--bg-dark), #111a2b);
}

h3 {
    font-family: var(--font-headers);
    font-size: 22px;
    margin-bottom: 15px;
    color: #fff;
}

.card ul {
    margin-left: 20px;
    margin-top: 15px;
    color: var(--text-muted);
}

.card li {
    margin-bottom: 8px;
}

.materials {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.materials-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.materials-text {
    flex: 1;
}

.materials-text p {
    margin-bottom: 20px;
    font-size: 18px;
}

.materials-list {
    flex: 1;
}

ol {
    list-style-position: inside;
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 15px;
}

ol li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 18px;
    font-weight: 600;
}

ol li:last-child {
    border-bottom: none;
}

ol li span {
    color: var(--primary-color);
    margin-left: 10px;
    font-weight: 400;
    font-size: 14px;
}

.contact-section {
    background: linear-gradient(to bottom, var(--bg-light), var(--bg-dark));
    padding: 100px 20px;
    position: relative;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--bg-dark);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 1px solid rgba(0, 229, 255, 0.2);
    position: relative;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.3s;
}

input, textarea, select {
    width: 100%;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-text);
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

textarea {
    height: 120px;
    resize: vertical;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(0, 229, 255, 0.05);
}

input:focus + label {
    color: var(--primary-color);
}

input:not(:placeholder-shown):valid {
    border-color: #00e676;
}

input:not(:placeholder-shown):invalid {
    border-color: #ff1744;
}

input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

button[type="submit"] {
    width: 100%;
    font-size: 18px;
}

.floating-element {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.1;
    top: -20px;
    right: -20px;
    pointer-events: none;
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 24px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s;
    z-index: 99;
}

.scroll-top:hover {
    transform: translateY(-5px);
    background-color: var(--primary-color);
}

footer {
    text-align: center;
    padding: 30px;
    background-color: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 992px) {
    .grid-layout {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }
    .hero p {
        margin: 0 auto 40px auto;
    }
    .hero-image {
        margin-top: 50px;
        justify-content: center;
    }
    h1 {
        font-size: 42px;
    }
    .materials-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 20px;
    }
    .grid-layout {
        grid-template-columns: 1fr;
    }
    h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 32px;
    }
    .form-container {
        padding: 20px;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}