/* Custom CSS for Amit Sharma - BJP Profile Website */

:root {
    --primary: #f5821f;
    --secondary: #1c1f34;
    --white: #FFFFFF;
    --text-dark: #1c1f34;
    --text-light: #666666;
    --bg-light: #F8F9FA;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.98);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--primary) !important;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    margin-right: 10px;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary) !important;
}

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

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

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.hero-designation {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-mission {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons .btn {
    padding: 12px 30px;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--white);
    border: 2px solid var(--white);
    color: var(--primary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: var(--secondary);
    border: 2px solid var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background: transparent;
    border-color: var(--secondary);
    color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.resume-download {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.resume-download:hover {
    transform: translateY(-2px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.resume-download::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.resume-download:hover::after {
    width: 100%;
}

/* Resume button animations */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 130, 31, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(245, 130, 31, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 130, 31, 0);
    }
}

.btn[href*="resume"]:not(.resume-download) {
    animation: pulse 2s infinite;
}

.btn[href*="resume"]:hover {
    animation: none;
}

.hero-image {
    position: relative;
    text-align: center;
}

.profile-img {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.image-frame {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 390px;
    height: 390px;
    border: 3px solid var(--white);
    border-radius: 50%;
    opacity: 0.3;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-down {
    color: var(--white);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    text-decoration: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto 1rem;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about-section {
    background: var(--bg-light);
}

.about-image img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.about-image img:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.about-title {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.about-text {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Political Positions Styles */
.political-positions h4,
.education-section h4,
.family-legacy h4 {
    color: var(--text-dark);
    font-weight: 600;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.position-timeline {
    position: relative;
    padding-left: 2rem;
}

.position-timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.position-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.position-item::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 2px 8px rgba(245, 130, 31, 0.3);
}

.position-year {
    background: var(--primary);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.position-details h5 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.position-details p {
    color: var(--text-light);
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Education Section Styles */
.education-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary);
}

.education-degree h5 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.institution {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.duration {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.job-description {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Family Legacy Styles */
.legacy-items {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.legacy-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.legacy-item:hover {
    background: var(--bg-light);
    transform: translateX(5px);
}

.legacy-relation {
    min-width: 100px;
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--text-dark);
}

.legacy-details h6 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.legacy-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.achievement-item {
    text-align: center;
    padding: 1rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.achievement-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.achievement-item i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.achievement-item h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.achievement-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* Responsive Design for About Section */
@media (max-width: 768px) {
    .position-timeline {
        padding-left: 1.5rem;
    }
    
    .position-item {
        padding-left: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .legacy-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .legacy-relation {
        min-width: auto;
    }
}

@media (max-width: 576px) {
    .political-positions h4,
    .education-section h4,
    .family-legacy h4 {
        font-size: 1.2rem;
    }
    
    .position-details h5 {
        font-size: 1rem;
    }
    
    .education-degree h5 {
        font-size: 1rem;
    }
    
    .legacy-details h6 {
        font-size: 0.95rem;
    }
}

/* Work Section */
.work-section {
    background: var(--secondary);
    position: relative;
}

.work-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.work-section .container {
    position: relative;
    z-index: 2;
}

.work-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.work-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.work-icon {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.work-icon i {
    font-size: 2rem;
    color: var(--white);
}

.work-card h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.work-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.work-stats {
    list-style: none;
    padding: 0;
}

.work-stats li {
    background: var(--bg-light);
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary);
    display: flex;
    align-items: center;
    text-align: left;
}

.work-stats li i {
    margin-right: 0.5rem;
    font-size: 0.8rem;
    color: var(--primary);
    width: 16px;
}

/* Work CTA Section */
.work-cta {
    background: rgba(255, 255, 255, 0.1);
    padding: 3rem 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.cta-buttons .btn {
    min-width: 180px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.cta-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cta-buttons .btn-primary:hover {
    box-shadow: 0 8px 25px rgba(245, 130, 31, 0.4);
}

/* Enhanced Work Card Styles */
.work-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border-top: 4px solid var(--primary);
}

.work-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-top-color: var(--secondary);
}

.work-card h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: 1.2rem;
    line-height: 1.4;
}

.work-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Responsive Design for Work Section */
@media (max-width: 768px) {
    .work-card {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .work-card h4 {
        font-size: 1.1rem;
    }
    
    .work-cta {
        padding: 2rem 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 576px) {
    .work-stats li {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .work-icon {
        width: 60px;
        height: 60px;
    }
    
    .work-icon i {
        font-size: 1.5rem;
    }
}

/* Gallery Section */
.gallery-section {
    background: var(--white);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(28, 31, 52, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--white);
    text-align: center;
    padding: 1rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.gallery-overlay p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.gallery-link {
    background: var(--primary);
    color: var(--white) !important;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.gallery-link:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 130, 31, 0.4);
}

/* Gallery Stats */
.gallery-stats {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    color: var(--text-light);
    font-weight: 500;
    margin: 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Gallery CTA */
.gallery-cta {
    margin-bottom: 1rem;
}

.gallery-cta .btn {
    min-width: 180px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.gallery-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.gallery-cta .btn-primary:hover {
    box-shadow: 0 8px 25px rgba(245, 130, 31, 0.4);
}

/* Responsive Design for Gallery */
@media (max-width: 768px) {
    .gallery-item img {
        height: 200px;
    }
    
    .gallery-overlay h5 {
        font-size: 1rem;
    }
    
    .gallery-overlay p {
        font-size: 0.8rem;
    }
    
    .gallery-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .gallery-cta .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .gallery-stats {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}

/* Contact Section */
.contact-section {
    background: var(--secondary);
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
}

.contact-section .container {
    position: relative;
    z-index: 2;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.contact-form .form-control {
    border: 2px solid #E9ECEF;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(245, 130, 31, 0.25);
}

.contact-info {
    text-align: center;
    color: var(--white);
    padding: 1.5rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.contact-info h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-info p {
    margin: 0;
    opacity: 0.9;
}

.contact-link {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.social-links {
    margin-top: 2rem;
}

.social-link {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    color: var(--white);
    font-size: 1.2rem;
    margin: 0 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

.social-link.facebook:hover { color: #3b5998; }
.social-link.twitter:hover { color: #1da1f2; }
.social-link.instagram:hover { color: #e4405f; }
.social-link.linkedin:hover { color: #0077b5; }
.social-link.youtube:hover { color: #ff0000; }
.social-link.whatsapp:hover { color: #25d366; }

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .profile-img {
        width: 280px;
        height: 280px;
    }
    
    .image-frame {
        width: 320px;
        height: 320px;
    }
    
    .hero-buttons .btn {
        display: block;
        margin-bottom: 1rem;
        width: 100%;
    }
    
    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .work-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .profile-img {
        width: 220px;
        height: 220px;
    }
    
    .image-frame {
        width: 260px;
        height: 260px;
    }
    
    .navbar-brand .brand-text {
        font-size: 1.2rem;
    }
    
    .logo-img {
        height: 30px;
    }
}