:root {
    --primary-color: #00ff88;
    --bg-color: #0a0a0a;
    --card-bg: #1a1a1a;
    --text-color: #ffffff;
    --text-secondary: #b0b0b0;
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --bg-color: #ffffff;
    --card-bg: #f5f5f5;
    --text-color: #000000;
    --text-secondary: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
    transition: var(--transition);
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
    transition: var(--transition);
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
    margin-left: auto;
    margin-right: 1rem;
    display: none;
}

[data-theme="light"] .theme-toggle {
    color: var(--text-color);
}

.theme-toggle:hover {
    background: rgba(0, 255, 136, 0.1);
    transform: scale(1.1);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: var(--transition);
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: var(--text-color);
    border-radius: 10px;
    transition: var(--transition);
    transform-origin: 1px;
}

[data-theme="light"] .hamburger span {
    background: var(--text-color);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.hamburger:hover {
    transform: scale(1.1);
}

/* Portfolio Section */
.portfolio {
    flex: 1;
    padding: 100px 0;
    background: var(--bg-color);
    position: relative;
}

.portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.3;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 3.5rem;
    text-align: left;
    margin-bottom: 4rem;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: -0.5px;
    position: relative;
}

.section-title span {
    color: var(--text-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.project-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
}

.project-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    opacity: 0.8;
}

.project-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 600;
    line-height: 1.2;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 90%;
}

.project-tech {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.project-tech span {
    background: var(--card-bg);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    transition: var(--transition);
    font-weight: 500;
}

[data-theme="light"] .project-tech span {
    background: var(--card-bg);
}

.project-tech span:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    transform: scale(1.05);
}

.project-links {
    margin-bottom: 2rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--card-bg);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid var(--primary-color);
    transition: var(--transition);
}

.project-link:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

.project-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.project-nav::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.2), transparent);
}

.nav-btn {
    background: var(--card-bg);
    border: 1px solid rgba(176, 176, 176, 0.3);
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 0.75rem;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .nav-btn {
    border: 1px solid rgba(176, 176, 176, 0.1);
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    transition: left 0.6s;
}

.nav-btn:hover::before {
    left: 100%;
}

.nav-btn:hover,
.nav-btn.active {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(0, 255, 136, 0.05);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.project-counter {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0 1rem;
}

.project-images {
    position: relative;
}

.project-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .project-img-wrapper {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.project-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: var(--transition);
    display: none;
}

.project-img.active {
    display: block;
}

.project-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-img-wrapper:hover .project-img-overlay {
    opacity: 1;
}

.view-site-btn {
    background: var(--primary-color);
    color: var(--bg-color);
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.view-site-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.4);
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--card-bg) 100%);
    border-top: 1px solid rgba(0, 255, 136, 0.1);
    padding: 3rem 0 2rem;
    margin-top: auto;
    font-size: 0.95rem;
}

[data-theme="light"] .footer {
    border-top: 1px solid rgba(0, 255, 136, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    color: var(--text-secondary);
}

.footer-left h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.footer-left p:nth-child(2) {
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.footer-left p:last-child {
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-right {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: right;
}

.contact-info p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.contact-info strong {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
}

[data-theme="light"] .social-links a {
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.1);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .theme-toggle {
        display: block;
        order: 3;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding-top: 80px;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    [data-theme="light"] .nav-menu {
        background: rgba(255, 255, 255, 0.98);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.5rem;
        opacity: 0;
        transform: translateX(20px);
        transition: var(--transition);
    }

    .nav-menu.active .nav-link {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-menu.active .nav-link:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active .nav-link:nth-child(2) { transition-delay: 0.2s; }
    .nav-menu.active .nav-link:nth-child(3) { transition-delay: 0.3s; }
    .nav-menu.active .nav-link:nth-child(4) { transition-delay: 0.4s; }
    .nav-menu.active .nav-link:nth-child(5) { transition-delay: 0.5s; }

    .project-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .section-title {
        text-align: center;
        font-size: 2.5rem;
    }

    .project-img {
        height: 300px;
    }

    .project-number {
        font-size: 3rem;
    }

    .project-title {
        font-size: 1.5rem;
    }

    .project-description {
        max-width: 100%;
    }

    .project-tech {
        justify-content: center;
    }

    .nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-right {
        flex-direction: column;
        gap: 1rem;
    }

    .contact-info {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .project-img {
        height: 250px;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .project-nav {
        gap: 0.5rem;
    }
}