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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #0a0a0a;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Toolbar */
.toolbar {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #1a1a1a;
    position: sticky;
    top: 0;
    z-index: 100;
}

.toolbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #00D4AA;
}

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

.nav-link {
    text-decoration: none;
    color: #cccccc;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #00D4AA;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00D4AA;
    transition: width 0.3s ease;
}

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

/* Main Content */
.main {
    padding: 0;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #00D4AA;
    text-align: center;
}

/* About Section */
#about {
    background: #0a0a0a;
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.2rem;
    color: #cccccc;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.about-text:last-child {
    margin-bottom: 0;
}

/* Projects Section */
#projects {
    background: #0a0a0a;
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.project-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
}

.project-card:hover {
    border-color: #00D4AA;
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 212, 170, 0.1);
}

.project-card:hover .project-content {
    background: rgba(0, 212, 170, 0.05);
}

.project-image {
    position: relative;
    height: 400px;
    overflow: visible;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.project-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: none;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 212, 170, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay .project-link {
    background: rgba(0, 212, 170, 0.9);
    color: #0a0a0a;
    padding: 16px;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.project-overlay .project-link:hover {
    background: #00D4AA;
    transform: scale(1.1);
}

/* Image Navigation */
.image-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.nav-btn {
    background: rgba(0, 212, 170, 0.9);
    color: #0a0a0a;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    font-size: 1rem;
}

.nav-btn:hover {
    background: #00D4AA;
    transform: scale(1.1);
}

.nav-btn:active {
    transform: scale(0.95);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.project-content {
    padding: 32px;
}

.project-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #ffffff;
}

.project-description {
    color: #cccccc;
    margin-bottom: 24px;
    line-height: 1.7;
    font-size: 1.1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.tech-tag {
    background: #2a2a2a;
    color: #00D4AA;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #3a3a3a;
}

.project-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.project-link {
    background: transparent;
    color: #00D4AA;
    padding: 10px 20px;
    border: 1px solid #00D4AA;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.project-link:hover {
    background: #00D4AA;
    color: #0a0a0a;
    transform: translateY(-2px);
}

/* Contact Section */
#contact {
    background: #0a0a0a;
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-text {
    font-size: 1.3rem;
    color: #00D4AA;
    margin-bottom: 2rem;
    font-weight: 500;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #cccccc;
    font-size: 1.1rem;
}

.contact-method i {
    color: #00D4AA;
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background: #1a1a1a;
    border-top: 1px solid #2a2a2a;
    padding: 24px 0;
    text-align: center;
}

.footer p {
    color: #888888;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .about-text {
        font-size: 1.1rem;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .project-content {
        padding: 24px;
    }
    
    .project-image {
        height: 300px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .about-text {
        font-size: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .project-content {
        padding: 20px;
    }
    
    .project-links {
        flex-direction: column;
    }
    
    .project-link {
        text-align: center;
    }
    
    .section {
        padding: 40px 0;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #00D4AA;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00B894;
}
