:root {
    --primary-dark: #0d0f0c;
    --secondary-dark: #1a1d18;
    --tertiary-dark: #2d3028;
    --accent-steel: #8a8d7f;
    --accent-stone: #6b6e62;
    --accent-wild: #d4d0b5;
    --accent-warning: #d4b537;
    --text-light: #f0f0e8;
    --text-muted: #a0a294;
    --border-dark: #3a3d35;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--primary-dark);
    color: var(--text-light);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) contrast(1.2) grayscale(0.3);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(13, 15, 12, 0.95) 0%, rgba(26, 29, 24, 0.8) 50%, rgba(13, 15, 12, 0.95) 100%);
}

.nature-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.leaf {
    position: absolute;
    font-size: 2rem;
    opacity: 0.2;
    animation: float 20s infinite linear;
    filter: grayscale(1);
}

.leaf-1 { top: 10%; left: 10%; animation-delay: 0s; }
.leaf-2 { top: 30%; right: 15%; animation-delay: 5s; }
.leaf-3 { bottom: 20%; left: 20%; animation-delay: 10s; }

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-100vh) rotate(360deg); }
}

.animal-tracks {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2rem;
    opacity: 0.3;
    filter: grayscale(1);
}

.paw-print {
    font-size: 1.5rem;
    animation: paw-step 2s infinite;
}

.paw-print:nth-child(2) { animation-delay: 0.5s; }
.paw-print:nth-child(3) { animation-delay: 1s; }

@keyframes paw-step {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
}

.main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(13, 15, 12, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-dark);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-wild);
}

.nav-links, .nav-auth {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-wild);
    transition: width 0.3s ease;
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link:hover {
    color: var(--accent-wild);
}

.auth-btn {
    padding: 0.7rem 1.5rem;
    border: 1px solid var(--border-dark);
    background: rgba(45, 48, 40, 0.3);
    color: var(--text-light);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-weight: 600;
    letter-spacing: 1px;
}

.auth-btn:hover {
    border-color: var(--accent-steel);
    background: rgba(138, 141, 127, 0.1);
    transform: translateY(-1px);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
    z-index: 2;
    width: 100%;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.title-line {
    display: block;
    color: var(--accent-wild);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.title-subline {
    display: block;
    font-size: 1.5rem;
    color: var(--accent-steel);
    font-weight: 400;
    margin-top: 0.5rem;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 2.5rem;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid var(--border-dark);
    border-radius: 4px;
    text-decoration: none;
    min-width: 200px;
}

.cta-button.primary {
    background: linear-gradient(45deg, var(--tertiary-dark), var(--accent-steel));
    border-color: var(--accent-steel);
}

.cta-button.secondary {
    background: rgba(45, 48, 40, 0.5);
}

.cta-button .btn-hover {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 208, 181, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover .btn-hover {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-wild);
}

.world-section {
    min-height: 100vh;
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    padding: 6rem 2rem;
    position: relative;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    line-height: 1.2;
}

.title-accent {
    display: block;
    color: var(--accent-steel);
    font-size: 2.5rem;
}

.feature-icon {
    width: 200px;
    height: 200px;
    margin: 0 auto 5rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: rgba(26, 29, 24, 0.6);
    padding: 2.5rem 2rem;
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(138, 141, 127, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    border-color: var(--accent-steel);
    transform: translateY(-5px);
    background: rgba(26, 29, 24, 0.8);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--accent-wild);
    font-weight: 600;
    letter-spacing: 1px;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

.main-footer {
    background: var(--primary-dark);
    border-top: 1px solid var(--border-dark);
    padding: 2rem 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--accent-wild);
}

.footer-info {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-info p {
    margin-bottom: 0.3rem;
}

.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 15, 12, 0.95);
    z-index: 2000;
    backdrop-filter: blur(10px);
}

.auth-modal.active {
    display: flex;
    align-items: flex-start;
}

.auth-container {
    background: var(--secondary-dark);
    border: 1px solid var(--border-dark);
    border-left: none;
    border-radius: 0 8px 8px 0;
    padding: 2rem;
    width: 400px;
    height: 100vh;
    position: relative;
    box-shadow: 0 0 30px rgba(0,0,0,0.7);
    overflow-y: auto;
}

.dog-animation {
    position: fixed;
    right: -100%;
    top: 0;
    height: 100vh;
    width: calc(100% - 400px);
    opacity: 0;
    z-index: 1999;
    pointer-events: none;
    transition: all 0.6s ease-in-out;
}

.dog-animation.visible {
    right: 0;
    opacity: 1;
}

.dog-image {
    width: 100%;
    height: 100%;
    background: url('../images/dog.png') no-repeat center center;
    background-size: contain;
}

.auth-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.auth-close:hover {
    color: var(--accent-wild);
}

.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-dark);
}

.auth-tab {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-weight: 600;
    border-bottom: 2px solid transparent;
}

.auth-tab.active {
    color: var(--accent-wild);
    border-bottom-color: var(--accent-wild);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input {
    width: 100%;
    padding: 1rem 0;
    background: none;
    border: none;
    border-bottom: 1px solid var(--border-dark);
    color: var(--text-light);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-bottom-color: var(--accent-steel);
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 0;
    color: var(--text-muted);
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:focus + label,
.form-group input:valid + label {
    top: -0.5rem;
    font-size: 0.8rem;
    color: var(--accent-steel);
}

.form-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-wild);
    transition: width 0.3s ease;
}

