/* CSS Variables */
:root {
    --bg-dark: #1A1A2E;
    --bg-light: #16213E;
    --text-white: #FFFFFF;
    --accent-pink: #FF00FF;
    --accent-blue: #00D4FF;
    --font-main: 'Montserrat', sans-serif;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background: linear-gradient(to bottom, var(--bg-dark), var(--bg-light));
    color: var(--text-white);
    line-height: 1.6;
}

.section {
    padding: 50px 20px;
    text-align: center;
    opacity: 1; /* Ensure sections are visible */
    transform: translateY(0); /* Ensure no hidden transform */
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

h2 {
    color: var(--accent-pink);
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 46, 0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 80px;
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: 700;
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    margin-left: 20px;
    font-size: 16px;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--accent-pink);
}

.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: linear-gradient(45deg, var(--accent-pink), var(--accent-blue));
    background-size: 400% 400%; /* For smooth animation */
    animation: gradientAnimation 10s ease infinite; /* Add animation */
    color: var(--text-white);
    text-align: center;
    overflow: hidden;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for better text visibility */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.hero h1 {
    font-size: 60px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-white);
}

.hero h1 .highlight {
    color: var(--accent-pink);
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.gradient-btn {
    background: linear-gradient(to right, var(--accent-pink), var(--accent-blue));
    color: var(--text-white);
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.gradient-btn:hover {
    box-shadow: 0 0 20px var(--accent-blue);
    transform: scale(1.05);
}

.outline-btn {
    background: transparent;
    color: var(--text-white);
    padding: 15px 30px;
    border: 2px solid var(--accent-pink);
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.outline-btn:hover {
    background: var(--accent-pink);
    color: var(--text-white);
    transform: scale(1.05);
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: var(--text-white);
    border-radius: 50%;
    opacity: 0.5;
    animation: float 5s infinite ease-in-out;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: rgba(42, 42, 62, 0.8);
    border: 1px solid var(--accent-pink);
    padding: 20px;
    text-align: center;
}

.service-card .icon {
    font-size: 40px;
    color: var(--accent-pink);
    margin-bottom: 10px;
}

.service-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 10px 0;
}

.service-card p {
    font-size: 16px;
}

/* Skills Section */
.skills p {
    font-size: 20px;
    margin-bottom: 20px;
}

.skills-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.skills-icons img {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skills-icons img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px var(--accent-pink);
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-item {
    background: rgba(42, 42, 62, 0.8);
    border: 1px solid var(--accent-pink);
    padding: 20px;
    text-align: center;
    position: relative;
}

.portfolio-item img {
    width: 100%;
    height: auto;
}

.portfolio-item h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 10px 0;
}

.portfolio-item p {
    font-size: 14px;
}

.portfolio-item ul {
    text-align: left;
    margin-top: 10px;
    padding-left: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.portfolio-item ul li {
    margin-bottom: 5px;
}

.link-icon {
    color: var(--accent-pink);
    font-size: 20px;
    text-decoration: none;
    position: absolute;
    bottom: 10px;
    right: 10px;
}

/* Update Portfolio Section Heading */
.portfolio h2 {
    text-align: center;
    color: var(--accent-pink);
    font-size: 40px;
    margin-bottom: 30px;
}

/* Contact Section */
.contact {
    padding: 50px 20px;
    background: var(--bg-dark);
    color: var(--text-white);
    text-align: center;
}

.contact h2 {
    color: var(--accent-pink);
    font-size: 40px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.contact .subtitle {
    color: var(--accent-pink);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icons a img {
    width: 50px; /* Increased size */
    height: 50px; /* Increased size */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-icons a img:hover {
    transform: scale(1.2); /* Slightly larger on hover */
    box-shadow: 0 0 10px var(--accent-pink);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 400px;
}

.contact-form input,
.contact-form textarea {
    background: rgba(42, 42, 62, 0.8);
    border: 1px solid var(--accent-pink);
    padding: 10px;
    color: var(--text-white);
    font-size: 16px;
    border-radius: 5px;
}

.contact-form textarea {
    height: 100px;
    resize: none;
}

.contact-form button {
    background: linear-gradient(to right, var(--accent-pink), var(--accent-blue));
    color: var(--text-white);
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

.contact-form button:hover {
    box-shadow: 0 0 20px var(--accent-blue);
}

/* Experience Section */
.experience {
    padding: 50px 20px;
    background: var(--bg-light);
    color: var(--text-white);
    text-align: left;
}

.experience h2 {
    text-align: center;
    color: var(--accent-pink);
    font-size: 40px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.experience-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.experience-item {
    background: rgba(42, 42, 62, 0.8);
    border: 1px solid var(--accent-pink);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--accent-pink);
}

.experience-item h3 {
    color: var(--accent-blue);
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 700;
}

.experience-item ul {
    padding-left: 20px;
    font-size: 16px;
    line-height: 1.8;
    list-style: disc;
}

.experience-item ul li {
    margin-bottom: 10px;
}

/* Resume Section */
.resume {
    padding: 50px 20px;
    background: var(--bg-light);
    color: var(--text-white);
    text-align: center;
}

.resume h2 {
    color: var(--accent-pink);
    font-size: 40px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.resume-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.resume-viewer {
    width: 100%;
    max-width: 800px;
    height: 500px;
    border: 1px solid var(--accent-pink);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.resume-image {
    display: none; /* Hide by default */
    width: 100%;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    padding: 20px;
    text-align: center;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .navbar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        padding: 20px 0;
        z-index: 1000;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    }

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

    .nav-links a {
        margin: 10px 0;
        font-size: 18px;
        text-align: center;
        padding: 10px 0; /* Add padding for better spacing */
        width: 100%; /* Ensure links take full width */
    }

    .hamburger {
        display: block;
        font-size: 24px;
        cursor: pointer;
        color: var(--text-white);
    }

    .hero h1 {
        font-size: 60px;
    }

    .hero p {
        font-size: 20px;
    }

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

    .contact-content {
        flex-direction: column;
        align-items: center;
    }

    /* Hide resume1.jpg in mobile view */
    .resume img[src="assets/resume1.jpg"] {
        display: none;
    }

    .resume-viewer {
        display: none; /* Hide PDF in mobile view */
    }

    .resume-image {
        display: block; /* Show image in mobile view */
    }
}
/* Products Section */
.products {
    padding: 50px 20px;
    background: var(--bg-light);
    color: var(--text-white);
    text-align: center;
}

.products h2 {
    color: var(--accent-pink);
    font-size: 40px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.products-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.product-item {
    background: rgba(42, 42, 62, 0.8);
    border: 1px solid var(--accent-pink);
    border-radius: 10px;
    padding: 20px;
    width: 320px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.product-item:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 0 20px var(--accent-pink);
}

.product-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.product-item h3 {
    color: var(--accent-blue);
    font-size: 20px;
    margin: 0;
}

.product-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}