/* Main Stylesheet for ANIU STUDIO Website */

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headline Fonts */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--button-bg);
    color: var(--button-text);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 8px 8px;
    z-index: 1000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid var(--text-color);
    outline-offset: 2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.site-header {
    padding: 2rem 0;
    position: sticky;
    top: 0;
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    overflow: visible;
}

.site-header.scrolled {
    padding: 1rem 0;
    background-color: var(--header-bg-scrolled);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--text-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo:focus {
    outline: none;
}

.logo:focus-visible {
    outline: 2px solid var(--text-color);
    outline-offset: 4px;
}

.site-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.site-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font-heading);
    transition: opacity 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.site-nav a:hover {
    opacity: 0.7;
}

/* Hero */
.hero {
    padding: 20vh 0 15vh;
    border-bottom: 1px solid var(--border-color);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
    max-width: 900px;
}

.hero-text {
    font-size: 1.25rem;
    max-width: 600px;
    color: var(--text-muted);
    font-weight: 300;
}

/* Sections */
.section {
    padding: 6rem 0;
    border-bottom: 1px solid var(--border-color);
}

.section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 3rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

#om-heading,
#tjanster-heading,
#kontakt-heading,
#intro-heading,
#pricing-heading,
#projects-heading,
#story-heading,
#faq-heading {
    position: relative;
    padding: 0.2rem 0.8rem;
    display: inline-block;
    line-height: 1.2;
    z-index: 1;
}

#om-heading::before,
#tjanster-heading::before,
#kontakt-heading::before,
#intro-heading::before,
#pricing-heading::before,
#projects-heading::before,
#story-heading::before,
#faq-heading::before {
    content: '';
    position: absolute;
    top: -0.4rem;
    left: -0.8rem;
    right: -0.8rem;
    bottom: -0.4rem;
    background-color: var(--highlight-color);
    z-index: -1;
    transform: rotate(-2deg);
    clip-path: polygon(
        2% 8%, 8% 3%, 15% 1%, 22% 0%, 30% 2%, 38% 0%, 45% 1%, 52% 0%, 
        60% 2%, 68% 1%, 75% 0%, 82% 3%, 90% 1%, 98% 5%, 100% 12%,
        100% 88%, 98% 95%, 92% 99%, 85% 100%, 78% 98%, 70% 100%, 
        62% 98%, 55% 100%, 48% 99%, 40% 100%, 32% 98%, 25% 100%, 
        18% 97%, 10% 99%, 3% 96%, 0% 90%, 0% 15%
    );
    opacity: 0.95;
}

/* Individual variations for hand-drawn marker pen effect */
#om-heading::before {
    transform: rotate(-1.5deg);
    clip-path: polygon(
        1% 10%, 7% 4%, 14% 2%, 21% 0%, 28% 1%, 35% 0%, 42% 2%, 50% 0%, 
        58% 1%, 65% 0%, 72% 3%, 80% 1%, 88% 4%, 95% 2%, 100% 8%,
        100% 85%, 97% 92%, 90% 98%, 83% 100%, 76% 97%, 68% 100%, 
        60% 98%, 53% 100%, 46% 99%, 38% 100%, 31% 97%, 24% 100%, 
        17% 98%, 10% 100%, 4% 97%, 0% 92%, 0% 12%
    );
    top: -0.35rem;
    left: -0.75rem;
    right: -0.85rem;
}

#tjanster-heading::before {
    transform: rotate(1.8deg);
    clip-path: polygon(
        0% 12%, 6% 5%, 13% 2%, 20% 0%, 27% 1%, 34% 0%, 41% 3%, 49% 1%, 
        57% 0%, 64% 2%, 71% 0%, 79% 3%, 86% 1%, 93% 5%, 100% 10%,
        100% 90%, 96% 96%, 89% 100%, 82% 98%, 74% 100%, 67% 99%, 
        59% 100%, 52% 97%, 45% 100%, 37% 98%, 30% 100%, 23% 97%, 
        16% 100%, 9% 98%, 2% 95%, 0% 88%
    );
    top: -0.45rem;
    left: -0.9rem;
    right: -0.7rem;
}

#kontakt-heading::before {
    transform: rotate(-2.5deg);
    clip-path: polygon(
        3% 7%, 9% 2%, 16% 0%, 23% 1%, 31% 0%, 38% 2%, 46% 0%, 54% 1%, 
        61% 0%, 69% 3%, 76% 1%, 84% 4%, 91% 2%, 98% 6%, 100% 13%,
        100% 87%, 97% 94%, 91% 99%, 84% 100%, 77% 97%, 69% 100%, 
        61% 98%, 54% 100%, 46% 99%, 39% 100%, 32% 97%, 25% 100%, 
        18% 98%, 11% 100%, 4% 96%, 0% 89%
    );
    top: -0.4rem;
    left: -0.85rem;
    right: -0.75rem;
}

#intro-heading::before {
    transform: rotate(1.2deg);
    clip-path: polygon(
        0% 11%, 5% 4%, 12% 1%, 19% 0%, 26% 2%, 33% 0%, 40% 1%, 48% 0%, 
        56% 2%, 63% 0%, 70% 3%, 78% 1%, 85% 4%, 92% 2%, 99% 7%, 100% 14%,
        100% 86%, 98% 93%, 92% 98%, 85% 100%, 78% 97%, 70% 100%, 
        62% 98%, 55% 100%, 47% 99%, 40% 100%, 33% 97%, 26% 100%, 
        19% 98%, 12% 100%, 5% 96%, 0% 90%
    );
    top: -0.38rem;
    left: -0.7rem;
    right: -0.9rem;
}

