/* Al-Habib Electronics Premium Background Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --pearl-white: #fafbfc;
    --soft-white: #f8f9fa;
    --light-blue: #e8f4f8;
    --cyan: #00d4ff;
    --mint-green: #e8f8f0;
    --silver: #e0e4e8;
    --text-dark: #1a1a2e;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow: hidden;
    background: var(--pearl-white);
}

.background-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, 
        var(--pearl-white) 0%, 
        var(--soft-white) 25%,
        var(--light-blue) 50%,
        var(--mint-green) 75%,
        var(--pearl-white) 100%
    );
    overflow: hidden;
}

/* Animated gradient orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.2) 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168, 230, 207, 0.3) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.05);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }
    75% {
        transform: translate(20px, 10px) scale(1.02);
    }
}

/* Circuit pattern */
.circuit-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
    pointer-events: none;
}

.circuit-svg {
    width: 100%;
    height: 100%;
}

/* Tech lines animation */
.tech-lines line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 8s ease-in-out infinite;
}

.tech-lines line:nth-child(2) {
    animation-delay: 2s;
}

.tech-lines line:nth-child(3) {
    animation-delay: 4s;
}

.tech-lines line:nth-child(4) {
    animation-delay: 6s;
}

@keyframes drawLine {
    0% {
        stroke-dashoffset: 1000;
        opacity: 0;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        stroke-dashoffset: -1000;
        opacity: 0;
    }
}

/* Circuit nodes pulse */
.circuit-nodes circle {
    animation: pulse 3s ease-in-out infinite;
}

.circuit-nodes circle:nth-child(2),
.circuit-nodes circle:nth-child(5),
.circuit-nodes circle:nth-child(8) {
    animation-delay: 1s;
}

.circuit-nodes circle:nth-child(3),
.circuit-nodes circle:nth-child(6),
.circuit-nodes circle:nth-child(9) {
    animation-delay: 2s;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

/* Signal waves animation */
.signal-waves path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: wave 4s ease-in-out infinite;
}

.signal-waves path:nth-child(2) {
    animation-delay: 0.5s;
}

.signal-waves path:nth-child(3) {
    animation-delay: 1s;
}

@keyframes wave {
    0% {
        stroke-dashoffset: 200;
        opacity: 0;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        stroke-dashoffset: -200;
        opacity: 0;
    }
}

/* Digital waves */
.digital-waves path {
    animation: digitalWave 10s ease-in-out infinite;
}

.digital-waves path:nth-child(2) {
    animation-delay: 3s;
}

.digital-waves path:nth-child(3) {
    animation-delay: 6s;
}

@keyframes digitalWave {
    0%, 100% {
        d: path("M 0 300 Q 480 250, 960 300 T 1920 300");
    }
    50% {
        d: path("M 0 300 Q 480 350, 960 300 T 1920 300");
    }
}

/* Smart icons */
.smart-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.icon {
    position: absolute;
    width: 60px;
    height: 60px;
    color: var(--cyan);
    opacity: 0.15;
    animation: iconFloat 15s ease-in-out infinite;
}

.icon svg {
    width: 100%;
    height: 100%;
}

.icon-wifi {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.icon-chip {
    top: 70%;
    right: 15%;
    animation-delay: -5s;
}

.icon-home {
    bottom: 20%;
    left: 20%;
    animation-delay: -10s;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.1;
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
        opacity: 0.2;
    }
}

/* Glassmorphism overlay */
.glass-overlay {
    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.1) 100%
    );
    backdrop-filter: blur(0.5px);
    -webkit-backdrop-filter: blur(0.5px);
    pointer-events: none;
}

/* Logo container - centered with clean space */
.logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.logo-placeholder {
    width: 400px;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-placeholder:hover {
    transform: scale(1.02);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.9) inset;
}

.logo-placeholder span {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.logo-placeholder p {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

/* Subtle grid pattern */
.subtle-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 100px 100px;
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .logo-placeholder {
        width: 300px;
        height: 300px;
    }
    
    .logo-placeholder span {
        font-size: 22px;
    }
    
    .orb-1 {
        width: 400px;
        height: 400px;
    }
    
    .orb-2 {
        width: 350px;
        height: 350px;
    }
    
    .orb-3 {
        width: 300px;
        height: 300px;
    }
}

/* Print styles for exporting */
@media print {
    .background-container {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}