:root {
    --primary-color: #28a745; /* Green */
    --secondary-color: #6c757d; /* Gray */
    --accent-color: #fd7e14; /* Orange */
    --background-color: #f8f9fa; /* Light Gray */
    --text-color: #343a40;
    --section-bg-light: #ffffff;
    --section-bg-dark: #f1f3f5;
    --spinner-color: var(--primary-color);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

.content-section {
    padding: 50px 20px;
}

.content-section:nth-child(odd) {
    background-color: var(--section-bg-light);
}

.content-section:nth-child(even) {
    background-color: var(--section-bg-dark);
}

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

#counter-section {
    padding-top: 20px;
    padding-bottom: 30px;
}

header {
    background-color: var(--section-bg-dark);
    text-align: center;
    padding: 50px 20px 40px;
}

h1 {
    color: var(--primary-color);
    margin: 0;
    font-size: 2.5em;
}

header p {
    font-size: 1.2em;
    margin-top: 0;
    margin-bottom: 0;
}

h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 30px;
    text-align: center;
}

.counter-container {
    text-align: center;
    overflow: visible;
    position: relative;
}

.counter {
    font-size: 4em;
    font-weight: bold;
    color: var(--primary-color);
}

.counter-label {
    font-size: 1.2em;
    color: var(--secondary-color);
}

/* Timeline */
.timeline {
    position: relative;
    padding: 20px 0;
    max-height: 400px;
    overflow-y: auto;
}

.timeline::-webkit-scrollbar {
    width: 8px;
}

.timeline::-webkit-scrollbar-track {
    background: var(--background-color);
    border-radius: 4px;
}

.timeline::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

.timeline::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #dee2e6; /* Lighter Gray */
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
    padding-left: 50px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 8px;
    top: -2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 4px solid var(--section-bg-dark);
}

.timeline-content {
    position: relative;
}

.timeline-date {
    font-weight: bold;
    color: var(--primary-color);
    margin: 0 0 5px 0;
}

.timeline-text {
    margin: 0;
    color: var(--text-color);
}

#contact-email a {
    color: var(--primary-color);
    text-decoration: none;
}

#contact-email a:hover {
    color: #218838; /* Darker Green */
    text-decoration: underline;
}

/* Cigarette Progress Bar */
.progress-bar-container {
    position: relative;
    height: 35px;
    background-color: white;
    border-radius: 5px;
    border: 1px solid #ccc;
    overflow: visible;
    margin-top: 25px;
}

.progress-bar-fill {
    height: 100%;
    width: 0%; /* Updated by JS */
    background-color: var(--primary-color);
    border-radius: 4px 0 0 4px;
    transition: width 0.5s ease-in-out;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    border: 1px solid transparent;
    border-right: 1px solid #ccc;
}

.progress-bar-fill.completed {
    border-right-color: transparent;
}

#smoke-emitter {
    position: absolute;
    right: 0;
    top: 0;
    width: 5px;
    height: 100%;
    pointer-events: none;
}

.smoke-wisp {
    position: absolute;
    left: 0;
    top: -12px;
    width: 25px;
    height: 25px;
    background-color: rgba(200, 200, 200, 0.8);
    border-radius: 50%;
    filter: blur(8px);
    animation: smoke-rise 8s ease-out forwards;
}

.progress-bar-label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-color);
    font-weight: bold;
    font-size: 0.9em;
    z-index: 3;
    text-shadow: none;
    transition: left 0.5s ease-in-out, color 0.3s linear;
}

.cigarette-progress-filter {
    position: absolute;
    right: 0;
    top: 0;
    width: 28%;
    height: 100%;
    background-color: #E6A23C;
    border-left: 2px solid #C48A31;
    box-sizing: border-box;
    z-index: 1;
    border-radius: 0 4px 4px 0;
    background-image: 
        radial-gradient(circle at 10px 5px, #FADA5E 1px, transparent 1.5px),
        radial-gradient(circle at 25px 15px, #FADA5E 1.2px, transparent 2px),
        radial-gradient(circle at 5px 28px, #FADA5E 1.5px, transparent 2px),
        radial-gradient(circle at 40px 10px, #FADA5E 1px, transparent 1.5px),
        radial-gradient(circle at 55px 25px, #FADA5E 1.2px, transparent 2px),
        radial-gradient(circle at 70px 8px, #FADA5E 1.5px, transparent 2px),
        radial-gradient(circle at 85px 20px, #FADA5E 1px, transparent 1.5px),
        radial-gradient(circle at 95px 30px, #FADA5E 1.2px, transparent 2px),
        radial-gradient(circle at 45px 32px, #FADA5E 1.2px, transparent 2px),
        radial-gradient(circle at 75px 18px, #FADA5E 1.5px, transparent 2px);
    background-size: 100px 35px;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .info-cards {
        grid-template-columns: 1fr;
    }
}

.info-card {
    background: var(--section-bg-light);
    border: 1px solid #dee2e6;
    border-left: 5px solid var(--primary-color);
    padding: 20px;
    border-radius: 8px;
}

.info-card h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.button-container {
    text-align: center;
    margin-top: 30px;
}

.info-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s ease;
    border: none;
    text-align: center;
}

.info-button:hover {
    background-color: #218838; /* Darker Green */
}

footer {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--text-color);
    color: var(--background-color);
    font-size: 0.9em;
}

.heart {
    color: var(--primary-color);
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid var(--spinner-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes smoke-rise {
    from {
        opacity: 0.8;
        transform: translate(0, 0) scale(0.3);
    }
    to {
        opacity: 0;
        transform: translate(40px, -100px) scale(2.5);
    }
}
