/* 
========================================================================
   ALAA_SOFT - STYLESHEET
   Aesthetics: Modern, Premium, Minimalist, Tech-Inspired
   Layout: Split-pane dashboard (100vh no scroll) on desktop
========================================================================
*/

/* --- 1. RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --text-primary: #ffffff;
    --text-secondary: #94a3b8; /* Slate light */
    --bg-color: #040814;       /* Lighter, richer navy blue instead of pitch black */
    --accent-blue: #3b82f6;    /* Royal Blue */
    --accent-red: #ef4444;     /* Red accent */
    
    /* Lighting Beams */
    --beam-color-1: rgba(59, 130, 246, 0.12); /* Brighter blue beam */
    --beam-color-2: rgba(239, 68, 68, 0.05);  /* Subtle red glow */
}

html {
    scroll-behavior: smooth;
}

body {
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    overflow: hidden;
}

/* --- 2. CINEMATIC BACKGROUNDS --- */
.bg-cinematic {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 30%, #0c1c38 0%, var(--bg-color) 80%);
}

.bg-image {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('../images/tech_bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.18; /* Transparent background image overlay */
    mix-blend-mode: screen;
    pointer-events: none;
}

.light-beam {
    position: absolute;
    top: -50%; left: -20%;
    width: 200%; height: 200%;
    /* Subtle diagonal beam of blue light with a very soft red glow */
    background: linear-gradient(120deg, 
        rgba(59, 130, 246, 0) 35%, 
        var(--beam-color-1) 46%, 
        var(--beam-color-2) 50%, 
        var(--beam-color-1) 54%, 
        rgba(59, 130, 246, 0) 65%);
    transform: rotate(15deg);
    pointer-events: none;
    animation: slowDrift 15s ease-in-out infinite alternate;
}

@keyframes slowDrift {
    0% { transform: rotate(12deg) scale(1); }
    100% { transform: rotate(18deg) scale(1.08); }
}

.vignette {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, transparent 30%, rgba(4, 8, 20, 0.9) 100%);
    pointer-events: none;
}

/* --- 3. CONTAINER GRID LAYOUT --- */
.app-container {
    display: grid;
    grid-template-columns: 4.5fr 5.5fr;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Left Pane: Branding & Hero Countdown */
.left-pane {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3.5rem 4.5rem;
    height: 100%;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 10;
}

/* Right Pane: Navbar, Portfolio & Services */
.right-pane {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3.5rem 4.5rem;
    height: 100%;
    z-index: 10;
}

/* --- 4. BRANDING LOGO --- */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    color: var(--text-primary);
}

.tech-logo-svg {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
    animation: logoGlow 4s ease-in-out infinite alternate;
}

.logo-core {
    animation: corePulse 2s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 6px var(--accent-red));
}

@keyframes logoGlow {
    0% { filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.3)); }
    100% { filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.6)); }
}

@keyframes corePulse {
    0% { r: 2.5px; opacity: 0.7; }
    100% { r: 4px; opacity: 1; }
}

.logo-text {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.brand-logo .text-red {
    color: var(--accent-red);
    font-weight: 500;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

/* --- 5. HERO CONTENT & COUNTDOWN --- */
.hero-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.main-title {
    font-size: 2.8rem;
    font-weight: 200;
    margin-bottom: 1.2rem;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    line-height: 1.25;
}

.subtitle {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 500px;
}

.countdown {
    display: flex;
    gap: 2.5rem;
}
.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.number {
    font-size: 4.5rem;
    font-weight: 200;
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}
#days { color: var(--text-primary); }
#hours { color: var(--text-primary); }
#minutes { color: var(--accent-blue); text-shadow: 0 0 15px rgba(59, 130, 246, 0.2); }
#seconds { color: var(--accent-red); text-shadow: 0 0 15px rgba(239, 68, 68, 0.2); }

.label {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 4px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.footer-left {
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

/* --- 6. TOP NAVIGATION BAR --- */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    z-index: 10;
}
.nav-left {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.6rem 1.8rem;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.08);
    transition: all 0.3s ease;
}
.nav-left:hover {
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.15);
    background: rgba(255, 255, 255, 0.05);
}
.nav-info-item {
    color: #e2e8f0; /* Crisp light slate/white */
    font-weight: 400;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}
.name-tag {
    color: #ffffff;
    font-weight: 500;
    letter-spacing: 1px;
}
.nav-info-link {
    color: #60a5fa !important; /* Standout bright link */
    font-weight: 500;
    font-size: 0.8rem;
    text-decoration: none;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.3);
    transition: all 0.3s ease;
}
.nav-info-link:hover {
    color: #93c5fd !important;
    text-shadow: 0 0 15px rgba(147, 197, 253, 0.6);
}
.separator {
    color: rgba(255, 255, 255, 0.15);
    font-weight: 200;
}
.nav-right {
    display: flex;
    gap: 0.8rem;
}
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.social-icon:hover {
    border-color: var(--accent-blue);
    color: var(--text-primary);
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}
.social-icon:hover svg {
    stroke: var(--text-primary);
}

