/* Custom Properties - Warm & Playful Palette */
:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Quicksand', sans-serif;

    /* Theme Pastel Colors */
    --color-bg-light: hsl(30, 40%, 98%);
    --color-card-bg: hsl(0, 0%, 100%);
    --color-maternal-pastel: hsl(345, 85%, 65%);
    --color-maternal-accent: hsl(345, 95%, 72%);
    --color-lavender: hsl(265, 60%, 70%);
    --color-mint: hsl(165, 50%, 60%);
    --color-peach: hsl(20, 80%, 75%);
    --color-text-dark: hsl(220, 30%, 15%);
    --color-text-muted: hsl(220, 15%, 45%);
    
    --shadow-soft: 0 10px 30px rgba(244, 63, 94, 0.08);
    --shadow-hover: 0 20px 40px rgba(244, 63, 94, 0.15);
    --border-soft: 1px solid rgba(244, 63, 94, 0.12);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    font-family: var(--font-body);
    line-height: 1.6;
    font-weight: 500;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-text-dark);
    font-weight: 700;
}

/* Header Styles */
.project-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: var(--border-soft);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.back-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-maternal-pastel);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    border: 2px solid var(--color-maternal-pastel);
    background: transparent;
    transition: all 0.3s ease;
}

.back-home-btn:hover {
    background: var(--color-maternal-pastel);
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(244, 63, 94, 0.25);
}

.header-institution {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-logo {
    height: 44px;
    width: auto;
}

.inst-details {
    display: flex;
    flex-direction: column;
}

.inst-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.9rem;
    line-height: 1.2;
}

.inst-dept {
    font-size: 0.75rem;
    color: var(--color-lavender);
    font-weight: 700;
}

/* Hero Section */
.project-hero {
    background: linear-gradient(135deg, hsl(345, 90%, 96%) 0%, hsl(265, 80%, 96%) 100%);
    padding: 6rem 2rem 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.project-hero::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(244, 63, 94, 0.08);
    border-radius: 50%;
    top: -50px;
    left: -50px;
}

.project-hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(139, 92, 246, 0.06);
    border-radius: 50%;
    bottom: -100px;
    right: -100px;
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
}

.project-tag {
    color: var(--color-maternal-pastel);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    background: #ffffff;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    border: 1px dashed rgba(244, 63, 94, 0.3);
}

.project-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    line-height: 1.2;
    color: var(--color-text-dark);
}

.project-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    max-width: 700px;
}

/* Main Layout Grid */
.main-container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 992px) {
    .main-container {
        grid-template-columns: 320px 1fr;
    }
}

/* Sidebar Styling */
.technical-sidebar {
    position: relative;
}

.sidebar-card {
    background: var(--color-card-bg);
    border-radius: 24px;
    padding: 2rem;
    border: var(--border-soft);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 100px;
}

.sidebar-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.divider {
    height: 3px;
    width: 40px;
    background: var(--color-maternal-pastel);
    border-radius: 2px;
    margin-bottom: 1.5rem;
}

.tech-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tech-list li {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.95rem;
}

.tech-list li strong {
    font-family: var(--font-heading);
    color: var(--color-text-dark);
    font-weight: 700;
}

.tech-list li span {
    color: var(--color-text-muted);
    font-weight: 600;
}

.tech-list li small {
    color: var(--color-maternal-pastel);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
}

/* Core Content Styling */
.core-content {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.content-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--color-maternal-pastel);
    border-radius: 2px;
}

.content-section p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.section-desc {
    margin-bottom: 2rem !important;
}

/* Card Style Container */
.card-style {
    background: var(--color-card-bg);
    border-radius: 24px;
    padding: 2.5rem;
    border: var(--border-soft);
    box-shadow: var(--shadow-soft);
}

/* Resources Grid */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.75rem;
}

.resource-card {
    background: var(--color-card-bg);
    border-radius: 20px;
    padding: 2rem 1.75rem;
    border: var(--border-soft);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(244, 63, 94, 0.3);
}

.resource-icon {
    font-size: 2.2rem;
    width: 60px;
    height: 60px;
    background: hsl(30, 40%, 94%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.resource-card:nth-child(2n) .resource-icon { background: hsl(265, 80%, 95%); }
.resource-card:nth-child(3n) .resource-icon { background: hsl(165, 80%, 93%); }
.resource-card:nth-child(4n) .resource-icon { background: hsl(20, 85%, 93%); }

.resource-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.resource-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Theory Grid & Theming */
.theory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.theory-card {
    background: rgba(244, 63, 94, 0.02);
    border-left: 4px solid var(--color-maternal-pastel);
    padding: 1.5rem;
    border-radius: 0 16px 16px 0;
    background-color: hsl(345, 40%, 99%);
}

.theory-card:nth-child(2) {
    border-left-color: var(--color-lavender);
    background-color: hsl(265, 40%, 99%);
}

.theory-card:nth-child(3) {
    border-left-color: var(--color-mint);
    background-color: hsl(165, 40%, 99%);
}

.theory-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.theory-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Comparative Table Styles */
.table-container {
    overflow-x: auto;
    margin-top: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

th, td {
    padding: 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

th {
    background-color: rgba(244, 63, 94, 0.04);
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-text-dark);
}

tr:last-child td {
    border-bottom: none;
}

.highlight-positive {
    background-color: rgba(16, 185, 129, 0.05);
    color: hsl(145, 60%, 25%);
    font-weight: 600;
}

/* Conclusion & Highlight boxes */
.highlight-box {
    background: linear-gradient(135deg, hsl(345, 80%, 96%) 0%, hsl(265, 70%, 96%) 100%);
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 2rem;
    border-left: 5px solid var(--color-maternal-pastel);
}

.highlight-box p {
    font-size: 1.1rem;
    margin-bottom: 0;
    color: var(--color-text-dark);
}

.conclusion-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.conclusion-section ul li {
    position: relative;
    padding-left: 1.75rem;
    color: var(--color-text-muted);
}

.conclusion-section ul li::before {
    content: '🌸';
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 0.95rem;
}

.conclusion-section ul li strong {
    color: var(--color-text-dark);
    font-weight: 700;
}

/* Footer Styling */
.project-footer {
    background-color: var(--color-text-dark);
    color: rgba(255,255,255,0.6);
    padding: 3rem 2rem;
    text-align: center;
    font-size: 0.9rem;
    margin-top: 6rem;
    border-top: var(--border-soft);
}

/* Video Section Styles */
.video-section {
    background: linear-gradient(135deg, hsl(345, 85%, 97%) 0%, hsl(265, 70%, 97%) 100%);
    border-top: var(--border-soft);
    border-bottom: var(--border-soft);
    padding: 4rem 2rem 4.5rem;
    margin-top: 0;
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.video-container h2 {
    font-size: 2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.video-container h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--color-maternal-pastel);
    border-radius: 2px;
}

.video-container p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    max-width: 650px;
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(244, 63, 94, 0.15);
    border: 2px solid rgba(244, 63, 94, 0.12);
    margin-top: 1rem;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsiveness */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .project-hero {
        padding: 4rem 1.5rem;
    }
    
    .card-style {
        padding: 1.75rem;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsiveness */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .project-hero {
        padding: 4rem 1.5rem;
    }
    
    .card-style {
        padding: 1.75rem;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
}
