/* =============================================
   RESPONSIVE CSS - BEST PRACTICES
   Mobile-First Approach
   ============================================= */

/* 1. CSS RESET & BASE STYLES
   ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 2. CSS CUSTOM PROPERTIES (Variables)
   Define your color scheme and spacing system
   ============================================= */
:root {
    /* Soft Pink, Teal & White Color Palette (HSL Format) */
    --primary-pink: hsl(340, 50%, 75%); /* Soft pink */
    --secondary-pink: hsl(345, 45%, 82%); /* Lighter soft pink */
    --tertiary-pink: hsl(350, 40%, 88%); /* Very light pink */
    --accent-pink-light: hsl(340, 35%, 90%); /* Ultra light pink */
    --accent-pink-dark: hsl(335, 55%, 70%); /* Deeper soft pink */
    
    --primary-teal: hsl(175, 45%, 65%); /* Soft teal */
    --secondary-teal: hsl(180, 40%, 70%); /* Light teal */
    --accent-teal-light: hsl(185, 35%, 75%); /* Very light teal */
    
    --text-dark: hsl(0, 0%, 10%); /* Near black */
    --text-light: hsl(0, 0%, 20%); /* Dark gray */
    --text-teal: hsl(175, 50%, 40%); /* Teal for text highlights */
    --background-white: hsl(0, 0%, 100%); /* Pure white */
    --background-light: hsl(0, 0%, 98%); /* Off white */
    --border-glow: hsla(340, 50%, 75%, 0.6); /* Soft pink border */
    
    /* Glassmorphism Variables - Soft Pink, Teal & White Theme */
    --glass-bg: hsla(0, 0%, 100%, 0.25); /* White glass */
    --glass-border: hsla(340, 50%, 75%, 0.3); /* Soft pink glass border */
    --glass-shadow: hsla(0, 0%, 0%, 0.1);
    --glass-highlight: hsla(0, 0%, 100%, 0.5);
    
    /* Typography Scale */
    --font-size-base: 16px;
    --font-size-small: 0.875rem;
    --font-size-h1: 2rem;
    --font-size-h2: 1.5rem;
    
    /* Spacing Scale */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    
    /* Layout */
    --max-width: 1200px;
    --border-radius: 16px;
    --transition-speed: 0.3s;
    
    /* Glassmorphism Effects */
    --blur-amount: 12px;
    --saturation: 180%;
}

/* 3. TYPOGRAPHY & BODY STYLES
   ============================================= */
html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    position: relative;
    background: linear-gradient(135deg, 
        var(--accent-pink-dark) 0%, 
        var(--primary-pink) 30%, 
        var(--secondary-pink) 60%,
        var(--accent-teal-light) 100%);
    min-height: 100vh;
}

/* 4. HEADING STYLES
   ============================================= */
h1, h2 {
    color: var(--text-teal);
    text-shadow: 
        0 2px 4px hsla(175, 45%, 65%, 0.4),
        0 0 20px hsla(0, 0%, 100%, 0.5);
    font-weight: 600;
    letter-spacing: 0.5px;
}

h1 {
    font-size: var(--font-size-h1);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

h2 {
    font-size: var(--font-size-h2);
    margin-bottom: var(--spacing-md);
}

p {
    color: var(--text-dark);
    line-height: 1.8;
    font-weight: 400;
}

/* 5. MAIN LAYOUT CONTAINER - GLASSMORPHISM
   ============================================= */
main {
    max-width: var(--max-width);
    margin: var(--spacing-xl) auto;
    padding: var(--spacing-lg);
    
    /* Glassmorphism Effect */
    background: linear-gradient(
        135deg,
        hsla(340, 50%, 75%, 0.12) 0%,
        hsla(345, 45%, 82%, 0.08) 35%,
        hsla(185, 35%, 75%, 0.06) 65%,
        hsla(0, 0%, 100%, 0.95) 100%
    );
    
    /* Frosted Glass Effect */
    -webkit-backdrop-filter: blur(var(--blur-amount)) saturate(var(--saturation));
    backdrop-filter: blur(var(--blur-amount)) saturate(var(--saturation));
    
    /* Glass Border & Shadow */
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: 
        0 8px 32px hsla(0, 0%, 0%, 0.1),
        0 2px 8px hsla(0, 0%, 0%, 0.05),
        inset 0 1px 1px var(--glass-highlight),
        0 0 30px hsla(175, 45%, 65%, 0.2);
    
    position: relative;
    z-index: 1;
    min-height: 100vh;
    
    /* Subtle animation */
    transition: all var(--transition-speed) ease;
}

main::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius);
    padding: 1px;
    background: linear-gradient(
        135deg,
        var(--primary-pink),
        var(--primary-teal),
        var(--secondary-teal)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0.5;
    pointer-events: none;
}

