/* Yaqadh Section Styles */
:root {
    --yaqadh-bg-start: #0f0c29;
    --yaqadh-bg-mid: #302b63;
    --yaqadh-bg-end: #24243e;
    --yaqadh-accent: #a855f7; /* Lighter Purple */
    --yaqadh-card-bg: rgba(255, 255, 255, 0.03);
}

.yaqadh-section {
    position: relative;
    padding: 8rem 5%;
    background: linear-gradient(135deg, var(--yaqadh-bg-start), var(--yaqadh-bg-mid), var(--yaqadh-bg-end));
    overflow: hidden;
    color: #fff;
    min-height: 100vh;
}

/* Background Elements */
.yaqadh-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 0;
}

.yaqadh-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Hero Header */
.yaqadh-header {
    text-align: center;
    margin-bottom: 5rem;
}

/* Logo Styling */
.yaqadh-logo-img {
    width: 180px; /* Increased size for impact */
    height: auto;
    margin: 0 auto 1.5rem;
    display: block;
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.4)); /* Glow effect matching logo */
    animation: float 6s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.yaqadh-logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 30px rgba(168, 85, 247, 0.6));
}

.yaqadh-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, var(--yaqadh-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.yaqadh-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 1px;
}

/* 5 Modules Grid */
.yaqadh-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
    margin-bottom: 6rem;
}

.module-card {
    grid-column: span 2;
    background: var(--yaqadh-card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    backdrop-filter: blur(10px);
}

/* Center the last two items */
.module-card:nth-child(4) {
    grid-column: 2 / span 2;
}

.module-card:nth-child(5) {
    grid-column: 4 / span 2;
}

.module-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--yaqadh-accent);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(168, 85, 247, 0.2);
}

.module-visual {
    width: 100%;
    height: 160px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.module-visual img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 0 5px rgba(168, 85, 247, 0.3));
}

.module-card:hover .module-visual img {
    transform: scale(1.15) translateY(-5px);
    filter: drop-shadow(0 0 25px rgba(168, 85, 247, 0.8));
}

.module-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.module-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Live Demo - Laptop Frame */
.live-demo-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    perspective: 1000px;
}

.laptop-frame {
    background: #0f0f12;
    border-radius: 20px 20px 0 0;
    padding: 15px 15px 0 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    position: relative;
    transition: transform 0.5s ease;
}

.laptop-frame:hover {
    transform: rotateX(2deg);
}

.laptop-screen {
    background: #000;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
}

.laptop-camera {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #333;
    border-radius: 50%;
    z-index: 10;
}

.laptop-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.laptop-base {
    height: 12px;
    background: #1a1a1d;
    border-radius: 0 0 20px 20px;
    margin-top: -1px;
    position: relative;
}

.laptop-base::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: #2a2a2d;
    border-radius: 0 0 10px 10px;
}

/* Responsive */
@media (max-width: 968px) {
    .yaqadh-grid {
        grid-template-columns: 1fr;
    }
    
    .module-card, .module-card:nth-child(4), .module-card:nth-child(5) {
        grid-column: span 1;
    }
    
    .yaqadh-title {
        font-size: 2.5rem;
    }
    
    .yaqadh-logo-img {
        width: 140px; /* Smaller on mobile */
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Added from Inline Styles */
.yaqadh-section {
    padding-top: 150px !important; /* Force override for fixed nav */
}

.yaqadh-status-badge {
    margin-bottom: 1rem;
    justify-content: center;
    width: 100%;
    border-color: var(--yaqadh-accent);
    color: var(--yaqadh-accent);
}

.yaqadh-status-dot {
    background: var(--yaqadh-accent);
    box-shadow: 0 0 10px var(--yaqadh-accent);
}

.yaqadh-demo-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Added from Inline Styles */
.yaqadh-section {
    padding-top: 150px !important;
}

.yaqadh-status-badge {
    margin-bottom: 1rem;
    justify-content: center;
    width: 100%;
    border-color: var(--yaqadh-accent);
    color: var(--yaqadh-accent);
}

.yaqadh-status-dot {
    background: var(--yaqadh-accent);
    box-shadow: 0 0 10px var(--yaqadh-accent);
}

.yaqadh-demo-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
