/* static/css/style.css */

:root {
    --gradient-start: #3b82f6;
    --gradient-end: #60a5fa;
}

/* Text Gradients */
.gradient-text {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card Hover Effects */
.hover-card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    background: white;
}

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

/* Social Links Animation */
.social-links a {
    transition: all 0.2s ease;
    display: inline-block;
}

.social-links a:hover {
    transform: scale(1.1);
    color: var(--gradient-start);
}

/* Tag Animations */
.tech-tag {
    animation: fadeIn 0.5s ease-in-out;
    transition: all 0.2s ease;
}

.tech-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

/* Profile Section Styling */
.profile-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Project Card Styling */
.project-card {
    position: relative;
    overflow: hidden;
}

.project-card img.object-cover {
    transition: transform 0.5s ease;
    width: 100%;
    height: 12rem;
}

.project-card:hover img.object-cover {
    transform: scale(1.05);
}

.project-card .logo-image {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: white;
    padding: 0.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-card:hover .logo-image {
    transform: scale(1.1);
}

/* Project Links Styling */
.project-links a {
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.project-links a:hover::after {
    transform: scaleX(1);
}

/* Skills Section Styling */
.skills-grid {
    display: grid;
    gap: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .project-card img.object-cover {
        height: 10rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation for Section Headers */
.section-header {
    position: relative;
    display: inline-block;
}

.section-header::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    bottom: -8px;
    left: 20%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 2px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--gradient-end), var(--gradient-start));
}

/* Image Gallery */
.image-gallery {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem 0.5rem 0 0;
}

.image-gallery img {
    width: 100%;
    height: auto;
    transition: all 0.3s ease;
}

/* Loading Animation */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Fix for project images */
.project-card .relative img.w-full {
    height: 12rem;
    object-fit: cover;
}

.project-card .relative img.absolute {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    background: white;
}

/* Navbar adjustments */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: translateX(0);
}

/* Add these styles to your existing style.css */

/* Section Tabs */
.section-tab {
    position: relative;
    color: #4B5563;
    border-bottom: 2px solid #E5E7EB;
    transition: all 0.3s ease;
}

.section-tab.active {
    color: var(--gradient-start);
    border-bottom-color: var(--gradient-start);
}

.section-tab:hover {
    color: var(--gradient-start);
}

/* Achievement Items */
.achievement-item {
    padding: 0.5rem;  /* Reduced padding */
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;  /* Slightly smaller font */
}

.achievement-item h3 {
    font-size: 0.95rem;  /* Smaller heading */
    line-height: 1.4;
}

.achievement-item p {
    font-size: 0.85rem;  /* Smaller description */
    margin-top: 0.125rem;
}

.achievement-item .flex-shrink-0 {
    font-size: 0.8rem;  /* Smaller date */
    width: 4rem;  /* Reduced width */
}

.profile-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 3px solid var(--gradient-start);
    animation: pulse 2s infinite;
}

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

/* School Logo */
.school-logo {
    transition: transform 0.3s ease;
}

.school-logo:hover {
    transform: scale(1.1);
}

/* Contact Section Styles */
.contact-item {
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
    border-color: var(--gradient-start);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Smooth scroll behavior for contact link */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Accounts for fixed navbar */
}

/* Add this to ensure contact links are properly styled */
.contact-item a {
    display: inline-block;
    position: relative;
}

.contact-item a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.contact-item a:hover::after {
    transform: scaleX(1);
}