/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@700&family=Urbanist:wght@400&display=swap');

/* CSS Reset & Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #7AC943;
    --secondary-color: #25334D;
    --text-light: #ffffff;
    --text-dark: #222222;
    --background-light: #f7f9fc;
    --padding-standard: clamp(2rem, 6vw, 4rem);
    --max-width: 1220px;
    --transition-speed: 0.3s;
    --band-padding: 15vh;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: 'Urbanist', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--secondary-color);
    min-height: 100%;
    overflow-x: hidden;
}

h1, h2 {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

h3 {
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

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

button, .cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-dark);
    font-weight: 700;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    box-shadow: inset 0 0 8px rgba(122, 201, 67, 0.6);
}

button:hover, .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: inset 0 0 15px rgba(122, 201, 67, 0.8), 0 5px 15px rgba(0, 0, 0, 0.1);
}

button:focus, .cta-button:focus,
input:focus, textarea:focus {
    outline: 3px solid rgba(122, 201, 67, 0.5);
    outline-offset: 2px;
}

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

/* Layout Structure */
.scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
}

section {
    position: relative;
    min-height: 100vh;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--padding-standard);
    overflow: hidden;
}

.content-container {
    max-width: var(--max-width);
    width: 100%;
    position: relative;
    z-index: 2;
}

/* Vertical Navigation */
.vertical-nav {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 60px;
    background-color: var(--secondary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.compass-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--text-light);
    position: relative;
    margin-bottom: 30px;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.compass-needle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 15px;
    background: var(--secondary-color);
    transform-origin: bottom center;
    animation: rotate 10s linear infinite;
}

.compass-needle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -4px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 8px solid var(--primary-color);
}

.compass-needle::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: -3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--secondary-color);
    transform: scale(0.5);
}

.vertical-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vertical-nav li {
    margin: 15px 0;
}

/* SVG Icons */
.nav-icon {
    width: 24px;
    height: 24px;
    fill: var(--text-light);
    transition: all var(--transition-speed) ease;
}

.vertical-nav a:hover .nav-icon,
.vertical-nav a:focus .nav-icon {
    fill: var(--primary-color);
    transform: scale(1.2);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.card-icon {
    width: 32px;
    height: 32px;
    fill: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

/* Обновляем стили для вертикальной навигации */
.vertical-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-light);
    position: relative;
    transition: all 0.3s ease;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.vertical-nav a:hover, .vertical-nav a:focus {
    background: rgba(122, 201, 67, 0.2);
    transform: scale(1.1);
}

.vertical-nav a:hover::after, .vertical-nav a:focus::after {
    content: attr(href);
    position: absolute;
    left: 50px;
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    font-family: 'Urbanist', sans-serif;
}

/* Radial Layout & Sections */
.hero-section {
    background-color: var(--secondary-color);
    color: var(--text-light);
    clip-path: circle(50% at 50% 50%);
    z-index: 5;
}

.band-section {
    clip-path: circle(75% at 50% 50%);
    padding-top: var(--band-padding);
    padding-bottom: var(--band-padding);
    background: var(--background-light);
    color: var(--text-dark);
}

.band-section:nth-child(odd) {
    background-color: #f0f3f8;
}

.band-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0, rgba(37, 51, 77, 0.1), transparent 70%);
    z-index: 1;
}

.skyline-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background-image: url('./images/skyline.svg');
    background-repeat: repeat-x;
    background-position: bottom center;
    background-size: contain;
    opacity: 0.08;
    z-index: 1;
}

/* Hero Section with Orbit Animation */
.orbit-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.orbit-path {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    max-width: 800px;
    max-height: 800px;
    opacity: 0.7;
}

.orbit-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(122, 201, 67, 0.8);
    animation: orbit 15s linear infinite;
}

@keyframes orbit {
    0% {
        transform: rotate(0deg) translateX(40vmin) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translateX(40vmin) rotate(-360deg);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes rotate {
    0% { transform: translateX(-50%) translateY(-50%) rotate(0deg); }
    100% { transform: translateX(-50%) translateY(-50%) rotate(360deg); }
}

/* Services Section */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-speed) ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid var(--primary-color);
}

