/* ===== HERO SECTION STYLES ===== */
.hero-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 500px;
    padding: 160px 20px 40px;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    width: 100%;
    max-width: 1000px;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 1s ease-out 0.3s forwards;
}

.hero-content {
    background: #0f0f0f;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(236, 198, 181, 0.2);
    border-radius: 32px;
    padding: 48px 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    text-align: left;
    flex-shrink: 0;
    width: 380px;
}

.hero-brand {
    font-size: 16px;
    font-weight: 600;
    color: rgba(236, 198, 181, 0.8);
    letter-spacing: 4.5px;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
    margin: 0 0 32px 0;
    letter-spacing: 1.5px;
    width: 100%;
    overflow: hidden;
}

.hero-title .highlight {
    color: #ecc6b5;
    font-weight: 700;
}

.hero-title .italic {
    font-style: italic;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 400;
    letter-spacing: 8px;
}

.no-break {
    white-space: nowrap;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 2.5px;
}

/* ===== DICE BLOCK STYLES ===== */
.dice-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.dice-text-top,
.dice-text-bottom {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
}

.dice-container {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #151515 30%, #0f0f0f 70%, #0a0a0a 100%);
    border: 1px solid rgba(236, 198, 181, 0.6);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.dice-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 64px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.dice-number.final {
    color: #ecc6b5;
}

.dice-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    max-width: 90px;
    max-height: 90px;
    object-fit: contain;
    display: none;
}

.dice-logo.final {
    display: block;
}

/* ===== ZOOM EFFECT FOR FINAL 7 ===== */
@keyframes finalZoom {
    0% {
        transform: scale(1);
        box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 
            inset 0 1px 3px rgba(0, 0, 0, 0.3),
            0 0 10px rgba(236, 198, 181, 0.25),
            0 0 20px rgba(236, 198, 181, 0.12);
    }
    100% {
        transform: scale(1);
        box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
    }
}

