/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #000000;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 300;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 1px;
}

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

.nav-links a {
    color: #cccccc;
    text-decoration: none;
    font-weight: 300;
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
}

/* Page Sections */
.page-section {
    display: none;
    min-height: 100vh;
    padding-top: 80px;
}

.page-section.active {
    display: block;
}

/* Landing Page */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 2;
}

.hero-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #333333;
    margin: 0 auto 2rem;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><rect width="200" height="200" fill="%23333"/><circle cx="100" cy="80" r="30" fill="%23666"/><path d="M100 120 Q70 140 70 170 Q100 150 100 150 Q130 150 130 170 Q100 140 100 120" fill="%23666"/></svg>');
    background-size: cover;
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: scale(1.05);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 200;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #cccccc;
    font-weight: 300;
    margin-bottom: 2rem;
}

.hero-bio {
    font-size: 1.1rem;
    color: #999999;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

.social-link {
    color: #cccccc;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border: 1px solid #333333;
    border-radius: 2px;
}

.social-link:hover {
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* Featured Projects */
.featured-projects {
    padding: 6rem 2rem;
    background: #0a0a0a;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 200;
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: 1px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.project-card {
    background: #111111;
    border: 1px solid #222222;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.project-card:hover {
    border-color: #444444;
    transform: translateY(-5px);
}

.project-image {
    width: 100%;
    height: 250px;
    background: #222222;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 250"><rect width="400" height="250" fill="%23222"/><rect x="50" y="50" width="300" height="150" fill="%23333" rx="5"/><circle cx="200" cy="125" r="20" fill="%23555"/></svg>');
    background-size: cover;
    background-position: center;
}

.project-info {
    padding: 2rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.project-description {
    color: #cccccc;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Projects Page */
.projects-page {
    padding: 6rem 2rem;
}

.projects-list {
    display: grid;
    gap: 4rem;
}

.project-item {
    border-bottom: 1px solid #222222;
    padding-bottom: 3rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.project-item:last-child {
    border-bottom: none;
}

.project-meta {
    color: #666666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.project-link {
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    border: 1px solid #333333;
    transition: all 0.3s ease;
}

.project-link:hover {
    border-color: #ffffff;
    transform: translateX(5px);
}

/* Project Detail Pages */
.project-detail-page {
    padding-top: 80px;
}

.project-hero {
    padding: 4rem 2rem 2rem;
    background: #0a0a0a;
    border-bottom: 1px solid #222222;
}

.project-nav {
    margin-bottom: 3rem;
}

.back-link {
    color: #cccccc;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #ffffff;
}

.project-hero-content {
    max-width: 800px;
}

.project-hero-title {
    font-size: 3rem;
    font-weight: 200;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.project-hero-subtitle {
    font-size: 1.3rem;
    color: #cccccc;
    font-weight: 300;
}

.project-image-large {
    padding: 4rem 2rem;
    background: #000000;
}

.large-project-image {
    width: 100%;
    height: 400px;
    background: #222222;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 400"><rect width="800" height="400" fill="%23222"/><rect x="100" y="100" width="600" height="200" fill="%23333" rx="10"/><circle cx="400" cy="200" r="40" fill="%23555"/><rect x="200" y="250" width="400" height="20" fill="%23444" rx="10"/><rect x="250" y="280" width="300" height="15" fill="%23444" rx="7"/></svg>');
    background-size: cover;
    background-position: center;
    border: 1px solid #333333;
}

.project-content {
    padding: 4rem 2rem;
}

.project-details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    max-width: 1200px;
}

.project-info-section h2 {
    font-size: 1.5rem;
    font-weight: 300;
    margin: 2rem 0 1rem 0;
    color: #ffffff;
}

.project-info-section h2:first-child {
    margin-top: 0;
}

.project-info-section p {
    color: #cccccc;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    color: #cccccc;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.feature-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #666666;
}

.project-specs {
    background: #111111;
    padding: 2rem;
    border: 1px solid #222222;
    height: fit-content;
}

.spec-group {
    margin-bottom: 2rem;
}

.spec-group:last-child {
    margin-bottom: 0;
}

.spec-group h3 {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.spec-group p {
    color: #cccccc;
    font-size: 0.9rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: #222222;
    color: #cccccc;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    border: 1px solid #333333;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    border-color: #666666;
    color: #ffffff;
}

.external-link {
    display: block;
    color: #cccccc;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.external-link:hover {
    color: #ffffff;
}

/* Contact Page */
.contact-page {
    padding: 6rem 2rem;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.contact-form {
    background: #111111;
    padding: 3rem;
    border: 1px solid #222222;
    margin-bottom: 3rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #cccccc;
    font-weight: 300;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: #000000;
    border: 1px solid #333333;
    color: #ffffff;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #666666;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 1rem 2rem;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #cccccc;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

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

    .project-item {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .social-links {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .contact-form {
        padding: 2rem;
    }

    /* Project Detail Responsive */
    .project-hero-title {
        font-size: 2rem;
    }

    .project-hero-subtitle {
        font-size: 1.1rem;
    }

    .project-details-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .large-project-image {
        height: 250px;
    }

    .project-content {
        padding: 2rem 1rem;
    }

    .project-hero {
        padding: 3rem 1rem 1rem;
    }

    .project-image-large {
        padding: 2rem 1rem;
    }

    .tech-tags {
        gap: 0.3rem;
    }

    .tech-tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }
}

/* Smooth animations */
.fade-in {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
