/* =============================================
   SOGEPAL - Site en Construction
   styles.css
   ============================================= */

/* ----- CSS Variables ----- */
:root {
    --color-primary-dark: #0D1B4C;
    --color-primary: #1E3A8A;
    --color-accent: #E53935;
    --color-accent-dark: #C62828;
    --color-white: #ffffff;
    --color-text-primary: rgba(255, 255, 255, 1);
    --color-text-secondary: rgba(239, 246, 255, 0.9);
    --color-text-muted: rgba(191, 219, 254, 0.8);
    --color-text-subtle: rgba(191, 219, 254, 0.4);
    --color-glass-bg: rgba(255, 255, 255, 0.03);
    --color-glass-border: rgba(255, 255, 255, 0.08);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-base: 0.3s ease;
    --shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-badge: 0 4px 15px rgba(229, 57, 53, 0.4);
    --shadow-logo: 0 0 20px rgba(229, 57, 53, 0.3);
}

/* ----- Reset & Base ----- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(145deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-primary-dark) 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ----- Grid Pattern Overlay ----- */
.grid-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 1;
}

/* ----- Accent Shapes ----- */
.accent-shape {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
}

.accent-shape-top {
    top: 0;
    right: 0;
    width: 24rem;
    height: 24rem;
    background: radial-gradient(circle, rgba(229, 57, 53, 0.15) 0%, transparent 70%);
    animation: pulseScale 4s ease-in-out infinite;
}

.accent-shape-bottom {
    bottom: 0;
    left: 0;
    width: 20rem;
    height: 20rem;
    background: radial-gradient(circle, rgba(229, 57, 53, 0.1) 0%, transparent 70%);
    animation: pulseScale 4s ease-in-out infinite 0.5s;
}

/* ----- Floating Geometric Shapes ----- */
.floating-dot {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
}

.floating-dot-1 {
    top: 5rem;
    left: 15%;
    width: 0.75rem;
    height: 0.75rem;
    background-color: var(--color-accent);
    animation: floatUp 6s ease-in-out infinite;
}

.floating-dot-2 {
    top: 8rem;
    right: 20%;
    width: 0.5rem;
    height: 0.5rem;
    background-color: rgba(255, 255, 255, 0.3);
    animation: floatDown 8s ease-in-out infinite;
}

.floating-square {
    position: fixed;
    bottom: 10rem;
    right: 10%;
    width: 1rem;
    height: 1rem;
    background-color: rgba(229, 57, 53, 0.5);
    transform: rotate(45deg);
    pointer-events: none;
    z-index: 2;
    animation: floatUp 5s ease-in-out infinite;
}

/* ----- Main Container ----- */
.main-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
    z-index: 10;
}

@media (min-width: 768px) {
    .main-container {
        padding: 2rem;
    }
}

/* ----- Header & Logo ----- */
.site-header {
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .site-header {
        margin-bottom: 3rem;
    }
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    filter: drop-shadow(var(--shadow-logo));
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--color-white);
    stroke-width: 2.5;
}

@media (min-width: 768px) {
    .logo-icon {
        width: 3rem;
        height: 3rem;
    }
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.875rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--color-white);
}

@media (min-width: 768px) {
    .logo-text {
        font-size: 2.25rem;
    }
}

/* ----- Glass Card ----- */
.glass-card {
    background: var(--color-glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-glass-border);
    border-radius: 1.5rem;
    padding: 2rem;
    max-width: 42rem;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
    .glass-card {
        padding: 3rem;
    }
}

@media (min-width: 992px) {
    .glass-card {
        padding: 4rem;
    }
}

/* ----- Background Icon ----- */
.background-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

.background-icon svg {
    width: 12rem;
    height: 12rem;
    color: var(--color-white);
    opacity: 0.05;
    stroke-width: 1;
}

@media (min-width: 768px) {
    .background-icon svg {
        width: 16rem;
        height: 16rem;
    }
}

/* ----- Status Badge ----- */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    box-shadow: var(--shadow-badge);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.badge-icon {
    width: 1rem;
    height: 1rem;
    animation: swing 2s ease-in-out infinite;
    transform-origin: top center;
}

/* ----- Main Title ----- */
.main-title {
    font-family: var(--font-heading);
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.main-title .emoji {
    margin-right: 0.75rem;
}

@media (min-width: 768px) {
    .main-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 992px) {
    .main-title {
        font-size: 3rem;
    }
}

/* ----- Accent Line ----- */
.accent-line {
    height: 0.25rem;
    width: 5rem;
    background-color: var(--color-accent);
    border-radius: 9999px;
    margin: 0 auto 1.5rem;
}

/* ----- Subtitle ----- */
.subtitle {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .subtitle {
        font-size: 1.25rem;
    }
}

/* ----- Description ----- */
.description {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--color-text-muted);
    max-width: 32rem;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .description {
        font-size: 1.125rem;
    }
}

/* ----- Decorative Icons ----- */
.decorative-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.deco-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: rgba(255, 255, 255, 0.3);
}

.deco-icon-accent {
    color: var(--color-accent);
}

/* ----- Footer ----- */
.site-footer {
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .site-footer {
        margin-top: 4rem;
    }
}

.footer-text {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: var(--color-text-subtle);
}

/* =============================================
   ANIMATIONS
   ============================================= */

/* ----- Fade In Down ----- */
.fade-in-down {
    opacity: 0;
    transform: translateY(-30px);
    animation: fadeInDown 0.8s ease-out forwards;
}

@keyframes fadeInDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----- Fade In Up ----- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----- Fade In ----- */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

.status-badge.fade-in-scale {
    animation-delay: 0.4s;
}

.main-title.fade-in {
    animation-delay: 0.5s;
}

.accent-line.expand-width {
    animation-delay: 0.55s;
}

.subtitle.fade-in {
    animation-delay: 0.6s;
}

.description.fade-in {
    animation-delay: 0.7s;
}

.decorative-icons.fade-in {
    animation-delay: 0.9s;
}

.site-footer.fade-in {
    animation-delay: 1s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ----- Fade In Scale ----- */
.fade-in-scale {
    opacity: 0;
    transform: scale(0.9);
    animation: fadeInScale 0.5s ease-out forwards;
}

@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ----- Expand Width ----- */
.expand-width {
    width: 0;
    animation: expandWidth 0.8s ease-out forwards;
}

@keyframes expandWidth {
    to {
        width: 5rem;
    }
}

/* ----- Float Up ----- */
@keyframes floatUp {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

/* ----- Float Down ----- */
@keyframes floatDown {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(20px) rotate(-5deg);
    }
}

/* ----- Pulse Scale ----- */
@keyframes pulseScale {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* ----- Swing ----- */
@keyframes swing {
    0%, 100% {
        transform: rotate(-5deg);
    }
    50% {
        transform: rotate(5deg);
    }
}

/* ----- Spin Slow ----- */
.spin-slow {
    animation: spinSlow 8s linear infinite;
}

@keyframes spinSlow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* =============================================
   UTILITY CLASSES
   ============================================= */

.text-center {
    text-align: center;
}

.position-relative {
    position: relative;
}

/* =============================================
   RESPONSIVE ADJUSTMENTS
   ============================================= */

@media (max-width: 576px) {
    .floating-dot-1,
    .floating-dot-2,
    .floating-square {
        display: none;
    }
    
    .accent-shape-top {
        width: 16rem;
        height: 16rem;
    }
    
    .accent-shape-bottom {
        width: 12rem;
        height: 12rem;
    }
}


