/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: var(--color-text-dark);
    background: var(--gradient-body);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(189, 198, 179, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(234, 229, 210, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

body > * {
    position: relative;
    z-index: 2;
}

/* ===================== */
/* EFFETTO FADE TRA PAGINE */
/* ===================== */
body {
    opacity: 1;
    transition: opacity 0.5s ease !important; /* Sovrascrive eventuali altre transizioni */
}

body.fade-out {
    opacity: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(
        135deg,
        var(--color-cta) 0%,
        var(--color-bg-dark-alt) 50%,
        var(--color-cta) 100%
    );
    backdrop-filter: blur(15px) saturate(120%);
    -webkit-backdrop-filter: blur(15px) saturate(120%);
    color: var(--color-cta-text);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: none;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(255, 255, 255, 0.02);
}

.btn::before {
    content: '🌙';
    font-size: 18px;
}

/* Effetti di rifrazione per il pulsante */
.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    transition: left 0.6s ease;
    z-index: 1;
}



.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.btn:hover {
    background: linear-gradient(
        135deg,
        var(--color-bg-dark-alt) 0%,
        var(--color-cta) 50%,
        var(--color-bg-dark-alt) 100%
    );
    border: 1px solid var(--color-accent);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05),
        0 0 25px rgba(255, 255, 255, 0.08);
}

.btn:hover::after {
    left: 100%;
}



/* Slideshow Styles */
.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000; /* Sfondo per bordi */
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.03) 0%,
        rgba(255, 255, 255, 0.01) 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    backdrop-filter: blur(18px) saturate(110%);
    -webkit-backdrop-filter: blur(18px) saturate(110%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 50px 60px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(255, 255, 255, 0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* Effetti di rifrazione e diffrazione */
.hero-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: left 0.8s ease;
    z-index: 1;
}

.hero-content::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.05) 0%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: 1;
}


.hero-content:hover {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.03) 0%,
        rgba(255, 255, 255, 0.01) 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05),
        0 0 40px rgba(255, 255, 255, 0.05);
    /* transform rimossa per evitare qualsiasi movimento */
}

.hero-content:hover::before {
    left: 100%;
}

.hero-content:hover::after {
    opacity: 1;
}



/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    position: fixed;
    width: 100%;
    background: var(--color-header-bg);
    z-index: 1000;
}

.logo h1 {
    transform: translateX(-15px);
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 2px;
}

