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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    overflow-x: hidden;
    animation: fadeIn 0.5s ease-out;
}

html {
    scroll-behavior: smooth;
}

/* Navigering överst */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.85) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

.main-nav.hidden {
    transform: translateY(-100%);
}

.nav-button {
    flex: 1;
    max-width: 300px;
    padding: 12px 30px;
    text-align: center;
    text-decoration: none;
    color: white;
    font-size: 0.95em;
    font-weight: 500;
    transition: all 0.3s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.nav-button:last-child {
    border-right: none;
}

.nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.nav-button:hover::before {
    left: 0;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-button:active {
    transform: scale(0.98);
}

/* Hem Sektion */
.home-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 100px 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: auto;
}

/* Paintings Carousel - Harmonisk bakgrund */
.paintings-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: auto;
}

.paintings-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
}


.paintings-title {
    font-family: 'Georgia', serif;
    font-size: 3.5em;
    color: white;
    margin-bottom: 60px;
    font-weight: 300;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 10;
}

.paintings-carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    perspective: 1500px;
    perspective-origin: center center;
}

.painting-item {
    position: absolute;
    width: 350px;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.1);
    left: 50%;
    top: 50%;
    margin-left: -175px;
    margin-top: -250px;
}

/* Initial positioning for carousel items */
.painting-item:nth-child(1) {
    transform: translateX(-450px) translateZ(-50px) rotateY(15deg) scale(0.8);
    z-index: 1;
    opacity: 0.7;
}

.painting-item:nth-child(2) {
    transform: translateX(-200px) translateZ(-25px) rotateY(8deg) scale(0.9);
    z-index: 3;
    opacity: 0.85;
}

.painting-item:nth-child(3) {
    transform: translateX(0) translateZ(0) rotateY(0deg) scale(1);
    z-index: 5;
    opacity: 1;
}

.painting-item:nth-child(4) {
    transform: translateX(200px) translateZ(-25px) rotateY(-8deg) scale(0.9);
    z-index: 3;
    opacity: 0.85;
}

.painting-item:nth-child(5) {
    transform: translateX(450px) translateZ(-50px) rotateY(-15deg) scale(0.8);
    z-index: 1;
    opacity: 0.7;
}

.painting-item:nth-child(6),
.painting-item:nth-child(7),
.painting-item:nth-child(8),
.painting-item:nth-child(9),
.painting-item:nth-child(10) {
    transform: translateX(700px) scale(0.5);
    z-index: 0;
    opacity: 0;
}

.painting-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.painting-info {
    display: none;
}

.painting-info h3 {
    font-size: 1.2em;
    margin-bottom: 5px;
    font-weight: 600;
}

.painting-info p {
    font-size: 0.9em;
    opacity: 0.9;
    line-height: 1.4;
}

/* Navigation arrows - only visible within paintings-container */
.paintings-container .paintings-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    font-size: 3em;
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 20;
    border-radius: 8px;
    width: 60px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Hide navigation arrows outside paintings wrapper */
section:not(.paintings-wrapper) .paintings-nav {
    display: none !important;
    visibility: hidden !important;
}

.paintings-container .paintings-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.paintings-container .paintings-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.paintings-container .paintings-nav.prev {
    left: 20px;
}

.paintings-container .paintings-nav.next {
    right: 20px;
}

/* Galerie och Tekniker Sektioner */
.page-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    padding: 100px 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: auto;
}

