/* Specific styles for the Web Design page */

/* Hero section styling - consistent with other pages */
.page-hero {
    text-align: center;
    padding: 60px 20px;
    background-color: #0a0a0a;
}

.page-title {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #a0a0a0;
    max-width: 600px;
    margin: 0 auto;
}

/* Website gallery styling */
.website-gallery .container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 40px 20px;
}

/* Individual Website Item as a Card */
.website-item {
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex: 1 1 350px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transform: translateY(0px) scale(1);
}

.website-item:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.85);
}

/* Add more specific selector as backup */
section.website-gallery .website-item {
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex: 1 1 350px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transform: translateY(0px) scale(1);
}

section.website-gallery .website-item:hover {
    transform: translateY(-8px) scale(1.04) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.85) !important;
}

.website-preview-container {
    width: 100%;
    position: relative;
    background-color: #000;
}

.website-screenshot {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top center;
    border-bottom: 1px solid #333;
}

.website-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 1.2rem;
    font-weight: 500;
    pointer-events: none;
}

.website-preview-container:hover .website-overlay {
    opacity: 1;
}

.website-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.website-info h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.website-info p {
    font-size: 1rem;
    line-height: 1.6;
    color: #a0a0a0;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.cta-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--accent-blue, #007bff);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    text-align: center;
}

.cta-button:hover {
    background-color: var(--accent-hover, #0056b3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
    .website-item {
        flex-basis: 90%;
        max-width: 90%;
    }
}

/* Starry background effect */
#stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: #000;
}

.star {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    animation: twinkle linear infinite;
}
@keyframes twinkle {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Header alignment fix */
.main-nav a, .dropbtn { line-height: 1.0; }
