/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Ultra&family=Montserrat:wght@400;600;700&display=swap');

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

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    color: #1a1a1a;
    background: #f5f1e8;
    min-height: 100vh;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(245, 241, 232, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #d4cfc4;
    z-index: 1000;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s;
}

.logo-link:hover .logo-icon {
    opacity: 0.7;
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: #a78bfa;
}

.brand-text {
    font-size: 1.1rem;
    color: #3a3a3a;
    font-weight: 700;
    letter-spacing: 2px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: #3a3a3a;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #6b6b6b;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: #1a1a1a;
}

/* Home Page Styles */
.home-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.decorative-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.shape {
    position: absolute;
    opacity: 0.5;
}

.shape-1 {
    top: 15%;
    left: 8%;
    width: 140px;
    height: 140px;
    border-radius: 58% 42% 45% 55% / 52% 48% 52% 48%;
    background: linear-gradient(135deg, #fb7185 0%, #f43f5e 100%);
    animation: float 5s ease-in-out infinite;
}

.shape-2 {
    top: 25%;
    right: 12%;
    width: 180px;
    height: 110px;
    border-radius: 48% 52% 62% 38% / 45% 55% 45% 55%;
    background: linear-gradient(135deg, #c4b5fd 0%, #a78bfa 100%);
    transform: rotate(25deg);
    animation: float 6s ease-in-out infinite reverse;
}

.shape-3 {
    bottom: 30%;
    left: 30%;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #fde047 0%, #fbbf24 100%);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: float 7s ease-in-out infinite;
}

.shape-4 {
    top: 45%;
    right: 22%;
    width: 90px;
    height: 90px;
    border: 4px solid #a78bfa;
    border-radius: 42% 58% 70% 30% / 45% 65% 35% 55%;
    animation: float 8s ease-in-out infinite;
}

.shape-5 {
    bottom: 20%;
    right: 15%;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #5eead4 0%, #2dd4bf 100%);
    border-radius: 65% 35% 48% 52% / 38% 62% 38% 62%;
    animation: float 5.5s ease-in-out infinite reverse;
}

.shape-6 {
    top: 70%;
    left: 15%;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #fbcfe8 0%, #f9a8d4 100%);
    border-radius: 52% 48% 68% 32% / 58% 42% 58% 42%;
    animation: float 6.5s ease-in-out infinite;
}

.shape-7 {
    bottom: 40%;
    right: 10%;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #fde047 0%, #fbbf24 100%);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: float 7s ease-in-out infinite;
}

.shape-8 {
    top: 24%;
    left: 18%;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #fde047 0%, #fbbf24 100%);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: float 7s ease-in-out infinite;
}

/* Decorative doodles - scrapbook style */
.swirl-1, .swirl-2, .swirl-3 {
    position: absolute;
    opacity: 0.4;
}

.swirl-1 {
    top: 45%;
    left: 5%;
    width: 150px;
    height: 150px;
    border: 3px solid #fb7185;
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
    transform: rotate(-20deg);
    animation: float 6s ease-in-out infinite;
}

.swirl-2 {
    bottom: 15%;
    left: 50%;
    width: 100px;
    height: 100px;
    border: 3px dashed #a78bfa;
    border-radius: 50%;
    transform: rotate(15deg);
    animation: float 8s ease-in-out infinite reverse;
}

.swirl-3 {
    top: 20%;
    right: 5%;
    width: 120px;
    height: 120px;
    border: 3px dotted #fbbf24;
    border-radius: 48% 52% 68% 32% / 42% 28% 72% 58%;
    transform: rotate(25deg);
    animation: float 7s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(var(--rotate, 0deg));
    }
    50% {
        transform: translateY(-20px) rotate(calc(var(--rotate, 0deg) + 5deg));
    }
}

.home-content {
    text-align: center;
    z-index: 10;
    max-width: 800px;
}

.home-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    font-family: 'Impact', 'Arial Black', sans-serif;
    text-transform: capitalize;
}

.home-description {
    font-size: 1.1rem;
    color: #3a3a3a;
    line-height: 1.8;
    margin: 2rem auto;
    max-width: 600px;
    font-weight: 400;
}

.btn-primary {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: #1a1a1a;
    color: #f5f1e8;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 2px;
    transition: all 0.3s;
    margin-top: 1rem;
}

.btn-primary:hover {
    background: #3a3a3a;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Content Pages */
.content-page {
    min-height: 100vh;
    padding: 7rem 2rem 4rem;
}

.content-container {
    max-width: 900px;
    margin: 0 auto;
}

.page-title {
    font-size: 3rem;
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 3rem;
    letter-spacing: 1px;
    font-family: 'Impact', 'Arial Black', sans-serif;
}

.content-card {
    background: #fdfcfa;
    padding: 3rem;
    border-radius: 12px;
    border: 2px solid #1a1a1a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.content-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3a3a3a;
    margin-bottom: 1.5rem;
}

.content-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content-card p {
    line-height: 1.8;
    color: #3a3a3a;
    margin-bottom: 1rem;
    font-weight: 400;
}

.content-card a {
    color: #7c78e6;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 400;
}

.content-card a:hover {
    text-decoration: underline;
    font-weight: 600;
}

.data-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.data-item strong {
    color: #1a1a1a;
    font-weight: 700;
}

/* Visualizations Page */
.viz-container {
    max-width: 1200px;
    margin: 0 auto;
}

.viz-card {
    background: #fdfcfa;
    padding: 3rem;
    border-radius: 12px;
    border: 2px solid #1a1a1a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem;
}

.viz-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #3a3a3a;
    margin-bottom: 2rem;
}

.viz-placeholder {
    background: #ffffff;
    border-radius: 8px;
    width: 100%;
    margin-bottom: 2rem;
    overflow: hidden;
        border: 2px dashed #d4cfc4;

    
}

.viz-placeholder iframe,
.viz-placeholder img {
    display: block;
    width: 100%;
    margin: 0;
}

.viz-placeholder svg {
    width: 64px;
    height: 64px;
    color: #a8a29e;
    margin-bottom: 1rem;
}

.viz-placeholder p {
    color: #6b6b6b;
    font-size: 1.1rem;
}

.viz-placeholder small {
    color: #a8a29e;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.viz-description {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* References List */
.reference-list {
    list-style: none;
    padding: 0;
}

.reference-list li {
    padding: 1rem 0;
    border-bottom: 1px solid #d4cfc4;
}

.reference-list li:last-child {
    border-bottom: none;
}

.reference-list a {
    color: #7c78e6;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 400;
}

.reference-list a:hover {
    text-decoration: underline;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        position: relative;
    }
    
    .brand-text {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(245, 241, 232, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-links.active {
        max-height: 300px;
    }
    
    .nav-link {
        padding: 0.875rem 2rem;
        border-bottom: 1px solid #e7e5e0;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .home-title {
        font-size: 2.5rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .content-card,
    .viz-card {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .home-title {
        font-size: 2rem;
    }
    
    .content-card,
    .viz-card {
        padding: 1.5rem;
    }
}