/* Custom styles */

/* ============================================
   ENHANCED VISUAL EFFECTS & ANIMATIONS
   ============================================ */

/* Background Image */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: #1e293b; /* Fallback color while image loads */
    background-image: url('../images/earth.gif');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll; /* Better performance than fixed */
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    will-change: transform;
    transition: opacity 0.5s ease-in-out;
}

/* Ensure background shows by default in case JS doesn't run */
.hero-background {
    opacity: 1;
}

/* Alternative: High-performance gradient background */
.hero-background-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(135deg, 
        #1e293b 0%, 
        #334155 20%, 
        #475569 40%, 
        #64748b 60%, 
        #94a3b8 80%, 
        #cbd5e1 100%);
    transform: translateZ(0);
    will-change: transform;
}

/* Use this class instead of .hero-background for ultra-fast loading */

.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(37, 99, 235, 0.4) 100%);
    z-index: 1;
}

.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Glassmorphism Navigation */
.glassmorphism-nav {
    background: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37) !important;
    transition: all 0.3s ease !important;
}

.glassmorphism-nav.scrolled {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(25px) !important;
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.5) !important;
}

.navbar-brand {
    position: relative;
    overflow: hidden;
}

.brand-text {
    position: relative;
    z-index: 2;
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
    filter: blur(10px);
    z-index: 1;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.nav-link {
    position: relative;
    transition: all 0.3s ease !important;
    padding: 0.5rem 1rem !important;
    border-radius: 20px !important;
    margin: 0 2px !important;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(6, 182, 212, 0.2));
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
}

.nav-link span {
    position: relative;
    z-index: 2;
}

/* Enhanced Shadows and Depth */
.section-padding {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.card, .project-card, .cert-card, .contact-card, .education-content {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.card:hover, .project-card:hover, .cert-card:hover, .contact-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2) !important;
}

/* Beautiful Gradient Buttons */
.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%) !important;
    border: none !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.4) !important;
}

.btn-outline-primary {
    background: transparent !important;
    border: 2px solid transparent !important;
    background-clip: padding-box !important;
    position: relative !important;
}

.btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    margin: -2px;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    border-radius: inherit;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%) !important;
    border-color: transparent !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.4) !important;
}

/* Enhanced Skill Visualizations */
.skill-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #06b6d4, #8b5cf6, #f59e0b);
    border-radius: 20px 20px 0 0;
}

.skill-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 1);
}

.skill-header {
    margin-bottom: 20px;
}

.skill-title {
    font-weight: 600;
    color: var(--dark);
    margin: 0;
    font-size: 1.1rem;
}

.skill-percentage {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.2rem;
}

