@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #007bff; /* Vibrant blue */
    --secondary-color: #6fc5ba; /* Refreshing green */
    --dark-color: #2d3748; /* Soft dark for text */
    --light-color: #f7fafc; /* Clean light background */
    --gray-color: #718096; /* Subtle gray for text */
    --white-color: #ffffff; /* Pure white for hero text */
    --accent-color: #f7fafc; /* Bright accent for hero h2 */
    --spacing-sm: 0.75rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 3rem;
    --border-radius: 6px;
    --transition-speed: 0.3s;
    --box-shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
    --glow-color: rgba(0, 123, 255, 0.938); /* Subtle blue glow */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

h1, h2, h3 {
    font-weight: 700;
    color: var(--dark-color);
}

p {
    color: var(--gray-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--dark-color);
}

/* Button Styles */
.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white-color) !important;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-speed) ease;
    box-shadow: var(--box-shadow-light);
    position: relative;
    z-index: 2;
    animation: subtleGlow 2.5s ease-in-out infinite;
}

.btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover), 0 0 10px var(--glow-color);
}

.btn span {
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md);
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.212)), url('https://images.unsplash.com/photo-1723259690470-fc8dd013eedb?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') no-repeat center/cover;
    color: var(--white-color);
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
    color: var(--accent-color);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 0.8s ease forwards 0.3s;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
    max-width: 600px;
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 0.8s ease forwards 0.5s;
    color: rgba(255, 255, 255, 0.9);
}

.hero .btn {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.7s;
}

/* Features Section */
.features {
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md);
    background: var(--white-color);
}

.features h2 {
    font-size: 2.2rem;
    margin-bottom: var(--spacing-md);
    opacity: 0;
    animation: fadeIn 0.8s ease forwards 0.2s;
}

.features h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: var(--spacing-sm) auto 0;
    border-radius: 1px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--spacing-md);
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background: var(--light-color);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-light);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    opacity: 0;
    transform: translateY(20px);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-sm);
    transition: transform var(--transition-speed) ease;
}

.feature-card:hover i {
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    font-size: 0.95rem;
}

.feature-card:nth-child(1) { animation: slideInUp 0.8s ease forwards 0.4s; }
.feature-card:nth-child(2) { animation: slideInUp 0.8s ease forwards 0.6s; }
.feature-card:nth-child(3) { animation: slideInUp 0.8s ease forwards 0.8s; }

/* Gallery Section */
.gallery {
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md);
    background: var(--light-color);
}

.gallery h2 {
    font-size: 2.2rem;
    margin-bottom: var(--spacing-md);
    opacity: 0;
    animation: fadeIn 0.8s ease forwards 0.2s;
}

.gallery h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: var(--spacing-sm) auto 0;
    border-radius: 1px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    max-width: 1100px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-light);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    opacity: 0;
    transform: scale(0.98);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--box-shadow-hover);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-speed) ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white-color);
    padding: var(--spacing-sm);
    transform: translateY(100%);
    transition: transform var(--transition-speed) ease;
    text-align: center;
}

.gallery-item:hover .overlay {
    transform: translateY(0);
}

.overlay p {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.gallery-item:nth-child(1) { animation: scaleIn 0.8s ease forwards 0.4s; }
.gallery-item:nth-child(2) { animation: scaleIn 0.8s ease forwards 0.6s; }
.gallery-item:nth-child(3) { animation: scaleIn 0.8s ease forwards 0.8s; }

/* Call to Action Section */
.cta {
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md);
    background: linear-gradient(135deg, var(--secondary-color), #2f855a);
    color: var(--white-color);
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.2s;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.4s;
    color: rgba(255, 255, 255, 0.9);
}

.cta .btn {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.6s;
}

/* Footer Styles */
.footer {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--dark-color);
    color: var(--white-color);
    font-size: 0.95rem;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

/* Public Page Styles */
.public-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--light-color);
}

.public-page .form-container {
    max-width: 380px;
    margin: var(--spacing-lg) auto;
    padding: var(--spacing-md);
    background: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-light);
    z-index: 10;
}

.public-page .form-container h2 {
    text-align: center;
    margin-bottom: var(--spacing-md);
    font-size: 1.8rem;
    color: var(--dark-color);
}

.public-page .form-container input {
    width: 100%;
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    border: 1px solid var(--gray-color);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    transition: border-color var(--transition-speed) ease;
}

.public-page .form-container input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.public-page .form-container button {
    width: 100%;
    padding: var(--spacing-sm);
    background: var(--primary-color);
    border: none;
    color: var(--white-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    box-shadow: var(--box-shadow-light);
    animation: subtleGlow 2.5s ease-in-out infinite;
}

.public-page .form-container button:hover {
    background: #0056b3;
    box-shadow: var(--box-shadow-hover), 0 0 10px var(--glow-color);
    transform: translateY(-2px);
}

.public-page .form-container p {
    text-align: center;
    margin-top: var(--spacing-sm);
    font-size: 0.9rem;
}

.public-page .form-container a {
    color: var(--primary-color);
    transition: text-decoration var(--transition-speed) ease;
}

.public-page .form-container a:hover {
    text-decoration: underline;
}

.public-page .error {
    color: #e53e3e;
    text-align: center;
    margin-bottom: var(--spacing-sm);
    font-size: 0.9rem;
}

.public-page .success {
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: var(--spacing-sm);
    font-size: 0.9rem;
}

.public-page .spacer {
    flex-grow: 1;
}

/* Animations */
@keyframes subtleGlow {
    0% { box-shadow: var(--box-shadow-light), 0 0 5px var(--glow-color); }
    50% { box-shadow: var(--box-shadow-light), 0 0 15px var(--glow-color); }
    100% { box-shadow: var(--box-shadow-light), 0 0 5px var(--glow-color); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Media Queries */
@media (max-width: 992px) {
    .hero h2 { font-size: 2.6rem; }
    .hero p { font-size: 1.1rem; }
    .features h2, .gallery h2, .cta h2 { font-size: 2rem; }
    .feature-card { padding: var(--spacing-sm); }
    .feature-card i { font-size: 2.2rem; }
    .feature-card h3 { font-size: 1.2rem; }
    .gallery-item img { height: 200px; }
    .cta p { font-size: 1.1rem; }
}

@media (max-width: 768px) {
    .hero { padding: var(--spacing-md) var(--spacing-sm); }
    .hero h2 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .btn { padding: 0.7rem 1.5rem; font-size: 0.95rem; }
    .features, .gallery, .cta { padding: var(--spacing-md) var(--spacing-sm); }
    .features h2, .gallery h2, .cta h2 { font-size: 1.8rem; }
    .feature-grid, .gallery-grid { gap: var(--spacing-sm); }
    .gallery-item img { height: 180px; }
    .overlay p { font-size: 0.95rem; }
    .public-page .form-container { margin: var(--spacing-md) auto; }
}

@media (max-width: 576px) {
    .hero h2 { font-size: 1.8rem; }
    .hero p { font-size: 0.9rem; }
    .features h2, .gallery h2, .cta h2 { font-size: 1.6rem; }
    .feature-card i { font-size: 2rem; }
    .feature-card h3 { font-size: 1.1rem; }
    .feature-card p { font-size: 0.9rem; }
    .gallery-item img { height: 160px; }
    .overlay p { font-size: 0.9rem; }
    .cta p { font-size: 1rem; }
}