/* Custom Styles for Student Portfolio - Modern Dark Theme with Bright Text */

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #0f172a;
    --darker-color: #020617;
    --light-color: #1e293b;
    --lighter-color: #334155;
    
    /* Bright text colors */
    --text-color: #ffffff;
    --text-bright: #ffffff;
    --text-muted: #e2e8f0;
    --text-accent: #60a5fa;
    
    --gradient-primary: linear-gradient(135deg, #6366f1, #8b5cf6, #d946ef);
    --gradient-secondary: linear-gradient(135deg, #f59e0b, #eab308, #84cc16);
    --gradient-dark: linear-gradient(135deg, #0f172a, #1e293b, #334155);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* General Styles - ALL TEXT BRIGHT */
body {
    font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: var(--text-bright) !important;
    background: var(--dark-color);
    overflow-x: hidden;
}

/* Ensure ALL text elements are bright white */
* {
    color: var(--text-bright) !important;
}

/* Specific overrides for all text elements */
h1, h2, h3, h4, h5, h6,
p, span, div, a, li, td, th,
label, small, strong, em,
.card-title, .card-text, .lead,
.nav-link, .navbar-brand,
.btn, .form-label, .form-control,
.badge, .text-muted,
.diary-entry *, .contact-item *,
.skill-item *, .project-card * {
    color: var(--text-bright) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Headers with extra brightness */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

h1.display-4 {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
    font-weight: 800;
}

.lead {
    font-size: 1.3rem;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Card content */
.card-title {
    font-weight: 700;
}

.card-text {
    font-weight: 500;
}

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

::-webkit-scrollbar-track {
    background: var(--darker-color);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 6px;
    border: 2px solid var(--darker-color);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-secondary);
}

/* Header & Navigation */
.navbar {
    background: rgba(15, 23, 42, 0.98) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.navbar-nav .nav-link {
    font-weight: 600;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s ease;
    z-index: -1;
    border-radius: 12px;
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
    left: 0;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    transform: translateY(-2px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Hero Section */
.hero-section {
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

.student-photo {
    width: 280px;
    height: 280px;
    border: 3px solid transparent;
    background: var(--gradient-primary) padding-box,
                var(--gradient-primary) border-box;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 100px rgba(99, 102, 241, 0.2);
    position: relative;
    z-index: 2;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.student-photo:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.6),
        0 0 150px rgba(99, 102, 241, 0.4);
}

.student-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.2) contrast(1.1);
    transition: filter 0.3s ease;
}

.student-photo:hover img {
    filter: grayscale(0) contrast(1.2);
}

/* Skills Section */
.skills-section {
    background: var(--darker-color);
    position: relative;
}

.skill-item {
    margin-bottom: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.skill-item span {
    font-weight: 600;
}

.progress {
    height: 12px;
    border-radius: 10px;
    background: var(--light-color);
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-bar {
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Projects Section */
.projects-section {
    background: var(--gradient-dark);
}

.project-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(99, 102, 241, 0.3);
}

.project-card:hover::before {
    opacity: 0.1;
}

.project-card img {
    transition: transform 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.1);
}

.tech-tags .badge {
    margin-right: 8px;
    margin-bottom: 8px;
    font-size: 0.7rem;
    padding: 0.5em 1em;
    border-radius: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    font-weight: 600;
    transition: all 0.3s ease;
}

.tech-tags .badge:hover {
    background: var(--gradient-primary);
    transform: translateY(-2px);
}

/* Diary Page */
.diary-page {
    background: var(--darker-color);
}

.diary-entry {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid transparent;
    background: linear-gradient(135deg, var(--glass-bg), transparent);
}

.diary-entry:hover {
    transform: translateX(10px) translateY(-5px);
    border-left-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Contacts Page */
.contacts-page {
    background: var(--gradient-dark);
}

.contact-item {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-item:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.contact-form .card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
}

/* Form Styles */
.form-control {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: var(--glass-bg);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: var(--text-muted) !important;
    opacity: 0.8;
}

.form-label {
    font-weight: 600;
}

/* Buttons */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    font-weight: 700;
    padding: 12px 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary::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 ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 15px 30px rgba(99, 102, 241, 0.4),
        0 0 40px rgba(99, 102, 241, 0.2);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.btn-light {
    background: #ffffff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    color: #000000 !important;
    transition: all 0.3s ease;
}

.btn-light:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
    color: #000000 !important;
}

/* Badges */
.badge {
    font-weight: 700;
    padding: 0.5em 1em;
    border-radius: 10px;
    font-size: 0.75rem;
}

.badge.bg-success {
    background: var(--success-color) !important;
}

.badge.bg-warning {
    background: var(--warning-color) !important;
}

.badge.bg-secondary {
    background: var(--lighter-color) !important;
}

.badge.bg-primary {
    background: var(--primary-color) !important;
}

/* Text Styles */
.display-4 {
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: none;
}

/* Cards */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Footer */
footer {
    background: var(--darker-color) !important;
    border-top: 1px solid var(--glass-border);
}

/* Statistics */
.stat-item {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

/* Additional text brightness fixes */
.course-item span,
.diary-entry .text-muted,
.contact-item .text-muted,
.add-entry-form label,
.form-check-label {
    font-weight: 500;
}

/* Modal content */
.modal-content {
    background: var(--dark-color);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(20px);
}

/* Bootstrap Icons */
.bi {
    color: inherit !important;
}

/* Remove any Bootstrap text utilities that might override */
.text-dark,
.text-body,
.text-black {
    color: var(--text-bright) !important;
}

/* Ensure all text in forms is bright */
.form-control::placeholder {
    color: var(--text-muted) !important;
}

.form-select {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-bright) !important;
}

.form-select:focus {
    background: var(--glass-bg);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    color: var(--text-bright) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0 60px;
        text-align: center;
    }
    
    .student-photo {
        width: 200px;
        height: 200px;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .navbar-nav .nav-link {
        margin: 0.25rem 0;
        text-align: center;
    }

    .project-card:hover {
        transform: translateY(-8px);
    }
}

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

.fade-in {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Floating Elements */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}