/* 6. IMAGE STYLES
   ============================================= */
img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
}

.mausiMainPagePic {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin: var(--spacing-xl) auto;
    border: 3px solid var(--primary-teal);
    
    /* Glassmorphism Frame - Soft Pink & Teal Colors */
    box-shadow: 
        0 0 0 8px hsla(340, 50%, 75%, 0.3),
        0 0 0 12px hsla(175, 45%, 65%, 0.5),
        0 0 0 14px hsla(180, 40%, 70%, 0.4),
        0 8px 32px hsla(0, 0%, 0%, 0.2),
        0 0 40px hsla(175, 45%, 65%, 0.3);
    
    transition: all var(--transition-speed) ease;
    position: relative;
    filter: brightness(1.05) contrast(1.05);
}

.mausiMainPagePic::after {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border: 2px dotted var(--primary-teal);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.mausiMainPagePic:hover {
    transform: scale(1.05) translateZ(10px);
    box-shadow: 
        0 0 0 8px hsla(340, 50%, 75%, 0.5),
        0 0 0 12px hsla(175, 45%, 65%, 0.7),
        0 0 0 14px hsla(180, 40%, 70%, 0.6),
        0 12px 48px hsla(0, 0%, 0%, 0.3),
        0 0 60px hsla(175, 45%, 65%, 0.5);
}

.mausiMainPagePic:hover::after {
    opacity: 0.5;
    transform: rotate(45deg);
}

/* 7. SECTION STYLES - GLASSMORPHISM
   ============================================= */
section {
    margin-bottom: var(--spacing-xxl);
    padding: var(--spacing-lg);
    
    /* Glassmorphism Background */
    background: linear-gradient(
        135deg,
        hsla(340, 50%, 75%, 0.08) 0%,
        hsla(175, 45%, 65%, 0.06) 40%,
        hsla(180, 40%, 70%, 0.05) 70%,
        hsla(0, 0%, 100%, 0.92) 100%
    );
    
    /* Frosted Glass Effect */
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    backdrop-filter: blur(10px) saturate(150%);
    
    /* Glass Border & Shadows */
    border: 1px solid hsla(175, 45%, 65%, 0.4);
    border-radius: var(--border-radius);
    box-shadow: 
        0 8px 32px hsla(0, 0%, 0%, 0.08),
        0 2px 8px hsla(0, 0%, 0%, 0.04),
        inset 0 1px 1px hsla(0, 0%, 100%, 0.6),
        0 0 20px hsla(175, 45%, 65%, 0.15);
    
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    
    /* 3D Transform */
    transform: translateZ(0);
    will-change: transform, box-shadow;
}

section:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px hsla(0, 0%, 0%, 0.12),
        0 4px 12px hsla(0, 0%, 0%, 0.06),
        inset 0 1px 2px hsla(0, 0%, 100%, 0.8),
        0 0 30px hsla(175, 45%, 65%, 0.25),
        0 0 40px hsla(180, 40%, 70%, 0.2);
}

section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        hsla(175, 45%, 65%, 0.08),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.5s;
    opacity: 0;
}

section:hover::before {
    opacity: 1;
    animation: shimmer 0.8s ease;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.about p {
    text-align: justify;
    line-height: 1.8;
    color: var(--text-light);
}

/* 8. LIST STYLES
   ============================================= */
ul {
    list-style-position: inside;
    margin-left: var(--spacing-md);
}

ul li {
    margin-bottom: var(--spacing-sm);
    padding-left: var(--spacing-sm);
}

.skills ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
    list-style: none;
    margin-left: 0;
}

.skills ul li {
    /* Glassmorphism Card - Pink & Teal Gradient */
    background: linear-gradient(
        135deg,
        hsla(340, 50%, 75%, 0.2) 0%,
        hsla(175, 45%, 65%, 0.18) 100%
    );
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: calc(var(--border-radius) / 2);
    border-left: 4px solid var(--primary-teal);
    
    /* Glass Effect */
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 
        0 4px 16px hsla(0, 0%, 0%, 0.08),
        inset 0 1px 1px hsla(0, 0%, 100%, 0.5);
    
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
    color: var(--text-dark);
    font-weight: 600;
}

