/* General Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lora', serif;
}

body {
    background-color: #1a1a2e;
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header Styles */
.site-header {
    background: linear-gradient(135deg, #ff007a, #1a1a2e);
    color: #fff;
    text-align: center;
    padding: 3rem 1rem;
    position: relative;
    box-shadow: 0 4px 20px rgba(255, 0, 122, 0.3);
}

.site-header h1 {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 15px rgba(255, 0, 122, 0.7);
}

.site-header p {
    font-size: 1.2rem;
    margin-top: 0.5rem;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

/* Navigation Styles */
.site-nav {
    background-color: #16213e;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-menu li {
    margin: 0;
}

.site-nav a {
    color: #00d4ff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.site-nav a:hover {
    color: #ff007a;
    text-shadow: 0 0 10px rgba(255, 0, 122, 0.7);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 35px;
    height: 25px;
    cursor: pointer;
    margin-right: 1rem;
}

.hamburger span {
    width: 100%;
    height: 4px;
    background: #00d4ff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Portfolio Section Styling with Slide Effect */
.section#portfolio {
    padding: 80px 20px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(-50px);
    transition: all 0.8s ease-in-out;
}

.section#portfolio.visible {
    opacity: 1;
    transform: translateY(0);
}

.section h2 {
    font-size: 3rem;
    text-align: center;
    color: #00d4ff;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.7);
}

.section h2::after {
    content: '';
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, #ff007a, #00d4ff);
    display: block;
    margin: 15px auto;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(255, 0, 122, 0.5);
}

.section-intro {
    text-align: center;
    font-size: 1.3rem;
    color: #e0e0e0;
    max-width: 800px;
    margin: 0 auto 50px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
    padding: 0 20px;
}

/* Portfolio Item with Slide Effect */
.portfolio-item {
    background: linear-gradient(145deg, #0f3460, #1a1a2e);
    border: 2px solid #ff007a;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 0, 122, 0.3);
    transition: all 0.6s ease-in-out, transform 0.4s ease, box-shadow 0.4s ease;
    opacity: 0;
    transform: translateY(-30px);
}

.portfolio-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 0, 122, 0.6);
    border-color: #00d4ff;
}

/* Portfolio Image */
.portfolio-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: brightness(90%);
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.08);
    filter: brightness(110%) saturate(1.2);
}

/* Portfolio Content */
.portfolio-content {
    padding: 25px;
    text-align: left;
}

.portfolio-content h3 {
    font-size: 1.7rem;
    color: #ff007a;
    margin-bottom: 12px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 0, 122, 0.5);
}

.portfolio-content p {
    font-size: 1.1rem;
    color: #e0e0e0;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Portfolio Link */
.portfolio-link {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(90deg, #ff007a, #ff4d94);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(255, 0, 122, 0.5);
    transition: all 0.3s ease;
}

.portfolio-link:hover {
    background: linear-gradient(90deg, #00d4ff, #00a3cc);
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.7);
}

/* Call to Action Section */
.portfolio-cta {
    text-align: center;
    margin-top: 60px;
    opacity: 0;
    transform: translateY(-30px);
    transition: all 0.8s ease-in-out;
}

.portfolio-cta.visible {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-cta p {
    font-size: 1.4rem;
    color: #e0e0e0;
    margin-bottom: 25px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    margin: 0 20px;
    font-size: 1.2rem;
    text-decoration: none;
    border-radius: 35px;
    font-weight: 700;
    transition: all 0.4s ease;
}

.btn:nth-child(1) {
    background: linear-gradient(90deg, #ff4d94, #ff007a);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 0, 122, 0.5);
}

.btn:nth-child(2) {
    background: linear-gradient(90deg, #00d4ff, #007bff);
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.btn:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 255, 255, 0.4);
}

/* Contact Section */
.section#contact {
    padding: 60px 20px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(-50px);
    transition: all 0.8s ease-in-out;
}

.section#contact.visible {
    opacity: 1;
    transform: translateY(0);
}

#contact p {
    font-size: 1.2rem;
    margin: 0.8rem 0;
    text-align: center;
}

#contact a {
    color: #00d4ff;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

#contact a:hover {
    color: #ff007a;
    text-shadow: 0 0 10px rgba(255, 0, 122, 0.7);
}

/* Footer Styles */
.site-footer {
    background: linear-gradient(135deg, #16213e, #0f3460);
    padding: 40px 20px;
    text-align: center;
    border-top: 2px solid #ff007a;
    box-shadow: 0 -4px 20px rgba(255, 0, 122, 0.3);
}

.site-footer p {
    font-size: 1.1rem;
    color: #e0e0e0;
    margin: 0.5rem 0;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.site-footer a {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.site-footer a:hover {
    color: #ff007a;
    text-shadow: 0 0 10px rgba(255, 0, 122, 0.7);
}

.site-footer .template-note {
    font-size: 0.9rem;
    color: #b0b0b0;
    margin-top: 1rem;
}

/* Responsive Design with Hamburger Menu and Reduced Slide Effect */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: #16213e;
        padding: 1rem 0;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        text-align: center;
        padding: 1rem 0;
    }

    .site-header h1 {
        font-size: 2rem;
    }

    .site-header p {
        font-size: 1rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .section h2 {
        font-size: 2.2rem;
    }

    .portfolio-img {
        height: 220px;
    }

    .btn {
        display: block;
        margin: 15px auto;
        width: 70%;
    }

    /* Reduce Slide Effect on Mobile */
    .section#portfolio,
    .section#contact {
        transform: translateY(-20px);
        transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    }

    .portfolio-item {
        transform: translateY(-10px);
        transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
    }

    .portfolio-cta {
        transform: translateY(-10px);
        transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    }

    /* Ensure visibility if animation fails */
    .section,
    .portfolio-item,
    .portfolio-cta {
        opacity: 1;
    }

    .section.visible,
    .portfolio-item.visible,
    .portfolio-cta.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .site-footer {
        padding: 30px 15px;
    }

    .site-footer p {
        font-size: 1rem;
    }

    .site-footer .template-note {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .site-header h1 {
        font-size: 1.5rem;
    }

    .site-nav a {
        font-size: 1rem;
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .portfolio-content h3 {
        font-size: 1.4rem;
    }

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

    .site-footer p {
        font-size: 0.9rem;
    }
}

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