/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f8fafc;
}

section {
    max-width: 1100px;
    margin: 0 auto 3rem auto;
    padding: 2.5rem 1.5rem 2rem 1.5rem;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}

section h2 {
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

/* Navigation */
nav {
    position: fixed;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #007bff;
}

/* Hero Section with subtle background image */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: #6366f1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 220px;
    height: 220px;
    background: url('images/code-bg.png') no-repeat center center/contain;
    opacity: 0.13;
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    padding: 2rem 3rem;
    background: rgba(0, 0, 0, 0.22);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

@media (max-width: 900px) {
    section {
        padding: 1.5rem 0.5rem 1.5rem 0.5rem;
    }
    .hero::after {
        width: 120px;
        height: 120px;
        bottom: 10px;
        right: 10px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.highlight {
    background: linear-gradient(120deg, #2196f3, #00bcd4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.highlight {
    color: #00ffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #f8f9fa;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(45deg, #00ffff, #007bff);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    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);
    background: linear-gradient(45deg, #007bff, #00ffff);
}

/* About Section */
.about {
    padding: 5rem 10%;
    background: white;
}

/* About Section Enhancements */
.about-content {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
    align-items: center;
    justify-content: center;
}

.about-text {
    flex: 1.2;
    min-width: 260px;
}

.about-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image img {
    width: 360px;
    max-width: 100%;
    border-radius: 50%;
    border: 5px solid #6366f1;
    box-shadow: 0 8px 32px rgba(99,102,241,0.18), 0 2px 8px rgba(0,0,0,0.08);
    object-fit: cover;
    transition: transform 0.4s, box-shadow 0.4s;
    background: #fff;
}

@media (max-width: 900px) {
    .about-image img {
        width: 240px;
    }
}

.about-image img:hover {
    transform: scale(1.04) rotate(-2deg);
    box-shadow: 0 16px 40px rgba(99,102,241,0.22), 0 4px 16px rgba(0,0,0,0.12);
}

@media (max-width: 900px) {
    .about-content {
        flex-direction: column-reverse;
        gap: 2rem;
    }
    .about-image img {
        width: 220px;
        margin-bottom: 1.5rem;
    }
    .about-text {
        text-align: center;
    }
}

.skills-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 3rem 0 2rem 0;
}

.skills-section h2 {
    text-align: center;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.skill-tags span {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 25px;
    font-size: 1rem;
    color: #2d3748;
    border: 2px solid transparent;
    transition: all 0.4s ease;
    animation: floatSkill 3s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.skill-tags span:hover {
    border-color: #6366f1;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2);
}

@keyframes floatSkill {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Add different animation delays for each skill */
.skill-tags span:nth-child(1) { animation-delay: 0s; }
.skill-tags span:nth-child(2) { animation-delay: 0.2s; }
.skill-tags span:nth-child(3) { animation-delay: 0.4s; }
.skill-tags span:nth-child(4) { animation-delay: 0.6s; }
.skill-tags span:nth-child(5) { animation-delay: 0.8s; }
.skill-tags span:nth-child(6) { animation-delay: 1s; }
/* Updated Project Section Styles */
.projects {
    padding: 6rem 10%;
    background: #f8f9fa;
}

.project-grid {
    display: flex;
    flex-direction: row;
    gap: 2.5rem;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-top: 3rem;
}

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    background: linear-gradient(to bottom right, #ffffff, #f8f9fa);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #007bff;
    background: linear-gradient(to bottom right, #f8f9fa, #e9ecef);
}

.project-info {
    padding: 1.8rem;
    border-top: 1px solid #eee;
    transition: all 0.3s ease;
}

.project-tags span {
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    border-radius: 20px;
    font-size: 0.85rem;
    color: #495057;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.project-tags span:hover {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    transform: translateY(-2px);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn:hover {
    background: white;
    color: #007bff;
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.2);
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        max-width: 100%;
    }
    
    .project-info {
        padding: 1.2rem;
    }
    
    .project-tags span {
        padding: 0.2rem 0.6rem;
        font-size: 0.8rem;
    }
}

/* Animation for project cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* Contact Section */
.contact {
    padding: 5% 10%;
    background: white;
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

#contact-form {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Certification Cards Enhancement */
.cert-card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border: 2px solid transparent;
    transition: all 0.4s ease;
}

.cert-card:hover {
    transform: translateY(-8px);
    border-color: #6366f1;
    box-shadow: 0 12px 25px rgba(99, 102, 241, 0.15);
}

.cert-icon {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.cert-link {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.cert-link:hover {
    transform: translateX(8px);
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

/* Profile Image Enhancement */
.about-image img {
    width: 50%;
    border-radius: 15px;
    border: 3px solid transparent;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-image img:hover {
    transform: scale(1.02);
    border-color: #4f46e5;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.2);
}

/* Contact Form Enhancement */
#contact-form input,
#contact-form textarea {
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #f8fafc;
}

#contact-form input:focus,
#contact-form textarea:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    outline: none;
}

#contact-form button {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

#contact-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
}

.social-links a {
    color: #4f46e5;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #7c3aed;
    transform: translateY(-3px);
}

Footer
footer {
    text-align: center;
    padding: 1rem;
    background: #333;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
}

.certifications {
    padding: 5rem 2rem;
    background: linear-gradient(to bottom right, #ffffff, #f8f9fa);
}

.cert-container {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.1);
    max-width: 1400px;
    margin: 0 auto;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.cert-grid {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.cert-card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.cert-icon {
    width: 35px;
    height: 35px;
    margin: 0 auto 0.8rem;
    border-radius: 8px;
}

.cert-icon i {
    font-size: 1.1rem;
}

.cert-card h3 {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.cert-issuer {
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
}

.cert-date {
    font-size: 0.75rem;
    margin-bottom: 1rem;
}

.cert-link {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 6px;
}

.cert-icon i {
    font-size: 1.5rem;
    color: white;
}

@media (max-width: 768px) {
    .cert-container {
        padding: 1rem;
    }
    
    .cert-grid {
        grid-template-columns: 1fr;
    }
}

.cert-icon i {
    font-size: 1.8rem;
    color: white;
}

.cert-card h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.cert-issuer {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.cert-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.cert-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.cert-link:hover {
    transform: translateX(5px);
}

@media (max-width: 900px) {
    .cert-grid {
        flex-wrap: wrap;
        overflow-x: auto;
    }
}

.ai-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00b4d8, #0077b6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-avatar i {
    font-size: 20px;
    color: white;
}

.chat-header {
    position: relative;
}

.minimize-chat {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
}

.minimize-chat:hover {
    opacity: 0.8;
}

#send-message {
    display: flex;
    align-items: center;
    justify-content: center;
}

#send-message i {
    font-size: 16px;
}
h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    color: #2d3748;
    transition: all 0.3s ease;
    cursor: default;
}

h2::before {
    content: '';
    position: absolute;
    width: 0;
    height: 4px;
    bottom: -10px;
    left: 50%;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

h2:hover {
    transform: translateY(-3px);
    color: #6366f1;
    text-shadow: 2px 2px 15px rgba(147, 51, 234, 0.3);
}

h2::before {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

h2:hover::before {
    width: 120px;
    box-shadow: 0 2px 15px rgba(147, 51, 234, 0.4);
}

h3:hover {
    color: #4f46e5;
    transform: translateX(5px);
    text-shadow: 1px 1px 10px rgba(99, 102, 241, 0.2);
}

h3::after {
    background: linear-gradient(135deg, #3b82f6, #ec4899);
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: #8b5cf6;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
    background: linear-gradient(to bottom right, #ffffff, #f3f4f6);
}

.project-tags span:hover {
    background: linear-gradient(135deg, #6366f1, #ec4899);
    color: white;
    transform: translateY(-2px);
}

.cert-card:hover {
    transform: translateY(-8px);
    border-color: #8b5cf6;
    box-shadow: 0 12px 25px rgba(139, 92, 246, 0.2);
}

.cert-link:hover {
    transform: translateX(8px);
    background: linear-gradient(135deg, #6366f1, #ec4899);
}

.social-links a:hover {
    color: #8b5cf6;
    transform: translateY(-3px) rotate(8deg);
}

/* Scroll-to-top button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    z-index: 1000;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}