
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #fff; /* White text for better contrast */
    overflow-x: hidden;
}

/* Background Image */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/life.jpg'); /* Background image */
    background-size: cover;
    background-position: center;
    z-index: -1; /* Place it behind the content */
    transition: filter 0.3s ease; /* Smooth blur transition */
    margin: 0; /* Ensure no margin */
    padding: 0; /* Ensure no padding */
}
/* Main Content */
main {
    position: relative;
    z-index: 1; /* Place it above the background image */
    padding: 0;
    margin: 0;
}

/* New Scroll Header */
.scroll-header {
    position: fixed;
    top: -100px; /* Initially hidden above the viewport */
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9); /* Dark background */
    color: #fff;
    text-align: center;
    padding: 10px 0;
    z-index: 1010; /* Above the nav */
    transition: top 0.5s ease; /* Smooth transition */
}

.scroll-header.visible {
    top: 0; /* Show the header */
    
}

.scroll-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

header {
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
}

/* Overlay text */
header .overlay {
    background: rgba(0, 0, 0, 0.5); /* Dark overlay */
    padding: 0;
    border-radius: 10px;
    margin: 0;
    transition: transform 0.5s ease; /* Smooth transition */
    position: relative;
}

header h1 {
    font-size: 4rem;
    margin: 0;
}



/* Navigation */
nav {
    background: rgba(0, 0, 0, 0.7); /* Semi-transparent black */
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    margin: 0;
}

nav ul {
    padding: 0;
    list-style: none;
    text-align: center;
    margin: 0;
}

nav ul li {
    display: inline;
    margin: 0 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
}

/* Sections */
section {
    padding: 60px 0;
    background: rgba(0, 0, 0, 0.8); /* Dark background for sections */
}

section h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.5rem;
}

section p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.8;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.9); /* Dark background */
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 25px; /* Increased gap between icons */
}

.social-icons a {
    color: #fff;
    font-size: 2rem; /* Larger icons */
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #77aaff; /* Light blue on hover */
}

.welcome-text {
    transition: transform 0.5s ease; /* Smooth transition */
}

/* Add to existing styles.css */

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 16px;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid #77aaff;
    background: #fff;
}

.form-group textarea {
    resize: vertical;
}

.btn-submit {
    background: #77aaff;
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-submit:hover {
    background: #5599ee;
    transform: translateY(-2px);
}

.btn-submit:disabled {
    background: #999;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    max-width: 600px;
    margin: 20px auto;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(76, 175, 80, 0.9);
    color: #fff;
}

.form-message.error {
    display: block;
    background: rgba(244, 67, 54, 0.9);
    color: #fff;
}

.email-link {
    text-align: center;
    margin-top: 30px;
}

.email-link a {
    color: #77aaff;
    text-decoration: none;
}

/* Admin Section */
.admin-section {
    min-height: 500px;
}

.admin-login {
    max-width: 400px;
    margin: 40px auto;
    padding: 30px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
}

.admin-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
}

.btn-logout {
    background: #f44336;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: #d32f2f;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(0, 0, 0, 0.6);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card i {
    font-size: 2.5rem;
    color: #77aaff;
    margin-bottom: 15px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
}

.stat-label {
    color: #aaa;
    font-size: 0.9rem;
}

/* Tabs */
.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.tab-btn:hover {
    background: rgba(119, 170, 255, 0.8);
}

.tab-btn.active {
    background: #77aaff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
}

.btn-refresh {
    background: #77aaff;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-refresh:hover {
    background: #5599ee;
}

/* Messages List */
.messages-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message-item {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #77aaff;
}

.message-item.unread {
    border-left-color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.message-name {
    font-weight: bold;
    color: #77aaff;
    font-size: 1.2rem;
}

.message-email {
    color: #aaa;
}

.message-date {
    color: #888;
    font-size: 0.9rem;
}

.message-subject {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #fff;
}

.message-body {
    color: #ddd;
    line-height: 1.6;
    margin-bottom: 10px;
    white-space: pre-wrap;
}

.message-meta {
    color: #888;
    font-size: 0.9rem;
}

/* Visitors List */
.visitors-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.visitor-item {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
}

.visitor-info {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.visitor-ip,
.visitor-location {
    color: #77aaff;
}

.visitor-details {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    color: #aaa;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.visitor-agent {
    color: #888;
    font-size: 0.85rem;
    word-break: break-all;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #888;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-tabs {
        flex-direction: column;
    }

    .tab-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .message-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* Admin Link in Footer */
.admin-link {
    margin-top: 15px;
}

.admin-link a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.admin-link a:hover {
    color: #77aaff;
}

.admin-link {
    margin-top: 15px;
}

.admin-link a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.admin-link a:hover {
    color: #77aaff;
}

/* Contact Form Styles */
.contact-form {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 16px;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid #77aaff;
    background: #fff;
}

.form-group textarea {
    resize: vertical;
}

.btn-submit {
    background: #77aaff;
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-submit:hover {
    background: #5599ee;
    transform: translateY(-2px);
}

.btn-submit:disabled {
    background: #999;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    max-width: 600px;
    margin: 20px auto;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(76, 175, 80, 0.9);
    color: #fff;
}

.form-message.error {
    display: block;
    background: rgba(244, 67, 54, 0.9);
    color: #fff;
}

.email-link {
    text-align: center;
    margin-top: 30px;
}

.email-link a {
    color: #77aaff;
    text-decoration: none;
}