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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
    scroll-behavior: smooth;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    border-bottom: 1px solid #e5e7eb;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2563eb;
}

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

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

.nav-link:hover {
    color: #2563eb;
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #1f2937;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 50%, #f3f4f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #1f2937;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-content .highlight {
    color: #2563eb;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.3s both;
    color: #6b7280;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #2563eb;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.6s both;
}

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

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1f2937;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #2563eb;
    margin: 10px auto;
}

/* About Section */
.about {
    background: #f9fafb;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #6b7280;
}

.skills {
    margin-top: 2rem;
}

.skills h3 {
    margin-bottom: 1rem;
    color: #1f2937;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-item {
    background: #2563eb;
    color: #ffffff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.profile-photo {
    width: 250px;
    height: 250px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.2rem;
    color: #6b7280;
    border: 3px solid #2563eb;
}

/* Education Section */
.education {
    background: #ffffff;
}

.education-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #2563eb;
    transform: translateX(-50%);
}

.education-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.education-item:nth-child(odd) {
    flex-direction: row;
}

.education-item:nth-child(even) {
    flex-direction: row-reverse;
}

.education-year {
    flex: 0 0 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2563eb;
    color: #ffffff;
    font-weight: bold;
    padding: 10px;
    border-radius: 20px;
    position: relative;
    z-index: 2;
}

.education-content {
    flex: 1;
    background: #f9fafb;
    padding: 2rem;
    border-radius: 10px;
    margin: 0 2rem;
    border: 1px solid #e5e7eb;
    position: relative;
}

.education-title {
    font-size: 1.3rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.education-institution {
    font-size: 1.1rem;
    color: #2563eb;
    margin-bottom: 1rem;
    font-weight: 600;
}

.education-description {
    color: #6b7280;
    line-height: 1.6;
}

/* Projects Section */
.projects {
    background: #f9fafb;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    border: 1px solid #e5e7eb;
}

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

.project-image {
    height: 200px;
    background: linear-gradient(45deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

.project-image::before {
    content: '🤖👁️';
    font-size: 3rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s infinite;
}

.project-image.resume-analyzer {
    background: linear-gradient(45deg, #8b5cf6, #7c3aed);
}

.project-image.resume-analyzer::before {
    content: '📄🧠';
    animation: rotate 3s linear infinite;
}

.project-image.sentiment-analyzer {
    background: linear-gradient(45deg, #f59e0b, #d97706);
}

.project-image.sentiment-analyzer::before {
    content: '😊💭';
    animation: bounce 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes rotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, -50%) translateY(0); }
    40% { transform: translate(-50%, -50%) translateY(-10px); }
    60% { transform: translate(-50%, -50%) translateY(-5px); }
}

.project-info {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.project-description {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    margin-bottom: 1.5rem;
}

.tech-tag {
    display: inline-block;
    background: #10b981;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin: 2px;
    font-weight: 500;
}

.tech-tag.purple {
    background: #8b5cf6;
}

.tech-tag.orange {
    background: #f59e0b;
}

.project-features {
    margin-bottom: 1.5rem;
}

.project-features h4 {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.project-features ul {
    list-style: none;
    padding: 0;
}

.project-features li {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    padding-left: 1rem;
    position: relative;
}

.project-features li::before {
    content: '✨';
    position: absolute;
    left: 0;
    top: 0;
}

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

.btn-secondary {
    background: #10b981;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: #059669;
    transform: translateY(-1px);
}

.btn-purple {
    background: #8b5cf6;
}

.btn-purple:hover {
    background: #7c3aed;
}

.btn-orange {
    background: #f59e0b;
}

.btn-orange:hover {
    background: #d97706;
}

.btn-github {
    background: #374151;
}

.btn-github:hover {
    background: #1f2937;
}

/* Contact Section */
.contact {
    background: #ffffff;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: #ffffff;
    color: #1f2937;
}

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

.contact-info h3 {
    margin-bottom: 1rem;
    color: #1f2937;
}

.contact-info p {
    color: #6b7280;
    margin-bottom: 2rem;
}

.contact-item {
    margin-bottom: 1rem;
    color: #6b7280;
}

/* Footer */
.footer {
    background: #f9fafb;
    color: #1f2937;
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid #e5e7eb;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    color: #6b7280;
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

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

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

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #ffffff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.1);
        padding: 2rem 0;
        border-top: 1px solid #e5e7eb;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

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

    .education-timeline::before {
        left: 30px;
    }

    .education-item {
        flex-direction: row !important;
        padding-left: 60px;
    }

    .education-item:nth-child(even) {
        flex-direction: row !important;
    }

    .education-year {
        position: absolute;
        left: 0;
        flex: none;
        width: 100px;
    }

    .education-content {
        margin: 0;
        margin-left: 40px;
    }

    .project-links {
        flex-direction: column;
    }
}
