/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
h1, h2, h3 {
    font-family: 'Georgia', serif;
}
article p, aside p {
    font-family: 'Arial', sans-serif;
}

/* ================= VARIABLES ================= */
:root {
  --purple: #9f7aea;
  --pink: #ff4ecd;
  --blue: #7afcff;
  --lavender: #f3e8ff;
  --dark-bg: #1a1a2e;
  --dark-card: #2b2b3c;
  --dark-accent: #9f7aea;
}
ul {
  color: #6a5acd;
}

/* ================= BODY ================= */
body {
    font-family: 'Georgia', serif;
    background: linear-gradient(135deg, #f6f3fa, #e0c3fc, #f9f7ff);
    background-size: 300% 300%;
    animation: bgShift 15s ease infinite;
    color: #333;
    line-height: 1.7;
    transition: background 0.5s ease, color 0.5s ease;
}

@keyframes bgShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ================= WRAPPER ================= */
#wrapper {
    max-width: 1100px;
    margin: 50px auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(159,122,234,0.3);
    overflow: hidden;
    transition: background 0.5s ease;
}

/* ================= HEADER ================= */
header {
    background: linear-gradient(135deg, var(--purple), #ff9ae6, var(--blue));
    background-size: 400% 400%;
    animation: gradientMove 10s ease infinite;
    color: white;
    text-align: center;
    padding: 80px 20px;
    position: relative;
}
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
header h1 {
    font-size: 3.5rem;
    text-shadow: 
        0 0 15px #fff,
        0 0 25px #ff4ecd,
        0 5px 15px rgba(0,0,0,0.3);
}
header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ================= NAVIGATION ================= */
nav {
    background: linear-gradient(to right, #ffffff, var(--lavender));
    border-bottom: 3px solid #e0c3fc;
}
nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}
nav li {
    margin: 0 25px;
}
nav a {
    display: block;
    padding: 18px 0;
    text-decoration: none;
    font-weight: 600;
    color: var(--purple);
    position: relative;
    transition: all 0.3s ease;
}
nav a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 3px;
    bottom: 8px;
    left: 0;
    background: linear-gradient(90deg, #ff9ae6, #7afcff, var(--purple));
    transition: 0.3s ease;
}
nav a:hover::after {
    width: 100%;
}
nav a:hover {
    color: #ff4ecd;
    transform: translateY(-3px);
}
nav a.active {
    color: #ff4ecd;
    border-bottom: 3px solid #ff4ecd;
}

/* ================= MAIN ================= */
main {
    display: flex;
    gap: 40px;
    padding: 50px;
    flex-wrap: wrap;
}

/* ================= ARTICLE SECTIONS ================= */
article section {
    background: linear-gradient(135deg, #faf5ff, var(--lavender));
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    border-left: 6px solid #ff9ae6;
}
article section:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 15px 30px rgba(159,122,234,0.35),
        0 0 20px rgba(255,78,205,0.4);
}
article h2 {
    color: var(--purple);
    margin-bottom: 20px;
}
article h3 {
    color: #ff4ecd;
    margin-bottom: 10px;
}
article p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    color: #6b5ca5;
    line-height: 1.8;
}
/* ================= SQUARE IMAGES ================= */
article img,
.gallery-grid img {
    width: 50%;  
    height: 300px;	
    object-fit: cover;      
    border-radius: 15px;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

article img:hover,
.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* GALLERY GRID */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-grid img {
    width: 100%;
    height: 250px;        
    object-fit: cover;  
    border-radius: 15px;
}

.gallery-grid img:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}
/* ================= ASIDE ================= */
aside {
    flex: 1;
    background: linear-gradient(135deg, #e0c3fc, #8ec5fc);
    padding: 25px;
    border-radius: 15px;
    color:  #6b5ca5;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}
aside:hover { transform: translateY(-6px); }
aside h3 { margin-bottom: 15px; }
aside li { margin-bottom: 10px; }
main {
  display: flex;
  flex-direction: column;
}
/* ================= BUTTONS ================= */
.button, #darkToggle {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, #ff9ae6, var(--purple));
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
}
.button:hover, #darkToggle:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* ================= FOOTER ================= */
footer {
    background: linear-gradient(135deg, var(--purple), #ff9ae6);
    color: white;
    text-align: center;
    padding: 30px;
    font-size: 0.9rem;
}

/* ================= PETALS BACKGROUND ================= */
.petals {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -1;
}
.petals span {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle at 30% 30%, #ff9ae6, var(--purple));
    border-radius: 50% 70% 60% 80%;
    opacity: 0.5;
    animation: float 15s linear infinite;
}
@keyframes float {
    0% { top: 100%; transform: translateX(0) rotate(0deg); }
    50% { transform: translateX(40px) rotate(180deg); }
    100% { top: -10%; transform: translateX(-40px) rotate(360deg); }
}

/* ================= FLOWER DEMO ================= */
#flowerDemo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  margin-top: 15px;
  background: radial-gradient(circle at 30% 30%, #c084fc, #7c3aed);
  box-shadow: 0 10px 25px rgba(124,58,237,0.4), inset 0 0 20px rgba(255,255,255,0.5);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* ================= DARK MODE ================= */

.dark-mode {background: linear-gradient(135deg, var(--dark-bg), #16213e); color: #f1f1f1;}
.dark-mode #wrapper {background: #1f1f2e;}
.dark-mode header {background: linear-gradient(135deg, #2c2c54, #474787);}
.dark-mode nav {background: #1f1f2e;}
.dark-mode nav a {color: #c8a2ff;}
.dark-mode nav a.active {border-bottom-color: #ff9ae6;color: #ff9ae6;}
.dark-mode article section {background: var(--dark-card);border-left: 6px solid var(--dark-accent);}
.dark-mode article section p {color: #ffffff;}
.dark-mode aside {background: linear-gradient(135deg, #2c2c54, #40407a);}
.dark-mode aside p {color: #ffffff;}
.dark-mode aside h3 {color: #ffffff;}
.dark-mode aside li {color: #ffffff;}
.dark-mode ul li {color: #ffffff;}
.dark-mode footer {background: #111122;}
.dark-mode .petals span {opacity: 0.2;}
/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    main { flex-direction: column; padding: 25px; }
    nav ul { flex-direction: column; text-align: center; }
    nav li { margin: 8px 0; }
}