/* Mobility Grid with Masonry Layout */
.masonry-grid {
    column-count: 2;
    column-gap: 1.5rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .masonry-grid {
        column-count: 3;
    }
}

@media (min-width: 1200px) {
    .masonry-grid {
        column-count: 4;
    }
}

.grid-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

.card-content {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.img-placeholder {
    height: 150px;
    background-color: rgba(37, 51, 77, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    margin-top: 1rem;
    border-radius: 5px;
    font-size: 0.8rem;
    text-align: center;
    padding: 1rem;
    border: 1px dashed rgba(37, 51, 77, 0.3);
}

/* Impact Metrics Section with Gauge Charts */
.metrics-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    text-align: center;
}

.metric-gauge {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gauge-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: white;
    position: relative;
    margin-bottom: 1rem;
    overflow: hidden;
}

.gauge-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transform: rotate(0deg);
    transform-origin: center;
    transition: all 1.5s ease-out;
}

.gauge-fill[data-percentage="40"] {
    background: conic-gradient(var(--primary-color) 40%, transparent 40%);
}

.gauge-fill[data-percentage="60"] {
    background: conic-gradient(var(--primary-color) 60%, transparent 60%);
}

.gauge-fill[data-percentage="75"] {
    background: conic-gradient(var(--primary-color) 75%, transparent 75%);
}

.gauge-fill[data-percentage="90"] {
    background: conic-gradient(var(--primary-color) 90%, transparent 90%);
}

/* Section Decoration */
.section-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 1;
}

/* Gauge Decoration */
.gauge-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.gauge-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

/* Process Section with Vertical Timeline */
.timeline-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    padding: 2rem 0;
}

.timeline {
    writing-mode: vertical-rl;
    display: flex;
    flex-direction: row-reverse;
    max-height: 500px;
    overflow-x: auto;
    padding: 0 2rem;
}

.timeline-item {
    position: relative;
    min-width: 200px;
    padding: 0 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 2px;
    background-color: var(--secondary-color);
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    width: 14px;
    height: 14px;
    background-color: var(--primary-color);
    border-radius: 50%;
    transform: translateY(-50%);
}

.timeline-content {
    writing-mode: horizontal-tb;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 3rem auto 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input, textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Urbanist', sans-serif;
}

/* Thank You Message Styles */
.thank-you-message {
    text-align: center;
    padding: 2rem 1rem;
}

.thank-you-message h3 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.thank-you-message p {
    margin-bottom: 2rem;
}

.thank-you-message .cta-button {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.thank-you-message .cta-button:hover {
    background-color: var(--primary-color);
    color: var(--text-dark);
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: var(--padding-standard);
    scroll-snap-align: end;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

.company-info p {
    margin-bottom: 0.5rem;
}

.contact-details {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 1rem;
}

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

.footer-links a {
    color: var(--text-light);
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.copyright {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Secondary Pages (Privacy & Terms) */
.secondary-page header {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 1rem var(--padding-standard);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-light);
}

.top-nav ul {
    list-style: none;
    display: flex;
}

.top-nav a {
    color: var(--text-light);
    padding: 0.5rem 1rem;
}

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

.secondary-page main {
    background: var(--background-light);
    min-height: calc(100vh - 200px);
    padding: 5rem var(--padding-standard);
}

.placeholder-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: white;
    padding: 3rem 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.placeholder-message {
    margin-top: 2rem;
}

.placeholder-message .cta-button {
    margin-top: 2rem;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .orbit-dot, 
    .compass-needle,
    .gauge-fill {
        animation: none;
        transition: none;
    }
    
    button:hover, .cta-button:hover, .service-card:hover {
        transform: none;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .vertical-nav {
        width: 40px;
    }
    
    .hero-section, 
    .band-section {
        clip-path: none;
    }
    
    .timeline {
        writing-mode: horizontal-tb;
        flex-direction: column;
        max-height: none;
        max-width: 100%;
    }
    
    .timeline-item {
        min-width: auto;
        padding: 2rem 0 0 2rem;
    }
    
    .timeline-item::before {
        top: 0;
        right: auto;
        left: 0;
        height: 100%;
        width: 2px;
    }
    
    .timeline-item::after {
        top: 0;
        right: auto;
        left: -6px;
        transform: none;
    }
} 