.skills ul li::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        hsla(180, 40%, 70%, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.skills ul li:hover::before {
    left: 100%;
}

.skills ul li:hover {
    background: var(--secondary-teal);
    color: var(--text-dark);
    border-left-color: var(--primary-pink);
    transform: translateX(8px);
    box-shadow: 
        -8px 8px 24px hsla(175, 45%, 65%, 0.3),
        0 0 20px hsla(180, 40%, 70%, 0.4),
        inset 0 1px 2px hsla(0, 0%, 100%, 0.6);
}

/* 8. COLLAPSIBLE RECIPES SECTION
   ============================================= */
.recipes {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.recipesCollapse {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.recipes:hover .recipesCollapse {
    max-height: 300px;
    opacity: 1;
    transform: translateY(0);
}

.recipes h2::after {
    content: ' ▼';
    font-size: 0.7em;
    color: var(--primary-teal);
    transition: transform 0.3s ease;
    display: inline-block;
    margin-left: 8px;
}

.recipes:hover h2::after {
    transform: rotate(180deg);
}

/* Add subtle glow on hover */
.recipes:hover {
    background: linear-gradient(
        135deg,
        hsla(340, 50%, 75%, 0.1) 0%,
        hsla(175, 45%, 65%, 0.08) 40%,
        hsla(180, 40%, 70%, 0.06) 70%,
        hsla(0, 0%, 100%, 0.94) 100%
    );
    box-shadow: 
        0 8px 32px hsla(175, 45%, 65%, 0.2),
        0 0 25px hsla(180, 40%, 70%, 0.3),
        inset 0 1px 2px hsla(0, 0%, 100%, 0.7);
}

/* 9. LINK STYLES
   ============================================= */
a {
    color: var(--primary-teal);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    display: inline-block;
    margin-top: var(--spacing-lg);
    text-shadow: 0 0 10px hsla(175, 45%, 65%, 0.3);
}

a:hover {
    color: var(--primary-pink);
    text-decoration: underline;
    text-shadow: 0 0 15px hsla(340, 50%, 75%, 0.6);
    transform: translateY(-2px);
}

a:focus {
    outline: 2px solid var(--primary-teal);
    outline-offset: 3px;
    border-radius: 4px;
}

/* 10. GALLERY PAGE STYLES
   For JagiyaMausiImages.html
   ============================================= */
section img {
    margin-bottom: var(--spacing-lg);
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 11. FOOTER/LET'S CONNECT SECTION - GLASSMORPHISM
   ============================================= */
.letsConnect {
    background: linear-gradient(
        135deg,
        hsla(340, 50%, 75%, 0.1) 0%,
        hsla(175, 45%, 65%, 0.08) 50%,
        hsla(0, 0%, 100%, 0.94) 100%
    );
    padding: var(--spacing-xl) var(--spacing-lg);
    border-radius: var(--border-radius);
    border-top: 3px solid var(--primary-teal);
    
    /* Glass Effect */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 -4px 16px hsla(0, 0%, 0%, 0.08),
        inset 0 1px 1px hsla(0, 0%, 100%, 0.5);
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
}

footer h3 {
    color: var(--text-teal);
    font-size: 1.3rem;
    margin: 0;
    position: relative;
    text-shadow: 
        0 0 20px hsla(175, 45%, 65%, 0.5),
        0 2px 4px hsla(0, 0%, 100%, 0.8);
    font-weight: 700;
}

footer h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--primary-pink),
        var(--primary-teal),
        var(--secondary-teal)
    );
    border-radius: 2px;
    box-shadow: 0 2px 8px hsla(175, 45%, 65%, 0.4);
}

/* Social Links Container */
footer .social-links {
    display: flex;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-md);
}

.connectLink {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    
    /* Glassmorphism Button - Teal & Pink */
    background: linear-gradient(
        135deg,
        hsla(175, 45%, 65%, 0.85),
        hsla(340, 50%, 75%, 0.8)
    );
    border: 2px solid var(--primary-teal);
    border-radius: 30px;
    color: var(--text-dark);
    font-weight: 700;
    
    /* Glass Effect */
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 
        0 4px 16px hsla(175, 45%, 65%, 0.3),
        0 0 20px hsla(180, 40%, 70%, 0.2),
        inset 0 1px 1px hsla(0, 0%, 100%, 0.5);
    
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.connectLink::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--accent-pink-light);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.connectLink:hover {
    color: var(--text-dark);
    transform: translateY(-3px);
    box-shadow: 
        0 8px 24px hsla(175, 45%, 65%, 0.4),
        0 0 30px hsla(340, 50%, 75%, 0.4),
        inset 0 1px 2px hsla(0, 0%, 100%, 0.8);
    border-color: hsla(340, 50%, 75%, 0.8);
}

.connectLink:hover::before {
    width: 300px;
    height: 300px;
}

.connectLink span {
    position: relative;
    z-index: 1;
}

/* Add GitHub and LinkedIn icons using CSS */
.connectLink[href*="github"]::after {
    content: '⬢';
    font-size: 1.2em;
    margin-left: 5px;
}

.connectLink[href*="linkedin"]::after {
    content: '▪';
    font-size: 1.2em;
    margin-left: 5px;
}

/* 12. RECIPE PAGE SPECIFIC STYLES
   ============================================= */
