/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #e8f4fd;
    background-color: #0f2027;
    position: relative;
    overflow-x: hidden;
}

/* Full-page video background */
.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: opacity 0.3s ease;
}

.mobile-menu-btn:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
}

.header .container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.nav a {
    color: white;
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav a:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: rgba(15, 32, 39, 0.7);
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    backdrop-filter: blur(2px);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.subtitle {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2rem;
    min-height: 1.2em;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.hero-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-contact.revealed {
    opacity: 1;
    transform: translateY(0);
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.contact-link i {
    font-size: 1.2rem;
    color: white;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #00ff88;
    transform: translateX(5px);
}

.contact-link:hover i {
    color: #00ff88;
}

.description {
    font-size: 1.1rem;
    color: white;
    line-height: 1.8;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.profile-pic {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
}

.profile-pic.revealed {
    opacity: 1;
    transform: scale(1);
    transition: opacity 1s ease, transform 1s ease;
}

.profile-pic:hover {
    transform: scale(1.05);
}


/* Works Section */
.works {
    padding: 80px 0;
    background: rgba(15, 32, 39, 0.85);
    color: white;
    position: relative;
}

.works h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #00d4ff;
}

.works-list {
    max-width: 800px;
    margin: 0 auto;
    background: #16213e;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid #00d4ff;
}

.works-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.works-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #00d4ff;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #e8f4fd;
    position: relative;
    padding-left: 1.5rem;
}

.works-list li:before {
    content: "•";
    color: #00ff88;
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: 0.6rem;
}

.works-list li:last-child {
    border-bottom: none;
}

.works-list li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.works-list li a:hover {
    color: #00ff88;
}

.works-note {
    text-align: center;
    font-style: italic;
    color: #00d4ff;
    margin-top: 2rem;
    font-size: 1.1rem;
}

/* Gallery Section */
.gallery {
    padding: 80px 0;
    background: rgba(15, 32, 39, 0.85);
    position: relative;
}

.gallery h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.more-images-note {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: #b0bec5;
    font-style: italic;
    background: #16213e;
    border-radius: 10px;
    margin-top: 1rem;
    border: 1px solid #00d4ff;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    position: relative;
}

.contact h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.2rem;
}

.contact-item i {
    font-size: 1.5rem;
}

.contact-item a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-item a:hover {
    opacity: 0.8;
}

/* Footer */
.footer {
    background: #000000;
    color: #00d4ff;
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid #00d4ff;
}

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

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #e8f4fd;
    padding: 20px 0;
    font-size: 1.1rem;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
}

.modal-close:hover,
.modal-close:focus {
    color: #00d4ff;
    text-decoration: none;
}

/* Modal animation */
.modal.show {
    animation: fadeIn 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .subtitle {
        font-size: 2.5rem;
    }
    
    .profile-pic {
        width: 250px;
        height: 250px;
    }
    
    .nav {
        display: none;
    }
    
    .works-list {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .subtitle {
        font-size: 2rem;
    }
    
    .profile-pic {
        width: 200px;
        height: 200px;
    }
    
    
    .work-item {
        padding: 1.5rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation for gallery */
.gallery-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for work items */
.work-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.work-item:nth-child(1) { animation-delay: 0.1s; }
.work-item:nth-child(2) { animation-delay: 0.2s; }
.work-item:nth-child(3) { animation-delay: 0.3s; }
.work-item:nth-child(4) { animation-delay: 0.4s; }
.work-item:nth-child(5) { animation-delay: 0.5s; }
.work-item:nth-child(6) { animation-delay: 0.6s; }
.work-item:nth-child(7) { animation-delay: 0.7s; }
.work-item:nth-child(8) { animation-delay: 0.8s; }
.work-item:nth-child(9) { animation-delay: 0.9s; }
.work-item:nth-child(10) { animation-delay: 1.0s; }
/* Continue for all items */ 