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

:root {
    --primary: #000000;
    --secondary: #ffffff;
    --accent: #1a1a1a;
    --text: #000000;
    --text-light: #666666;
    --border: #e0e0e0;
    --bg: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.08);
}

html {
    scroll-behavior: smooth;
}

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

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

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

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
}

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

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

.cta-link {
    background: var(--primary);
    color: var(--secondary);
    padding: 10px 25px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.cta-link:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

.cta-link::after {
    display: none;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 80px 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 72px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -1px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
    font-weight: 300;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--primary);
    color: var(--secondary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
    cursor: pointer;
}

.btn:hover {
    background: transparent;
    color: var(--primary);
    transform: translateY(-3px);
}

.btn-primary {
    background: var(--primary);
    color: var(--secondary);
    animation: fadeInUp 0.8s ease 0.6s both;
}

.btn-lg {
    padding: 16px 48px;
    font-size: 16px;
}

.hero-image {
    animation: fadeInUp 0.8s ease 0.3s both;
    position: relative;
}

.profile-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.profile-img:hover {
    transform: translateY(-10px);
}

/* About Section */
.about {
    padding: 100px 40px;
    background: var(--bg);
}

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

.about h2 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    margin-bottom: 40px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.about-content p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
    font-weight: 300;
}

.about-content strong {
    color: var(--primary);
    font-weight: 600;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 40px;
}

.skill-tag {
    padding: 12px 20px;
    background: #f0f0f0;
    border: 1px solid var(--border);
    border-radius: 50px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
}

.skill-tag:hover {
    background: var(--primary);
    color: var(--secondary);
    border-color: var(--primary);
    transform: translateY(-5px);
}

/* Projects Section */
.projects {
    padding: 100px 40px;
    background: #fafafa;
}

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

.projects h2 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    margin-bottom: 60px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

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

.project-card {
    background: var(--bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    animation: fadeInUp 0.6s ease;
}

.project-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.project-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 30px;
}

.project-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 700;
}

.project-content p {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.6;
    font-weight: 300;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tech-stack span {
    background: #f0f0f0;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.link-btn {
    padding: 10px 20px;
    background: var(--primary);
    color: var(--secondary);
    text-decoration: none;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
    display: inline-block;
}

.link-btn:hover {
    background: transparent;
    color: var(--primary);
}

/* Contact Section */
.contact {
    padding: 100px 40px;
    background: var(--primary);
    color: var(--secondary);
    text-align: center;
}

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

.contact h2 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.contact p {
    font-size: 18px;
    margin-bottom: 40px;
    font-weight: 300;
}

.contact .btn {
    margin: 0 auto 40px;
}

.contact .btn-primary {
    background: var(--secondary);
    color: var(--primary);
    border-color: var(--secondary);
}

.contact .btn-primary:hover {
    background: transparent;
    color: var(--secondary);
}

.contact-info {
    margin-top: 30px;
}

.contact-info a {
    color: var(--secondary);
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.contact-info a:hover {
    opacity: 0.7;
}

/* Footer */
.footer {
    padding: 40px;
    background: #1a1a1a;
    color: var(--secondary);
    text-align: center;
    font-size: 14px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    margin: 5px 0;
    font-weight: 300;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 20px;
    }

    .nav-links {
        gap: 20px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding: 40px 0;
    }

    .hero-text h1 {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .about h2,
    .projects h2,
    .contact h2 {
        font-size: 36px;
    }

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

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

    .hero {
        padding: 60px 20px;
        margin-top: 70px;
    }

    .about,
    .projects,
    .contact {
        padding: 60px 20px;
    }
}

@media (max-width: 480px) {
    .nav-links {
        display: none;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .about h2,
    .projects h2,
    .contact h2 {
        font-size: 28px;
    }

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

    .btn {
        padding: 12px 24px;
        font-size: 12px;
    }
}
