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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #1d1d1f;
    background-color: #ffffff;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.8s ease;
}

body.loaded {
    opacity: 1;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
}

.nav-logo {
    font-size: 24px;
    font-weight: 700;
    color: #1d1d1f;
}

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

.nav-links a {
    text-decoration: none;
    color: #1d1d1f;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #007AFF;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #1d1d1f;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 80px;
    background: #000000;
    position: relative;
    overflow: hidden;
    text-align: center;
    color: white;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    margin-bottom: 60px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    color: white;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.3s;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.5s;
}

.hero-description {
    font-size: 1.2rem;
    color: #f5f5f7;
    margin-bottom: 40px;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.7s;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.9s;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    gap: 20px;
    opacity: 1;
    transform: translateX(0);
    transition: all 1s ease;
}

.hero-app-tile {
    position: relative;
    width: 280px;
    height: 560px;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
    animation: float 6s ease-in-out infinite;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.hero-app-tile:nth-child(1) {
    animation: float 6s ease-in-out infinite;
}

.hero-app-tile:nth-child(2) {
    animation: float 6s ease-in-out infinite;
}

.hero-app-tile:nth-child(3) {
    animation: float 6s ease-in-out infinite;
}

.hero-app-tile:nth-child(4) {
    animation: float 6s ease-in-out infinite;
}

.hero-app-tile:nth-child(1) {
    animation-delay: 0s;
}

.hero-app-tile:nth-child(2) {
    animation-delay: 1.5s;
}

.hero-app-tile:nth-child(3) {
    animation-delay: 3s;
}

.hero-app-tile:nth-child(4) {
    animation-delay: 4.5s;
}

.hero-app-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-1 {
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
}

.hero-bg-2 {
    background: linear-gradient(135deg, #34C759 0%, #30D158 100%);
}

.hero-bg-3 {
    background: linear-gradient(135deg, #FF9500 0%, #FF9F0A 100%);
}

.hero-bg-4 {
    background: linear-gradient(135deg, #FF3B30 0%, #FF453A 100%);
}

.hero-app-tile img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 25px;
}

.app-showcase {
    position: relative;
    display: flex;
    gap: 30px;
    align-items: center;
}

.app-tile {
    width: 280px;
    height: 560px;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
    animation: float 6s ease-in-out infinite;
}

.app-tile:nth-child(1) {
    animation-delay: 0s;
}

.app-tile:nth-child(2) {
    animation-delay: 2s;
}

.app-tile:nth-child(3) {
    animation-delay: 4s;
}

.app-tile:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.app-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::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.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: #007AFF;
    color: white;
}

.btn-primary:hover {
    background: #0056CC;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 122, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #007AFF;
    border: 2px solid #007AFF;
}

.btn-secondary:hover {
    background: #007AFF;
    color: white;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 122, 255, 0.2);
}

/* App Showcase Section */
.app-showcase {
    padding: 10px 0;
    background: #fafafa;
    position: relative;
    overflow: hidden;
    transition: all 0.8s ease;
}

.app-showcase.revealed {
    background: #f5f5f7;
}

.app-showcase-container {
    position: relative;
    height: auto;
    overflow: hidden;
    margin: 0;
    padding: 6px 0;
}

.app-showcase-track {
    display: flex;
    gap: 30px;
    width: max-content;
    padding: 0;
    animation: scrollRightToLeft 120s linear infinite;
    transition: transform 0.8s ease;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.app-showcase-track::-webkit-scrollbar {
    display: none;
}



@keyframes scrollRightToLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}



.app-showcase-item {
    position: relative;
    width: 400px;
    height: 700px;
    border-radius: 30px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: white;
    flex-shrink: 0;
    opacity: 1;
    transform: translateX(0);
}

.app-showcase-item:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.app-showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-showcase-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px;
    text-align: center;
}

.app-showcase-overlay h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.app-showcase-overlay p {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 500;
}







/* Work Showcase Section */
.work-showcase {
    padding: 16px 0;
    background: #fafafa;
    position: relative;
    overflow: hidden;
}

.work-showcase-header {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 30px;
}

.work-showcase-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: #000000;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.work-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    height: 110vh;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 15px;
    padding: 0 20px;
}

