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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #fff;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    overscroll-behavior: none;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo-link {
    text-decoration: none;
    color: #fff;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.nav-links a {
    margin-left: 2rem;
    text-decoration: none;
    color: #fff;
    transition: 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.8;
}

.hamburger {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.scroll-container {
    height: 100vh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.scroll-section {
    height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 1s cubic-bezier(0.645, 0.045, 0.355, 1);
    opacity: 0.8;
}

.scroll-section.active {
    opacity: 1;
    transition: all 1s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* Set background images for each section */
#section1 { background-image: url('photos/1.png'); }
#section2 { background-image: url('photos/2.png'); }
#section3 { background-image: url('photos/3.png'); }
#section4 { background-image: url('photos/4.png'); }
#section5 { background-image: url('photos/5.png'); }
#section6 { background-image: url('photos/6.png'); }
#section7 { background-image: url('photos/7.png'); }
#section8 { background-image: url('photos/8.png'); }
#section9 { background-image: url('photos/9.png'); }
#section10 { background-image: url('photos/10.png'); }
#section11 { background-image: url('photos/11.png'); }
#section12 { background-image: url('photos/12.png'); }
#section13 { background-image: url('photos/13.png'); }
#section14 { background-image: url('photos/14.png'); }
#section15 { background-image: url('photos/15.png'); }
#section16 { background-image: url('photos/16.png'); }
#section17 { background-image: url('photos/17.png'); }
#section18 { background-image: url('photos/18.png'); }
#sectionLast { background-image: url('photos/last.png'); }
#sectionLast2 { background-image: url('photos/last2.png'); }

.content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.content.visible {
    opacity: 1;
}

.content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.content p {
    font-size: 1.2rem;
}

/* Projects Section */
.projects {
    padding: 5rem 5%;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}

.project-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1001;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 4px;
}

.close-modal {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
}

/* About Section */
.about {
    padding: 5rem 5%;
    background: #f9f9f9;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.skills ul {
    list-style: none;
    margin-top: 1rem;
}

.skills li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.skills li::before {
    content: "→";
    position: absolute;
    left: 0;
}

/* Contact Section */
.contact-section {
    height: 100vh;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
}

.contact-content {
    max-width: 600px;
    width: 90%;
    padding: 2rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input, textarea {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #fff;
}

input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

button {
    padding: 1rem;
    background: #fff;
    color: #111;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s ease;
}

button:hover {
    background: rgba(255, 255, 255, 0.9);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.social-links a {
    color: #fff;
    font-size: 1.5rem;
    transition: 0.3s ease;
}

.social-links a:hover {
    opacity: 0.8;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: #333;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background: #333;
        margin: 5px 0;
    }

    .content h1 {
        font-size: 2rem;
    }
    
    .content h2 {
        font-size: 2rem;
    }

    .content p {
        font-size: 1rem;
    }

    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

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

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

/* Optional: Add a scroll indicator */
.scroll-indicator {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 24px;
    animation: bounce 2s infinite;
    z-index: 1000;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
} 