/* --- 7. PORTFOLIO SHOWCASE --- */
.portfolio-section {
    width: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 1.5rem 0;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 2rem;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: left;
}

.portfolio-grid {
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

.portfolio-item {
    position: relative;
    background: rgba(12, 28, 56, 0.35);
    border-radius: 20px;
    padding: 1.5rem;
    width: 100%;
    max-width: 620px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

/* Modern gradient border using mask */
.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 20px;
    padding: 1.5px; /* Border thickness */
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-red));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.7;
    transition: opacity 0.4s;
}

.portfolio-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(59, 130, 246, 0.15);
    background: rgba(12, 28, 56, 0.45);
}

.portfolio-item:hover::before {
    opacity: 1;
}

/* 16:9 Aspect Ratio website mockup container */
.portfolio-image-container {
    width: 220px;
    aspect-ratio: 16/9;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hover overlay showing zoom icon (jQuery style) */
.portfolio-image-container::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(4, 8, 20, 0.6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%233b82f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3C/svg%3E") no-repeat center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-image-container:hover::after {
    opacity: 1;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-image-container:hover .portfolio-image {
    transform: scale(1.1);
}

.portfolio-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.portfolio-item-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}

.portfolio-item-subtitle {
    font-size: 0.85rem;
    font-weight: 500;
    color: #60a5fa; /* Glowing light blue color for security sector */
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
    text-shadow: 0 0 8px rgba(96, 165, 250, 0.2);
}

.portfolio-item-desc {
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.2rem;
}

/* Gradient link button */
.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    background: linear-gradient(135deg, #60a5fa, #f43f5e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s;
    width: fit-content;
}

.link-arrow {
    stroke: #60a5fa;
    transition: transform 0.3s, stroke 0.3s;
    width: 14px;
    height: 14px;
}

.portfolio-link:hover .link-arrow {
    transform: translate(2px, -2px);
    stroke: #f43f5e;
}

/* --- 8. BOTTOM SERVICES BAR --- */
.bottom-section {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding: 0;
    gap: 1.5rem;
    background: none;
}
.column {
    flex: 1;
    text-align: left;
}
.column h3 {
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}
.column p {
    font-size: 0.75rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.5;
}
.col-separator {
    width: 1px;
    background-color: rgba(255, 255, 255, 0.1);
}

/* --- 9. JQUERY-STYLE LIGHTBOX OVERLAY --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(3, 7, 18, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 85%;
    max-height: 80%;
    border-radius: 12px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: var(--text-primary);
    font-size: 3rem;
    font-weight: 200;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--accent-red);
    transform: rotate(90deg);
}

/* --- 10. ANIMATIONS --- */
.fade-in {
    opacity: 0;
    animation: fadeIn 1.2s ease-in-out forwards;
}
.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }

@keyframes fadeIn {
    to { opacity: 1; }
}

/* --- 11. RESPONSIVE DESIGN (TABLET & MOBILE) --- */
@media (max-width: 1024px) {
    body {
        overflow-y: auto;
        height: auto;
    }
    
    .app-container {
        grid-template-columns: 1fr;
        height: auto;
        overflow: auto;
    }
    
    .left-pane {
        padding: 4rem 3rem 2rem 3rem;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        align-items: center;
        text-align: center;
    }
    
    .hero-block {
        align-items: center;
    }
    
    .countdown {
        justify-content: center;
    }
    
    .footer-left {
        display: none; /* Relies on footer content stack */
    }
    
    .right-pane {
        padding: 2rem 3rem 4rem 3rem;
        height: auto;
        gap: 3rem;
    }
    
    .top-nav {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .nav-left {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
        padding: 0.8rem 1.5rem;
        border-radius: 20px;
    }
    
    .separator {
        display: none;
    }
    
    .portfolio-section {
        align-items: center;
    }
    
    .section-title {
        text-align: center;
    }
    
    .portfolio-grid {
        justify-content: center;
    }
    
    .bottom-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }
    
    .column {
        text-align: center;
    }
    
    .col-separator {
        width: 100px;
        height: 1px;
    }
}

@media (max-width: 650px) {
    .main-title { font-size: 2.2rem; }
    .number { font-size: 3.5rem; }
    .left-pane, .right-pane {
        padding: 3rem 1.5rem;
    }
    
    .portfolio-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 1.5rem;
        padding: 2rem 1.2rem;
    }
    
    .portfolio-image-container {
        width: 100%;
        max-width: 260px;
        aspect-ratio: 16/9;
    }
    
    .portfolio-details {
        align-items: center;
        text-align: center;
    }
}
