/* Reset and base styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

a {
    color: #fff;
}

:root {
    /* Nomad colors */
    --nomad-green: hsl(95, 41%, 20%);
    --nomad-green-light: hsl(95, 29%, 35%);
    --nomad-green-accent: hsl(76, 42%, 42%);
    --nomad-gray: hsl(210, 17%, 98%);
    
    /* General colors */
    --white: #ffffff;
    --black: #000000;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Spacing */
    --container-max-width: 1280px;
    --section-padding: 5rem 0;
    --border-radius: 1rem;
    --border-radius-lg: 1.5rem;
    --border-radius-xl: 2rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background-color: var(--white);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
    .container { padding: 0 2rem; }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
    transition: var(--transition-normal);
}

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

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

.logo-img {
    height: 2.5rem;
    width: auto;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--nomad-green);
}

.nav-links {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    background: none;
    border: none;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 100%;
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--nomad-green);
}

.btn-consultation {
    background: var(--nomad-green);
    color: var(--white);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-consultation:hover {
    background: var(--nomad-green-light);
    transform: scale(1.05);
}

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

@media (max-width: 768px) {
    .partnerimg {
        min-height: 25px !important;
    }
    .kaspersky img {
        height: 25px !important;
    }
    .labyrinth img {
        height: 60px !important;
    }
    .contact-info-card, .contact-form-container, .map-placeholder {
        width: 90% !important;
    }
}

.hamburger {
    width: 20px;
    height: 2px;
    background: var(--gray-700);
    transition: var(--transition-fast);
}

.mobile-menu {
    display: none;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-link {
    background: none;
    border: none;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    padding: 0.75rem;
    text-align: left;
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
}

.mobile-nav-link:hover {
    color: var(--nomad-green);
    background: var(--gray-50);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 4rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--nomad-gray), var(--white), var(--nomad-gray));
    opacity: 0.5;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,<svg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'><g fill='none' fill-rule='evenodd'><g fill='%23e5e7eb' fill-opacity='0.1'><circle cx='30' cy='30' r='1'/></g></svg>");
    background-size: 60px 60px;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .hero-title { font-size: 3.75rem; }
}

@media (min-width: 1024px) {
    .hero-title { font-size: 4.5rem; }
}

