/* 
 * BACKGROUND IMAGES:
 * Place your images in the /images folder:
 * - images/web-bg.jpg (for Web Development panel)
 * - images/l2j-bg.jpg (for L2J / Game Dev panel)
 * See images/README.md for more details
 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    overflow-y: hidden;
    height: 100vh;
    width: 100vw;
    position: relative;
    margin: 0;
    padding: 0;
}

.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Diagonal Split Panels */
.split-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    will-change: transform, filter, box-shadow;
}

@keyframes subtlePulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.98;
    }
}

.split-panel:not(:hover) {
    animation: subtlePulse 4s ease-in-out infinite;
}

/* Animated Background Patterns */
@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

@keyframes slide {
    0% { background-position: 0 0; }
    100% { background-position: var(--s) calc(var(--s) * 0.577); }
}

@keyframes patternMove1 {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: var(--s) calc(var(--s) * 0.577), 0 0; }
}

@keyframes patternMove2 {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 0 0, var(--s) calc(var(--s) * 0.577); }
}

@keyframes dance1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -15px) rotate(5deg); }
    50% { transform: translate(-15px, 20px) rotate(-5deg); }
    75% { transform: translate(15px, 15px) rotate(3deg); }
}

@keyframes dance2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-20px, 15px) rotate(-5deg); }
    66% { transform: translate(15px, -20px) rotate(5deg); }
}

@keyframes floatUpDown1 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-30px); }
}

@keyframes floatUpDown2 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-40px); }
}

@keyframes floatUpDown3 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-25px); }
}

@keyframes floatUpDown4 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-35px); }
}

@keyframes floatUpDown5 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-45px); }
}

@keyframes floatUpDown6 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Geometric Shapes */
.geo-shape {
    position: absolute;
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
}

.hexagon {
    width: 80px;
    height: 80px;
    background: rgba(59, 130, 246, 0.5);
    clip-path: polygon(30% 0%, 70% 0%, 100% 50%, 70% 100%, 30% 100%, 0% 50%);
}

.triangle {
    width: 0;
    height: 0;
    border-left: 35px solid transparent;
    border-right: 35px solid transparent;
    border-bottom: 60px solid rgba(59, 130, 246, 0.5);
}

.square {
    width: 50px;
    height: 50px;
    background: rgba(59, 130, 246, 0.5);
    transform: rotate(45deg);
}

.circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(59, 130, 246, 0.6);
    background: transparent;
}

.hexagon-purple {
    width: 80px;
    height: 80px;
    background: rgba(139, 92, 246, 0.5);
    clip-path: polygon(30% 0%, 70% 0%, 100% 50%, 70% 100%, 30% 100%, 0% 50%);
}

.triangle-purple {
    width: 0;
    height: 0;
    border-left: 35px solid transparent;
    border-right: 35px solid transparent;
    border-bottom: 60px solid rgba(139, 92, 246, 0.5);
}

.square-purple {
    width: 50px;
    height: 50px;
    background: rgba(139, 92, 246, 0.5);
    transform: rotate(45deg);
}

.circle-purple {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(139, 92, 246, 0.6);
    background: transparent;
}

.panel-dark {
    background-color: #111827;
    background-image: url('../images/left.png');
    background-size: contain;
    background-position: left center;
    background-repeat: no-repeat;
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
    position: absolute;
    overflow: hidden;
    z-index: 1;
}

.panel-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(17, 24, 39, 0.7) 0%,
        rgba(30, 58, 138, 0.4) 30%,
        rgba(59, 130, 246, 0.3) 60%,
        rgba(17, 24, 39, 0.5) 100%
    );
    z-index: 0;
}

.panel-light {
    background-color: #1F2937;
    background-image: url('../images/right.png');
    background-size: contain;
    background-position: right center;
    background-repeat: no-repeat;
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
    position: absolute;
    overflow: hidden;
    z-index: 1;
}

.panel-light::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(31, 41, 55, 0.7) 0%,
        rgba(88, 28, 135, 0.4) 30%,
        rgba(139, 92, 246, 0.3) 60%,
        rgba(31, 41, 55, 0.5) 100%
    );
    z-index: 0;
}

/* Center Divider with Glow Effect */
.center-divider {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100vh;
    z-index: 20;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(59, 130, 246, 0.6) 20%,
        rgba(139, 92, 246, 0.8) 50%,
        rgba(59, 130, 246, 0.6) 80%,
        transparent 100%
    );
    box-shadow: 
        0 0 15px rgba(59, 130, 246, 0.6),
        0 0 30px rgba(139, 92, 246, 0.4),
        -2px 0 10px rgba(59, 130, 246, 0.5),
        2px 0 10px rgba(139, 92, 246, 0.5);
}

