/* Enhanced Home Page Styles */
.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Particle Background */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float var(--duration) linear infinite;
    animation-delay: var(--delay);
    opacity: 0;
}

.particle:nth-child(odd) {
    background: rgba(255, 255, 255, 0.5);
    width: 6px;
    height: 6px;
}

.particle:nth-child(even) {
    background: rgba(255, 255, 255, 0.2);
    width: 3px;
    height: 3px;
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

/* Floating Tech Icons */
.hero-image {
    position: relative;
    display: inline-block;
}

.floating-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    animation: float-icon 6s ease-in-out infinite;
    animation-delay: var(--delay);
    z-index: 1;
    pointer-events: none; /* Make icons non-interactive so buttons work */
}

.floating-icon:nth-child(2) { /* React */
    top: -20px;
    left: -20px;
    color: #61dafb;
}

.floating-icon:nth-child(3) { /* Microsoft */
    top: -20px;
    right: -20px;
    color: #00a4ef;
}

.floating-icon:nth-child(4) { /* JavaScript */
    bottom: -20px;
    left: -20px;
    color: #f7df1e;
}

.floating-icon:nth-child(5) { /* Angular */
    bottom: -20px;
    right: -20px;
    color: #dd0031;
}

.floating-icon:nth-child(6) { /* Git */
    top: 50%;
    left: -40px;
    transform: translateY(-50%);
    color: #f05032;
}

.floating-icon:nth-child(7) { /* Docker */
    bottom: 50%;
    right: -40px;
    transform: translateY(50%);
    color: #2496ed;
}

@keyframes float-icon {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.1);
    }
}

/* Hero Buttons - Ensure they're clickable */
.hero-section .btn {
    position: relative;
    z-index: 10;
}

/* Typing Animation */
.typing-text {
    position: relative;
    display: inline-block;
}