.gradient-text {
    background: linear-gradient(135deg, var(--nomad-green), var(--nomad-green-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .hero-subtitle { font-size: 1.5rem; }
}

.hero-description {
    font-size: 1.125rem;
    color: var(--gray-500);
    margin-bottom: 3rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .hero-description { font-size: 1.25rem; }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 4rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.btn-primary {
    background: var(--nomad-green);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: calc(var(--border-radius) + 0.25rem);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: var(--nomad-green-light);
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: transparent;
    color: var(--nomad-green);
    border: 2px solid var(--nomad-green);
    padding: 1rem 2rem;
    border-radius: calc(var(--border-radius) + 0.25rem);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.hero-metrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 64rem;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

@media (min-width: 768px) {
    .hero-metrics {
        grid-template-columns: repeat(3, 1fr);
    }
}

.metric {
    text-align: center;
}

.metric-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--nomad-green);
    margin-bottom: 0.5rem;
}

.metric-label {
    color: var(--gray-600);
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    animation: float 3s ease-in-out infinite;
}

@media (min-width: 1024px) {
    .floating-1 {
        top: 25%;
        left: 2.5rem;
        width: 5rem;
        height: 5rem;
        background: rgba(95, 152, 56, 0.1);
    }

    .floating-2 {
        bottom: 25%;
        right: 2.5rem;
        width: 4rem;
        height: 4rem;
        background: rgba(166, 200, 90, 0.1);
        animation-delay: 1s;
    }
}

/* Services Section */
.services {
    padding: var(--section-padding);
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.6s ease-out;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 48rem;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
    transition: var(--transition-slow);
    animation: fadeInUp 0.6s ease-out;
}

.service-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: var(--shadow-2xl);
}

.service-icon {
    width: 4rem;
    height: 4rem;
    border-radius: var(--border-radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-normal);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon-dev {
    background: linear-gradient(135deg, var(--nomad-green), var(--nomad-green-accent));
}

.service-icon-consulting {
    background: linear-gradient(135deg, var(--nomad-green-light), var(--nomad-green-accent));
}

.service-icon-security {
    background: linear-gradient(135deg, var(--nomad-green-accent), var(--nomad-green));
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-features li {
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.service-btn {
    width: 100%;
    background: var(--nomad-green);
    color: var(--white);
    border: none;
    padding: 0.75rem;
    border-radius: calc(var(--border-radius) + 0.25rem);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
}

.service-btn:hover {
    background: var(--nomad-green-light);
}

/* Partners Section */
.partners {
    padding: var(--section-padding);
    background: var(--nomad-gray);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: center;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.partner-card {
    background: var(--white);
    border-radius: calc(var(--border-radius) + 0.25rem);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: var(--transition-normal);
    overflow: hidden;
    animation: scaleIn 0.5s ease-out;
}

.partner-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.partner-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.partnerimg {
    min-height: 40px;
    height: auto;
    max-height: 100px;
}
.kaspersky img {
    height: 25px !important;
}

.partner-name {
    font-weight: 600;
    color: var(--gray-800);
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.benefit-item {
    text-align: center;
}

.benefit-icon {
    width: 3rem;
    height: 3rem;
    background: var(--nomad-green);
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.benefit-title {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.benefit-description {
    color: var(--gray-600);
}

/* Contact Section */
.contact {
    padding: var(--section-padding);
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .contact-content {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-form-container {
    background: var(--nomad-gray);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    animation: slideInLeft 0.6s ease-out;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition-fast);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--nomad-green);
    box-shadow: 0 0 0 3px rgba(95, 152, 56, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.error-message.show {
    display: block;
}

.submit-btn {
    background: var(--nomad-green);
    color: var(--white);
    border: none;
    padding: 1rem;
    border-radius: var(--border-radius);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover:not(:disabled) {
    background: var(--nomad-green-light);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: slideInRight 0.6s ease-out 0.2s both;
    overflow: hidden;
}

.contact-info-card {
    background: linear-gradient(135deg, var(--nomad-green), var(--nomad-green-light));
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    color: var(--white);
    width: 100%;
}

.contact-info-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.contact-info-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-info-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.5rem;
}

.contact-info-content h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-info-content p {
    opacity: 0.9;
}

.map-placeholder {
    background: var(--gray-200);
    border-radius: var(--border-radius-xl);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.map-content {
    text-align: center;
}

.map-placeholder > * {
    width: 100% !important;
    height: 100% !important;
}

.map-icon {
    font-size: 4rem;
    color: var(--gray-400);
    margin-bottom: 1rem;
}

.map-title {
    color: var(--gray-600);
    font-weight: 500;
}

.map-subtitle {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-company {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo-img {
    height: 2.5rem;
    width: auto;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-description {
    color: #d1d5db;
    line-height: 1.6;
}

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

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--nomad-green);
    border-radius: var(--border-radius);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.25rem;
    transition: var(--transition-normal);
}

.social-link:hover {
    background: var(--nomad-green-light);
}

.footer-column-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    background: none;
    border: none;
    color: #d1d5db;
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 0;
    text-align: left;
}

.footer-link:hover {
    color: var(--nomad-green-accent);
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-copyright {
    color: var(--gray-400);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.legal-link {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition-fast);
}

.legal-link:hover {
    color: var(--nomad-green-accent);
}

/* Scroll to top button */
.scroll-top-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3rem;
    height: 3rem;
    background: var(--nomad-green);
    color: var(--white);
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: var(--transition-normal);
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}

.scroll-top-btn.show {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.scroll-top-btn:hover {
    background: var(--nomad-green-light);
    transform: scale(1.1);
}

/* Toast notification */
.toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transform: translateX(100%);
    transition: var(--transition-normal);
    min-width: 300px;
    max-width: 400px;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left: 4px solid #22c55e;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

.toast-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
}

.toast-message {
    color: var(--gray-800);
    font-weight: 500;
}

.toast-close {
    background: none;
    border: none;
    color: var(--gray-500);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    margin-left: 1rem;
}

.toast-close:hover {
    color: var(--gray-700);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-2rem);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(2rem);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Utility classes for animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive design improvements */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
        padding-top: 30px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .service-card,
    .partner-card {
        margin-bottom: 1rem;
    }
}

/* Loading state */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}