#recipe {
    background: linear-gradient(
        135deg,
        hsla(175, 45%, 65%, 0.08) 0%,
        hsla(0, 0%, 100%, 0.95) 100%
    );
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    
    /* Glass Effect */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

#recipe h4 {
    color: var(--text-teal);
    border-bottom: 3px solid var(--primary-teal);
    padding-bottom: var(--spacing-sm);
    margin-top: var(--spacing-lg);
    text-shadow: 
        0 0 15px hsla(175, 45%, 65%, 0.3),
        0 2px 4px hsla(0, 0%, 100%, 0.5);
    font-weight: 700;
}

#recipe ol li {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-md);
    border-left: 4px solid var(--primary-teal);
    transition: all var(--transition-speed) ease;
    color: var(--text-dark);
    
    /* Subtle Glass Card */
    background: hsla(0, 0%, 100%, 0.5);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: calc(var(--border-radius) / 3);
    margin-left: var(--spacing-md);
}

#recipe ol li:hover {
    border-left-color: var(--secondary-pink);
    background: linear-gradient(
        90deg,
        hsla(175, 45%, 65%, 0.2),
        hsla(0, 0%, 100%, 0.8)
    );
    padding-left: var(--spacing-lg);
    box-shadow: 
        0 4px 12px hsla(175, 45%, 65%, 0.2),
        inset 0 1px 1px hsla(0, 0%, 100%, 0.6);
    transform: translateX(4px);
}

#recipe strong {
    color: var(--primary-teal);
    font-weight: 700;
    text-shadow: 0 0 8px hsla(175, 45%, 65%, 0.2);
}

/* 13. RESPONSIVE GRID FOR CONTENT
   ============================================= */
div {
    display: grid;
    gap: var(--spacing-xl);
}

/* 14. MEDIA QUERIES - MOBILE (max 768px)
   ============================================= */
@media screen and (max-width: 768px) {
    footer .social-links {
        flex-direction: column;
        width: 100%;
    }
    
    .connectLink {
        width: 100%;
        justify-content: center;
    }
    
    .recipesCollapse {
        max-height: 400px; /* Higher for mobile */
    }
}

/* 15. MEDIA QUERIES - TABLET (768px+)
   ============================================= */
@media screen and (min-width: 768px) {
    :root {
        --font-size-h1: 2.5rem;
        --font-size-h2: 1.875rem;
    }
    
    main {
        padding: var(--spacing-xl);
    }
    
    .mausiMainPagePic {
        width: 250px;
        height: 250px;
    }
    
    .skills ul {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    /* Two-column layout for sections */
    div {
        grid-template-columns: 1fr;
    }
}

/* 16. MEDIA QUERIES - DESKTOP (1024px+)
   ============================================= */
@media screen and (min-width: 1024px) {
    :root {
        --font-size-h1: 3rem;
        --font-size-h2: 2rem;
        --font-size-base: 18px;
    }
    
    main {
        padding: var(--spacing-xxl);
        margin-top: var(--spacing-xl);
        margin-bottom: var(--spacing-xl);
        border-radius: var(--border-radius);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    .mausiMainPagePic {
        width: 300px;
        height: 300px;
    }
    
    .skills ul {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Gallery images in a grid */
    section:has(img + img) {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
    
    section:has(img + img) h1 {
        grid-column: 1 / -1;
    }
}

/* 17. UTILITY CLASSES
   ============================================= */
.text-center {
    text-align: center;
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

/* 18. ACCESSIBILITY IMPROVEMENTS
   ============================================= */
/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Skip to main content link (add to HTML if needed) */
.skip-to-main {
    position: absolute;
    left: -9999px;
    z-index: 999;
}

.skip-to-main:focus {
    position: fixed;
    top: 0;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    text-decoration: none;
}

/* 19. PRINT STYLES
   ============================================= */
@media print {
    body {
        background: white;
        color: black;
    }
    
    main {
        box-shadow: none;
        max-width: 100%;
    }
    
    img {
        max-width: 100%;
        page-break-inside: avoid;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
}

/* 20. ANIMATION CLASSES (Optional)
   ============================================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* 21. DARK MODE SUPPORT (Optional)
   ============================================= */
@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #e0e0e0;
        --text-light: #b0b0b0;
        --background-light: #1a1a1a;
        --background-white: #2a2a2a;
        --primary-color: #4a9eff;
        --border-color: #404040;
    }
    
    body {
        background-color: var(--background-light);
    }
    
    .skills ul li {
        background-color: #333333;
    }
}

/* 22. LOVE FOOTER ELEMENT
   ============================================= */
.love {
    text-align: center;
    margin-top: var(--spacing-xl);
    padding: var(--spacing-md);
    color: var(--text-teal);
    font-weight: 600;
    font-size: 1rem;
}