
/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Variables for colors */
:root {
    --primary-green: #90EE90;
    --primary-blue: #87CEEB;
    --accent-gold: #FFD700;
    --background-gradient: linear-gradient(135deg, #87CEEB, #90EE90);
    --button-hover-color: #FFD700;
    --text-color: #333333;
    --background-color: #F5F5F5;
    --header-animation-duration: 3s;
    --aurora-animation-duration: 15s;
}

/* Body styling */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background: var(--background-gradient);
    line-height: 1.6;
    padding: 20px;
    animation: aurora-move var(--aurora-animation-duration) linear infinite;
}

/* Header styling */
header {
    text-align: center;
    padding: 50px 20px;
    animation: tree-grow var(--header-animation-duration) ease-out;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    margin-bottom: 30px;
}

header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5em;
    color: var(--primary-green);
    margin-bottom: 20px;
}

header p {
    font-size: 1.2em;
    color: var(--text-color);
}

/* Navigation styling */
.navbar {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
}

.navbar a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    position: relative;
    transition: color 0.3s;
}

.navbar a:hover {
    color: var(--accent-gold);
}

/* Main content styling */
.container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
}

/* Feature boxes */
.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(144, 238, 144, 0.2);
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s;
}

.feature:hover {
    transform: scale(1.05);
}

.feature img {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.feature h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5em;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.feature p {
    font-size: 1em;
    color: var(--text-color);
}

/* Sample Article section */
.article-section {
    background: var(--background-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.article-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2em;
    color: var(--primary-green);
    margin-bottom: 20px;
    text-align: center;
}

.article-section p, .article-section li {
    font-size: 1em;
    color: var(--text-color);
    margin-bottom: 15px;
}

.article-section h3, .article-section h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-blue);
    margin-top: 20px;
    margin-bottom: 10px;
}

.article-section pre {
    background: #2d2d2d;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-size: 0.9em;
    color: #f8f8f2;
    margin-bottom: 15px;
}

.article-section code {
    font-family: 'Courier New', Courier, monospace;
    color: #D63384;
}

.article-section ul {
    list-style-type: disc;
    padding-left: 20px;
}

/* Buttons */
button {
    background-color: var(--primary-green);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background-color: var(--accent-gold);
    transform: scale(1.1);
}

/* Images styling */
.img-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.img-grid img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Footer styling */
footer {
    text-align: center;
    margin-top: 50px;
    font-size: 0.9em;
    color: var(--text-color);
    padding: 20px;
}

/* Animations */
@keyframes tree-grow {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes aurora-move {
    0% {
        background: radial-gradient(circle, rgb(255, 87, 34), transparent);
    }
    50% {
        background: radial-gradient(circle, rgb(255, 140, 0), transparent);
    }
    100% {
        background: radial-gradient(circle, rgb(255, 87, 34), transparent);
    }
}

.aurora {
    animation: aurora-move 15s linear infinite;
}

/* Responsive Design */
@media (min-width: 320px) and (max-width: 479px) {
    header h1 {
        font-size: 1.8em;
    }
    
    .navbar a {
        font-size: 0.9em;
    }
    
    .feature h3 {
        font-size: 1.2em;
    }
    
    .article-section h2 {
        font-size: 1.5em;
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    header h1 {
        font-size: 2em;
    }
    
    .navbar a {
        font-size: 1em;
    }
    
    .feature h3 {
        font-size: 1.3em;
    }
    
    .article-section h2 {
        font-size: 1.8em;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .article-section {
        padding: 25px;
    }
}

@media (min-width: 1024px) and (max-width: 1199px) {
    .container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    header h1 {
        font-size: 2.5em;
    }
    
    .article-section {
        padding: 30px;
    }
}

@media (min-width: 1200px) and (max-width: 1439px) {
    .container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1440px) {
    .container {
        grid-template-columns: repeat(5, 1fr);
    }
    
    header h1 {
        font-size: 3em;
    }
}

/* Code Block Styling */
code {
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
}

pre {
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 15px;
}

@media (max-width: 480px) {
    pre {
        font-size: 0.8em;
    }
}

