/* Global Styles */
:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --secondary: #6b7280;
    --dark: #111827;
    --light: #f9fafb;
    --body-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --heading-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: var(--body-font);
    line-height: 1.7;
    color: var(--dark);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.section-padding {
    padding: 100px 0;
}

.divider {
    width: 60px;
    height: 3px;
    background-color: var(--primary);
    margin-top: 16px;
    margin-bottom: 30px;
}

/* Navbar */
#mainNav {
    transition: all 0.3s ease;
    background-color: transparent;
    padding: 20px 0;
}

#mainNav.scrolled {
    background-color: var(--dark);
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
}

.navbar-nav .nav-link {
    font-weight: 600;
    padding: 0 15px !important;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary);
    bottom: -5px;
    left: 15px;
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: calc(100% - 30px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    padding: 200px 0 120px;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.hero h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.profile-image-container {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
}

.profile-image-container::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), transparent 70%);
    z-index: -1;
}

.wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
}

/* About & Skills Section */
.skill-badge {
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    padding: 10px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    transition: all 0.3s ease;
}

.skill-badge:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.nav-tabs .nav-link {
    color: var(--dark);
    border: none;
    padding: 10px 15px;
    font-weight: 600;
}

.nav-tabs .nav-link.active {
    color: var(--primary);
    background: transparent;
    border-bottom: 2px solid var(--primary);
}

/* Projects Section */
.project-card {
    transition: all 0.3s ease;
    height: 100%;
    border: none;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

/* GitHub Stats */
.github-stat-card {
    max-width: 100%;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.github-stat-card img {
    max-width: 100%;
}

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

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    position: relative;
}

/* Footer */
.footer {
    background-color: var(--dark);
    padding: 60px 0 30px;
}

.footer h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary);
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    display: none;
    width: 45px;
    height: 45px;
    line-height: 45px;
    padding: 0;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Media Queries */
@media (max-width: 992px) {
    .hero {
        padding: 150px 0 100px;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .profile-image-container {
        width: 220px;
        height: 220px;
        margin-top: 50px;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 70px 0;
    }
    
    .hero {
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .nav-tabs .nav-link {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
}

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

.fadeIn {
    animation: fadeIn 1s ease-out;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slideInLeft {
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slideInRight {
    animation: slideInRight 1s ease-out;
}