/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #0066cc;
    --primary-orange: #ff6b00;
    --dark-blue: #0a1a2d;
    --light-blue: #1a3a5f;
    --tech-teal: #2a9d8f;
    --construction-coral: #e76f51;
    --light-gray: #f0f8ff;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --glow: 0 0 30px rgba(0, 102, 204, 0.5);
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    background: var(--dark-blue);
    color: var(--white);
    min-height: 100vh;
    transition: background 0.8s ease;
}

/* Background Lights */
.background-lights {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.light {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.2) 0%, transparent 70%);
    filter: blur(40px);
    animation: float 6s infinite ease-in-out;
}

.light-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.3) 0%, transparent 70%);
}

.light-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    right: -50px;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.2) 0%, transparent 70%);
}

.light-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 20%;
    background: radial-gradient(circle, rgba(42, 157, 143, 0.2) 0%, transparent 70%);
}

.light-4 {
    width: 250px;
    height: 250px;
    bottom: 30%;
    right: 20%;
    background: radial-gradient(circle, rgba(231, 111, 81, 0.2) 0%, transparent 70%);
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
}

/* Top Banner */
.top {
    position: relative;
    z-index: 10;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.top-main {
    text-align: center;
    max-width: 800px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.3s;
}

.logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.main-logo {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(0, 102, 204, 0.7));
    transition: transform 0.5s ease;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, var(--primary-blue) 0%, transparent 70%);
    filter: blur(20px);
    opacity: 0.5;
    z-index: -1;
    animation: pulse 3s infinite ease-in-out;
}

.welcome-text {
    margin-bottom: 40px;
}

.welcome-tag {
    font-size: 1.2rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--primary-orange);
    margin-bottom: 15px;
    font-weight: 300;
}

.company-name {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-blue), var(--tech-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.welcome-subtitle {
    font-size: 1.1rem;
    color: var(--light-gray);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

.scroll-indicator {
    margin-top: 40px;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    font-size: 0.9rem;
    color: var(--tech-teal);
    margin-bottom: 10px;
}

.scroll-indicator i {
    font-size: 1.5rem;
    color: var(--primary-blue);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Main Selection Area */
.main {
    display: flex;
    min-height: 50vh;
    position: relative;
    z-index: 5;
    transform: translateY(50px);
    opacity: 0;
    transition: transform 1s ease, opacity 1s ease;
}

.main.slide-up {
    transform: translateY(0);
    opacity: 1;
}

.main .right-box,
.main .left-box {
    flex: 1;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

/* Left Box - Construction */
.left-box {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--dark-blue) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.left-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(231, 111, 81, 0.1) 100%);
}

/* Right Box - Technical */
.right-box {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--light-blue) 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.right-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(42, 157, 143, 0.1) 0%, transparent 70%);
}

/* Box Content */
.box-wrap {
    position: relative;
    z-index: 20;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px 30px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow);
    transition: all 0.5s ease;
}

.box-icon {
    position: relative;
    margin-bottom: 25px;
}

.box-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, currentColor 0%, transparent 70%);
    opacity: 0.3;
    filter: blur(15px);
}

.left-box .icon-glow {
    color: var(--construction-coral);
}

.right-box .icon-glow {
    color: var(--tech-teal);
}

.box-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.box-title span {
    display: block;
    font-size: 1.8rem;
    font-weight: 300;
}

.left-box .box-title {
    color: var(--construction-coral);
}

.right-box .box-title {
    color: var(--tech-teal);
}

.box-description {
    color: var(--light-gray);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

.box-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary-blue), var(--tech-teal));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

.left-box .box-link {
    background: linear-gradient(135deg, var(--construction-coral), var(--primary-orange));
}

.box-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.4);
}

.box-link i {
    transition: transform 0.3s ease;
}

.box-link:hover i {
    transform: translateX(5px);
}

/* Hover Effects */
.left-box:hover,
.right-box:hover {
    flex: 1.2;
    box-shadow: inset 0 0 100px rgba(255, 255, 255, 0.1);
}

.left-box:hover .box-wrap {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(231, 111, 81, 0.2);
}

.right-box:hover .box-wrap {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(42, 157, 143, 0.2);
}

/* Active States */
.right-active .right-box {
    flex: 2;
}

.right-active .left-box {
    flex: 0.5;
    filter: brightness(0.5);
}

.left-active .left-box {
    flex: 2;
}

.left-active .right-box {
    flex: 0.5;
    filter: brightness(0.5);
}

.shift-left.top {
    transform: translateX(-25%);
}

.shift-right.top {
    transform: translateX(25%);
}

/* Box Overlay */
.box-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.active .box-overlay {
    opacity: 1;
}

/* Footer */
footer {
    position: relative;
    z-index: 10;
    padding: 30px 20px;
    background: rgba(10, 26, 45, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: var(--light-gray);
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--light-gray);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.footer-links a:hover {
    color: var(--primary-blue);
    opacity: 1;
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main {
        flex-direction: column;
    }
    
    .main .right-box,
    .main .left-box {
        min-height: 40vh;
        flex: none;
        width: 100%;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .company-name {
        font-size: 2.5rem;
    }
    
    .box-wrap {
        padding: 30px 20px;
        max-width: 350px;
    }
    
    .box-title {
        font-size: 1.8rem;
    }
    
    .box-title span {
        font-size: 1.6rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    /* Disable hover effects on mobile */
    .left-box:hover,
    .right-box:hover {
        flex: 1;
    }
    
    .shift-left.top,
    .shift-right.top {
        transform: none;
    }
}

@media (max-width: 480px) {
    .company-name {
        font-size: 2rem;
    }
    
    .welcome-tag {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    .box-wrap {
        padding: 25px 15px;
    }
    
    .box-title {
        font-size: 1.5rem;
    }
    
    .box-title span {
        font-size: 1.3rem;
    }
    
    .box-link {
        padding: 10px 20px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeInUp 1s ease forwards;
}

.slide-up {
    animation: slideUp 1s ease forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}