/* Black and White Theme with Animations */
:root {
    --primary-black: #000000;
    --primary-white: #ffffff;
    --gray-dark: #1a1a1a;
    --gray-medium: #333333;
    --gray-light: #f5f5f5;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--primary-white);
    color: var(--primary-black);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-in;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-slide-left {
    animation: slideInLeft 0.8s ease-out;
}

.animate-slide-right {
    animation: slideInRight 0.8s ease-out;
}

/* Navigation */
.navbar {
    background-color: var(--primary-black) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-speed);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-white) !important;
    letter-spacing: 1px;
}

.navbar-nav .nav-link {
    color: var(--primary-white) !important;
    margin: 0 15px;
    font-weight: 500;
    position: relative;
    transition: all var(--transition-speed);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-white);
    transition: width var(--transition-speed);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.navbar-nav .nav-link:hover {
    transform: translateY(-2px);
}

/* Modern Dropdown Menu Styles */
.dropdown-menu {
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    padding: 10px 0;
    margin-top: 10px;
    min-width: 220px;
    animation: dropdownSlideIn 0.3s ease-out;
    backdrop-filter: blur(10px);
    overflow: visible !important;
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #1a1a1a;
    pointer-events: none;
    z-index: -1;
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.dropdown-item::before {
    content: '';
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #fff, transparent);
    position: absolute;
    bottom: 0;
    left: 20px;
    transition: width 0.3s ease;
    pointer-events: none;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-white) !important;
    border-left-color: var(--primary-white);
    padding-left: 25px;
}

.dropdown-item:hover::before {
    width: calc(100% - 40px);
}

.dropdown-item:active {
    background: rgba(255, 255, 255, 0.15);
}

/* Nested dropdown (submenu) for desktop */
.dropdown-menu .dropdown-menu {
    margin-left: 0;
    margin-top: 0;
}

.dropdown-menu .dropdown-menu::before {
    display: none;
}

/* Dropdown toggle arrow */
.dropdown-toggle::after {
    transition: transform 0.3s ease;
}

.dropdown.show .dropdown-toggle::after,
.dropend.show .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Desktop click-based dropdown (more stable) */
@media (min-width: 992px) {
    /* Nested dropdown positioning */
    .dropend {
        position: relative;
    }
    
    .dropend > .dropdown-menu {
        position: absolute;
        left: 100%;
        top: 0;
        margin-left: 10px;
        margin-top: 0;
    }
    
    /* Force hide submenu by default */
    .dropend > .dropdown-menu {
        display: none;
    }
    
    /* Show submenu when .show class is present */
    .dropend > .dropdown-menu.show {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        z-index: 1000;
    }
    
    /* Arrow rotation */
    .dropend .dropdown-toggle::after {
        transform: rotate(-90deg);
        margin-left: auto;
        transition: transform 0.3s ease;
    }
    
    .dropend.show .dropdown-toggle::after {
        transform: rotate(90deg);
    }
}

