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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

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

/* Header Styles */
header.header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background-color: white !important;
    z-index: 9999 !important;
    padding: 20px 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    transform: none !important;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #000;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.nav {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.nav-link:hover {
    color: #333;
    transform: translateY(-1px);
}

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

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

/* Hero Section */
.hero {
    padding: 160px 0 80px;
    text-align: center;
    background: linear-gradient(135deg, #fff 0%, #f8f8f8 100%);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 20px;
    color: #000;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 400;
    color: #666;
    line-height: 1.8;
}

/* Section Styles */
.section {
    padding: 80px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 60px;
    text-align: center;
    color: #000;
}

/* Projects Grid */
.projects-container {
    position: relative;
    margin-top: 40px;
}

.projects-grid {
    display: flex;
    flex-direction: row;
    gap: 40px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.projects-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
}

.scroll-arrow:hover {
    background: rgba(0, 0, 0, 1);
    transform: translateY(-50%) scale(1.1);
}

.scroll-arrow.visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-arrow-left {
    left: -25px;
}

.scroll-arrow-right {
    right: -25px;
}

.scroll-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}


.project-item {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    flex: 0 0 350px;
    min-width: 350px;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-image {
    height: 200px;
    aspect-ratio: 16 / 9;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.placeholder-image {
    font-size: 18px;
    font-weight: 600;
    color: #999;
    text-align: center;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image.large {
    height: 400px;
    font-size: 24px;
}

.project-info {
    padding: 30px;
}

.project-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #000;
}

.project-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-link {
    font-size: 16px;
    font-weight: 500;
    color: #000;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: #666;
    transform: translateX(5px);
}

/* Resume Buttons */
.resume-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.resume-btn {
    background: #fff;
    border: 2px solid #000;
    padding: 20px 30px;
    font-size: 16px;
    font-weight: 500;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.resume-btn:hover {
    background: #000;
    color: #fff;
    transform: translateX(10px);
}

.resume-btn:active {
    transform: translateX(10px) scale(0.98);
}

.resume-btn::after {
    content: '→';
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.resume-btn:hover::after {
    transform: translateY(-50%) translateX(5px);
}

/* Press Gallery */
.press-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    min-height: 400px;
}

.press-item {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f0f0f0;
    border: 2px solid #e0e0e0;
    display: block;
    text-decoration: none;
    color: inherit;
}

.press-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.press-image {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: #f0f0f0;
    overflow: hidden;
}

.press-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.press-fallback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 18px;
    font-weight: 600;
    z-index: 1;
    pointer-events: none;
}

.press-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: all 0.3s ease;
    z-index: 2;
}

.press-item:hover .press-overlay {
    transform: translateY(0);
}

.press-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.press-venue {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 400;
}

/* About Section */
.about-hero {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-paragraph {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 25px;
    color: #333;
    text-align: left;
}

/* Footer */
.footer {
    background: #000;
    color: #fff;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text {
    font-size: 14px;
    color: #ccc;
}

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

.social-link {
    font-size: 14px;
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav {
        gap: 20px;
    }
    
    .hero-title {
        font-size: 32px;
        letter-spacing: 2px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .projects-container {
        position: relative;
    }
    
    .scroll-arrow {
        display: none;
    }
    
    .projects-grid {
        flex-direction: column;
        gap: 30px;
        overflow-x: visible;
    }
    
    .project-item {
        flex: 1;
        min-width: auto;
    }
    
    
    .resume-buttons {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 15px;
        max-width: 100%;
    }
    
    .resume-btn {
        padding: 15px 20px;
        font-size: 14px;
    }
    
    .resume-btn::after {
        right: 20px;
        font-size: 16px;
    }
    
    .press-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .press-item {
        aspect-ratio: 16 / 9;
    }
    
    .press-overlay {
        padding: 20px 15px 15px;
    }
    
    .press-title {
        font-size: 16px;
    }
    
    .press-venue {
        font-size: 13px;
    }
    
    .about-hero {
        height: 50vh;
        min-height: 300px;
    }
    
    .about-content {
        padding: 0 15px;
    }
    
    .about-paragraph {
        font-size: 16px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .social-links {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 24px;
        letter-spacing: 1px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .project-info {
        padding: 20px;
    }
    
    .press-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .press-item {
        aspect-ratio: 16 / 9;
    }
    
    .press-overlay {
        padding: 15px 12px 12px;
    }
    
    .press-title {
        font-size: 15px;
    }
    
    .press-venue {
        font-size: 12px;
    }
}

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

.project-item,
.press-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #000, #666);
    transform-origin: left;
    transform: scaleX(0);
    z-index: 1001;
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loaded {
    opacity: 1;
    transform: translateY(0);
}
