/* Custom CSS for Portfolio */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --bg-color: #ffffff;
    --text-color: #333333;
    --card-bg: #ffffff;
    --border-color: #e9ecef;
}

/* Dark theme variables */
body.dark-theme {
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --dark-color: #ffffff;
    --light-color: #2d2d2d;
    --card-bg: #2d2d2d;
    --border-color: #404040;
}

body.dark-theme {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: all 0.3s ease;
}

body.dark-theme .bg-light {
    background-color: var(--light-color) !important;
}

body.dark-theme .card {
    background-color: var(--card-bg);
    color: var(--text-color);
    border-color: var(--border-color);
}

body.dark-theme .section-title {
    color: var(--text-color);
}

body.dark-theme .testimonial-card {
    background-color: var(--card-bg);
    color: var(--text-color);
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Navigation */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    background: linear-gradient(45deg, #007bff, #00d4ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.navbar-scrolled {
    background: rgba(52, 58, 64, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

/* Main content padding for fixed navbar */
.main-content {
    padding-top: 76px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
}

/* Hero section with background image */
.hero-section[style*="background"] {
    background-attachment: fixed !important;
}

/* Ensure text is readable over banner */
.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-buttons .btn {
    transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.hero-stats {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-stats h3 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.hero-stats p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 0;
}

.profile-placeholder,
.profile-placeholder-large {
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.profile-placeholder {
    width: 300px;
    height: 300px;
}

.profile-placeholder-large {
    width: 200px;
    height: 200px;
}

/* Profile Images */
.profile-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 300px;
    height: 300px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 4px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.about-profile-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border: 3px solid var(--primary-color);
}

.about-profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.about-profile-image:hover {
    transform: scale(1.1);
}

/* Section styling */
.section-title {
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section-subtitle {
    color: var(--secondary-color);
    margin-bottom: 3rem;
}

/* Skills */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.skill-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-badge:hover {
    background: var(--dark-color);
    transform: translateY(-2px);
}

/* Cards */
.card {
    border: none;
    transition: all 0.3s ease;
}

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

.project-card {
    overflow: hidden;
}

.project-technologies .badge {
    font-size: 0.8rem;
}

.project-links .btn {
    transition: all 0.3s ease;
}

/* Contact page */
.contact-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 10px;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.contact-info-card,
.contact-form-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
    color: var(--text-color);
}

.form-control {
    border-radius: 10px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    background-color: var(--card-bg);
    color: var(--text-color);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
    background-color: var(--card-bg);
    color: var(--text-color);
}

.form-control::placeholder {
    color: var(--secondary-color);
}

.form-label {
    color: var(--text-color);
    font-weight: 500;
}

/* Dark theme specific adjustments */
body.dark-theme .contact-item {
    background: var(--light-color);
    color: var(--text-color);
}

body.dark-theme .contact-info-card,
body.dark-theme .contact-form-card {
    background: var(--card-bg);
    color: var(--text-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

body.dark-theme .form-control {
    background-color: var(--light-color);
    border-color: var(--border-color);
    color: var(--text-color);
}

body.dark-theme .form-control:focus {
    background-color: var(--light-color);
    border-color: var(--primary-color);
    color: var(--text-color);
}

/* Enhanced social media buttons */
.social-links .btn {
    border-width: 2px;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* GitHub button - always visible */
.btn-outline-dark {
    color: #333;
    border-color: #333;
}

.btn-outline-dark:hover {
    background-color: #333;
    border-color: #333;
    color: white;
}

/* Dark theme social media buttons */
body.dark-theme .btn-outline-dark {
    color: #f8f9fa;
    border-color: #f8f9fa;
}

body.dark-theme .btn-outline-dark:hover {
    background-color: #f8f9fa;
    border-color: #f8f9fa;
    color: #1a1a1a;
}

body.dark-theme .btn-outline-primary {
    color: #007bff;
    border-color: #007bff;
}

body.dark-theme .btn-outline-primary:hover {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

body.dark-theme .btn-outline-info {
    color: #17a2b8;
    border-color: #17a2b8;
}

body.dark-theme .btn-outline-info:hover {
    background-color: #17a2b8;
    border-color: #17a2b8;
    color: white;
}

/* Social links */
.social-links a {
    display: inline-block;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
    color: var(--primary-color) !important;
}

/* Footer */
footer {
    margin-top: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        text-align: center;
    }
    
    .profile-placeholder {
        width: 200px;
        height: 200px;
    }
    
    .hero-buttons .btn {
        display: block;
        margin: 0.5rem 0;
    }
    
    .skills-grid {
        justify-content: flex-start;
    }
    
    .contact-info-card,
    .contact-form-card {
        margin-bottom: 2rem;
    }
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

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

/* Custom button styles */
.btn-custom {
    background: linear-gradient(45deg, var(--primary-color), #0056b3);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    background: linear-gradient(45deg, #0056b3, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,123,255,0.4);
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary-color), #00d4ff);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 4px 20px rgba(0,123,255,0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0,123,255,0.4);
}

/* Enhanced skill badges */
.skill-badge {
    background: linear-gradient(45deg, var(--primary-color), #00d4ff);
    color: white;
    padding: 0.7rem 1.2rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,123,255,0.2);
    position: relative;
    overflow: hidden;
}

.skill-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.skill-badge:hover::before {
    left: 100%;
}

.skill-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,123,255,0.3);
}

/* Enhanced cards */
.card {
    border: none;
    transition: all 0.3s ease;
    background: white;
    border-radius: 15px;
    overflow: hidden;
}

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

/* Glowing text effect for headings */
.section-title {
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--dark-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(45deg, var(--primary-color), #00d4ff);
    border-radius: 2px;
}

/* Loading animation for page */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Testimonials */
.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    border-left: 4px solid var(--primary-color);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.testimonial-text {
    font-style: italic;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-info h6 {
    color: var(--dark-color);
    font-weight: 600;
}

.stars {
    font-size: 0.9rem;
}

/* Enhanced hero stats */
.hero-stats {
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-stats h3 {
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 2rem;
    font-weight: 700;
}

.hero-stats p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 0;
    font-size: 0.9rem;
}