:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --card-bg: #f5f5f5;
    --nav-bg: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    --accent-color: #4CAF50;
    --input-bg: #ffffff;
    --error-color: #ff4444;
    --success-color: #00C851;
}

.dark-theme {
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --card-bg: #2d2d2d;
    --nav-bg: #2d2d2d;
    --shadow: rgba(255, 255, 255, 0.1);
    --input-bg: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* Navbar Styles with Animation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    background-color: var(--nav-bg);
    box-shadow: 0 2px 10px var(--shadow);
    z-index: 1000;
    animation: slideDown 0.5s ease-out;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    animation: fadeIn 1s ease-out;
}

.nav-links {
    color: rgb(255, 235, 81);
    display: flex;
    gap: 2rem;
    animation: fadeIn 1s ease-out;
}

.nav-links a {
    color: antiquewhite;
    text-decoration: none;
    color: var(--text-color);
    position: relative;
    padding: 10px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: all 0.3s ease;
}

/* Theme Toggle */
.theme-toggle {
    cursor: pointer;
    padding: 10px;
}

/* Project Header Styles */
.project-header {
    padding: 120px 5% 60px;
    text-align: center;
    background: var(--card-bg);
}

.project-title {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, #4CAF50, #2196F3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease-out;
}

.project-title:hover{
    transform: scale(1.1);
}

.project-description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.8;
    padding: 0 20px;
}

/* Technologies Section */
.technologies-section {
    padding: 4rem 5%;
}

section{
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin: auto;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--accent-color);
    transition: all 0.3s ease;
}

.section-title:hover::after {
    width: 100%; 
}

.tech-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.tech-tag {
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    background: linear-gradient(45deg, #4CAF50, #2196F3);
    color: white;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Video Section */
.video-section {
    padding: 4rem 5%;
    background: var(--card-bg);
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    padding-bottom: 41.2%;
    height: 0;
    overflow: hidden;
    margin: 2rem auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Gallery Section */
.gallery-section {
    padding: 4rem 5%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 2rem 0;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Developers Section */
.developers-section {
    padding: 4rem 5%;
    background: var(--card-bg);
}

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

.developer-card {
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.developer-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 8px 25px var(--shadow);
}

.developer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #FF416C, #FF4B2B);
    opacity: 0.9;
    z-index: -1;
}

.developer-card:nth-child(2n)::before {
    background: linear-gradient(45deg, #2196F3, #4CAF50);
}

.developer-card:nth-child(3n)::before {
    background: linear-gradient(45deg, #9C27B0, #673AB7);
}

.developer-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid white;
    margin-bottom: 1.5rem;
    object-fit: cover;
}

.developer-card:hover .developer-img{
    transform: scale(1.1);}

.developer-name {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.developer-role {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

/* footer section */
.footer {
    background-color: var(--nav-bg);
    padding: 1.5rem 0;
    box-shadow: 0 -2px 10px var(--shadow);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    height: 40px;
    width: auto;
}

.footer-text {
    font-weight: bold;
    color: var(--text-color);
    font-size: 1.1rem;
}

.footer-right {
    color: var(--text-color);
}

.copyright {
    font-size: 0.9rem;
}

@media screen and (max-width: 1024px) {
    .video-container{
        padding-bottom: 56.1%;
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-left {
        flex-direction: column;
    }

    .footer-text {
        font-size: 1rem;
    }

    .copyright {
        font-size: 0.8rem;
    }

    .project-title {
        font-size: 2.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 200px;
        flex-direction: column;
        justify-content: center;
        background-color: var(--nav-bg);
        box-shadow: -5px 0 10px var(--shadow);
        transition: right 0.3s ease;
        padding: 2rem;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    /* Hamburger animation for open state */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .video-container{
        padding-bottom: 56.1%;
    }
}

@media (max-width: 480px) {
    .project-title {
        font-size: 2rem;
    }

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

    .tech-tag {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .video-container{
        padding-bottom: 56%;
    }
}