:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #9f7aea;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #faf5ff;
    --bs-primary: #667eea;
    --bs-primary-rgb: 102, 126, 234;
    --bs-warning: #667eea;
    --bs-warning-rgb: 102, 126, 234;
    --bs-info: #5a6fd8;
    --bs-info-rgb: 90, 111, 216;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    padding-top: 56px;
}

.main-content {
    min-height: calc(100vh - 200px);
}

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

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../assets/images/first.jpg') center/cover;
    opacity: 0.1;
    z-index: 1;
}

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

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    line-height: 1.3;
}

.hero-description {
    font-size: 1rem;
    max-width: 100%;
    margin: 0 0 1rem 0;
    opacity: 0.85;
    line-height: 1.5;
}

/* Cards Responsive */
.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
}

@media (max-width: 767px) {
    .card {
        margin-bottom: 1.5rem;
    }
}

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

.card-header {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 1.5rem;
}

.card-title {
    margin: 0;
    font-weight: 600;
}

/* Stats Section */
.stats-section {
    background: var(--bg-light);
    padding: 80px 0;
}

@media (max-width: 768px) {
    .stats-section {
        padding: 30px 0;
    }
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Sections */
.section {
    padding: 80px 0;
}

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

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Buttons */
.btn-primary {
    background: var(--gradient);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

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

.btn-outline-primary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Profile Image */
.profile-img {
    width: 300px;
    height: 380px;
    object-fit: cover;
    border-radius: 12px;
    border: 6px solid white;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* Achievements */
.achievement-item {
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--accent-color);
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.form-control {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
        text-align: center;
    }
    
    .hero-content {
        flex-direction: column-reverse;
    }
    
    .hero-content .col-lg-7 {
        margin-top: 2rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .profile-img {
        width: 220px;
        height: 280px;
        margin: 0 auto;
    }
    
    .badge {
        font-size: 0.65rem;
        padding: 0.4rem 0.6rem;
        margin: 0.1rem;
    }
    
    .hero-highlights .col-md-4 {
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    .section {
        padding: 30px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        padding: 0 1rem;
    }
    
    .profile-img {
        width: 180px;
        height: 230px;
    }
    
    .badge {
        font-size: 0.6rem;
        padding: 0.3rem 0.5rem;
        margin: 0.1rem;
        display: inline-block;
        line-height: 1.2;
    }
    
    .hero-highlights {
        margin-bottom: 2rem !important;
    }
    
    .hero-highlights .col-md-4 {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .btn-lg {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    /* Mobile Stats Cards - 3 per row */
    .stats-section .col-lg-2 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
        padding: 0 0.25rem;
    }
    
    .stat-card {
        padding: 0.75rem 0.5rem;
        margin-bottom: 0.25rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
        line-height: 1.2;
    }
    
    /* Mobile Cards - 2 per row for About section */
    .section .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
    /* Mobile Achievement Cards - 3 per row */
    .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
        margin-bottom: 0.25rem;
        padding: 0 0.25rem;
    }
    
    .achievement-item {
        padding: 0.75rem 0.5rem;
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
    }
    
    .achievement-item h5 {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }
    
    .achievement-item ul {
        margin-bottom: 0;
    }
    
    .achievement-item li {
        font-size: 0.7rem;
        margin-bottom: 0.1rem;
        line-height: 1.2;
    }

/* Placeholder image styling */
.placeholder-img {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.placeholder-img:hover {
    background: #e9ecef;
    border-color: var(--primary-color);
}

.placeholder-img i {
    opacity: 0.5;
}

.placeholder-img p {
    margin: 0;
    font-size: 0.9rem;
}
.badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    margin: 0.2rem;
}

.badge.bg-warning {
    background: var(--gradient) !important;
    color: white !important;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
}

.badge.bg-info {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%) !important;
    color: white !important;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
}

/* Mobile badge adjustments */
@media (max-width: 768px) {
    .badge.bg-warning,
    .badge.bg-info {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
        margin: 0.1rem;
        display: inline-block;
        line-height: 1.2;
    }
}

/* Responsive badge layout */
@media (max-width: 768px) {
    .badge {
        font-size: 0.65rem;
        padding: 0.4rem 0.6rem;
        margin: 0.1rem;
    }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Bootstrap Color Overrides */
.bg-primary {
    background: var(--gradient) !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: white !important;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Desktop navbar styling only - bright white text */
@media (min-width: 992px) {
    .navbar-dark .navbar-nav .nav-link,
    .navbar .navbar-nav .nav-link {
        color: #ffffff !important;
        font-weight: 500 !important;
        opacity: 1 !important;
        text-shadow: none !important;
    }
    
    .navbar-dark .navbar-nav .nav-link:hover,
    .navbar .navbar-nav .nav-link:hover {
        color: #ffffff !important;
        opacity: 1 !important;
    }
    
    .navbar .navbar-brand,
    .navbar-dark .navbar-brand {
        color: #ffffff !important;
        opacity: 1 !important;
    }
}

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

.bg-info {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%) !important;
}

.btn-primary {
    background: var(--gradient) !important;
    border: none !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.text-primary {
    color: var(--primary-color) !important;
}

/* Hero highlights icons with white background */
.hero-highlights .text-warning {
    background: white !important;
    color: var(--primary-color) !important;
    padding: 8px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Desktop specific styling */
@media (min-width: 769px) {
    .hero-highlights .text-warning {
        width: 40px !important;
        height: 40px !important;
        padding: 10px !important;
        font-size: 1.1rem !important;
        background: white !important;
        color: var(--primary-color) !important;
        border-radius: 50% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }
}

/* Navigation Active State */
.navbar-nav .nav-link.active,
.navbar-dark .navbar-nav .nav-link.active {
    color: #ffffff !important;
    font-weight: 600 !important;
    opacity: 1 !important;
}

/* Footer */
.footer-global {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #334155;
    position: relative;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.footer-global .footer-separator {
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
    margin-bottom: 2rem;
    border-radius: 2px;
    display: block !important;
}

/* Desktop Footer Separator - Force visibility */
@media screen and (min-width: 769px) {
    footer.footer-global {
        border-top: 6px solid var(--primary-color) !important;
        margin-top: 0 !important;
        padding-top: 2rem !important;
    }
}

.footer-global::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.footer-global h5 {
    color: var(--primary-color);
    position: relative;
}

.footer-global h5::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 1px;
}

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

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

.footer-divider {
    border-color: #cbd5e1 !important;
    opacity: 0.6;
}

.social-links .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.social-links .social-link:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.footer-global .text-primary {
    color: var(--primary-color) !important;
}

.footer-global .text-success {
    color: #059669 !important;
}

/* DESKTOP FOOTER LINE - MUST BE LAST */
@media (min-width: 769px) {
    .footer-separator {
        width: 100%;
        height: 6px;
        background: var(--primary-color) !important;
        display: block !important;
        margin-bottom: 2rem !important;
    }
}

/* DESKTOP NAVBAR - FORCE WHITE TEXT - MUST BE LAST TO OVERRIDE BOOTSTRAP */
@media (min-width: 992px) {
    .navbar-dark.bg-primary .navbar-nav .nav-link,
    .navbar.navbar-expand-lg.navbar-dark.bg-primary .navbar-nav .nav-link,
    .navbar-expand-lg .navbar-nav .nav-link {
        color: #ffffff !important;
        font-weight: 500 !important;
        opacity: 1 !important;
        text-shadow: none !important;
    }
    
    .navbar-dark.bg-primary .navbar-nav .nav-link:hover,
    .navbar.navbar-expand-lg.navbar-dark.bg-primary .navbar-nav .nav-link:hover,
    .navbar-expand-lg .navbar-nav .nav-link:hover {
        color: #ffffff !important;
        opacity: 1 !important;
    }
    
    .navbar-dark.bg-primary .navbar-brand,
    .navbar.navbar-expand-lg.navbar-dark.bg-primary .navbar-brand {
        color: #ffffff !important;
        opacity: 1 !important;
    }
}

