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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #007aff;
    backdrop-filter: blur(10px);
    z-index: 1000;
    /* padding: 1rem 0; */
}

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

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

.nav-menu a {
    text-decoration: none;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #f0f8ff;
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    height: 100vh;
    background:  #007aff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tech-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-button {
    display: inline-block;
    padding: 15px 35px;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* About Section */
.about {
    padding: 80px 0;
    background: #f8f9fa;
}

.about h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

/* Projects Section */
.projects {
    padding: 100px 0;
    background: #f8f9fa;
}

.projects h2 {
    text-align: center;
    /* margin-bottom: 0.5rem; */
    font-size: 2rem;
    color: #333;
    font-weight: 700;
}

.projects-subtitle {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Project Filters */
.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: white;
    border: 2px solid #e9ecef;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover {
    border-color:  #026cdc;
    color: #026cdc;
    transform: translateY(-2px);
}

.filter-btn.active {
    background:  #007aff;
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
}

.filter-btn i {
    font-size: 1.1rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.project-image {
    position: relative;
    overflow: hidden;
}

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

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.4rem;
    font-weight: 600;
}

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

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

.btn {
    padding: 10px 16px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    flex: 1;
    border: none;
    cursor: pointer;
    min-width: 80px;
}

.btn-primary {
    background:  #007aff;
    color: white;
}

.btn-primary:hover {
    background:  #026cdc;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color:  #007aff;
    border: 2px solid  #007aff;
}

.btn-secondary:hover {
    background:  #007aff;
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

.btn-info {
    background: transparent;
    color: #007aff;
    border: 2px solid #007aff;
}

.btn-info:hover {
    background: #007aff;
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    /* overflow-y: auto; */
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.modal-content .content {
    max-height: 55vh;
    overflow-y: auto;
    position: relative;
    background-color: #fff;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #666;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #333;
}

#modalContent {
    padding: 30px;
}

#modalContent h2 {
    color: #333;
    margin-bottom: 25px;
    font-size: 1.5rem;
    font-weight: 700;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

.modal-section {
    margin-bottom: 30px;
}

.modal-section h3 {
    color: #0474eb;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.modal-section p {
    color: #666;
    /* line-height: 1.7; */
    font-size: 1rem;
}

.modal-section ul {
    list-style: none;
    padding: 0;
}

.modal-section li {
    color: #666;
    margin-bottom: 6px;
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.modal-section li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #0474eb;
    font-weight: bold;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-badge-modal {
    background: linear-gradient(135deg, #0474eb, #0056b3);
    color: white;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: #007aff;
    color: white;
    text-align: center;
}

.contact h2 {
    margin-bottom: 1rem;
    font-size: 2.8rem;
    font-weight: 700;
}

.contact-subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.contact-item i {
    font-size: 1.3rem;
    color: #fff;
}

.contact-item a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-item a:hover {
    opacity: 0.8;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: hsl(229, 94%, 49%);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background:  #08039a;
    transform: translateY(-3px);
}

.social-link i {
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 1rem 0;
}

.footer p {
    margin: 0;
    opacity: 0.8;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

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

    .tech-stack {
        gap: 0.5rem;
    }

    .tech-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

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

    .project-filters {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }

    .navbar {
        padding: 0.5rem 0;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        margin: 0 10px;
    }

    .hero {
        padding: 100px 20px 50px;
    }

    .projects, .contact {
        padding: 60px 0;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 85vh;
    }

    #modalContent {
        padding: 25px;
    }

    #modalContent h2 {
        font-size: 1.8rem;
    }

    .modal-section h3 {
        font-size: 1.2rem;
    }

    .close-modal {
        top: 10px;
        right: 15px;
        font-size: 28px;
    }

    .project-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
}