nav ul {
    display: flex;
    list-style: none;
    position: relative;
    z-index: 1;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    display: inline-block;
    position: relative;
    z-index: 2;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--color-accent);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('https://via.placeholder.com/1920x1080') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.02) 0%,
        rgba(255, 255, 255, 0.005) 50%,
        rgba(255, 255, 255, 0.03) 100%
    );
    backdrop-filter: blur(12px) saturate(130%);
    -webkit-backdrop-filter: blur(12px) saturate(130%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 50px 60px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(255, 255, 255, 0.02),
        0 0 30px rgba(255, 255, 255, 0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.hero h2 {
    font-size: 48px;
    font-weight: 400;
    margin-bottom: 30px;
    letter-spacing: 2px;
    color: var(--color-text-light);
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

/* Portfolio Section */
.portfolio-categories {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    padding: 60px 20px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-categories::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

#portfolio {
  scroll-margin-top: 50px; /* Altezza del tuo header */
  padding-top: 100px; /* Stesso valore del scroll-margin */
  margin-top: 100px; /* Compensa lo spazio aggiunto */
}

/* Versione mobile */
@media (max-width: 768px) {
  #portfolio {
    scroll-margin-top: 150px; /* Più spazio su mobile se l'header è più alto */
    padding-top: 150px;
    margin-top: -150px;
  }
}



.portfolio h2{
    text-align: center;
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 50px;
    letter-spacing: 2px;
}

.category-card {
    flex: 0 0 300px; /* Larghezza fissa per ogni card */
    scroll-snap-align: start;
    text-decoration: none;
    color: var(--color-text-dark);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: blur(0);
    transform: scale(1) translateY(50px);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.03) 0%,
        rgba(255, 255, 255, 0.01) 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    backdrop-filter: blur(15px) saturate(110%);
    -webkit-backdrop-filter: blur(15px) saturate(110%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(255, 255, 255, 0.03);
    will-change: transform, filter;
    backface-visibility: hidden;
    opacity: 0;
    transform: scale(0.8) translateY(50px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}



.category-card:hover {
    transform: scale(1.15) translateY(-5px);
    z-index: 2;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 50%,
        rgba(255, 255, 255, 0.08) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(255, 255, 255, 0.08),
        0 0 20px rgba(255, 255, 255, 0.06);
}
/*
.portfolio-categories:hover .category-card:not(:hover) {
    filter: blur(2px) brightness(0.8);
    transform: scale(0.9);
    opacity: 0.7;
}*/

.category-card:hover ~ .category-card,
.category-card:has(~ .category-card:hover){  /* Seleziona le card successive */
/*.category-card:hover ~ .category-card + .category-card {  /* Seleziona le card adiacenti */
    filter: blur(2px);
    transform: scale(0.9);
    opacity: 0.8;
}



.category-image {
    height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat ;
}

.category-card h3 {
    padding: 20px;
    text-align: center;
    font-weight: 300;
    font-size: 24px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Effetti goccia d'acqua per le category card */
.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    background: 
        radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 90% 25%, rgba(255, 255, 255, 0.25) 0%, transparent 35%),
        radial-gradient(circle at 80% 35%, rgba(255, 255, 255, 0.2) 0%, transparent 30%),
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.25) 0%, transparent 35%),
        radial-gradient(circle at 10% 40%, rgba(255, 255, 255, 0.2) 0%, transparent 30%),
        radial-gradient(circle at 20% 60%, rgba(255, 255, 255, 0.15) 0%, transparent 25%);
    pointer-events: none;
    opacity: 0.4;
    animation: cardWaterDropsGlow 5s ease-in-out infinite;
    z-index: 1;
}

.category-card::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 12px;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    box-shadow: 
        0 0 8px rgba(255, 255, 255, 0.3),
        0 0 16px rgba(255, 255, 255, 0.2);
    animation: cardWaterDrop 4s ease-in-out infinite;
    z-index: 2;
}

@keyframes cardWaterDropsGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

@keyframes cardWaterDrop {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.3); }
}

/* Effetto shimmer per le card */
.category-card .shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.6s ease;
    z-index: 1;
}

.category-card:hover .shimmer {
    left: 100%;
}

.category-card:hover::after {
    animation: cardWaterDrop 2s ease-in-out infinite;
    opacity: 1;
}


 

/* About Section */
.about {
    display: flex;
    padding: 100px 50px;
    align-items: center;
    background: var(--color-bg-light);
}

.about-content {
    flex: 1;
    padding-right: 50px;
}

.about h2 {
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.about p {
    margin-bottom: 20px;
    font-weight: 300;
    line-height: 1.8;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
}

/* Contact Section */
.contact {
    padding: 100px 50px;
    text-align: center;
}

.contact h2 {
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 50px;
    letter-spacing: 2px;
}

#contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#contact-form input,
#contact-form textarea {
    padding: 15px;
    border: 1px solid var(--color-sage);
    font-size: 16px;
}

#contact-form textarea {
    height: 150px;
    resize: vertical;
}

.social-links {
    margin-top: 50px;
}

