/* styles.css */

:root{
    --bg: #FFF7E8;
    --accent: #FFC42A;
    --accent-alt: #FF5A5F;
    --text-primary: #333333;
    --text-secondary: #6B7280;
    --layer-opacity: 0.08;
}

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

html {
    scroll-behavior: smooth;
}

body{
    font-family:'Inter',sans-serif;
    background:var(--bg);
    color:var(--text-primary);
    overflow-x:hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700; /* Poppins Bold */
}

p {
    font-size: 18px; /* Inter at 16-18px */
    line-height: 1.6; /* Comfortable line-height */
}

/* Navbar */
#navbar{
    position:fixed;
    top:0;
    width:100%;
    padding:16px 32px; /* Spacing system: ~32px sides */
    z-index:100;
    transition:background 0.3s ease-in-out, box-shadow 0.3s ease-in-out, backdrop-filter 0.3s ease-in-out;
    background: transparent; /* Transparent by default */
    display: flex;
    align-items: center;
}

#navbar.scrolled{
    background:rgba(255,255,255,0.9); /* Background once scrolled */
    backdrop-filter: blur(8px); /* Subtle blur */
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* Soft shadow */
}

#logo {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
    color: var(--text-primary);
}

#logo:hover {
    transform: scale(1.05);
    color: #FFC42A;
}

/* Sections */
.section{
    position:relative;
    min-height:100vh;
    display:flex;
    flex-direction: column;
    align-items:center;
    justify-content:center;
    padding: 80px 32px;
    opacity:0; /* Initial state for scroll reveal */
    transform:translateY(24px); /* Initial state for scroll reveal */
    transition:opacity 0.8s ease-out,transform 0.8s ease-out; /* Transition for scroll reveal */
}

.section.visible{
    opacity:1;
    transform:translateY(0);
}

/* Layered SVG/shape backgrounds */
.layer{
    position:absolute;
    width:100%;
    height:100%;
    top:0;
    left:0;
    pointer-events:none;
    z-index: -1;
    opacity: 0.5;
}

.layer svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
}

/* Hero content container */
.hero-content{
    position:relative;
    z-index:1;
    padding:64px; /* Generous whitespace in hero */
    background:rgba(255,255,255,0.75); /* Background with transparency */
    backdrop-filter:blur(12px); /* Blur effect */
    border-radius:24px; /* Rounded corners */
    box-shadow:0 8px 24px rgba(0,0,0,0.1); /* Soft shadow */
    text-align:center;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 48px; /* h1 in hero: 48px on mobile */
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .hero-content h1 {
        font-size: 64px; /* 64px+ on desktop */
    }
}

.hero-content p {
    font-size: 18px; /* paragraph and subheadings: Inter at 16-18px */
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* CTA button */
.btn{
    margin-top:24px;
    padding:16px 32px;
    background:var(--accent);
    color: var(--text-primary);
    border:none;
    border-radius:32px; /* Pill-shaped */
    font-size:18px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700; /* Semi-bold */
    box-shadow:0 4px 16px rgba(255, 196, 42, 0.4); /* Shadow */
    transition:transform 0.2s ease-in-out,box-shadow 0.2s ease-in-out, background-color 0.2s ease-in-out;
    cursor:pointer;
    text-decoration: none;
    display: inline-block;
}

.btn:hover{
    transform:scale(1.05); /* Hover scale */
    box-shadow:0 6px 20px rgba(255, 196, 42, 0.5);
}

.btn:active{
    transform:scale(0.98); /* Active scale */
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--accent);
    margin: 15px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    padding: 14px 30px;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: var(--accent);
    color: white;
    transform: scale(1.03);
}

/* Role Section Styling */
#role-section {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    background: transparent;
    border: none;
    box-shadow: none;
}

.role-option {
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    text-align: center;
    max-width: 450px;
    flex: 1;
    min-width: 300px;
}

.role-option p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

#project-desc {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
  margin: 24px auto;
  max-width: 600px;
  color: #333333;
}

/* Overlap section */
#info.section {
    min-height: auto;
    padding-top: 0;
}

.card.overlap{
    position:relative;
    margin-top:-100px; /* Negative margin for overlap */
    background:#fff;
    padding:32px; /* Spacing system: ~32px */
    border-radius:16px;
    box-shadow:0 16px 48px rgba(0,0,0,0.12); /* Soft box-shadow */
    width:80%;
    max-width:800px;
    text-align:center;
    z-index: 5; /* Ensure it overlaps */
}

.card.overlap h2 {
    font-size: 36px;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.card.overlap p {
    font-size: 18px;
    color: var(--text-secondary);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .layer {
        transform: none !important;
    }
}
