/* --------------------------------------------------
   Teja Praveen Alamanda – Portfolio (refined)
   Case Study Styles
--------------------------------------------------*/



:root {
    --g-from: #EC4899;
    --g-via: #6366F1;
    --g-to: #0EA5E9;
    --g-bg: #ec4899;
    --g-bg2: #0ea5e9;
    --g-via2: #6366f1;
    --c-essential: #22C55E;
    --c-rec: #FACC15;
    --c-nice: #3B82F6;
    --bg: #F4F6F8;
    --card: #ffffffcc;
    --shadow: 0 12px 30px rgba(0, 0, 0, .08);
    --text: #111827;
    --text-sec: #64748B;
}


:root {
  --gradient-primary: linear-gradient(90deg, #9845FF 0%, #FF31D9 100%);
  --gradient-secondary: linear-gradient(90deg, #FF7448 0%, #FF31D9 50%, #9845FF 100%);
  --color-primary: #9845FF;
  --color-secondary: #FF31D9;
  --color-accent: #FF7448;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Syne", "Ovo", sans-serif;
  color: #333;
  line-height: 1.5;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}





.back-button {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.25);
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: background 0.3s ease;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.4);
}


header.hero {
    height: 38vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: .5rem;
    position: relative;
    overflow: hidden;
}

header.hero::before {
    content: '';
    position: absolute;
    /* inset: -20%; */
    background: linear-gradient(120deg, var(--g-from), var(--g-via), var(--g-to));
    filter: blur(120px);
    opacity: .45;
    z-index: 0;
}

header.hero h1 {
    font-size: clamp(2.4rem, 6vw, 3.75rem);
    font-weight: 800;
    z-index: 1;
}

header.hero span.subtitle {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-sec);
    letter-spacing: .15em;
    z-index: 1;
}

.layout {
    display: flex;
    max-width: 1440px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
    gap: 2rem;
}

nav.sidebar {
    position: sticky;
    top: 2rem;
    align-self: flex-start;
    width: 280px;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 12px;
    padding-bottom: 20px;

}

.card-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    background: var(--card);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
    transition: transform .25s ease;
}

.card-link:hover {
    transform: translateY(-4px);
}

.card-link.active {
    /* background: linear-gradient(120deg, var(--g-bg), var(--g-via2), var(--g-bg2)); */
    background: #fe3e6f;
    ;

    font-weight: 600;
}




.card-link img.icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}



html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 100px;
    opacity: 0;
    transform: translateY(40px);
    margin-top: 4rem;
    transition: opacity .6s ease, transform .6s ease;
}

section.visible {
    opacity: 1;
    transform: none;
}

.card-link.active {
    background: #fe3e6f;

    color: white;
    font-weight: 600;
}

.mobile-nav-modal a.active {
    background: linear-gradient(90deg, var(--g-from), var(--g-to));
    color: white;
    font-weight: 600;
}

main {
    flex: 1;
}



.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--g-from), var(--g-to));
    -webkit-background-clip: text;
    color: transparent;
}

.chip {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
}

.essential {
    background: var(--c-essential);
}

.rec {
    background: var(--c-rec);
}

.nice {
    background: var(--c-nice);
}

.bullets {
    list-style: disc;
    padding-left: 1.25rem;
}

.bullets li::marker {
    color: var(--g-via);
}

.figma-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 1rem;
    overflow: hidden;
    background: #1E293B;
}

.figma-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.gallery {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

@media(min-width:550px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(min-width:900px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gallery img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

footer {
    text-align: center;
    font-size: .9rem;
    color: var(--text-sec);
    padding: 2.5rem 0;
}

@media (max-width: 900px) {
    .layout {
        flex-direction: column;
    }

    nav.sidebar {
        display: none;
    }

    .mobile-nav-toggle {
        position: fixed;
        bottom: 1.25rem;
        right: 1.25rem;
        z-index: 50;
        background: var(--g-from);
        color: white;
        padding: 0.75rem 1rem;
        border-radius: 999px;
        font-weight: 600;
        box-shadow: var(--shadow);
        border: none;
    }

    .mobile-nav-modal {
        position: fixed;
        inset: 0;
        background: white;
        z-index: 40;
        padding: 2rem 1rem;
        display: none;
        flex-direction: column;
        gap: 1rem;
        overflow-y: auto;
    }

    .mobile-nav-modal.show {
        display: flex;
    }

    .mobile-nav-modal a {
        font-size: 1.1rem;
        text-decoration: none;
        color: var(--text);
        padding: 0.75rem 1rem;
        background: var(--card);
        border-radius: 0.75rem;
        box-shadow: var(--shadow);
    }
}

@media (min-width: 900px) {

    .mobile-nav-toggle,
    .mobile-nav-modal {
        display: none !important;
    }
}

#overview {
    padding: 2rem 1rem;
    background-color: #f9fafb;
    border-radius: 12px;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #ec4899;
}

.project-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.project-insights {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2rem 0;
}

.insight-number {
    font-size: 1.5rem;
    font-weight: 700;
}

.insight-label {
    color: #64748B;
}

.pink {
    color: #EC4899;
}

.indigo {
    color: #6366F1;
}

.sky {
    color: #0EA5E9;
}

.green {
    color: #22C55E;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}











