/* Non-critical CSS loaded asynchronously */

/* Enhanced Navigation Styles */
.nav-link:hover {
    color: #00BFA6;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: #00BFA6;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: #00BFA6;
}

.nav-link.active::after {
    width: 100%;
}

.nav-menu.active {
    left: 0;
}

.hamburger span {
    transition: 0.3s;
}

/* Enhanced Hero Animations */
.btn-primary:hover {
    background: #009688;
    transform: translateY(-2px);
}

.btn-secondary:hover {
    background: white;
    color: #00BFA6;
}

.code-line {
    animation: pulse 2s infinite;
}

.code-line:nth-child(1) {
    animation-delay: 0s;
}

.code-line:nth-child(2) {
    animation-delay: 0.5s;
}

.code-line:nth-child(3) {
    animation-delay: 1s;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Section Styles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #0A192F;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #00BFA6;
    border-radius: 2px;
}

/* About Section */
.about {
    padding: 80px 0;
    background: #f8fafc;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #64748b;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #00BFA6;
    margin-bottom: 0.5rem;
}

.stat p {
    color: #64748b;
    font-weight: 500;
}

/* Skills Section */
.skills {
    padding: 80px 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-10px);
}

.skill-icon {
    font-size: 3rem;
    color: #00BFA6;
    margin-bottom: 1rem;
}

.skill-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #0A192F;
}

.skill-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.skill-progress {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00BFA6, #FF6B6B);
    border-radius: 4px;
    transition: width 2s ease;
    width: 0;
}

/* Projects Section */
.projects {
    padding: 80px 0;
    background: #f8fafc;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
}

.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, #0A192F 0%, #1a2942 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-buttons {
    display: flex;
    gap: 1rem;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: #00BFA6;
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #0A192F;
}

.project-content p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: #e0f7f4;
    color: #006b5d;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-features ul {
    list-style: none;
}

.project-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #64748b;
}

.project-features i {
    color: #10b981;
    margin-right: 0.5rem;
}

/* Contact Section */
.contact {
    padding: 80px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #0A192F;
}

.contact-info p {
    color: #64748b;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    color: #00BFA6;
    font-size: 1.2rem;
    width: 20px;
}

/* New centered contact styles */
.contact-content-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-info-main {
    text-align: center;
    max-width: 800px;
    width: 100%;
}

.contact-info-main h3 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #0A192F;
}

.contact-info-main p {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.contact-details-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item-large {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s ease;
}

.contact-item-large:hover {
    transform: translateY(-5px);
}

.contact-item-large i {
    color: #00BFA6;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0f7f4;
    border-radius: 50%;
}

.contact-text {
    flex: 1;
    text-align: left;
}

.contact-text h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0A192F;
    margin-bottom: 0.5rem;
}

.contact-text span {
    color: #64748b;
    font-size: 1rem;
}

.contact-cta {
    background: #f8fafc;
    border: 2px solid #e0f7f4;
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
}

.contact-cta p {
    margin-bottom: 0.5rem;
    color: #64748b;
}

.contact-cta p:first-child {
    color: #00BFA6;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: #0A192F;
    color: white;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #00BFA6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-image {
        display: none;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-details-main {
        grid-template-columns: 1fr;
    }
    
    .contact-item-large {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-text {
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }
}