.typing-text::after {
    content: '|';
    position: absolute;
    right: -8px;
    animation: blink 1s infinite;
    color: var(--accent);
    font-weight: bold;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Dark mode support for home page */
[data-theme="dark"] .card-title {
    color: var(--text) !important;
}

[data-theme="dark"] .card-text {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .text-muted {
    color: var(--text-muted) !important;
}

[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5 {
    color: var(--text) !important;
}

[data-theme="dark"] .gradient-bg {
    background: #0f172a !important;
}

[data-theme="dark"] .profile-img {
    border-color: var(--surface) !important;
    background: var(--surface) !important;
}

[data-theme="dark"] .divider {
    border-top-color: var(--border) !important;
}

[data-theme="dark"] .floating-icon {
    background: rgba(30, 41, 59, 0.9);
    color: var(--accent);
}

.icon-wrapper {
    display: inline-block;
    padding: 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
    color: white;
    transition: var(--transition);
}

.card:hover .icon-wrapper {
    transform: scale(1.1);
}

.feature-item {
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateX(10px);
}

.feature-icon {
    color: var(--success);
    margin-top: 0.25rem;
}

.stats-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.stat-number {
    position: relative;
    z-index: 2;
}

.stat-label {
    position: relative;
    z-index: 2;
    font-size: 0.9rem;
    font-weight: 500;
}
.gradient-bg {
    background: #1e3a8a;
}
.min-vh-70 {
    min-height: 70vh;
}
.profile-img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid #fff;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    background: #e9ecef;
    transition: box-shadow 0.3s;
}
.profile-img:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.card-hover {
    transition: transform 0.18s, box-shadow 0.18s;
}
.card-hover:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 32px rgba(0,0,0,0.14);
    z-index: 2;
}
.divider {
    border-top: 2px solid #e0eafc;
    width: 60%;
    margin-left: auto;
    margin-right: auto;
}
.footer-section {
    background: #f1f3f7;
    border-top: 1px solid #e0eafc;
}
/* Animations */
.animate-fadein {
    opacity: 0;
    animation: fadeInUp 0.7s forwards;
}
.animate-delay-1 { animation-delay: 0.2s; }
.animate-delay-2 { animation-delay: 0.4s; }
.animate-delay-3 { animation-delay: 0.6s; }
.animate-delay-4 { animation-delay: 0.8s; }
.animate-delay-5 { animation-delay: 1.0s; }
.animate-delay-6 { animation-delay: 1.2s; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 991px) {
    .profile-img { width: 150px; height: 150px; }
    .hero-section { padding-top: 3rem; padding-bottom: 3rem; }
    
    /* Adjust floating icons for smaller screens */
    .floating-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .floating-icon:nth-child(2) { /* React */
        top: -15px;
        left: -15px;
    }
    
    .floating-icon:nth-child(3) { /* Microsoft */
        top: -15px;
        right: -15px;
    }
    
    .floating-icon:nth-child(4) { /* JavaScript */
        bottom: -15px;
        left: -15px;
    }
    
    .floating-icon:nth-child(5) { /* Angular */
        bottom: -15px;
        right: -15px;
    }
    
    .floating-icon:nth-child(6) { /* Git */
        left: -30px;
    }
    
    .floating-icon:nth-child(7) { /* Docker */
        right: -30px;
    }
}
@media (max-width: 767px) {
    .display-3 { font-size: 2.2rem; }
    .hero-section { min-height: 50vh; }
    .divider { width: 90%; }
    
    /* Hide some floating icons on very small screens */
    .floating-icon:nth-child(6),
    .floating-icon:nth-child(7) {
        display: none;
    }
    
    .floating-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .floating-icon:nth-child(2) { /* React */
        top: -10px;
        left: -10px;
    }
    
    .floating-icon:nth-child(3) { /* Microsoft */
        top: -10px;
        right: -10px;
    }
    
    .floating-icon:nth-child(4) { /* JavaScript */
        bottom: -10px;
        left: -10px;
    }
    
    .floating-icon:nth-child(5) { /* Angular */
        bottom: -10px;
        right: -10px;
    }
}

/* --- Skill Icons, Tooltips, and Download CV Button --- */
.skill-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
}
.skill-item .skill-icon {
    font-size: 1.5rem;
    margin-right: 0.75rem;
    color: var(--primary);
    min-width: 2em;
    text-align: center;
}
.skill-item .skill-label {
    flex: 1;
    font-weight: 500;
}
.skill-item .skill-tooltip {
    visibility: hidden;
    background: var(--primary-dark);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 0.5em 1em;
    position: absolute;
    z-index: 1;
    left: 110%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 0.95em;
    min-width: 180px;
}
.skill-item:hover .skill-tooltip {
    visibility: visible;
    opacity: 1;
}
.download-cv-btn {
    display: inline-block;
    margin: 1.5rem auto 0 auto;
    padding: 0.75em 2.5em;
    font-size: 1.15em;
    border-radius: 30px;
    background: var(--primary);
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(79, 140, 255, 0.08);
    transition: background 0.2s, box-shadow 0.2s;
    text-decoration: none;
}
.download-cv-btn:hover {
    background: var(--primary-dark);
    color: #fff;
    box-shadow: 0 4px 16px rgba(79, 140, 255, 0.16);
}

[data-theme="dark"] .stats-card {
    background: linear-gradient(135deg, #232946 0%, #1a2233 100%) !important;
    color: var(--text) !important;
}

[data-theme="dark"] .glass-effect {
    background: rgba(30, 41, 59, 0.7) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
}

.btn-linkedin {
    background: #0077b5;
    color: #fff !important;
    border: none;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(0,119,181,0.15);
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    font-size: 1.15rem;
}
.btn-linkedin:hover, .btn-linkedin:focus {
    background: #005983;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(0,119,181,0.25);
    transform: translateY(-2px) scale(1.03);
    text-decoration: none;
}
.btn-linkedin i {
    font-size: 1.3em;
    margin-right: 0.5em;
}
