/* Custom Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-light: #ecf0f1;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    position: relative;
    overflow: hidden;
}

header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><rect width="20" height="20" fill="none"/><path d="M0 0l20 20M20 0L0 20" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></svg>');
    opacity: 0.1;
}

.display-4 {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* Card and Image Styles */
.card {
    border: none;
    transition: var(--transition);
    border-radius: 15px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.carousel-item img {
    transition: var(--transition);
    border: 4px solid var(--secondary-color);
}

.carousel-item img:hover {
    transform: scale(1.05);
}

/* Links and Buttons */
a {
    color: var(--secondary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.btn {
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 600;
    transition: var(--transition);
}

/* Profile Section */
.profile-info {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
}

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

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .carousel-item img {
        height: 200px;
        width: 200px;
    }
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    position: relative;
}

footer p {
    font-weight: 500;
    letter-spacing: 1px;
}

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

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

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

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

/* Social Media Icons */
.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    color: white;
    text-decoration: none;
}

.social-icon.whatsapp {
    background-color: #25D366;
}

.social-icon.facebook {
    background-color: #1877F2;
}

.social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon.linkedin {
    background-color: #0077B5;
}

.social-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: white;
}

/* Social Media Dropdown */
.dropdown-item i {
    width: 20px;
    text-align: center;
    margin-right: 8px;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Footer Social Icons */
footer .text-white {
    transition: var(--transition);
    font-size: 1.2rem;
}

footer .text-white:hover {
    transform: translateY(-3px);
    color: var(--secondary-color) !important;
}

/* Skills Section */
.skill-category {
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    height: 100%;
}

.skill-item .progress {
    height: 8px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.skill-item .progress-bar {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

/* Special styling for Python and VB.NET */
.skill-item:nth-child(1) .progress-bar {
    background: linear-gradient(90deg, #3776AB, #FFE873); /* Python colors */
}

.skill-item:nth-child(2) .progress-bar {
    background: linear-gradient(90deg, #68217A, #9B4F96); /* VB.NET colors */
}

/* Projects Section */
.project-card {
    transition: var(--transition);
}

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

.project-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links a {
    transform: translateY(20px);
    transition: var(--transition);
}

.project-card:hover .project-links a {
    transform: translateY(0);
}

.project-info {
    padding: 15px;
}

.project-tags .badge {
    margin-right: 5px;
    padding: 5px 10px;
    font-weight: 500;
}

/* Animation for skill bars */
@keyframes fillBar {
    from { width: 0; }
    to { width: var(--width); }
}

.skill-item .progress-bar {
    animation: fillBar 1.5s ease-out forwards;
}

/* Gallery Styles */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1rem;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.gallery-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.4));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    text-align: center;
    color: white;
    padding: 1.5rem;
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-caption h5 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.gallery-caption p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.gallery-caption i {
    font-size: 2rem;
    margin-top: 1rem;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-caption i {
    opacity: 1;
    transform: scale(1);
}

/* Fancybox Custom Styles */
.fancybox__container {
    --fg1: #fff;
    --fg2: #d1d5db;
    --bg1: #1f2937;
    --bg2: #111827;
}

.fancybox__toolbar {
    --fg1: #fff;
    --bg1: #1f2937;
}

.fancybox__nav {
    --fg1: #fff;
    --bg1: #1f2937;
}
