/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&family=Montserrat:wght@700&display=swap');

/* Modern Design Variables */
:root {
    /* Use system fonts for faster loading */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    --font-secondary: 'Inter', var(--font-primary);
    
    /* Rich Color Palette - Adjusted for better contrast */
    --primary: #1a5d1a;      /* Darker Forest Green */
    --secondary: #c53030;    /* Deep Red */
    --accent: #d97706;      /* Deep Orange */
    --accent-2: #b45309;    /* Deep Amber */
    --accent-3: #0f766e;    /* Deep Teal */
    
    /* Text Colors - Improved contrast */
    --text: #1a202c;        /* Very Dark Gray */
    --text-light: #2d3748;  /* Dark Gray */
    --text-white: #ffffff;  /* White */
    
    /* Background Colors - Softer tones */
    --background: #faf5f0;   /* Soft Cream */
    --background-alt: #f3e7dc; /* Soft Beige */
    --background-dark: #e6d5c3; /* Soft Tan */
    --card-bg: #ffffff;     /* Pure White for better contrast */
    
    /* Gradients - Adjusted for readability */
    --gradient-primary: linear-gradient(135deg, #1a5d1a 0%, #2d6a4f 100%);
    --gradient-secondary: linear-gradient(135deg, #c53030 0%, #e53e3e 100%);
    --gradient-accent: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    --gradient-cream: linear-gradient(135deg, #faf5f0 0%, #f3e7dc 100%);
    
    /* Shadows - Adjusted for better depth */
    --shadow-sm: 0 1px 2px rgba(26, 32, 44, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(26, 32, 44, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(26, 32, 44, 0.1);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    
    --primary-color: #2563eb;
    --secondary-color: #3b82f6;
    --accent-color: #60a5fa;
    --highlight-color: #93c5fd;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --bg-color: #f8fafc;           /* Light Gray Background */
    --bg-light-section: #ffffff;   /* White for sections/cards */
    --light-text-color: #f8fafc;   /* Light Gray/White for dark backgrounds */
    --heading-color: #0f172a;      /* Dark Slate for Headings */
    --border-color: #e2e8f0;       /* Light Gray for Borders */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Poppins', sans-serif;
    --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --hover-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Modern Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.5;
    color: var(--text);
    background: var(--background);
    overflow-x: hidden;
}

/* Section Styles */
section {
    position: relative;
    width: 100%;
    display: block;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.section-padding {
    padding: 5rem 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Hero Section */
#hero.hero-section {
    position: relative;
    min-height: 100vh;
    background: url('photo.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#hero.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.3));
}

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

.hero-content h1 {
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
}

.hero-content .lead {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
}

.hero-badges .badge {
    background-color: #ffffff;
    color: #000000;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.8rem 1.8rem;
    margin: 0.5rem;
    border-radius: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* About Section */
#about {
    background: transparent !important;
}

#about .section-overlay {
    display: none !important;
}

.about-content {
    background: transparent !important;
}

.about-content h2 {
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.about-content p {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-content .fs-5 {
    color: var(--text-dark);
}

.about-stats .stat-item h3 {
    color: var(--text-dark);
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0;
}

.about-stats .stat-item p {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin: 0;
}

/* Education Section */
#education {
    background: var(--background-alt);
    position: relative;
    z-index: 1;
}

/* Expertise Section */
#expertise {
    background: var(--background);
    position: relative;
    z-index: 1;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content .lead {
        font-size: 1.2rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    .badge {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
}

/* Animation Classes */
[data-aos] {
    opacity: 1 !important;
    transform: none !important;
}

/* Enhanced Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(26, 32, 44, 0.1);
    transition: var(--transition-base);
}

.navbar-brand {
    color: var(--text);
    font-weight: 700;
}

#navbar .navbar-nav .nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
    text-transform: none;
}

#navbar .navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

#navbar .navbar-nav .nav-link.active {
    color: var(--primary-color);
}

/* Enhanced Hero Section */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('photo.jpg') center/cover;
    opacity: 0.1;
    animation: zoomInOut 20s infinite alternate;
}

@keyframes zoomInOut {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-section h2 {
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.hero-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-section .badge {
    margin: 0.5rem;
    padding: 0.85rem 1.75rem;
    font-size: 0.95rem;
    background: rgba(26, 93, 26, 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-section .badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: rgba(26, 93, 26, 1);
}

/* Enhanced Section Styles */
.section-title {
    margin-bottom: 3rem;
    text-align: center;
}

.section-title h2 {
    color: var(--text-dark);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.section-title p {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Enhanced Cards */
.expertise-card, .education-card, .contact-details {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    border: 1px solid rgba(26, 32, 44, 0.1);
}

.expertise-card:hover, .education-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.expertise-card h3, .education-card h3 {
    color: var(--text);
    font-weight: 600;
    margin-bottom: 1rem;
}

.expertise-card p, .education-card p {
    color: var(--text-light);
    line-height: 1.6;
}

.icon-box {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    background: var(--gradient-primary);
    color: white;
    font-size: 2rem;
    transition: var(--transition-smooth);
    position: relative;
    z-index: 1;
}

.expertise-card:hover .icon-box {
    transform: rotateY(180deg);
}

/* Enhanced Timeline */
.journey-timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: 4px solid white;
    box-shadow: var(--shadow-md);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.timeline-content:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

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

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

/* Modern Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

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

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

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

/* Enhanced Form Elements */
.form-control {
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem;
    transition: var(--transition-base);
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    border-color: var(--primary-color);
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Enhanced Footer */
footer {
    background: var(--background-dark);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('photo.jpg') center/cover;
    opacity: 0.1;
    animation: zoomInOut 20s infinite alternate;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: var(--transition-base);
}

.social-links a:hover {
    transform: translateY(-5px);
    color: var(--highlight-color);
}

/* Optimize loading animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity var(--transition-normal);
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Optimize PDF viewer */
.pdf-viewer {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    background: var(--background);
    transition: transform var(--transition-normal);
}

.pdf-viewer:hover {
    transform: translateY(-5px);
}

.pdf-container {
    position: relative;
    width: 100%;
    margin: 2rem 0;
    padding: 1rem;
    background: var(--background-alt);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.pdf-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: var(--background);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.pdf-controls button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    background: var(--primary);
    color: white;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.pdf-controls button:hover {
    background: var(--secondary);
}

/* Optimize section transitions */
section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-normal), transform var(--transition-normal);
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Optimize animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Optimize responsive design */
@media (max-width: 768px) {
    .pdf-viewer {
        height: 400px;
    }
    
    .pdf-controls {
        flex-wrap: wrap;
    }
}

/* Optimize print styles */
@media print {
    .loading,
    .navbar,
    .pdf-controls {
        display: none !important;
    }
    
    .pdf-viewer {
        height: auto;
        box-shadow: none;
    }
    
    section {
        opacity: 1;
        transform: none;
    }
}

/* --- Base & Generic Styles --- */
html { scroll-behavior: smooth; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--heading-color);
    letter-spacing: -0.025em;
}
p { 
    font-weight: 300; 
    line-height: 1.8;
    color: var(--text-color);
}
.fs-5 { font-size: 1.1rem !important; }
.bg-light { background-color: var(--bg-light-section) !important; }

/* --- Overlays & Background Sections --- */
.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1;
}
.about-content, .gallery-content {
    position: relative;
    z-index: 2;
}

/* Navigation Bar */
.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--card-shadow);
}
.navbar-toggler { border: 1px solid var(--border-color); }
.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%2844, 92, 61, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }
.nav-link {
    font-weight: 500;
    color: var(--text-color) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* About Section Styling */
.about-section {
    background: #f8f9fa;
    color: #000000;
    padding: 6rem 0;
}

.about-section .section-title {
    color: #000000;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.about-section .text-muted {
    color: #2d3748;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.about-section .stat-item {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.about-section .stat-item:hover {
    background: #f1f5f9;
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.about-section .stat-number {
    color: #000000;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.about-section .stat-label {
    color: #4a5568;
    font-size: 1rem;
    font-weight: 500;
}

.about-section .container {
    position: relative;
    z-index: 2;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.9), rgba(26, 32, 44, 0.9));
    z-index: 1;
}

@media (max-width: 768px) {
    .about-section {
        padding: 4rem 0;
    }
    
    .about-section .section-title {
        font-size: 2rem;
    }
    
    .about-section .text-muted {
        font-size: 1rem;
    }
}

/* About Me Section */
#about {
    background-image: url('photo.jpg');
    background-size: cover;
    background-position: center 30%;
    background-attachment: fixed;
    color: var(--light-text-color);
}
#about .section-title h2, #about p {
    color: var(--light-text-color);
}
#about .section-title h2::after {
    background-color: var(--light-text-color);
}
#about strong { color: #f0e68c; } /* Khaki color for standout text */

/* Expertise Section */
.expertise-card {
    padding: 2.5rem;
    background-color: var(--bg-light-section);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    height: 100%;
    transition: all 0.4s ease;
    box-shadow: var(--card-shadow);
}
.expertise-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
    border-color: var(--accent-color);
}
.expertise-card .icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    transition: transform 0.3s ease;
}
.expertise-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}

.expertise-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.expertise-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-color);
}