#pricing-heading::before {
    transform: rotate(-1.8deg);
    clip-path: polygon(
        2% 9%, 8% 3%, 15% 1%, 22% 0%, 29% 2%, 37% 0%, 44% 1%, 52% 0%, 
        60% 3%, 67% 1%, 75% 0%, 82% 2%, 89% 0%, 96% 4%, 100% 11%,
        100% 89%, 97% 96%, 91% 100%, 84% 98%, 77% 100%, 69% 98%, 
        61% 100%, 54% 99%, 46% 100%, 39% 97%, 32% 100%, 25% 98%, 
        18% 100%, 11% 97%, 4% 100%, 0% 93%
    );
    top: -0.42rem;
    left: -1.5rem;
    right: -1.5rem;
}

#projects-heading::before {
    transform: rotate(1.5deg);
    clip-path: polygon(
        1% 7%, 7% 2%, 14% 1%, 21% 0%, 28% 2%, 36% 0%, 43% 1%, 51% 0%, 
        59% 2%, 66% 0%, 73% 3%, 81% 1%, 88% 4%, 95% 2%, 100% 9%,
        100% 91%, 97% 97%, 90% 100%, 83% 98%, 76% 100%, 68% 98%, 
        61% 100%, 53% 99%, 46% 100%, 38% 97%, 31% 100%, 24% 98%, 
        17% 100%, 10% 97%, 3% 100%, 0% 92%
    );
    top: -0.4rem;
    left: -0.75rem;
    right: -0.85rem;
}

#story-heading::before {
    transform: rotate(2.2deg);
    clip-path: polygon(
        1% 8%, 7% 3%, 14% 1%, 21% 0%, 28% 2%, 36% 0%, 43% 1%, 51% 0%, 
        59% 2%, 66% 0%, 73% 3%, 81% 1%, 88% 4%, 95% 2%, 100% 9%,
        100% 91%, 97% 97%, 90% 100%, 83% 98%, 75% 100%, 68% 99%, 
        60% 100%, 53% 97%, 45% 100%, 38% 98%, 31% 100%, 24% 97%, 
        17% 100%, 10% 98%, 3% 95%, 0% 88%
    );
    top: -0.4rem;
    left: -0.8rem;
    right: -0.8rem;
}

#faq-heading::before {
    transform: rotate(-1.3deg);
    clip-path: polygon(
        0% 10%, 6% 4%, 13% 1%, 20% 0%, 27% 2%, 35% 0%, 42% 1%, 50% 0%, 
        58% 2%, 65% 0%, 72% 3%, 80% 1%, 87% 3%, 94% 1%, 100% 7%,
        100% 93%, 98% 99%, 92% 100%, 85% 98%, 78% 100%, 70% 98%, 
        62% 100%, 55% 99%, 47% 100%, 40% 97%, 33% 100%, 26% 98%, 
        19% 100%, 12% 97%, 5% 100%, 0% 94%
    );
    top: -0.36rem;
    left: -0.78rem;
    right: -0.82rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text {
    display: block;
}

.about-text p {
    font-size: 1.5rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    background-color: var(--card-bg);
    display: block;
    text-decoration: none;
    color: inherit;
}

.service-card:hover {
    background-color: var(--card-bg-hover);
    transform: translateY(-5px);
}

.service-card:has(a):hover {
    border-color: #FFC5D3;
}

.service-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    outline: none;
}

.service-card a:focus {
    outline: none;
}

.service-card a:focus-visible {
    outline: 2px solid var(--text-color);
    outline-offset: 2px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

.service-card p {
    color: var(--text-muted);
}

/* Contact */
.contact-content {
    max-width: 600px;
}

/* CTA Section */
.cta-section {
    background-color: var(--bg-color);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 3rem;
    background-color: var(--button-bg);
    color: var(--button-text);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.cta-button:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Footer */
.site-footer {
    padding: 4rem 0;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-links a {
    color: var(--text-muted);
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    color: var(--text-color);
}

.social-links svg {
    width: 24px;
    height: 24px;
}

/* Facebook Logo */
.social-facebook {
    transition: color 0.3s ease, transform 0.4s ease;
}

.social-facebook:hover {
    transform: scale(1.08);
}

/* Instagram Logo */
.social-instagram {
    transition: color 0.3s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-instagram:hover {
    transform: rotate(8deg) scale(1.15);
    animation: instagram-artistic 0.6s ease-in-out;
}

@keyframes instagram-artistic {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-5deg) scale(1.1); }
    50% { transform: rotate(8deg) scale(1.18); }
    75% { transform: rotate(5deg) scale(1.12); }
    100% { transform: rotate(8deg) scale(1.15); }
}

/* LinkedIn - Logo */
.social-linkedin {
    transition: color 0.3s ease, transform 0.25s ease-out;
}

.social-linkedin:hover {
    transform: translateY(-4px) scale(1.05);
}

/* TikTok - Logo */
.social-tiktok {
    transition: color 0.3s ease;
}

.social-tiktok:hover {
    animation: tiktok-bounce 0.6s ease-in-out infinite;
}

@keyframes tiktok-bounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    20% { transform: translateY(-8px) rotate(-8deg); }
    40% { transform: translateY(-4px) rotate(6deg); }
    60% { transform: translateY(-10px) rotate(-4deg); }
    80% { transform: translateY(-2px) rotate(8deg); }
}

/* JS Interactions */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: none;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 15vh 0 10vh;
    }
    
    .site-nav ul {
        gap: 1rem;
    }

    .site-nav a {
        font-size: 0.8rem;
    }
    
    .logo {
        font-size: 1.1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text p {
        font-size: 1.25rem;
    }
}
