/* styles.css */
:root {
    /* Enhanced color scheme */
    --primary-color: #1d3557;    
    --secondary-color: #457b9d;  
    --accent-color: #e63946;     
    --light-color: #f1faee;      
    --dark-color: #1d1e22;       
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: var(--light-color);
}

/* Navigation */
nav {
    background-color: var(--primary-color);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    color: var(--light-color);
}

.logo img {
    height: 40px;
    margin-right: 1rem;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    color: var(--light-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(29, 53, 87, 0.8), rgba(29, 53, 87, 0.9)), url('Branding/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--light-color);
    padding: 0 1rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('Branding/texture-overlay.png');
    opacity: 0.1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Fixed CTA Button */
.cta-button {
    background-color: var(--accent-color);
    color: var(--light-color);
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    transition: transform 0.3s ease;
    display: inline-block;
    z-index: 1;
}

.cta-button:hover {
    transform: scale(1.05);
}

/* Featured Builds Section */
.featured-builds {
    padding: 5rem 5%;
    background-color: var(--dark-color); /* Changed from light to dark */
    color: var(--light-color);     /* Added for text visibility */
}

.builds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    justify-items: center;
}

.build-card {
    background: rgba(45, 45, 45, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    color: var(--light-color);
    width: 300px; /* Fixed width */
    height: 400px; /* Fixed height */
}

.build-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
}

.build-card img {
    width: 100%;
    height: 250px; /* Fixed height for images */
    object-fit: cover;
}

.build-card h3, .build-card p {
    padding: 1rem;
}

/* Gallery Section */
.gallery {
    padding: 5rem 5%;
    background-color: var(--dark-color);
    color: var(--light-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

/* About Section */
.about {
    padding: 5rem 5%;
    background-color: var(--dark-color); /* Changed from light to dark */
    color: var(--light-color);     /* Added for text visibility */
}

.about-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}



.stats {
    display: flex;
    justify-content: space-around;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-item i {
    font-size: 2rem;
    color: var(--accent-color);
}

/* Contact Section */
.contact {
    padding: 5rem 5%;
    background-color: var(--dark-color);
    color: var(--light-color);
    text-align: center;
}

.social-links {
    margin-top: 2rem;
}

.social-links a {
    color: var(--light-color);
    font-size: 2rem;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
}

/* Section headings enhancement */
h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--light-color);
    text-align: center;
    padding: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
}

/* Add these styles to your styles.css file */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Adjusts for fixed navbar */
}

.nav-links li a {
    color: var(--light-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    justify-items: center;
}

.gallery-grid img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}
