/* Main Styles */
:root {
    --primary-color: #4b2e83; /* Purple */
    --secondary-color: #b7a57a; /* Gold */
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), #6a3fbd);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), #d4c18f);
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 76px; /* Adjust for fixed navbar */
}

/* Text Gradient */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Section styling */
.section-title {
    position: relative;
    font-weight: 700;
    margin-bottom: 2rem;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 50%;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: var(--dark-color) !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-link {
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: var(--light-color);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(249, 251, 255, 0.8));
    z-index: -1;
}

.hero-text h1 {
    margin-bottom: 1rem;
}

.profile-img-container {
    position: relative;
    z-index: 1;
    padding: 1rem;
}

.profile-img {
    max-width: 300px;
    border: 8px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

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

/* Intro Section */
.intro-section {
    background-color: #f5f5f5;
}

.intro-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.intro-card p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* About Section */
.about-section {
    background-color: #f9f9f9;
}

.about-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: transform 0.3s ease;
}

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

.about-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
}

.about-card h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    bottom: -8px;
    left: 0;
    border-radius: 2px;
}

.about-img-container img {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.about-img-container img:hover {
    transform: scale(1.05);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    display: inline-block;
    padding: 6px 12px;
    background: var(--light-color);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.interest-list {
    list-style: none;
    padding: 0;
}

.interest-list li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.education-item {
    transition: transform 0.3s ease;
}

.education-item:hover {
    transform: translateX(10px);
}

.education-icon {
    color: var(--primary-color);
}

/* Resume Section */
.resume-section {
    background-color: #f5f5f5;
    min-height: 100vh;
}

.resume-actions {
    margin-bottom: 2rem;
}

.resume-viewer {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.embed-responsive {
    position: relative;
    overflow: hidden;
    width: 100%;
    border-radius: 10px;
}

.embed-responsive iframe {
    border: none;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
}

/* Contact Section */
.contact-section {
    background-color: #f9f9f9;
    min-height: 100vh;
}

.contact-info-container, 
.contact-form-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: transform 0.3s ease;
}

.contact-info-container:hover,
.contact-form-container:hover {
    transform: translateY(-5px);
}

.contact-info-item {
    transition: transform 0.3s ease;
}

.contact-info-item:hover {
    transform: translateX(10px);
}

.contact-icon {
    color: var(--primary-color);
    width: 50px;
    text-align: center;
}

.contact-link {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--primary-color);
}

.form-control {
    border: 1px solid #e1e1e1;
    padding: 12px;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--dark-color);
}

.footer a {
    transition: transform 0.3s ease;
    display: inline-block;
}

.footer a:hover {
    transform: translateY(-5px);
}

/* Media Queries */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 6rem 0;
        height: auto;
    }
    
    .hero-text {
        text-align: center;
        margin-bottom: 3rem;
    }
    
    .profile-img {
        max-width: 250px;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 4rem 0;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .profile-img {
        max-width: 200px;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Project Section Styles */
.project-item, .experience-item, .program-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
    transition: transform 0.3s ease;
}

.project-item:last-child, .experience-item:last-child, .program-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.project-item:hover, .experience-item:hover, .program-item:hover {
    transform: translateX(10px);
}

.project-item h4, .experience-item h4, .program-item h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tech-stack {
    font-size: 0.9rem;
    color: #666;
}

.project-details, .experience-details, .program-details {
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.project-details li, .experience-details li, .program-details li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

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

.fadeInUp {
    animation: fadeInUp 0.5s ease forwards;
}