.social-links a {
    font-size: 24px;
    margin: 0 15px;
    color: var(--color-text-dark);
    transition: color 0.3s ease;
}

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

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    background: var(--color-bg-light);
    font-weight: 300;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 20px;
    }

    nav ul {
        margin-top: 20px;
    }

    nav ul li {
        margin: 0 10px;
    }

    .hero h2 {
        font-size: 36px;
    }

    .about {
        flex-direction: column;
        padding: 50px 20px;
    }

    .about-content {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .portfolio, .contact {
        padding: 50px 20px;
    }

    .portfolio-categories {
        gap: 30px;
        padding: 40px 10px;
    }

    /*Components/Navbar*/

    nav a.active {
    font-weight: bold;
    border-bottom: 2px solid var(--color-cta);
    }

/* ===================== */
/* PORTFOLIO PAGES STYLES */
/* ===================== */

/* Portfolio Hero Section */
.portfolio-hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: grayscale(100%) contrast(120%);
}

.hero-overlay {
    position: absolute;
    top: 120px;
    left: 80px;
    z-index: 2;
    color: #fff;
}

.hero-overlay h1 {
    font-size: 72px;
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.view-btn {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: lowercase;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.view-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Portfolio Gallery - NUOVO LAYOUT A CASCATA */
/* ===================== */
/* PORTFOLIO GALLERY STYLES */
/* ===================== */

.portfolio-gallery {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    min-height: 100vh;
}

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    align-items: start;
}

.gallery-item {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    min-height: 500px;
}

.gallery-item:nth-child(odd) {
    transform: translateY(30px);
}

.gallery-item:nth-child(even) {
    transform: translateY(0);
}

.gallery-item:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5),
                0 0 40px rgba(255, 255, 255, 0.1);
}

.item-image {
    width: 100%;
    height: 350px;
    background-size: cover;
    background-position: center;
    transition: all 0.5s ease;
    position: relative;
    filter: grayscale(30%) contrast(110%);
}

.gallery-item:hover .item-image {
    filter: grayscale(0%) contrast(120%);
    height: 360px;
}

.item-content {
    padding: 25px;
    color: #fff;
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.4);
}

.item-content h3 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.item-content p {
    font-size: 15px;
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 20px;
}

.item-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Liquid Glass Effects */
.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.15) 100%
    );
    z-index: 1;
    border-radius: 25px;
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: liquidFlow 8s linear infinite;
    z-index: 1;
}

@keyframes liquidFlow {
    0% { transform: rotate(30deg) translate(-30%, -30%); }
    100% { transform: rotate(30deg) translate(30%, 30%); }
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .gallery-item {
        transform: none !important;
        min-height: 450px;
    }
    
    .gallery-item:hover {
        transform: translateY(-5px) scale(1.01) !important;
    }
    
    .item-image {
        height: 250px;
    }
    
    .item-content {
        padding: 20px;
    }
    
    .item-content h3 {
        font-size: 20px;
    }
}
    
}

/* LIQUID GLASS EFFECT FOR ABOUT & CONTACT */
.about, .contact {
    background: linear-gradient(135deg, rgba(243, 241, 228, 0.95) 0%, rgba(234, 229, 210, 0.90) 100%);
    border-radius: 32px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10), 0 1.5px 0 rgba(255,255,255,0.10) inset;
    border: 1.5px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(18px) saturate(120%);
    -webkit-backdrop-filter: blur(18px) saturate(120%);
    position: relative;
    overflow: hidden;
    margin: 60px auto 80px auto;
    max-width: 1200px;
    padding: 70px 60px;
    z-index: 2;
}

.about::before, .contact::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.13) 0%, transparent 60%),
                radial-gradient(circle at 20% 80%, rgba(255,255,255,0.10) 0%, transparent 70%);
    opacity: 0.7;
    pointer-events: none;
    z-index: 1;
}

.about-content, .contact form, .contact .social-links {
    position: relative;
    z-index: 2;
}

.about h2, .contact h2 {
    font-size: 38px;
    font-weight: 300;
    margin-bottom: 30px;
    letter-spacing: 2px;
    color: var(--color-text-dark);
    text-shadow: 0 2px 8px rgba(255,255,255,0.12);
}

.about p {
    margin-bottom: 20px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--color-text-dark);
    font-size: 18px;
    opacity: 0.85;
}

.about-image img {
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10), 0 1.5px 0 rgba(255,255,255,0.10) inset;
    border: 1.5px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.10);
}