.center-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 20%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0.3) 80%,
        transparent 100%
    );
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.split-panel {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                filter 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.split-panel:hover {
    z-index: 15;
    transform: scale(1.015);
    filter: brightness(1.08);
}

.split-panel::before {
    transition: opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.split-panel:hover::before {
    opacity: 0.2;
}

.panel-dark:hover {
    box-shadow: -20px 0 40px rgba(59, 130, 246, 0.3);
}

.panel-light:hover {
    box-shadow: 20px 0 40px rgba(139, 92, 246, 0.3);
}

/* Content Animation on Hover */
.split-panel:hover .panel-content {
    transform: translateY(-50%) translateX(8px);
}

.panel-light:hover .panel-content {
    transform: translateY(-50%) translateX(-8px);
}

/* Button Animation */
.cta-button {
    position: relative;
    overflow: hidden;
    will-change: transform, background, color, box-shadow;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.split-panel:hover .cta-button::before {
    left: 100%;
}

/* Arrow Animation */
.panel-dark .cta-button span:first-child,
.panel-light .cta-button span:last-child {
    display: inline-block;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
}

.panel-dark:hover .cta-button span:first-child {
    transform: translateX(-4px);
}

.panel-light:hover .cta-button span:last-child {
    transform: translateX(4px);
}

/* Content Sections */
.panel-content {
    position: absolute;
    z-index: 10;
    padding: 4rem 3rem;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
}

.panel-dark .panel-content {
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    color: #F9FAFB;
    max-width: 45%;
    width: 100%;
    padding-right: 2rem;
    font-family: 'Poppins', 'Inter', sans-serif;
    box-sizing: border-box;
}

.panel-light .panel-content {
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    color: #F9FAFB;
    max-width: 600px;
    text-align: right;
}

/* Bold Typography */
.outlined-text {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: #F9FAFB;
}

/* CTA Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.875rem 1.75rem;
    border-radius: 0;
    transition: background 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                color 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: transparent;
}

.panel-dark .cta-button {
    color: #3B82F6;
    border: 1px solid #3B82F6;
}

.panel-dark .cta-button:hover {
    background: #3B82F6;
    color: #F9FAFB;
    transform: translateX(-6px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.panel-light .cta-button {
    color: #8B5CF6;
    border: 1px solid #8B5CF6;
}

.panel-light .cta-button:hover {
    background: #8B5CF6;
    color: #F9FAFB;
    transform: translateX(6px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Navigation */
.nav-top-left {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-top-right {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fbbf24;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.menu-icon {
    width: 24px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.menu-icon span {
    width: 100%;
    height: 2px;
    background: #F9FAFB;
    transition: all 0.3s ease;
}

.brand-name {
    color: #F9FAFB;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.1em;
}

.nav-top-right {
    color: #F9FAFB;
}

/* Central Circle Icon */
.center-icon {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    z-index: 25;
    pointer-events: none;
}

.circle-icon {
    width: 100%;
    height: 100%;
    border: 3px solid #F9FAFB;
    border-radius: 50%;
    position: relative;
    opacity: 0.3;
}

.circle-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 65%;
    height: 65%;
    border: 2px solid #F9FAFB;
    border-radius: 50%;
    opacity: 0.3;
}

.circle-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 35%;
    height: 35%;
    background: #F9FAFB;
    border-radius: 50%;
    opacity: 0.3;
}

/* Contact Footer */
.contact-footer {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    color: #9CA3AF;
    font-size: 0.85rem;
}

.contact-footer a {
    color: #9CA3AF;
    transition: color 0.3s ease;
}

.contact-footer a:hover {
    color: #F9FAFB;
}

/* Animated Geometric Shapes */
.animated-shape {
    position: absolute;
    opacity: 0.25;
    pointer-events: none;
    z-index: 1;
}

.shape-1 {
    width: 100px;
    height: 100px;
    border: 2px solid rgba(59, 130, 246, 0.4);
    top: 20%;
    left: 15%;
    animation: rotate 20s linear infinite;
}

.shape-2 {
    width: 60px;
    height: 60px;
    border: 2px solid rgba(59, 130, 246, 0.35);
    border-radius: 50%;
    top: 60%;
    left: 25%;
    animation: float 12s ease-in-out infinite;
}

.shape-3 {
    width: 80px;
    height: 80px;
    background: rgba(59, 130, 246, 0.2);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    top: 40%;
    left: 10%;
    animation: rotate 15s linear infinite reverse;
}

.shape-4 {
    width: 120px;
    height: 120px;
    border: 2px solid rgba(139, 92, 246, 0.4);
    top: 15%;
    right: 20%;
    animation: rotate 25s linear infinite;
}

.shape-5 {
    width: 70px;
    height: 70px;
    border: 2px solid rgba(139, 92, 246, 0.35);
    border-radius: 50%;
    top: 65%;
    right: 15%;
    animation: float 14s ease-in-out infinite;
}

.shape-6 {
    width: 90px;
    height: 90px;
    background: rgba(139, 92, 246, 0.2);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    top: 45%;
    right: 10%;
    animation: rotate 18s linear infinite reverse;
}

@media (max-width: 768px) {
    .panel-dark {
        clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
    }
    
    .panel-light {
        clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
    }
    
    .panel-dark .panel-content,
    .panel-light .panel-content {
        left: 5%;
        right: 5%;
        max-width: 90%;
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .panel-light .panel-content {
        text-align: center;
    }
    
    .nav-top-left,
    .nav-top-right {
        top: 1rem;
        left: 1rem;
        right: 1rem;
    }
    
    .nav-top-right {
        justify-content: flex-end;
    }
    
    .center-icon {
        width: 60px;
        height: 60px;
    }
    
    .outlined-text {
        font-size: clamp(2.5rem, 12vw, 5rem);
    }
}
