/* Portfolio Custom Styles */

/* Theme Variables */
:root {
    --bg-primary: linear-gradient(135deg, #000011 0%, #000033 100%);
    --bg-secondary: rgba(255, 255, 255, 0.08);
    --bg-hover: rgba(255, 255, 255, 0.15);
    --text-primary: white;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --navbar-bg: rgba(0, 0, 0, 0.95);
    
    /* Enhanced shadow variables */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.25);
    
    /* Card background gradients */
    --card-bg-gradient: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    --card-border: linear-gradient(145deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
}

[data-theme="light"] {
    --bg-primary: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --bg-secondary: rgba(0, 0, 0, 0.08);
    --bg-hover: rgba(0, 0, 0, 0.15);
    --text-primary: #1e293b;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --border-color: rgba(0, 0, 0, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --navbar-bg: rgba(255, 255, 255, 0.95);
    
    /* Enhanced shadow variables for light theme */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.18);
    
    /* Card background gradients for light theme */
    --card-bg-gradient: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    --card-border: linear-gradient(145deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.08));
    
    /* Light theme specific border colors for cards */
    --card-border-color: rgba(0, 0, 0, 0.12);
    --card-border-hover: rgba(59, 130, 246, 0.3);
}

/* Add card border color variable for dark theme too */
:root {
    --card-border-color: rgba(255, 255, 255, 0.2);
    --card-border-hover: rgba(59, 130, 246, 0.3);
}

/* Base Styles */
body {
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    transition: all 0.3s ease;
}

/* Navigation Bar Styles */
.navbar {
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary) !important;
    text-decoration: none;
    background: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--text-primary) !important;
    background: var(--bg-secondary);
}

.navbar-nav .nav-link.active {
    color: var(--text-primary) !important;
    background: rgba(168, 85, 247, 0.2);
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

[data-theme="light"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.3s ease;
    margin-left: 1rem;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.theme-toggle:hover {
    background: var(--bg-hover);
    transform: scale(1.1);
    box-shadow: 0 6px 20px var(--shadow-color);
}

.theme-toggle:focus {
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.3);
    outline: none;
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

/* For Bootstrap nav-link styling within theme toggle */
.nav-link.theme-toggle {
    padding: 0 !important;
    margin: 0 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary) !important;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.nav-link.theme-toggle:hover {
    background: var(--bg-hover) !important;
    transform: scale(1.1);
    box-shadow: 0 6px 20px var(--shadow-color);
    color: var(--text-primary) !important;
}

.nav-link.theme-toggle:focus {
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.3);
    outline: none;
    background: var(--bg-secondary) !important;
}

.nav-link.theme-toggle svg {
    width: 20px;
    height: 20px;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    padding: 6rem 0 4rem 0;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-main {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-text {
    flex: 1;
    min-width: 500px;
}

.hero-image {
    flex-shrink: 0;
    align-self: flex-start;
    position: sticky;
    top: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.about-content {
    max-width: none;
    font-size: 1rem;
    line-height: 1.6;
    text-align: left;
}

.about-content p {
    color: var(--text-secondary);
    text-align: left;
}

.profile-picture {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-picture:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(168, 85, 247, 0.3);
}

/* Section Styles */
.section-padding {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

/* Card Styles */
.experience-card {
    background: var(--card-bg-gradient);
    border: 1px solid var(--card-border-color);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--card-bg-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 20px;
    z-index: -1;
}

.experience-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--card-border-hover);
}

.experience-card:hover::before {
    opacity: 1;
}

.education-card {
    background: var(--card-bg-gradient);
    border: 1px solid var(--card-border-color);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--card-bg-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 20px;
    z-index: -1;
}

.education-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--card-border-hover);
}

.education-card:hover::before {
    opacity: 1;
}

.publication-item {
    background: var(--card-bg-gradient);
    border: 1px solid var(--card-border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.publication-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--card-bg-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 16px;
    z-index: -1;
}

.publication-item:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-lg);
    border-color: var(--card-border-hover);
}

.publication-item:hover::before {
    opacity: 1;
}

/* Contact Card */
.contact-card {
    background: var(--card-bg-gradient);
    border: 1px solid var(--card-border-color);
    border-radius: 24px;
    padding: 3rem;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 24px;
    z-index: -1;
}

.contact-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--card-border-hover);
}

.contact-card:hover::before {
    opacity: 1;
}

/* Enhanced Button Styles */
.btn {
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
    z-index: -1;
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb, #1e40af);
}

.btn-outline-primary {
    border: 2px solid #3b82f6;
    color: #3b82f6;
    background: transparent;
    backdrop-filter: blur(10px);
}

.btn-outline-primary:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    background: transparent;
    backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Link Styles */
.company-link {
    color: #3b82f6;
    text-decoration: none;
}

.company-link:hover {
    color: #60a5fa;
}

.skill-tag {
    display: inline-block;
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    margin: 0.25rem;
}

/* Experience Pills Navigation */
.nav-pills .nav-link {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    margin: 0.25rem;
    border-radius: 8px;
}

.nav-pills .nav-link.active {
    background: #3b82f6;
    color: white;
}

.tab-content {
    margin-top: 2rem;
}

/* Text Styles */
.text-muted {
    color: var(--text-muted) !important;
}

small.text-muted {
    color: var(--text-muted) !important;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-main {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-text {
        min-width: auto;
    }
    
    .hero-image {
        position: static;
        align-self: center;
    }
    
    .profile-picture {
        width: 200px;
        height: 200px;
        margin-bottom: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-content {
        max-width: 100%;
        padding: 1rem;
    }
    
    .about-content {
        text-align: left;
        margin-top: 2rem;
    }
}