#contact-form {
    background: rgba(255,255,255,0.10);
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    border: 1px solid rgba(255,255,255,0.13);
    padding: 32px 24px;
    margin-bottom: 40px;
}

#contact-form input,
#contact-form textarea {
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 10px;
    color: var(--color-text-dark);
    font-size: 16px;
    margin-bottom: 18px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    transition: border 0.3s, box-shadow 0.3s;
}

#contact-form input:focus,
#contact-form textarea:focus {
    border: 1.5px solid var(--color-accent);
    outline: none;
    box-shadow: 0 2px 12px rgba(172, 145, 100, 0.25);
}

#contact-form button.btn {
    margin-top: 10px;
    width: 100%;
    background: linear-gradient(135deg, var(--color-cta) 0%, var(--color-bg-dark-alt) 50%, var(--color-cta) 100%);
    backdrop-filter: blur(15px) saturate(120%);
    -webkit-backdrop-filter: blur(15px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-cta-text);
    box-shadow: 0 4px 15px rgba(30, 69, 64, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

#contact-form button.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

#contact-form button.btn:hover {
    background: linear-gradient(135deg, var(--color-bg-dark-alt) 0%, var(--color-cta) 50%, var(--color-bg-dark-alt) 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 69, 64, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

#contact-form button.btn:hover::before {
    left: 100%;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    z-index: 2;
}

.social-links a {
    background: rgba(255,255,255,0.18);
    border-radius: 50%;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.13);
    color: var(--color-text-dark);
    font-size: 22px;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

.social-links a:hover {
    background: rgba(189, 198, 179, 0.4);
    color: var(--color-cta);
    box-shadow: 0 4px 16px rgba(30, 69, 64, 0.15);
}

@media (max-width: 900px) {
    .about, .contact {
        padding: 40px 10px;
        max-width: 98vw;
    }
    .about-content {
        padding-right: 0;
        margin-bottom: 30px;
    }
}

.slideshow-glass-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    background: rgba(255,255,255,0.15);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 8px 32px 0 rgba(31,38,135,0.15);
    padding: 0;
    margin: 95px auto 20px auto;
    max-width: 98vw;
    width: 98vw;
    height: calc(100vh - 110px);
    min-width: 320px;
    min-height: 320px;
    max-height: 900px;
    overflow: hidden;
}

.slideshow-container {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    color: #fff;
    background: rgba(0,0,0,0.18);
    padding: 2.5rem 2rem;
    border-radius: 24px;
    box-shadow: 0 2px 16px 0 rgba(31,38,135,0.10);
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
}

@media (max-width: 900px) {
  .slideshow-glass-container {
    width: 98vw;
    height: 38vh;
    min-width: 0;
    min-height: 180px;
    max-width: 100vw;
    max-height: 50vh;
    border-radius: 18px;
  }
  .slideshow-container {
    border-radius: 18px;
  }
  .hero-content {
    padding: 1.2rem 0.5rem;
    font-size: 1rem;
    border-radius: 12px;
  }
}

nav {
  position: relative;
}
nav .bubble {
  display: block !important;
  position: absolute;
  top: 50%;
  left: 0;
  height: 42px;
  background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(189,198,179,0.28) 40%, rgba(255,255,255,0.32) 100%);
  border-radius: 32px;
  box-shadow: 0 8px 36px 0 rgba(30,69,64,0.12), 0 2.5px 0 rgba(255,255,255,0.12) inset, 0 0 32px 6px rgba(172,145,100,0.15), 0 0 24px 8px rgba(189,198,179,0.12);
  border: 1.5px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 0;
  transition: width 0.45s cubic-bezier(0.34, 1.3, 0.64, 1), left 0.45s cubic-bezier(0.34, 1.3, 0.64, 1), opacity 0.3s ease;
  pointer-events: none;
  width: 0;
  opacity: 0;
  transform: translateY(-50%);
}
nav a.active::before {
  display: none !important;
}