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

body {
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    color: #1f2937;
    background-color: #f9fafb;
}

/* Navigation */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
}

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

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    padding: 0.5rem;
    position: relative;
}

.nav-links a:hover {
    color: #d1d5db;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

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

/* Hero Section */
.hero {
    min-height: 60vh;
    background: #121212;
    padding-top: 80px;
    display: flex;
    align-items: center;
}

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

.hero-text {
    flex: 1;
    color: white;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.25rem;
    color: #d1d5db;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-primary {
    background: white;
    color: #121212;
    border: 2px solid white;
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

.btn-secondary {
    border: 2px solid #444444;
    background-color: #444444;
    color: white;
}

.btn-secondary:hover {
    background-color: #333333;
    border-color: #333333;
}

.hero-image {
    flex-shrink: 0;
}

.hero-image img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    object-fit: cover;
}

/* About Section */
.about {
    padding: 6rem 2rem;
    background: #f9fafb;
}

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

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: #121212;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #4b5563;
    line-height: 1.7;
}

/* Skills Section */
.skills {
    padding: 6rem 2rem;
    background: white;
}

.skills h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: #121212;
}

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

.skill-category {
    padding: 2rem;
    background: #f9fafb;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    opacity: 1;
    animation: none;
    border-top: 3px solid #121212;
}

.skill-category h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #121212;
    line-height: 1.2;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    margin-bottom: 0.75rem;
    color: #4b5563;
    position: relative;
    padding-left: 1.5rem;
}

.skill-category li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #121212;
    font-weight: bold;
}

/* Skill progress bars */
.skill-progress {
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.skill-progress-bar {
    height: 100%;
    background-color: #333333;
    border-radius: 4px;
    transition: width 1.5s ease-in-out;
}

/* Projects Section */
.projects {
    padding: 6rem 2rem;
    background: #f9fafb;
}

.projects h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: #121212;
}

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

.project-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 3px solid #121212;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #121212;
}

.project-info p {
    color: #4b5563;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.project-tags span {
    background: #e5e7eb;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    color: #4b5563;
}

.btn-github {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #121212;
    color: white;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.btn-github:hover {
    background: #333333;
}

/* Resume Section */
.resume {
    padding: 6rem 2rem;
    background: white;
}

.resume h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #121212;
}

.resume-intro {
    text-align: center;
    font-size: 1.2rem;
    color: #4b5563;
    margin-bottom: 3rem;
}

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

.resume-card {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border-left: 3px solid #121212;
}

.resume-card:hover {
    transform: translateY(-5px);
}

.resume-card h3 {
    font-size: 1.5rem;
    color: #121212;
    margin-bottom: 1rem;
}

.resume-card p {
    color: #4b5563;
    margin-bottom: 1.5rem;
}

.resume-actions {
    display: flex;
    gap: 1rem;
}

.resume-actions .btn {
    flex: 1;
    text-align: center;
}

/* Contact Section */
.contact {
    padding: 6rem 2rem;
    background: #f9fafb;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #121212;
}

.contact p {
    text-align: center;
    font-size: 1.2rem;
    color: #4b5563;
    margin-bottom: 2rem;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 2rem;
}

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

.contact-info a {
    color: #121212;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: #444444;
    text-decoration: underline;
}

/* Footer */
.footer {
    background: #121212;
    color: white;
    padding: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    color: white;
    margin-right: 1rem;
}

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

.social-links a {
    color: white;
    font-size: 1.2rem;
    transition: color 0.3s;
    text-decoration: none;
    border-bottom: none;
}

.social-links a:hover {
    color: #d1d5db;
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #121212;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #333333;
    transform: translateY(-3px);
}

/* Dark mode toggle */
.dark-mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #121212;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dark-mode-toggle:hover {
    background: #333333;
    transform: translateY(-3px);
}

/* Active state for navigation links */
.nav-links a.active {
    color: #ffffff;
    font-weight: bold;
}

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

/* Typing cursor animation */
.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background-color: #ffffff;
    margin-left: 5px;
    vertical-align: text-bottom;
    animation: blink 0.7s step-end infinite;
    opacity: 0;
}

@keyframes blink {
    from, to { opacity: 0; }
    50% { opacity: 1; }
}

/* Animation for elements */
.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

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

/* Responsive styles */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .skills-grid, .projects-grid, .resume-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-content {
        flex-direction: column;
        padding: 1rem;
    }
    
    .nav-links {
        margin-top: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .social-links {
        margin-top: 1rem;
        justify-content: center;
    }
}
.contact-methods {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: #f1f1f1;
    border-radius: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 400px;
    justify-content: center;
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.contact-method i {
    font-size: 1.5rem;
    color: #333333;
}

.contact-method a {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Skill progress bars - make more visible */
.skill-progress {
    height: 12px;
    background-color: #e5e7eb;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    position: relative;
}

.skill-progress-bar {
    height: 100%;
    background-color: #333333;
    border-radius: 6px;
    transition: width 1.5s ease-in-out;
    position: relative;
}

.skill-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
                rgba(255,255,255,0.1) 0%, 
                rgba(255,255,255,0.2) 20%, 
                rgba(255,255,255,0.1) 40%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}
