/* Domaines Section Styles */

.domaines-section {
    padding: 120px 0 80px;
    min-height: 100vh;
    background: #0f172a;
    /* Dark blue background */
    position: relative;
    overflow: hidden;
}

/* Spotlight Overlay */
#spotlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    transition: background 0.1s;
}

/* Background Grid Pattern */
.domaines-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    mask-image: radial-gradient(circle at 50% 50%, black, transparent);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black, transparent);
}

.domaines-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.domaines-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #a5a5a5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.domaines-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 700px;
    margin: 0 auto;
}

/* Domain Cards */
.domain-card-premium {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 40px;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 10;
    transition: transform 0.1s ease-out;
    /* Smooth tilt */
}

/* Glow Effect on Hover using pseudo-element driven by JS variables */
.domain-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y),
            rgba(255, 255, 255, 0.06),
            transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: -1;
}

.domain-card-premium:hover::before {
    opacity: 1;
}

/* Border Glow */
.domain-card-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y),
            rgba(255, 255, 255, 0.3),
            transparent 40%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s;
    /* This essentially makes the background appear only on the border */
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 1px;
    /* Border width */
}

.domain-card-premium:hover::after {
    opacity: 1;
}


.domain-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.domain-icon-wrapper::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transform: rotate(45deg);
    animation: shire 3s infinite;
}

@keyframes shire {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.main-domain-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.cloud-domain-bg {
    background: linear-gradient(135deg, #00c6fb 0%, #005bea 100%);
}

.domain-content {
    flex-grow: 1;
}

.domain-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.domain-url {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 25px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 15px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.domain-desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 35px;
    font-size: 1rem;
}

.btn-domain-link {
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    text-decoration: none;
    border-radius: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-domain-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-domain-link:hover::before {
    width: 100%;
}

.btn-domain-link i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.btn-domain-link:hover i {
    transform: translateX(5px);
}

/* Animations fixes */
.domaines-section .reveal {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
}

/* Responsive */
@media (max-width: 768px) {
    .domaines-header h1 {
        font-size: 2.5rem;
    }

    .domain-card-premium {
        padding: 30px;
        transform: none !important;
        /* Disable 3D tilt on mobile */
    }

    #spotlight {
        display: none;
        /* Disable spotlight on mobile for performance */
    }
}