/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
    overflow-x: hidden;
    position: relative;
}

/* Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(250, 250, 250, 0.7);
    z-index: -1;
}

.container {
    display: flex;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
}

/* Left Section - Personal Information */
.left-section {
    flex: 0 0 35%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
}

.portfolio-label {
    font-size: 12px;
    font-weight: 500;
    color: #666;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 20px;
}

.personal-info {
    max-width: 400px;
}

.name {
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 30px;
    color: #222;
    letter-spacing: -0.02em;
}

.bio {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 350px;
}

.links {
    display: flex;
    gap: 30px;
}

.link {
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.link:hover {
    color: #000;
}

.link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #000;
    transition: width 0.3s ease;
}

.link:hover::after {
    width: 100%;
}

/* Right Section - Portfolio Grid */
.right-section {
    flex: 0 0 65%;
    background-color: rgba(248, 248, 248, 0.8);
    backdrop-filter: blur(5px);
    padding: 60px 40px;
    display: flex;
    align-items: center;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.portfolio-item {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(240, 240, 240, 0.5);
    position: relative;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    flex-direction: column;
}

.portfolio-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #e0e0e0;
}

.project-title {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-image {
    flex: 1;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.project-image:hover img {
    transform: scale(1.05);
}

.project-placeholder {
    flex: 1;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-placeholder::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: #ddd;
    border-radius: 50%;
    opacity: 0.6;
}

.project-placeholder::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: #bbb;
    border-radius: 50%;
    opacity: 0.8;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

.close:hover {
    color: #000;
}

.modal-body {
    padding: 40px;
}

#modal-title {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 20px;
    color: #222;
}

#modal-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }
    
    .left-section {
        flex: none;
        padding: 40px 30px;
    }
    
    .right-section {
        flex: none;
        padding: 40px 30px;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .name {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .left-section {
        padding: 40px 20px;
        min-height: auto;
    }
    
    .right-section {
        padding: 30px 20px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .name {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    
    .portfolio-label {
        margin-bottom: 15px;
        font-size: 11px;
    }
    
    .bio {
        font-size: 1rem;
        margin-bottom: 30px;
        line-height: 1.5;
    }
    
    .links {
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .portfolio-item {
        min-height: 150px;
    }
    
    .personal-info {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .left-section,
    .right-section {
        padding: 25px 15px;
    }
    
    .name {
        font-size: 1.8rem;
        margin-bottom: 12px;
        line-height: 1.2;
    }
    
    .portfolio-label {
        margin-bottom: 12px;
        font-size: 10px;
    }
    
    .bio {
        font-size: 0.95rem;
        margin-bottom: 25px;
        line-height: 1.4;
    }
    
    .links {
        flex-direction: row;
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .link {
        font-size: 0.9rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-body {
        padding: 30px 20px;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Loading Animation */
@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.loading {
    animation: pulse 2s infinite;
}