.dice-container.zoom-effect {
    animation: finalZoom 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ===== ANIMATIONS ===== */
@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes diceRotate {
    0% { 
        transform: rotate(0deg); 
    }
    100% { 
        transform: rotate(360deg); 
    }
}

.dice-container.rotating {
    animation: diceRotate 1s linear;
}

/* ===== RESPONSIVE STYLES ===== */

/* Desktop */
@media (min-width: 1025px) {
    .hero-section {
        padding: 180px 40px 50px;
        min-height: 550px;
    }
    
    .hero-container {
        gap: 140px;
        max-width: 1200px;
        align-items: center;
    }
    
    .hero-content {
        width: 580px;
        padding: 48px 56px;
    }
    
    .hero-title {
        font-size: 56px;
    }
    
    .hero-brand {
        font-size: 18px;
        margin-bottom: 24px;
        font-weight: 700;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .dice-container {
        width: 160px;
        height: 160px;
    }

    .dice-number {
        font-size: 72px;
    }

    .dice-logo {
        max-width: 105px;
        max-height: 105px;
    }
    
    .dice-text-top,
    .dice-text-bottom {
        font-size: 26px;
        font-weight: 700;
    }
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 768px) {
    .hero-section {
        padding: 160px 30px 50px;
        min-height: 480px;
    }
    
    .hero-container {
        gap: 80px;
        max-width: 900px;
    }
    
    .hero-content {
        width: 450px;
        padding: 48px 40px;
    }
    
    .hero-title {
        font-size: 48px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .hero-section {
        padding: 140px 15px 50px;
        min-height: 420px;
    }
    
    .hero-container {
        flex-direction: column;
        gap: 0;
        max-width: calc(100% - 40px);
        width: 100%;
    }
    
    /* Single unified box for mobile */
    .hero-content {
        width: 100%;
        max-width: 380px;
        padding: 32px 32px;
        border-radius: 28px;
        border: 2px solid rgba(236, 198, 181, 0.15);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        text-align: center;
        overflow: hidden;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Mobile content structure */
    .mobile-content-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;
        width: 100%;
    }
    
    .mobile-text-section {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    
    .mobile-divider-section {
        width: 100%;
        display: flex;
        justify-content: center;
        align-self: center;
        margin: 16px 0;
    }
    
    .mobile-divider {
        width: 160px;
        height: 2px;
        background-color: #ecc6b5;
    }
    
    .mobile-dice-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        align-self: center;
    }
    
    .hero-brand {
        font-size: 14px;
        font-weight: 600;
        color: rgba(236, 198, 181, 0.8);
        letter-spacing: 3px;
        margin-bottom: 16px;
        text-transform: uppercase;
        text-align: left;
        align-self: flex-start;
        display: none;
    }
    
    .hero-title {
        font-size: 34px;
        margin-bottom: 20px;
        line-height: 1.2;
        text-align: left;
        align-self: flex-start;
        word-break: break-word;
        hyphens: auto;
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    
    .hero-subtitle {
        font-size: 18px;
        margin-bottom: 0;
        text-align: left;
        align-self: flex-start;
    }
    
    .dice-container {
        width: 100px;
        height: 100px;
    }

    .dice-number {
        font-size: 48px;
    }

    .dice-logo {
        max-width: 65px;
        max-height: 65px;
    }
    
    .dice-text-top,
    .dice-text-bottom {
        font-size: 20px;
        font-weight: 700;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-section {
        padding: 130px 10px 30px;
        min-height: 380px;
    }
    
    .hero-container {
        max-width: calc(100% - 20px);
    }
    
    .hero-content {
        max-width: 320px;
        padding: 28px 28px;
        border-radius: 24px;
        gap: 28px;
    }
    
    .hero-brand {
        font-size: 12px;
        letter-spacing: 2px;
        margin-bottom: 12px;
    }
    
    .hero-title {
        font-size: 30px;
        line-height: 1.2;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .dice-container {
        width: 90px;
        height: 90px;
    }

    .dice-number {
        font-size: 42px;
    }

    .dice-logo {
        max-width: 60px;
        max-height: 60px;
    }
    
    .dice-text-top,
    .dice-text-bottom {
        font-size: 18px;
        font-weight: 700;
    }
}

/* ===== SERVICES SECTION STYLES ===== */
.services-section {
    padding: 20px 20px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.services-container {
    width: 100%;
    max-width: 1200px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out 0.3s, transform 1s ease-out 0.3s;
}

.services-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.services-header {
    text-align: center;
    margin-bottom: 24px;
}

.services-title {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 24px 0;
    letter-spacing: 1.5px;
}

.services-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    letter-spacing: 1px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    width: 100%;
    padding-top: 12px;
}

.service-box {
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(236, 198, 181, 0.15);
    border-radius: 24px;
    padding: 40px 32px;
    text-align: left;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    animation: subtleFloat 5s ease-in-out infinite;
    display: block;
    color: inherit;
    text-decoration: none;
}

.service-link {
    transition: all 0.3s ease;
}

.service-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(236, 198, 181, 0.25);
}

.service-link:active {
    transform: translateY(0px);
}

/* Subtile Floating Animation */
@keyframes subtleFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-6px) rotate(1.2deg);
    }
}

/* Verschiedene Delays für natürlichere Bewegung */
.service-box:nth-child(1) {
    animation-delay: 0s;
}

.service-box:nth-child(2) {
    animation-delay: 1s;
}

.service-box:nth-child(3) {
    animation-delay: 2s;
}

.service-box:nth-child(4) {
    animation-delay: 3s;
}

/* ===== CLICK HINT STYLES ===== */
.click-hint {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 20px;
    transform: rotate(-12deg);
    pointer-events: none;
    z-index: 10;
    animation: premiumPulse 3s ease-in-out infinite;
}

@keyframes premiumPulse {
    0%, 100% {
        transform: rotate(-12deg) scale(1) translateX(0);
    }
    50% {
        transform: rotate(-12deg) scale(1.15) translateX(-2px);
    }
}

.service-icon {
    font-size: 42px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 50%, #0f0f0f 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    margin-left: 0;
    margin-right: auto;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
}


.service-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 24px 0;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-features li {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.feature-icon {
    margin-right: 12px;
    font-size: 18px;
    flex-shrink: 0;
}

/* ===== SERVICES ANIMATIONS ===== */
@keyframes servicesFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SERVICES RESPONSIVE STYLES ===== */

/* Desktop */
@media (min-width: 1025px) {
    .services-section {
        padding: 30px 40px 50px;
    }
    
    .services-container {
        max-width: 1400px;
    }
    
    .services-header {
        margin-bottom: 32px;
    }
    
    .services-title {
        font-size: 56px;
    }
    
    .services-subtitle {
        font-size: 20px;
    }
    
    .services-grid {
        gap: 40px;
    }
    
    .service-box {
        padding: 48px 40px;
    }
    
    .click-hint {
        top: 20px;
        right: 20px;
        font-size: 24px;
    }
    
    .service-title {
        font-size: 22px;
    }
    
    .service-features li {
        font-size: 17px;
    }
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 768px) {
    .services-section {
        padding: 25px 30px 40px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    
    .services-title {
        font-size: 44px;
    }
    
    .service-box {
        padding: 36px 28px;
    }
    
    .click-hint {
        top: 14px;
        right: 14px;
        font-size: 18px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .services-section {
        padding: 15px 15px 30px;
    }
    
    .services-header {
        margin-bottom: 32px;
    }
    
    .services-title {
        font-size: 36px;
        line-height: 1.2;
    }
    
    .services-subtitle {
        font-size: 16px;
    }
    
    .services-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 24px;
        padding: 12px 5px 20px 5px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* Internet Explorer 10+ */
    }
    
    .services-grid::-webkit-scrollbar {
        display: none; /* Safari and Chrome */
    }
    
    .service-box {
        flex: 0 0 280px;
        scroll-snap-align: center;
        padding: 32px 24px;
        border-radius: 20px;
    }
    
    /* Mobile: Hover-Effekte entfernen */
    .service-link:hover {
        transform: none;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
        border-color: rgba(236, 198, 181, 0.15);
    }
    
    .service-link:active {
        transform: none;
    }
    
    .click-hint {
        top: 12px;
        right: 12px;
        font-size: 20px;
    }
    
    .service-icon {
        font-size: 36px;
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }
    
    .service-title {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .service-features {
        gap: 14px;
    }
    
    .service-features li {
        font-size: 15px;
    }
    
    .feature-icon {
        font-size: 16px;
        margin-right: 10px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .services-section {
        padding: 10px 10px 25px;
    }
    
    .services-title {
        font-size: 32px;
    }
    
    .services-subtitle {
        font-size: 15px;
    }
    
    .services-header {
        margin-bottom: 28px;
    }
    
    .service-box {
        flex: 0 0 260px;
        padding: 28px 20px;
    }
    
    .click-hint {
        top: 10px;
        right: 10px;
        font-size: 18px;
    }
    
    .service-title {
        font-size: 17px;
    }
    
    .service-features li {
        font-size: 14px;
    }
}

/* ===== MOBILE DOTS INDICATOR ===== */
.mobile-dots {
    display: none;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: default;
    pointer-events: none;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #ecc6b5;
    transform: scale(1.2);
}


/* Show dots only on mobile */
@media (max-width: 767px) {
    .mobile-dots {
        display: flex;
    }
}

/* ===== CLICK HINT TEXT ===== */
.click-hint-text {
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
    margin-top: 24px;
    margin-bottom: 24px;
    padding: 0 20px;
    line-height: 1.4;
}

/* ===== CLICK HINT RESPONSIVE STYLES ===== */

/* Desktop */
@media (min-width: 1025px) {
    .click-hint-text {
        font-size: 20px;
        margin-top: 32px;
        margin-bottom: 32px;
        padding: 0 40px;
    }
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 768px) {
    .click-hint-text {
        font-size: 18px;
        margin-top: 28px;
        margin-bottom: 28px;
        padding: 0 30px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .click-hint-text {
        font-size: 16px;
        margin-top: 24px;
        margin-bottom: 24px;
        padding: 0 15px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .click-hint-text {
        font-size: 15px;
        margin-top: 20px;
        margin-bottom: 20px;
        padding: 0 10px;
    }
}

/* ===== ACCESSIBILITY & MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    .hero-container {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .dice-container.rotating {
        animation: none;
    }

    .dice-container {
        transform: none;
    }

    .service-box {
        animation: none;
    }

    .reference-box {
        animation: none;
    }
}

/* ===== REFERENCES SECTION STYLES ===== */
.references-section {
    padding: 0px 20px 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.references-container {
    width: 100%;
    max-width: 1200px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.references-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.references-header {
    text-align: center;
    margin-bottom: 24px;
}

.references-title {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 24px 0;
    letter-spacing: 1.5px;
}

.references-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 32px;
    width: 100%;
    padding-top: 12px;
}

.reference-category-box {
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(236, 198, 181, 0.15);
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.reference-category-box:nth-child(3) {
    grid-column: 1 / -1;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.gallery-header-hint {
    font-size: 18px;
    font-weight: 700;
    color: rgba(236, 198, 181, 0.9);
    letter-spacing: 0.5px;
    margin-left: auto;
}

.category-icon {
    font-size: 36px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 50%, #0f0f0f 100%);
    border: 2px solid rgba(236, 198, 181, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.category-title {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.5px;
}

.category-title .mobile-only {
    display: none;
}

@media (max-width: 767px) {
    .category-title .mobile-only {
        display: block;
    }
}


.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.socials-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.social-more-button {
    margin-top: 24px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #c92a2a 0%, #a61e1e 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(201, 42, 42, 0.3);
}

.social-more-button:hover {
    background: linear-gradient(135deg, #d63939 0%, #c92a2a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(201, 42, 42, 0.4);
}

.project-item,
.social-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: rgba(25, 25, 25, 0.6);
    border: 1.5px solid rgba(236, 198, 181, 0.2);
    border-radius: 14px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-item:hover,
.social-item:hover {
    background: rgba(35, 35, 35, 0.8);
    border-color: rgba(236, 198, 181, 0.4);
    transform: translateY(-2px);
}

.project-item {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(236, 198, 181, 0.25);
    padding: 20px;
}

.project-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(236, 198, 181, 0.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.social-item {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(236, 198, 181, 0.25);
    padding: 22px 24px;
}

.social-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(236, 198, 181, 0.45);
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.project-name {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
}

.project-description {
    font-size: 13px;
    font-weight: 500;
    color: rgba(236, 198, 181, 0.7);
    letter-spacing: 0.2px;
}

.project-icon,
.social-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.social-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.project-name,
.social-name {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
}

.social-description {
    font-size: 13px;
    font-weight: 500;
    color: rgba(236, 198, 181, 0.7);
    letter-spacing: 0.2px;
}

.gallery-container {
    width: 100%;
}

.gallery-image-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-image-wrapper:hover {
    transform: scale(1.02);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-image-wrapper:hover .gallery-overlay {
    opacity: 1;
}

.gallery-hint {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.image-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.active {
    opacity: 1;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 10001;
}

.modal-image {
    width: 100%;
    height: 100%;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(236, 198, 181, 0.3);
    border: 2px solid rgba(236, 198, 181, 0.4);
    border-radius: 50%;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    font-family: Arial, sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    transition: transform 0.3s ease, background 0.3s ease;
}

.modal-close:hover {
    background: rgba(236, 198, 181, 0.4);
    transform: scale(1.1);
}



/* ===== REFERENCES ANIMATIONS ===== */
@keyframes referencesFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== REFERENCES RESPONSIVE STYLES ===== */

/* Desktop */
@media (min-width: 1025px) {
    .references-section {
        padding: 0px 40px 100px;
    }

    .references-container {
        max-width: 1400px;
    }

    .references-header {
        margin-bottom: 32px;
    }

    .references-title {
        font-size: 56px;
    }

    .references-grid {
        gap: 40px;
    }

    .reference-category-box {
        padding: 44px 40px;
    }

    .category-icon {
        width: 80px;
        height: 80px;
        font-size: 40px;
    }

    .category-title {
        font-size: 28px;
    }

    .gallery-image-wrapper {
        height: 450px;
    }
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 768px) {
    .references-section {
        padding: 0px 30px 80px;
    }

    .references-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .references-title {
        font-size: 44px;
    }

    .reference-category-box {
        padding: 36px 28px;
    }

    .gallery-image-wrapper {
        height: 350px;
    }

    .gallery-header-hint {
        font-size: 13px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .references-section {
        padding: 0px 15px 60px;
    }

    .references-header {
        margin-bottom: 32px;
    }

    .references-title {
        font-size: 36px;
        line-height: 1.2;
    }

    .references-grid {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .reference-category-box {
        padding: 28px 24px;
    }

    .reference-category-box:hover {
        border-color: rgba(236, 198, 181, 0.15);
    }

    .reference-category-box:nth-child(3) {
        grid-column: auto;
    }

    .category-header {
        margin-bottom: 20px;
        flex-wrap: wrap;
        align-items: center;
    }

    .gallery-header-hint {
        width: 100%;
        margin-left: 0;
        margin-top: 8px;
        flex-basis: 100%;
    }

    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 32px;
        flex-shrink: 0;
    }

    .category-title {
        font-size: 22px;
        line-height: 1.2;
        flex: 1;
    }

    .category-title br {
        display: block;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .socials-grid {
        gap: 12px;
    }

    .project-item,
    .social-item {
        padding: 16px 18px;
    }

    .project-icon,
    .social-icon {
        font-size: 24px;
    }

    .project-name,
    .social-name {
        font-size: 15px;
    }

    .gallery-image-wrapper {
        height: 250px;
    }

    .gallery-image-wrapper:hover {
        transform: none;
    }

    .gallery-image-wrapper:hover .gallery-overlay {
        opacity: 0;
    }

    .gallery-hint {
        font-size: 16px;
    }

    .gallery-header-hint {
        font-size: 12px;
        width: 100%;
        text-align: center;
        margin-left: 0;
        margin-top: 8px;
    }

    .references-grid {
        grid-template-columns: 1fr;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .references-section {
        padding: 0px 10px 50px;
    }

    .references-title {
        font-size: 32px;
    }

    .references-header {
        margin-bottom: 28px;
    }

    .reference-category-box {
        padding: 24px 20px;
    }

    .reference-category-box:hover {
        border-color: rgba(236, 198, 181, 0.15);
    }

    .category-title {
        font-size: 20px;
    }

    .gallery-image-wrapper {
        height: 200px;
    }

    /* Remove all hover effects on mobile */
    .project-item:hover,
    .social-item:hover {
        background: rgba(255, 255, 255, 0.03);
        border-color: rgba(236, 198, 181, 0.25);
        transform: none;
        box-shadow: none;
    }

    .social-more-button:hover {
        background: linear-gradient(135deg, #c92a2a 0%, #a61e1e 100%);
        transform: none;
        box-shadow: 0 4px 12px rgba(201, 42, 42, 0.3);
    }

    .gallery-image-wrapper:hover {
        transform: none;
    }

    .gallery-image-wrapper:hover .gallery-overlay {
        opacity: 0;
    }

    .gallery-overlay {
        display: none;
    }
}

/* ===== REFERENCES MOBILE DOTS INDICATOR ===== */
.references-mobile-dots {
    display: none;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.references-mobile-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: default;
    pointer-events: none;
    transition: all 0.3s ease;
}

.references-mobile-dots .dot.active {
    background-color: #ecc6b5;
    transform: scale(1.2);
}

@media (max-width: 767px) {
    .references-mobile-dots {
        display: flex;
    }
}