/* Base styles */
@tailwind base;
@tailwind components;
@tailwind utilities;

html, body {
    font-family: 'Inter', sans-serif;
    color: #4a336f; /* Dark purple text */
    background-color: #f9fafb; /* Light background for the page body */
}

body {
    font-family: 'Inter', sans-serif;
}
.gradient-text {
    background: linear-gradient(90deg, #4F46E5, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h1, h2, h3 {
    font-family: 'Oswald', sans-serif;
}

.section {
    padding: 6rem 1rem;
    max-width: 1280px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section.show-on-scroll {
    opacity: 1;
    transform: translateY(0);
}

/* Subtle background gradient for light sections */
.subtle-gradient-bg {
    background-image: radial-gradient(at 0% 0%, rgba(255, 240, 245, 0.5), transparent 70%),
                      radial-gradient(at 100% 100%, rgba(220, 230, 255, 0.5), transparent 70%);
}

.cta-button {
    background-color: #ff69b4; /* Vibrant pink accent */
    color: #ffffff;
    transition: transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
}

.cta-button:hover {
    transform: translateY(-2px);
    background-color: #ff85c1;
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.6);
}

/* Custom Header Icon Styles */
.header-nav-link {
    display: flex;
    align-items: center;
    color: #d1d5db; /* Default text color */
    transition: color 0.3s ease;
}

.header-nav-link svg {
    stroke: #d1d5db; /* Default stroke color */
    fill: none; /* Default no fill */
    transition: stroke 0.3s ease, fill 0.3s ease, filter 0.3s ease;
}

.header-nav-link:hover {
    color: #ff69b4; /* Text color on hover */
}

.header-nav-link:hover svg {
    stroke: #ff69b4; /* Stroke color on hover */
    fill: #ff69b4; /* Fill color on hover */
    filter: drop-shadow(0 0 5px rgba(255, 105, 180, 0.6)); /* Subtle glow */
}

/* Headings Gradient */
.gradient-heading {
    background-image: linear-gradient(to right, #ff69b4, #8a2be2); /* Pink to Blue-Violet */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Mobile Menu styles */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: #111827;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 60;
}

.mobile-menu.mobile-menu-open {
    transform: translateX(0);
}

.menu-close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: #d1d5db;
}

.menu-link {
    color: #9ca3af;
    transition: color 0.3s ease;
}

.menu-link:hover {
    color: #ffffff;
}

/* Micro-interactions for text links */
.content-link {
    color: #ff69b4; /* Accent color for links */
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.content-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: #ff69b4;
    transition: width 0.3s ease;
}

.content-link:hover::after {
    width: 100%;
    left: 0;
    background: #ff85c1;
}

/* Staggered animation for content elements */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.section.show-on-scroll .stagger-item {
    opacity: 1;
    transform: translateY(0);
}
.stagger-delay-1 { transition-delay: 0.1s; }
.stagger-delay-2 { transition-delay: 0.2s; }
.stagger-delay-3 { transition-delay: 0.3s; }
.stagger-delay-4 { transition-delay: 0.4s; }
.stagger-delay-5 { transition-delay: 0.5s; }
.stagger-delay-6 { transition-delay: 0.6s; }

/* Contact Form Styles */
.contact-form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background-color: #f3f4f6;
    color: #374151;
}
.contact-form-input:focus {
    outline: none;
    border-color: #ff69b4;
    box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.2);
}

/* Project Card Styles */
.project-card {
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.project-card img {
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}
.project-card h3 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #4a336f;
}
.project-card p {
    font-size: 0.95rem;
    color: #6b7280;
}
.project-card .project-link {
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
    color: #ff69b4;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}
.project-card .project-link:hover {
    color: #ff85c1;
}
.project-card .project-link svg {
    margin-left: 0.5rem;
    width: 1rem;
    height: 1rem;
}

/* Vertical Timeline Styles */
.vertical-timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.vertical-timeline-container::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #ff69b4; /* Base color for line */
    background-image: linear-gradient(to bottom, #ff69b4, #8a2be2); /* Subtle gradient for line */
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    z-index: 1;
}

.timeline-card-wrapper {
    position: relative;
    margin-bottom: 3rem;
    z-index: 2;
}

.timeline-card-wrapper .timeline-dot {
    position: absolute;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background-color: #ff69b4;
    border: 4px solid #f9fafb; /* Matches page background */
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: 0 0 0 rgba(255, 105, 180, 0); /* Initial no shadow */
    transition: all 0.3s ease;
}

.timeline-card-wrapper:hover .timeline-dot {
    background-color: #ff85c1; /* Lighter pink on hover */
    transform: translateX(-50%) scale(1.2); /* Slight scale up */
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.8); /* Glow effect */
}

.timeline-card {
    background-color: rgba(255, 255, 255, 0.8); /* Translucent background */
    backdrop-filter: blur(8px); /* Frosted glass effect */
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); /* Softer shadow */
    border-radius: 1.5rem;
    padding: 2rem;
    position: relative;
    width: 45%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.6); /* Subtle border */
}

.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.timeline-card-left {
    left: 0;
}

.timeline-card-right {
    left: 55%;
}

/* Spacing for image and text in timeline cards */
.timeline-card img {
    margin-bottom: 1rem; /* Added space below image */
}

/* Styling for year tag */
.timeline-year-tag {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #8a2be2; /* Blue-violet for the year */
    margin-bottom: 0.5rem;
}

/* Collapsible content styles */
.timeline-content-collapsible {
    max-height: 100px; /* Initial height for truncated content */
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    position: relative;
}

.timeline-content-collapsible.expanded {
    max-height: 1000px; /* Large enough to show all content */
}

.read-more-btn {
    background: none;
    border: none;
    color: #ff69b4;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    margin-top: 1rem;
    display: block;
    text-align: center;
    transition: color 0.2s ease;
}

.read-more-btn:hover {
    color: #ff85c1;
}

@media screen and (max-width: 768px) {
    .vertical-timeline-container::after {
        left: 1.5rem;
    }
    .timeline-card-wrapper {
        margin-left: 3rem;
    }
    .timeline-card {
        width: 100%;
    }
    .timeline-card-wrapper .timeline-dot {
        left: 1.5rem;
        transform: translateX(-50%);
    }
    .timeline-card-right {
        left: 0;
    }
}

/* Gradient and background effects */
.glassmorphism-bg {
    background-image: radial-gradient(at 0% 0%, #ffcfd6, transparent 70%),
                        radial-gradient(at 100% 100%, #d1c4e9, transparent 70%);
    background-color: #fdf2f8; /* Soft off-white background */
    min-height: 100vh;
}

/* The core glassmorphism effect */
.glass-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 2rem; /* Softer, more rounded corners */
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05); /* Softer shadow */
}


/* Portfolio item effects */
.portfolio-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
