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

:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --accent-color: #1a1a1a;
    --border-color: #e0e0e0;
    --light-gray: #f5f5f5;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-color);
    letter-spacing: 2px;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--text-color);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Hero Section */
.hero {
    margin-top: 60px;
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    max-width: 1200px;
    width: 100%;
    padding: 2rem;
    animation: fadeInUp 1s ease;
}

.hero-image {
    flex-shrink: 0;
    width: 300px;
    height: 300px;
    border-radius: 0;
    overflow: hidden;
    border: 2px solid var(--text-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-content {
    text-align: left;
    max-width: 500px;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.hero-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--text-color);
    color: var(--bg-color);
    text-decoration: none;
    border: 2px solid var(--text-color);
    border-radius: 0;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cta-button:hover {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.hero-line {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 40px;
    background-color: var(--text-color);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* About Section */
.about {
    padding: 6rem 2rem;
    background-color: var(--light-gray);
}

.about h2,
.projects h2,
.skills h2,
.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.about h2::after,
.projects h2::after,
.skills h2::after,
.contact h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--text-color);
}

.about p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #333;
    line-height: 1.8;
}

/* Projects Section */
.projects {
    padding: 6rem 2rem;
    background-color: var(--bg-color);
}

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

.project-card {
    padding: 2rem;
    border: 1px solid var(--border-color);
    background-color: var(--light-gray);
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    border-color: var(--text-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.project-card p {
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.tag {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background-color: var(--text-color);
    color: var(--bg-color);
    font-size: 0.8rem;
    border-radius: 2px;
    font-weight: 500;
}

/* Skills Section */
.skills {
    padding: 6rem 2rem;
    background-color: var(--light-gray);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-category {
    padding: 2rem;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 2px;
}

.skill-category h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.skill-category p {
    color: #555;
    line-height: 1.8;
}

/* Contact Section */
.contact {
    padding: 6rem 2rem;
    background-color: var(--bg-color);
}

.contact-intro {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    text-align: center;
    color: #555;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto 3rem;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    background-color: var(--light-gray);
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--text-color);
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background-color: var(--text-color);
    color: var(--bg-color);
    border: 2px solid var(--text-color);
    border-radius: 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.contact-info {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
}

.contact-info p {
    margin-bottom: 1rem;
}

.contact-info a {
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid var(--text-color);
    transition: all 0.3s ease;
}

.contact-info a:hover {
    color: #666;
    border-color: #666;
}

/* Footer */
.footer {
    padding: 2rem;
    background-color: var(--accent-color);
    color: var(--bg-color);
    text-align: center;
    font-size: 0.9rem;
}

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

    .hero-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
    }

    .hero-image {
        width: 250px;
        height: 250px;
    }

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

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

    .about h2,
    .projects h2,
    .skills h2,
    .contact h2 {
        font-size: 2rem;
    }

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

    .about p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.8rem 1rem;
    }

    .nav-menu {
        gap: 0.5rem;
        font-size: 0.85rem;
    }

    .hero-container {
        gap: 1rem;
    }

    .hero-image {
        width: 200px;
        height: 200px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

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

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}