.work-tile {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: #000000;
    opacity: 0;
    transform: scale(0.95);
    width: 100%;
    height: 100%;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.work-tile.animate-in {
    opacity: 1;
    transform: scale(1);
}

.work-tile:nth-child(1) {
    animation: tileSlideIn 1s ease forwards 0.2s;
}

.work-tile:nth-child(2) {
    animation: tileSlideIn 1s ease forwards 0.4s;
}

.work-tile:nth-child(3) {
    animation: tileSlideIn 1s ease forwards 0.6s;
}

.work-tile:nth-child(4) {
    animation: tileSlideIn 1s ease forwards 0.8s;
}

.work-tile:hover {
    transform: scale(1.02) translateY(-8px);
    z-index: 10;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.work-tile:hover .work-tile-background img {
    transform: scale(1.1);
}

.work-tile-content {
    position: relative;
    overflow: hidden;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.work-tile-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.work-tile-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.work-tile-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.work-tile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(0.95);
}

.work-tile:hover .work-tile-image img {
    transform: scale(1.08);
    filter: brightness(1.05);
}

.work-tile:hover .work-tile-image img {
    transform: scale(1.1);
}

.work-tile-overlay {
    position: relative;
    z-index: 2;
    color: white;
    padding: 60px 40px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.work-tile:hover .work-tile-overlay {
    transform: translateY(0);
}

.work-tile-text {
    margin-bottom: 30px;
}

.work-tile-overlay h3 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.work-tile-overlay p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 20px;
    opacity: 0.9;
    line-height: 1.4;
}

.tech-stack {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.work-tile-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.work-tile-cta .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
    border-radius: 20px;
    min-width: 120px;
    text-align: center;
}

.work-tile-cta .btn-primary {
    background: #007AFF;
    color: white;
    border: none;
}

.work-tile-cta .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.work-tile-cta .btn-secondary:hover {
    background: white;
    color: #000000;
}

/* About Section */
.about {
    padding: 40px 0;
    background: #fafafa;
    position: relative;
}



.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1400px;
    margin: 0;
    padding: 0 20px;
}

.about-text {
    padding-left: 0;
    text-align: center;
    grid-column: 1 / -1;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about .container {
    margin: 20;
    max-width: none;
}

.about-text h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 30px;
    color: #1d1d1f;
}

.about-text p {
    font-size: 1.1rem;
    color: #000000;
    margin-bottom: 20px;
    line-height: 1.7;
}

.about-text .years-highlight {
    color: #ff0000;
    font-weight: 700;
}

.about-text .genre-highlight {
    color: #000080;
    font-weight: 700;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.skill-tag {
    background: #007AFF;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.about-visual {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    justify-self: center;
    grid-column: 1 / -1;
    margin-top: 20px;
}

.experience-card {
    background: white;
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(0, 0, 0, 0.03);
    opacity: 0;
    transform: translateY(30px);
}

.experience-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.experience-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 122, 255, 0.1);
}

.experience-card h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #007AFF;
    margin-bottom: 10px;
}

.experience-card p {
    color: #6e6e73;
    font-weight: 500;
}

/* Video Section */
.video-section {
    padding: 60px 0;
    background: #ffffff;
    position: relative;
}

.video-label {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 30px;
    text-align: left;
}

.video-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
    background: #000000;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
    border: 2px solid #ffffff;
}

.video-label h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: #000000;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
}



.video-container video {
    width: 100%;
    height: 600px;
    object-fit: contain;
    border-radius: 15px;
    background: #000000;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: #000000;
    text-align: center;
    position: relative;
    color: #ffffff;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e1e5e9, transparent);
}

.contact h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
    opacity: 0;
    transform: translateY(30px);
    animation: slideInFromBottom 1s ease forwards 0.3s;
}

.contact p {
    font-size: 1.2rem;
    color: #e5e5e7;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(30px);
    animation: slideInFromBottom 1s ease forwards 0.5s;
}

.contact-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    animation: slideInFromBottom 1s ease forwards 0.7s;
}

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

.modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 20px;
    cursor: pointer;
    z-index: 1;
}

.close:hover {
    color: #1d1d1f;
}

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

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes tileSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes heroTileEntrance {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) perspective(1000px) rotateY(-15deg);
    }
    50% {
        transform: translateY(-20px) perspective(1000px) rotateY(-15deg);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-container {
        height: 45px;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 55px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 20px 60px;
    }
    
    .hero-content {
        margin-bottom: 40px;
    }
    
    .app-showcase {
        transform: none;
        flex-direction: column;
        gap: 15px;
    }
    
    .app-tile {
        width: 150px;
        height: 300px;
    }
    
    .work-showcase-header {
        padding: 0 15px;
        margin-bottom: 20px;
    }
    
    .work-showcase-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    
    .work-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
        height: auto;
        min-height: 110vh;
        max-width: 100%;
        padding: 0 15px;
    }
    
    .work-tile {
        min-height: 80vh;
        width: 100%;
        height: 100%;
    }
    
    .work-tile-overlay {
        padding: 40px 25px;
    }
    
    .app-showcase-container {
        height: 600px;
    }
    
    .app-showcase-item {
        width: 280px;
        height: 420px;
    }
    
    .app-showcase-track {
        gap: 20px;
    }
    

    

    
    .hero-app-tile {
        width: 200px;
        height: 400px;
    }
    
    .app-tile {
        width: 200px;
        height: 400px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        padding: 0 15px;
    }
    
    .about-visual {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 15px;
    }
    
    .video-label {
        padding: 0 15px;
        margin-bottom: 20px;
    }
    
    .video-label h2 {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    
    .video-container {
        max-width: calc(100% - 30px);
        padding: 20px;
    }
    
    .video-container video {
        height: 400px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .work-tile-overlay {
        padding: 20px 15px 15px;
    }
    
    .work-tile-overlay h3 {
        font-size: 1.3rem;
    }
    
    .about-visual {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 15px;
    }
}