/* Mobile dropdown styles */
@media (max-width: 991px) {
    .dropdown-menu {
        background: rgba(26, 26, 26, 0.98);
        border-radius: 8px;
        margin: 10px 0;
        padding: 10px 0;
        animation: dropdownSlideIn 0.2s ease-out;
        position: static !important;
        transform: none !important;
    }
    
    .dropdown-menu::before {
        display: none;
    }
    
    .dropdown-item {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .dropdown-item:hover {
        padding-left: 25px;
        transform: none;
    }
    
    /* Nested dropdown on mobile */
    .dropdown-menu .dropdown-menu {
        background: rgba(0, 0, 0, 0.5);
        margin: 5px 15px;
        border-radius: 6px;
        padding: 5px 0;
    }
    
    .dropdown-menu .dropdown-item {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    /* Mobile navbar improvements */
    .navbar-collapse {
        background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
        border-radius: 12px;
        margin-top: 15px;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    
    .navbar-nav .nav-link {
        padding: 12px 15px;
        border-radius: 8px;
        margin: 5px 0;
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateX(5px);
    }
    
    .navbar-nav .nav-link::after {
        display: none;
    }
}

/* Hero Section (Homepage only - full screen) */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #000 0%, #333 100%);
    color: var(--primary-white);
    position: relative;
    overflow: hidden;
}

/* Page Header (Other pages - with gradient) */
.page-header {
    background: linear-gradient(135deg, #000 0%, #333 100%);
    color: white;
    padding: 120px 0 60px;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.page-header h1 {
    color: white;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
}


.hero-content {
    position: relative;
    z-index: 1;
}

.profile-photo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 5px solid var(--primary-white);
    box-shadow: 0 10px 40px rgba(255,255,255,0.2);
    transition: all var(--transition-speed);
    object-fit: cover;
}

.profile-photo:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 15px 50px rgba(255,255,255,0.3);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Content Sections */
.content-section {
    padding: 100px 0;
    position: relative;
    scroll-margin-top: 80px;
    background-color: var(--primary-white);
}

/* Fix for anchor links with fixed navbar */
html {
    scroll-padding-top: 80px;
    scroll-behavior: smooth;
}

/* Ensure bio section has white background */
#bio {
    background-color: var(--primary-white) !important;
    z-index: 10;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    padding-top: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-black);
}

.bg-black {
    background-color: var(--primary-black);
    color: var(--primary-white);
}

.bg-black .section-title::after {
    background-color: var(--primary-white);
}

/* Cards */
.card {
    border: 2px solid var(--primary-black);
    border-radius: 0;
    transition: all var(--transition-speed);
    overflow: hidden;
    background-color: var(--primary-white);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.card-img-top {
    transition: all var(--transition-speed);
    height: 200px;
    object-fit: cover;
}

.card:hover .card-img-top {
    transform: scale(1.1);
}

.card-title {
    font-weight: 700;
    color: var(--primary-black);
}

.card-body {
    padding: 1.5rem;
}

/* See more link */
.see-more-link {
    color: var(--primary-black);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all var(--transition-speed);
}

.see-more-link:hover {
    opacity: 0.7;
    transform: translateX(3px);
}

/* Buttons */
.btn-custom {
    background-color: var(--primary-black);
    color: var(--primary-white);
    border: 2px solid var(--primary-black);
    padding: 12px 30px;
    font-weight: 600;
    transition: all var(--transition-speed);
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-custom:hover {
    background-color: var(--primary-white);
    color: var(--primary-black);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-outline-custom {
    background-color: transparent;
    color: var(--primary-white);
    border: 2px solid var(--primary-white);
    padding: 12px 30px;
    font-weight: 600;
    transition: all var(--transition-speed);
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-outline-custom:hover {
    background-color: var(--primary-white);
    color: var(--primary-black);
    transform: translateY(-3px);
}

.btn-outline-dark {
    border: 2px solid var(--primary-black);
    color: var(--primary-black);
    padding: 12px 30px;
    font-weight: 600;
    transition: all var(--transition-speed);
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-outline-dark:hover {
    background-color: var(--primary-black);
    color: var(--primary-white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Modal Buttons */
.modal-footer .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-speed);
}

.modal-footer .btn-outline-dark {
    background-color: transparent;
    border: 2px solid var(--primary-black);
}

.modal-footer .btn-outline-dark:hover {
    background-color: var(--primary-black);
    color: var(--primary-white);
    transform: none;
}

.modal-footer .btn-custom {
    border: 2px solid var(--primary-black);
}

.modal-footer .btn-custom:hover {
    transform: none;
}

/* Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border: 3px solid var(--primary-black);
    transition: all var(--transition-speed);
}

.video-container:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transform: translateY(-5px);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Footer */
.footer {
    background-color: var(--primary-black);
    color: var(--primary-white);
    padding: 60px 0 20px 0;
    margin-top: 80px;
}

.footer h5 {
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all var(--transition-speed);
    display: inline-block;
    margin-bottom: 8px;
}

.footer a:hover {
    color: var(--primary-white);
    transform: translateX(5px);
}

.footer ul {
    padding-left: 0;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer .text-white-50 {
    color: rgba(255,255,255,0.7) !important;
}

.footer p {
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: var(--primary-white);
    animation: rotate 1s linear infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .profile-photo {
        width: 200px;
        height: 200px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Page Header Mobile Adjustments */
    .page-header {
        padding: 100px 0 40px;
        margin-bottom: 30px;
    }
    
    .page-header h1 {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
        margin-top: 10px !important;
    }
    
    .page-header .lead {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--primary-white);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-black);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-medium);
}

/* Bio Section */
.bio-info {
    background-color: var(--gray-light);
    padding: 30px;
    border-left: 5px solid var(--primary-black);
    margin-top: 20px;
}

.bio-info h5 {
    font-weight: 700;
    margin-bottom: 15px;
}

.bio-info p {
    margin-bottom: 10px;
}

/* Ebook Card */
.ebook-card {
    height: 100%;
}

.ebook-cover {
    height: 300px;
    object-fit: cover;
    background-color: var(--gray-light);
}

/* Recent Work Card */
.work-card {
    margin-bottom: 30px;
}

.work-description {
    font-size: 0.95rem;
    color: var(--gray-medium);
}

/* Pagination */
.pagination {
    margin-top: 30px;
}

.pagination .page-link {
    color: var(--primary-black);
    background-color: var(--primary-white);
    border: 1px solid var(--primary-black);
    padding: 10px 15px;
    margin: 0 3px;
    transition: all var(--transition-speed);
    font-weight: 500;
}

.pagination .page-link:hover {
    color: var(--primary-white);
    background-color: var(--primary-black);
    border-color: var(--primary-black);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.pagination .page-item.active .page-link {
    color: var(--primary-white);
    background-color: var(--primary-black);
    border-color: var(--primary-black);
    z-index: 1;
}

.pagination .page-item.disabled .page-link {
    color: var(--gray-medium);
    background-color: var(--gray-light);
    border-color: var(--gray-light);
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--gray-dark) 100%);
    color: var(--primary-white);
}

.stat-box {
    padding: 40px 20px;
    transition: all var(--transition-speed);
}

.stat-box:hover {
    transform: translateY(-10px);
}

.stat-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.stat-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-white);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
}


/* Team Members Section */
.team-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.team-photo-wrapper {
    width: 200px;
    height: 200px;
    margin: 30px auto 0;
    overflow: hidden;
    background: linear-gradient(135deg, #000 0%, #333 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.team-photo-placeholder {
    color: white;
}

.team-info {
    padding: 2rem;
}

.team-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #000;
}

.team-position {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
    font-weight: 500;
}

.team-bio {
    color: #333;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.team-contact {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: #555;
}

.team-contact a {
    color: #000;
    text-decoration: none;
    transition: all 0.3s;
}

.team-contact a:hover {
    color: #666;
}