.form-group input:focus ~ .form-line {
    width: 100%;
}

.auth-submit-btn {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(45deg, var(--tertiary-dark), var(--accent-steel));
    border: 1px solid var(--border-dark);
    color: var(--text-light);
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.auth-submit-btn:hover {
    border-color: var(--accent-wild);
    transform: translateY(-1px);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.paw-loading {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.paw {
    font-size: 2rem;
    opacity: 0;
    animation: pawJump 1.5s infinite;
}

.paw:nth-child(1) { animation-delay: 0s; }
.paw:nth-child(2) { animation-delay: 0.2s; }
.paw:nth-child(3) { animation-delay: 0.4s; }
.paw:nth-child(4) { animation-delay: 0.6s; }

@keyframes pawJump {
    0%, 100% { opacity: 0; transform: translateY(20px) scale(0.8); }
    50% { opacity: 1; transform: translateY(0) scale(1.1); }
}

.loading-text {
    color: var(--accent-wild);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .nav-container {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .title-subline {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .nav-links, .nav-auth {
        display: none;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .auth-container {
        width: 100%;
        height: 100%;
        border-radius: 0;
        border-left: 1px solid var(--border-dark);
    }
    
    .dog-animation {
        display: none;
    }
    
    .burger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }
    
    .burger-line {
        width: 100%;
        height: 3px;
        background: var(--accent-wild);
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .burger-menu.active .burger-line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .burger-menu.active .burger-line:nth-child(2) {
        opacity: 0;
    }
    
    .burger-menu.active .burger-line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .mobile-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(13, 15, 12, 0.98);
        backdrop-filter: blur(20px);
        z-index: 999;
        transition: left 0.3s ease;
        padding: 80px 2rem 2rem;
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    
    .mobile-menu.active {
        left: 0;
    }
    
    .mobile-nav-links {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .mobile-nav-link {
        color: var(--text-light);
        text-decoration: none;
        font-size: 1.2rem;
        font-weight: 600;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-dark);
        transition: color 0.3s ease;
    }
    
    .mobile-nav-link:hover {
        color: var(--accent-wild);
    }
    
    .mobile-auth {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: auto;
    }
    
    .mobile-auth-btn {
        padding: 1rem;
        border: 1px solid var(--border-dark);
        background: rgba(45, 48, 40, 0.5);
        color: var(--text-light);
        border-radius: 4px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-family: inherit;
        font-weight: 600;
        text-align: center;
    }
    
    .mobile-auth-btn:hover {
        border-color: var(--accent-steel);
        background: rgba(138, 141, 127, 0.1);
    }
    
    .hero-content {
        padding-top: 80px;
        padding-bottom: 2rem;
    }
    
    .animal-tracks {
        bottom: 80px;
        gap: 1.5rem;
    }
    
    .paw-print {
        font-size: 1.2rem;
    }
}

@media (min-width: 769px) {
    .burger-menu, .mobile-menu {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }
    
    .title-line {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }
    
    .title-subline {
        font-size: 1.3rem;
        line-height: 1.3;
    }
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 2.5rem;
    }
    
    .hero-actions {
        gap: 1rem;
    }
    
    .cta-button {
        max-width: 280px;
    }
    
    .animal-tracks {
        bottom: 60px;
        gap: 1rem;
    }
    
    .paw-print {
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .title-line {
        font-size: 2rem;
    }
    
    .title-subline {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .hero-content {
        padding-top: 70px;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .mobile-menu {
        padding: 70px 1rem 1rem;
    }
    
    .animal-tracks {
        bottom: 50px;
        gap: 0.8rem;
    }
    
    .paw-print {
        font-size: 0.9rem;
    }
}

@media (max-height: 600px) and (orientation: portrait) {
    .hero-content {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .hero-title {
        margin-bottom: 1rem;
    }
    
    .hero-description {
        margin-bottom: 2rem;
    }
    
    .animal-tracks {
        display: none;
    }
}

@media (max-width: 900px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 4rem 0;
    }
    
    .hero-content {
        padding: 2rem 1rem;
    }
    
    .nav-container {
        padding: 0.5rem 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .animal-tracks {
        bottom: 60px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .cta-button:hover,
    .auth-btn:hover,
    .nav-link:hover {
        transform: none;
    }
    
    .cta-button:active,
    .auth-btn:active,
    .nav-link:active {
        transform: scale(0.98);
    }
    
    .feature-card:hover {
        transform: none;
        border-color: var(--border-dark);
    }
    
    .feature-card:active {
        transform: scale(0.99);
        border-color: var(--accent-steel);
    }
}

@media (max-width: 768px) {
    input, select, textarea {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    html {
        -webkit-overflow-scrolling: touch;
    }
    
    body {
        overflow-x: hidden;
    }
}

@media (max-width: 768px) {
    .video-background video {
        filter: brightness(0.3) contrast(1.2) grayscale(0.4);
    }
    
    .video-overlay {
        background: linear-gradient(45deg, rgba(13, 15, 12, 0.98) 0%, rgba(26, 29, 24, 0.9) 50%, rgba(13, 15, 12, 0.98) 100%);
    }
}