/* Basic Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #e0e0e0; /* Light gray text for dark background */
    background-color: #1a1a2e; /* Deep dark blue/purple */
    background-image: radial-gradient(circle at center, #2c004d 0%, #1a1a2e 70%); /* Subtle gradient */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

a {
    color: #8a2be2; /* Blue violet for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #a052ee; /* Lighter blue violet on hover */
}

h1, h2, h3 {
    color: #f0f0f0; /* Slightly lighter heading color */
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }

p {
    margin-bottom: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
    text-decoration: none; /* Ensure no underline on anchor buttons */
}

.btn-primary {
    background-color: #5d00a0; /* Darker purple for login */
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #7b00d0;
    transform: translateY(-2px);
}

.btn-accent {
    background-image: linear-gradient(to right, #8a2be2 0%, #4c00a0 100%); /* Blue Violet to Dark Purple */
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.4);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(138, 43, 226, 0.6);
}

.btn-secondary {
    background-color: transparent;
    color: #8a2be2;
    border: 2px solid #8a2be2;
}

.btn-secondary:hover {
    background-color: #8a2be2;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    background-color: rgba(18, 18, 30, 0.8); /* Slightly transparent dark background */
    padding: 15px 0;
    backdrop-filter: blur(5px); /* Frosted glass effect */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #8a2be2; /* Logo highlight color */
    letter-spacing: 1px;
}

.nav-links ul {
    list-style: none;
    display: flex;
}

.nav-links ul li {
    margin-left: 30px;
}

.nav-links ul li a {
    color: #e0e0e0;
    font-weight: 400;
    font-size: 1.05rem;
    position: relative;
    padding-bottom: 5px; /* Space for underline effect */
}

.nav-links ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #8a2be2;
    transition: width 0.3s ease;
}

.nav-links ul li a:hover::after {
    width: 100%;
}

.auth-buttons .btn {
    padding: 10px 20px;
    font-size: 0.95rem;
}

/* Hero Section */
.hero-section {
    padding: 100px 0;
    text-align: center;
    background-image: url('https://via.placeholder.com/1500x800/1e1e1e/8a2be2?text=Background+Pattern'); /* Subtle tech-like pattern */
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(26, 26, 46, 0.8) 0%, rgba(44, 0, 77, 0.8) 100%); /* Dark overlay */
    z-index: 1;
}

.hero-section .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    text-align: left;
    position: relative; /* Bring content above overlay */
    z-index: 2;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(to right, #e0e0e0, #8a2be2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: #c0c0c0;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 50px rgba(138, 43, 226, 0.3); /* Stronger shadow */
    animation: float 3s ease-in-out infinite alternate;
}

@keyframes float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-15px); }
}


/* How It Works Section */
.how-it-works {
    background-color: #1e1e3b; /* Slightly lighter dark background */
    padding: 80px 0;
    text-align: center;
}

.how-it-works h2 {
    margin-bottom: 3rem;
    font-size: 2.8rem;
}

.how-it-works .steps {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.how-it-works .step {
    flex-basis: calc(25% - 30px); /* 4 items per row */
    min-width: 250px;
    background-color: #2c2c4a; /* Card background */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(138, 43, 226, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.how-it-works .step:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 30px rgba(138, 43, 226, 0.4);
}

.how-it-works .step .icon {
    font-size: 3.5rem;
    color: #8a2be2;
    margin-bottom: 1.5rem;
    display: block; /* Ensures icon is centered */
}

.how-it-works .step h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.how-it-works .step p {
    font-size: 0.95rem;
    color: #c0c0c0;
}


/* Gallery Preview Section */
.gallery-preview {
    padding: 80px 0;
    text-align: center;
    background-color: #1a1a2e; /* Match body background */
}

.gallery-preview h2 {
    margin-bottom: 3rem;
    font-size: 2.8rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Responsive grid */
    gap: 30px;
    margin-bottom: 2rem;
}

.gallery-item {
    background-color: #2c2c4a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(138, 43, 226, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(138, 43, 226, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover; /* Crop image to fit */
    display: block;
    filter: brightness(0.9); /* Slightly darken images */
    transition: filter 0.3s ease;
}

.gallery-item:hover img {
    filter: brightness(1.1); /* Slightly brighten on hover */
}


/* Footer */
.footer {
    background-color: #12121d; /* Even darker footer */
    color: #b0b0b0;
    padding: 50px 0 20px;
    margin-top: auto; /* Push footer to bottom */
    border-top: 1px solid rgba(138, 43, 226, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
    text-align: left;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-section h3 {
    color: #f0f0f0;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
}

.footer-section p {
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #b0b0b0;
}

.footer-section ul li a:hover {
    color: #8a2be2;
}

.social-icons a {
    color: #b0b0b0;
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #8a2be2;
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-section .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-image {
        margin-top: 40px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .how-it-works .step {
        flex-basis: calc(50% - 30px); /* 2 items per row */
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-section {
        min-width: unset;
    }

    .social-icons {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
    }

    .nav-links ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links ul li {
        margin: 0 15px 10px;
    }

    .auth-buttons {
        margin-top: 15px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .how-it-works .step {
        flex-basis: 100%; /* 1 item per row */
        max-width: 400px;
    }

    .how-it-works .steps {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    h2 {
        font-size: 2rem;
    }
}
