/* Reset and base styles */

:root {
    --bg-dark: hsl(210, 20%, 15%);
    --text-light: hsl(0, 0%, 98%);
    --accent: #58FF8D;
}

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

html {
    -webkit-overflow-scrolling: touch;
}

html, body {
    height: 100%;
}

h1, h2 { margin: 0; }

body {
    font-family: p22-mackinac-pro, serif;
    font-weight: 500;
    font-style: normal;
    background-color: var(--bg-dark);
    color: var(--text-light);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

body.loaded {
    opacity: 1;
}

/* Container */
.container {
    height: 100dvh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-image: 
        linear-gradient(rgba(33, 41, 52, 0.7), rgba(33, 41, 52, 0.7)),
        url('_xt/forest-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Logo */
.logo {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 10;
    animation: fadeIn 1s ease-out;
}

.logo svg {
    color: var(--text-light);
    transition: color 0.3s ease;
}

.logo:hover svg {
    color: var(--accent);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    min-height: 0; /* viktigt i vissa mobilbrowsers */
    animation: fadeIn 1s ease-out 0.2s both;
}

.main-content h1 {
    font-size: 4rem;
    line-height: 1.2;
    max-width: 64rem;
    margin: 0 auto;
    font-weight: 500;
}

.animated-text {
    color: var(--accent);
    font-style: italic;
    font-weight: 500;
    display: inline-block;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Footer */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-top: auto;
    padding: 1.5rem;
    z-index: 10;
    animation: slideUp 1s ease-out 0.4s both;
}

.company-name h2 {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.2;
    color: var(--text-light);
}

.contact-info {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-item a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.contact-item a:hover {
    color: var(--accent);
}

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (min-width: 768px) {
    .logo {
        top: 2rem;
        left: 2rem;
    }
    
    .main-content h1 {
        font-size: 4rem;
    }
    
    .footer {
        padding: 2rem;
    }
    
    .company-name h2 {
        font-size: 2rem;
        font-weight: 700;
        font-style: normal;
    }
}

@media (min-width: 1024px) {
    .main-content h1 {
        font-size: 5rem;
    }
}

@media (max-width: 640px) {

    
    .main-content {
        padding: 1.5rem 1rem;
    }
    
    .main-content h1 {
        font-size: 2rem;
    }
    
    .footer {
        padding: 1rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .company-name h2 {
        font-size: 1rem;
    }
    
    .contact-info {
        gap: 0.25rem;
    }
}