/* ==========================================================================
   Harshitha Rajashekara Portfolio Stylesheet
   Theme: Palette A (Amethyst & Emerald)
   Design Template: Template B (Creative Transformation Catalyst)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;800;900&display=swap');

:root {
    /* Font Families */
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Light Theme Color Tokens */
    --bg-primary: #F8F6FC;       /* Soft Lavender-tinted white */
    --bg-secondary: #FFFFFF;     /* Pure white for cards */
    --bg-tertiary: #F1EDFA;      /* Subtle gray-purple border/background */
    
    --text-primary: #1F1138;     /* Rich deep violet-black */
    --text-secondary: #574B6D;   /* Muted amethyst-gray */
    --text-muted: #8E82A5;       /* Light purple-gray */

    --color-primary: #6D28D9;    /* Amethyst Purple (main brand) */
    --color-primary-rgb: 109, 40, 217;
    --color-primary-light: #C084FC; /* Light purple */
    
    --color-accent: #059669;     /* Emerald Green (transformation/growth) */
    --color-accent-rgb: 5, 150, 105;
    --color-accent-light: #34D399; /* Bright mint/emerald */
    
    --color-warning: #D97706;     /* Amber/Gold */
    --border-subtle: rgba(109, 40, 217, 0.08);
    --shadow-premium: 0 10px 30px -10px rgba(109, 40, 217, 0.1);
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(109, 40, 217, 0.08);
}


/* ==========================================================================
   Base Elements
   ========================================================================== */

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(109, 40, 217, 0.2);
    border-radius: 9999px;
}

.dark ::-webkit-scrollbar-thumb {
    background: rgba(167, 139, 250, 0.2);
}

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

/* ==========================================================================
   Animations & Transitions
   ========================================================================== */

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes morph {
    0%, 100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }
    34% {
        border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%;
    }
    67% {
        border-radius: 50% 50% 30% 70% / 60% 40% 60% 40%;
    }
}

@keyframes drawLine {
    0% { height: 0; }
    100% { height: 100%; }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-morph {
    animation: morph 12s ease-in-out infinite;
}

.transition-premium {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Custom Components (Template B Specific)
   ========================================================================== */

/* Asymmetric Organic Accents */
.organic-blob {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transition: all 0.5s ease-in-out;
}

.organic-blob:hover {
    border-radius: 40% 60% 70% 30% / 50% 70% 30% 50%;
}

/* Premium Glassmorphism Panels */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

/* Card Hover Effects */
.hover-card {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
                box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
                border-color 0.4s ease;
}

.hover-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: var(--shadow-premium);
    border-color: rgba(var(--color-primary-rgb), 0.3);
}

/* Clickable Timeline Steps */
.timeline-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-primary), var(--color-accent));
}

.timeline-dot {
    box-shadow: 0 0 0 4px var(--bg-primary), 0 0 15px rgba(var(--color-primary-rgb), 0.4);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    background-color: var(--color-accent);
    box-shadow: 0 0 0 6px var(--bg-primary), 0 0 20px rgba(var(--color-accent-rgb), 0.6);
}

/* Custom Checkbox or Pill selections */
.badge-pill {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid var(--border-subtle);
}

.badge-pill.active {
    background-color: var(--color-primary);
    color: #FFFFFF;
    border-color: var(--color-primary);
}

/* Dynamic Filter Grids */
.grid-item {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.grid-item.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    border: none;
}

/* Section Header Typography Accent */
.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 4px;
    background: linear-gradient(to right, var(--color-primary), var(--color-accent));
    border-radius: 9999px;
    transition: width 0.3s ease;
}

section:hover .section-title::after {
    width: 80px;
}