.skill-visual {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.skill-bar-container {
    flex: 1;
    margin-right: 20px;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #06b6d4);
    border-radius: 10px;
    width: 0%;
    transition: width 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.skill-glow {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    border-radius: 10px;
    animation: shimmer 2s infinite;
    opacity: 0;
}

.skill-item.animate .skill-glow {
    opacity: 1;
}

@keyframes shimmer {
    0% {
        transform: translateX(-30px);
    }
    100% {
        transform: translateX(300px);
    }
}

.skill-circle {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-circle-svg {
    position: absolute;
    transform: rotate(-90deg);
}

.skill-circle-progress {
    stroke-dasharray: 157; /* 2 * PI * 25 */
    stroke-dashoffset: 157;
    transition: stroke-dashoffset 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.skill-circle-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    z-index: 2;
}

/* Different gradient colors for different skills */
.skill-item:nth-child(1) .skill-progress {
    background: linear-gradient(90deg, #2563eb, #06b6d4);
}

.skill-item:nth-child(2) .skill-progress {
    background: linear-gradient(90deg, #059669, #10b981);
}

.skill-item:nth-child(3) .skill-progress {
    background: linear-gradient(90deg, #8b5cf6, #a855f7);
}

.skill-item:nth-child(4) .skill-progress {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .skill-visual {
        flex-direction: column;
        align-items: stretch;
    }
    
    .skill-bar-container {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .skill-circle {
        align-self: center;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    cursor: pointer;
    z-index: 1000;
    transition: background-color 0.3s;
}

.back-to-top:hover {
    background-color: #0056b3;
}

.back-to-top.show {
    display: block;
}

/* Education Section Styles */
.education-timeline {
    position: relative;
    padding: 20px 0;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    transform: translateX(-50%);
}

.education-item {
    position: relative;
    margin-bottom: 50px;
    width: 100%;
}

.education-item:nth-child(odd) .education-content {
    margin-left: 0;
    margin-right: 55%;
    text-align: right;
}

.education-item:nth-child(even) .education-content {
    margin-left: 55%;
    margin-right: 0;
    text-align: left;
}

.education-date {
    position: absolute;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.education-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.education-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.education-header h3 {
    color: var(--dark);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.education-header h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.education-header .location {
    color: var(--secondary);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.education-header .location i {
    margin-right: 5px;
}

.education-details .status {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.education-details h5 {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.course-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.course-tag {
    background: linear-gradient(135deg, #e0f2fe 0%, #f1f5f9 100%);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(37, 99, 235, 0.2);
    transition: all 0.3s ease;
}

.course-tag:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.education-details ul {
    list-style: none;
    padding: 0;
}

.education-details ul li {
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
    color: var(--dark);
}

.education-details ul li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 0.8rem;
}

/* Mobile Responsiveness for Education */
@media (max-width: 768px) {
    .education-timeline::before {
        left: 30px;
    }
    
    .education-item:nth-child(odd) .education-content,
    .education-item:nth-child(even) .education-content {
        margin-left: 60px;
        margin-right: 0;
        text-align: left;
    }
    
    .education-date {
        left: 30px;
        transform: translateX(-50%);
    }
    
    .education-content {
        padding: 20px;
    }
    
    .education-header h3 {
        font-size: 1.2rem;
    }
    
    .course-tags {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .education-content {
        margin-left: 50px;
        padding: 15px;
    }
    
    .education-date {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --accent: #06b6d4;
    --dark: #0f172a;
    --light: #f8fafc;
    --gradient: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    --gradient-alt: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-color: var(--primary); 
    --primary-rgb: 37, 99, 235; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
}

.section-padding {
    padding: 60px 0;
}

/* Reduce spacing between sections */
.mb-5 {
    margin-bottom: 2rem !important;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--gradient);
    margin: 0 auto 2rem;
    border-radius: 2px;
}

/* Enhanced Navigation */
#mainNav {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand .brand-text {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--gradient);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Enhanced Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234f46e5' fill-opacity='0.03'%3E%3Ccircle cx='7' cy='7' r='7'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1,
.hero-section h3,
.hero-section h5,
.hero-section p {
    color: white;
}

/* Ensure welcome text is visible */
.hero-section h5.text-primary {
    color: #60a5fa !important; /* Bright blue color */
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.text-gradient {
    background: linear-gradient(135deg, #60a5fa 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.typing-container {
    height: 60px;
    display: flex;
    align-items: center;
}

.typing-text {
    color: var(--accent);
    font-size: 1.8rem;
    font-weight: 600;
}

.cursor {
    animation: blink 1s infinite;
    color: var(--accent);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-buttons .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    margin: 0 10px 10px 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient);
    border: none;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}

.btn-outline-primary {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    background: transparent;
}

.btn-outline-primary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
    transform: translateY(-2px);
}

.social-links a {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    text-align: center;
    line-height: 50px;
    margin: 0 10px;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.social-links a:hover {
    background: var(--gradient);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.hero-image {
    position: relative;
}

.hero-image img {
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Enhanced About Section */
.about-image {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: visible;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    background: var(--gradient);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.1;
    transform: translate(-50%, -50%);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}



.info-list ul {
    list-style: none;
    padding: 0;
}

.info-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.info-list i {
    color: var(--primary);
    margin-right: 10px;
    width: 16px;
}

/* Enhanced Skills Section */
.skills-category {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    transition: all 0.3s ease;
}

.skills-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.skills-category h3 {
    color: var(--dark);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary);
    position: relative;
}

.skills-category h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
}

.skill-item {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: white;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.progress {
    height: 8px;
    border-radius: 10px;
    background: #e2e8f0;
    overflow: hidden;
}

.progress-bar {
    background: var(--gradient);
    border-radius: 10px;
    transition: width 1.5s ease-in-out;
    position: relative;
}

.progress-bar.bg-success {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.tech-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.tech-icon {
    text-align: center;
    transition: all 0.3s ease;
    padding: 10px;
}

.tech-icon:hover {
    transform: translateY(-10px);
}

.tech-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 10px;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.tech-icon:hover img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.tech-icon p {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Enhanced Timeline */
.timeline {
    position: relative;
    padding: 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    height: 100%;
    width: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 80px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 0;
    width: 24px;
    height: 24px;
    background: var(--gradient);
    border-radius: 50%;
    box-shadow: 0 0 0 4px white, 0 0 0 8px var(--primary);
}

.timeline-date {
    background: var(--gradient);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.timeline-content {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.timeline-content h3 {
    color: var(--primary);
    margin-bottom: 5px;
}

.timeline-content h4 {
    color: var(--secondary);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.timeline-content ul {
    list-style: none;
    padding: 0;
}

.timeline-content li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.timeline-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Enhanced Project Cards */
.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(37, 99, 235, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-link {
    width: 60px;
    height: 60px;
    background: white;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.project-card:hover .project-link {
    transform: scale(1);
}

.project-content {
    padding: 25px;
}

.project-content h4 {
    margin-bottom: 10px;
    color: var(--dark);
}

.project-content p {
    color: var(--secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Certifications Section */
.cert-card {
    background: white;
    border-radius: 15px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.cert-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.cert-card h4 {
    color: var(--dark);
    margin-bottom: 10px;
}

.cert-card .text-muted {
    color: var(--secondary) !important;
    font-weight: 500;
    margin-bottom: 15px;
}

/* Publications Section */
.publication-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary);
}

.publication-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.publication-title {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.publication-authors {
    color: var(--secondary);
    font-style: italic;
    margin-bottom: 8px;
}

.publication-journal {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 15px;
}

/* Enhanced Contact Section */
.contact-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
}

.contact-card h4 {
    margin-bottom: 15px;
    color: var(--dark);
}

.contact-card p {
    color: var(--secondary);
    margin: 0;
}

.contact-card a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-card a:hover {
    color: var(--primary-dark);
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.form-control {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Enhanced Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer .social-links {
    margin-bottom: 20px;
}

.footer .social-links a {
    background: rgba(255, 255, 255, 0.1);
    margin: 0 10px;
}

.footer .social-links a:hover {
    background: var(--gradient);
}

/* Loading animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading.active {
    opacity: 1;
    visibility: visible;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-padding {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .typing-text {
        font-size: 1.4rem;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-item::before {
        left: 8px;
    }
    
    .tech-icons {
        gap: 15px;
    }
    
    .tech-icon img {
        width: 35px;
        height: 35px;
    }
    
    .skills-category {
        padding: 25px;
        margin-bottom: 25px;
    }
    
    .hero-buttons .btn {
        margin: 5px;
        padding: 10px 25px;
    }
    
    .social-links a {
        width: 45px;
        height: 45px;
        line-height: 45px;
        margin: 0 8px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 80px 0 40px;
    }
    
    .navbar-brand .brand-text {
        font-size: 1.5rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .typing-text {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .skills-category {
        padding: 20px;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .project-image {
        height: 200px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Badge styles */
.badge {
    font-size: 0.75rem;
    padding: 4px 8px;
}

.badge.bg-primary {
    background: var(--primary) !important;
}

.badge.bg-success {
    background: #059669 !important;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary);
    color: white;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 9999;
    transition: top 0.3s;
}


.skip-link:focus {
    top: 6px;
}

@media (max-width: 768px) {
    .about-content h3 {
        font-size: 1.5rem !important;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin: 0;
    }
    
    .about-image {
        justify-content: center !important;
        margin-bottom: 2rem;
    }
    
    .skill-item {
        transform: translateX(-20px);
        opacity: 0;
        transition: all 0.6s ease;
    }
}

/* Add missing animation classes */
.skill-item.animate {
    transform: translateX(0);
    opacity: 1;
}

/* Enhanced notification styles */
.alert.position-fixed {
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Print optimization */
@media print {
    .navbar,
    .loading,
    .hero-buttons,
    .social-links,
    .back-to-top {
        display: none !important;
    }
    
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}

.back-to-top .fas {
    line-height: 40px;
}

.back-to-top.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   ENHANCED HOMEPAGE STYLES
   ============================================ */

/* Hero Profile Image */
.hero-profile-wrapper {
    position: relative;
    width: 340px;
    height: 340px;
}

.hero-profile-wrapper::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    background: linear-gradient(135deg, #2563eb, #06b6d4, #8b5cf6, #06b6d4);
    border-radius: 50%;
    animation: rotateGlow 4s linear infinite;
    z-index: 0;
}

.hero-profile-wrapper::after {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes rotateGlow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.hero-profile-img {
    width: 340px;
    height: 340px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    position: relative;
    z-index: 1;
    border: 5px solid rgba(15, 23, 42, 0.9);
    animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Hero Stats Row */
.hero-stats-row {
    position: relative;
    z-index: 2;
    padding: 20px 0 40px;
    justify-content: center;
    gap: 10px;
}

.hero-stat {
    text-align: center;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, background 0.3s ease;
}

.hero-stat:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.12);
}

.hero-stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero-stat-plus {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Hero Lead Text Readability */
.hero-lead {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 14px;
    position: relative;
}

.scroll-indicator span::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(14px); opacity: 0.3; }
}

/* Badge Highlights (Quick About Section) */
.badge-highlight {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: linear-gradient(135deg, #eff6ff, #f0fdfa);
    color: var(--primary);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(37, 99, 235, 0.15);
    transition: all 0.3s ease;
}

.badge-highlight:hover {
    background: var(--gradient);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
}

/* Quick About Image */
.quick-about-image img {
    max-width: 400px;
    border-radius: 20px;
    transition: transform 0.4s ease;
}

.quick-about-image img:hover {
    transform: scale(1.02);
}

/* Skill Teaser Cards */
.skill-teaser-card {
    background: white;
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.skill-teaser-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.skill-teaser-card:hover::before {
    transform: scaleX(1);
}

.skill-teaser-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.skill-teaser-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(6, 182, 212, 0.08));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--primary);
    transition: all 0.4s ease;
}

.skill-teaser-card:hover .skill-teaser-icon {
    background: var(--gradient);
    color: white;
    transform: scale(1.1) rotate(-5deg);
}

.skill-teaser-card h5 {
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
}

.skill-teaser-card p {
    color: var(--secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}

/* Outline Dark Button */
.btn-outline-dark {
    border-radius: 50px;
    padding: 10px 28px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments for hero profile */
@media (max-width: 1200px) {
    .hero-profile-wrapper {
        width: 280px;
        height: 280px;
    }
    .hero-profile-img {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 768px) {
    .hero-stats-row {
        padding: 10px 0 20px;
    }
    .hero-stat {
        padding: 10px 12px;
    }
    .hero-stat-number {
        font-size: 1.6rem;
    }
    .hero-stat-plus {
        font-size: 1.3rem;
    }
    .hero-stat-label {
        font-size: 0.7rem;
    }
    .scroll-indicator {
        bottom: 15px;
    }
    .quick-about-image img {
        max-width: 300px;
    }
}