.tech-section {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

/* Ovala blob-former som bakgrund */
.blob {
    position: absolute;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    opacity: 0.15;
    animation: morphBlob 20s ease-in-out infinite;
}

.blob-1 {
    width: 500px;
    height: 600px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.blob-2 {
    width: 400px;
    height: 500px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    bottom: 10%;
    right: -5%;
    animation-delay: 5s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes morphBlob {
    0%, 100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }
    25% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
    75% {
        border-radius: 50% 40% 60% 40% / 40% 70% 40% 50%;
    }
}

.container-home {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    width: 100%;
}

.content-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.text-content {
    flex: 1;
    min-width: 300px;
}

.studio-title {
    font-size: 4em;
    color: #2d3748;
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 2em;
    color: #4a5568;
    margin-bottom: 30px;
    font-weight: 400;
    text-align: center;
}

.section-title {
    font-size: 3.5em;
    color: #2d3748;
    margin-bottom: 15px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.section-description {
    font-size: 1.2em;
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 20px;
}

.cta-button {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    user-select: none;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

.cta-button:active {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.5);
}

.image-content {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.image-blob {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: blobImage 10s ease-in-out infinite;
}

@keyframes blobImage {
    0%, 100% {
        border-radius: 50%;
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
}

.image-blob img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 20% center;
}

/* Flytande dekorativa element */
.floating-element {
    position: absolute;
    font-size: 3em;
    animation: float 3s ease-in-out infinite;
}

.element-1 {
    top: 10%;
    right: -10%;
    animation-delay: 0s;
}

.element-2 {
    bottom: 20%;
    left: -10%;
    animation-delay: 1s;
}

.element-3 {
    top: 50%;
    right: -5%;
    animation-delay: 2s;
}

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

/* Galerie Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    background: white;
    position: relative;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-info {
    padding: 20px;
    background: white;
}

.gallery-info h4 {
    font-size: 1.3em;
    color: #2d3748;
    margin-bottom: 8px;
    font-weight: 600;
}

.gallery-info p {
    color: #4a5568;
    font-size: 0.95em;
    line-height: 1.5;
    margin: 0;
}

/* Tech Cards */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.tech-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tech-card:hover::before {
    transform: scaleX(1);
}

.tech-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.tech-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.tech-card h3 {
    font-size: 1.5em;
    color: #2d3748;
    margin-bottom: 15px;
}

.tech-card p {
    color: #4a5568;
    line-height: 1.6;
}

/* Tech content wrapper with Eva button */
.tech-content-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.tech-section .eva-button-container {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 10;
}

.tech-section .eva-button {
    padding: 15px 28px;
    font-size: 1.1em;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.tech-section .eva-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.tech-section .eva-button:hover::before {
    width: 300px;
    height: 300px;
}

.tech-section .eva-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.tech-section .eva-button:active {
    transform: translateY(-1px);
}

.tech-section .eva-icon {
    font-size: 1.2em;
    z-index: 1;
}

.tech-section .eva-text {
    z-index: 1;
}

/* About Modal */
#aboutModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Responsiv design */
@media (max-width: 1200px) {
    .paintings-title {
        font-size: 3em;
    }
    
    .painting-item {
        width: 300px;
        height: 450px;
        margin-left: -150px;
        margin-top: -225px;
    }
    
    .painting-item:nth-child(1) {
        transform: translateX(-380px) translateZ(-50px) rotateY(15deg) scale(0.8);
    }
    
    .painting-item:nth-child(2) {
        transform: translateX(-180px) translateZ(-25px) rotateY(8deg) scale(0.9);
    }
    
    .painting-item:nth-child(4) {
        transform: translateX(180px) translateZ(-25px) rotateY(-8deg) scale(0.9);
    }
    
    .painting-item:nth-child(5) {
        transform: translateX(380px) translateZ(-50px) rotateY(-15deg) scale(0.8);
    }
}

@media (max-width: 768px) {
    .main-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .nav-button {
        max-width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding: 15px 20px;
        font-size: 1em;
    }
    
    .nav-button:last-child {
        border-bottom: none;
    }
    
    .paintings-title {
        font-size: 2.5em;
        margin-bottom: 40px;
    }
    
    .painting-item {
        width: 250px;
        height: 350px;
        margin-left: -125px;
        margin-top: -175px;
    }
    
    .painting-item:nth-child(1),
    .painting-item:nth-child(5),
    .painting-item:nth-child(6),
    .painting-item:nth-child(7),
    .painting-item:nth-child(8),
    .painting-item:nth-child(9),
    .painting-item:nth-child(10) {
        opacity: 0;
        transform: scale(0);
    }
    
    .painting-item:nth-child(2) {
        transform: translateX(-150px) translateZ(-25px) rotateY(8deg) scale(0.85);
    }
    
    .painting-item:nth-child(3) {
        transform: translateX(0) translateZ(0) rotateY(0deg) scale(1);
    }
    
    .painting-item:nth-child(4) {
        transform: translateX(150px) translateZ(-25px) rotateY(-8deg) scale(0.85);
    }
    
    .paintings-container .paintings-nav {
        font-size: 2em;
        width: 50px;
        height: 60px;
    }
    
    .paintings-container .paintings-nav.prev {
        left: 10px;
    }
    
    .paintings-container .paintings-nav.next {
        right: 10px;
    }
    
    .home-section, .page-section {
        padding: 80px 20px 60px;
    }
    
    .content-wrapper {
        flex-direction: column;
        gap: 40px;
    }
    
    .studio-title {
        font-size: 2.5em;
    }
    
    .section-subtitle {
        font-size: 1.5em;
    }
    
    .section-title {
        font-size: 2.5em;
    }
    
    .section-description {
        font-size: 1em;
    }
    
    .image-blob {
        height: 400px;
    }
    
    .blob-1, .blob-2, .blob-3 {
        width: 300px;
        height: 300px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-section .eva-button-container {
        position: static;
        text-align: center;
        margin-top: 40px;
    }
    
    .tech-section .eva-button {
        padding: 15px 25px;
        font-size: 1em;
    }
}

/* Kontakt Sektion */
.contact-section {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
}

.contact-section .section-title {
    color: #ffffff;
}

.contact-section .section-description {
    color: #ffffff;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info-box,
.contact-form-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-info-box {
    color: #333;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    font-size: 2.5em;
    min-width: 60px;
    text-align: center;
}

.contact-details h3 {
    color: #667eea;
    font-size: 1.3em;
    margin-bottom: 8px;
}

.contact-details p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.contact-details a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.map-container {
    margin-top: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-form-box {
    color: #333;
}

.contact-form-box h3 {
    color: #667eea;
    font-size: 1.8em;
    margin-bottom: 25px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group label {
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1em;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

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

.submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 35px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.submit-button:active {
    transform: translateY(0);
}

.button-icon {
    font-size: 1.2em;
}

.form-message {
    margin-top: 15px;
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

@media (max-width: 968px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-info-box,
    .contact-form-box {
        padding: 30px;
    }
}