.expertise-list li i {
    color: var(--primary-color);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* Skills & Technologies Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.skill-category h3 {
    color: #2d3748;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1.4rem;
    text-transform: none;
}
.skill-category h5 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}
.skill-category h5 i {
    font-size: 1.5rem;
}
.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.badge {
    background-color: var(--bg-light-section) !important;
    color: var(--text-color) !important;
    padding: 0.8em 1.5em;
    margin: 0.4em;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    border-radius: 12px;
    transition: all 0.3s ease;
}
.badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
    border-color: var(--accent-color);
}
.badge i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}
.badge .fa-python { color: #3776AB; }
.badge .fa-aws { color: #FF9900; }
.badge .fa-microsoft { color: #0078D4; }
.badge .fa-linux { color: #333; }
.badge .fa-git-alt { color: #F05032; }
.badge .fa-docker { color: #2496ED; }
.badge .fa-database { color: #336791; }
.badge .fa-chart-bar, .badge .fa-chart-line { color: #1E88E5; }
.badge .fa-bolt { color: #FFC107; }
.badge .fa-leaf { color: #4CAF50; }
.badge .fa-elephant { color: #FF9800; }
.badge .fa-hive { color: #E91E63; }
.badge .fa-bricks { color: #9C27B0; }
.badge .fa-robot { color: #607D8B; }
.badge .fa-mountain { color: #795548; }
.badge .fa-fire { color: #FF5722; }
.badge .fa-cube { color: #2196F3; }
.badge .fa-flask { color: #00BCD4; }
.badge .fa-brain { color: #673AB7; }
.badge .fa-network-wired { color: #3F51B5; }
.badge .fa-r-project { color: #276DC3; }

/* Credentials Section */
#credentials-list .list-group-item {
    background-color: var(--bg-light-section);
    color: var(--text-color);
    border-color: var(--border-color);
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border-left: 5px solid transparent;
}
#credentials-list .list-group-item:hover {
    background-color: #f8f9fa;
    border-left-color: var(--accent-color);
}
#credentials-list .list-group-item.active {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    border-left-color: var(--primary-color);
}
.pdf-viewer-container {
    position: relative;
    width: 100%;
    min-height: 600px;
    background: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
#pdf-viewer {
    width: 100%;
    height: 100%;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}
#pdf-viewer.visible {
    opacity: 1;
}
.pdf-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 1.2rem;
    text-align: center;
    padding: 2rem;
    transition: opacity 0.3s ease;
}
.pdf-placeholder.hidden {
    opacity: 0;
    pointer-events: none;
}
.pdf-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #9b4dca;
}
#credentials-list {
    max-height: 600px;
    overflow-y: auto;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
#credentials-list .list-group-item {
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem 1.5rem;
    background: #fff;
    color: #1a202c;
}
#credentials-list .list-group-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}
#credentials-list .list-group-item.active {
    background: #9b4dca;
    color: #fff;
    border-color: #9b4dca;
}

/* Remove PDF viewer thumbnails */
#pdf-viewer::-webkit-scrollbar {
    width: 8px;
}

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

#pdf-viewer::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

#pdf-viewer::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Gallery Section */
#gallery {
    background-image: url('photo.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}
#gallery .section-title h2 {
    color: var(--light-text-color);
}
#gallery .section-title h2::after {
    background-color: var(--light-text-color);
}

/* Contact Section Styles */
.contact-details {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    height: 100%;
}

.contact-details p {
    color: var(--text);
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text);
}

.info-item i {
    width: 30px;
    color: var(--primary);
    font-size: 1.2rem;
    margin-right: 1rem;
}

.info-item a {
    color: var(--text);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.info-item a:hover {
    color: var(--primary);
}

.map-container {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer Styles */
.footer {
    background: var(--background-dark);
    color: var(--text);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    color: var(--text);
    border-radius: 50%;
    text-decoration: none;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.footer-social-links a:hover {
    background: var(--primary);
    color: var(--text-white);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .contact-details {
        margin-bottom: 2rem;
    }

    .map-container {
        height: 300px;
    }

    .footer-social-links {
        gap: 1rem;
    }

    .footer-social-links a {
        width: 35px;
        height: 35px;
    }
}

/* Print Styles */
@media print {
    .map-container {
        display: none;
    }

    .contact-details {
        box-shadow: none;
        padding: 0;
    }

    .footer {
        display: none;
    }
}

/* --- Responsive Design --- */

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .section-padding { padding: 120px 0; }
    .section-title h2 { font-size: 3rem; }
    .skills-grid { grid-template-columns: repeat(3, 1fr); }
    .contact-details { text-align: left; }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .nav-link { margin: 0 0.5rem; }
    .hero-section .display-4 { font-size: 4rem; }
}

/* Title Decoration */
.title-decoration {
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    margin: 1rem auto;
    position: relative;
}

.title-decoration::before,
.title-decoration::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 3px;
    background: var(--gradient-primary);
    top: 0;
}

.title-decoration::before {
    left: -40px;
}

.title-decoration::after {
    right: -40px;
}

/* Stat Icons */
.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
    transform: rotate(-10deg);
    transition: var(--transition-base);
}

.stat-item:hover .stat-icon {
    transform: rotate(0deg) scale(1.1);
}

/* Hero Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-down {
    color: white;
    font-size: 2rem;
    opacity: 0.7;
    transition: var(--transition-base);
}

.scroll-down:hover {
    opacity: 1;
    color: var(--highlight-color);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* Enhanced Stat Items */
.stat-item {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item p {
    color: var(--text-color);
    font-size: 1rem;
    margin: 0;
    opacity: 0.8;
}

/* Enhanced Section Overlay */
.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0.05;
    pointer-events: none;
}

/* Enhanced Card Hover Effects */
.expertise-card:hover .icon-box i,
.education-card:hover .icon-box i {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Enhanced Timeline Animation */
.timeline-item::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--gradient-primary);
    opacity: 0.3;
}

.timeline-dot {
    animation: pulse 2s infinite;
}

/* Enhanced Form Focus Effects */
.form-control:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.1);
}

/* Enhanced Button Hover Effects */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.btn-primary:hover::after {
    transform: translateX(100%);
}

/* Enhanced Social Links */
.social-links a {
    position: relative;
    display: inline-block;
}

.social-links a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 50%;
    transform: scale(0);
    transition: var(--transition-base);
    z-index: -1;
}

.social-links a:hover::before {
    transform: scale(1.5);
    opacity: 0.2;
}

/* Add this script to your HTML file */
<script>
document.addEventListener('DOMContentLoaded', function() {
    // Hide loading screen
    setTimeout(function() {
        document.querySelector('.loading').classList.add('hidden');
    }, 1000);

    // Smooth scroll for navigation links
    document.querySelectorAll('a[href^="#"]').forEach(anchor => {
        anchor.addEventListener('click', function (e) {
            e.preventDefault();
            document.querySelector(this.getAttribute('href')).scrollIntoView({
                behavior: 'smooth'
            });
        });
    });

    // Navbar scroll effect
    window.addEventListener('scroll', function() {
        if (window.scrollY > 50) {
            document.querySelector('.navbar').classList.add('scrolled');
        } else {
            document.querySelector('.navbar').classList.remove('scrolled');
        }
    });
});
</script>

/* Technology Badge Styles */
#skills .badge.tech {
    background: linear-gradient(135deg, #9b4dca, #6a1b9a);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 4px 6px rgba(155, 77, 202, 0.2);
    margin: 0.5rem;
    display: inline-block;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.3px;
    text-transform: none;
}

#skills .badge.tech:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(155, 77, 202, 0.3);
    background: linear-gradient(135deg, #a55dd1, #7b1fa2);
}

#skills .skill-category h3 {
    color: #2d3748;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1.4rem;
    text-transform: none;
}

#skills .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

#skills .skill-category {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

#skills .badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    #skills .badge.tech {
        font-size: 0.9rem;
        padding: 0.65rem 1.25rem;
    }
    
    #skills .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* Section Background Colors */
.about-section {
    background: linear-gradient(135deg, #fff5f5, #ffe3e3);
}

.expertise-section {
    background: linear-gradient(135deg, #f0fff4, #dcffe4);
}

.journey-section {
    background: linear-gradient(135deg, #faf5ff, #f3e8ff);
}

.education-section {
    background: linear-gradient(135deg, #fffaf0, #fff5e6);
}

.contact-section {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
}

/* Section Content Styling */
.about-section .section-title {
    color: #2d3748;
}

.about-section .text-muted {
    color: #4a5568;
}

.expertise-section .section-title {
    color: #2d3748;
}

.expertise-section .expertise-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.journey-section .section-title {
    color: #2d3748;
}

.journey-section .timeline-item {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.education-section .section-title {
    color: #2d3748;
}

.education-section .education-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-section .section-title {
    color: #2d3748;
}

.contact-section .contact-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Skill Categories Background */
.skill-category {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.skill-category h3 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Section Overlay Enhancement */
.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1;
}

/* Card Hover Effects */
.expertise-card:hover,
.education-card:hover,
.contact-card:hover,
.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

#about .section-title h2,
#about .section-title p,
#about .about-content p,
#about .about-content .fs-5 {
    color: #000000 !important;
}