html {
    scroll-behavior: smooth;
}

:root {
    /* Dark Theme Colors: black and dark grey */
    --primary-color: #fefefe;     /* Text color */
    --background-color: #000;     /* Main background (black) */
    --card-bg: #1a1a1a;           /* Dark grey for cards and sections */
    --accent-color: #c0392b;      /* Accent color (dark red) */
    --dark-gray: #999;            /* Secondary text */
    --max-width: 1200px;
    --transition: all 0.3s ease;
    font-size: 16px;
    font-family: sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background: var(--background-color);
    color: var(--primary-color);
    overflow-x: hidden;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: var(--transition);
}

.preloader.fade-out {
    opacity: 0;
}

.loader {
    border: 6px solid #333;
    border-top: 6px solid var(--accent-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {transform: rotate(360deg);}
}

/* Utility Classes */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Fade-in Animation */
.fade-in {
    opacity: 0;
    animation: fadeInUp 1s forwards;
}
@keyframes fadeInUp {
    0% {opacity:0; transform: translateY(20px);}
    100% {opacity:1; transform: translateY(0);}
}

/* Navbar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    position: relative;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
}

.brand .logo {
    height: 40px;
    margin-right: 0.5rem;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.25rem;
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* Hover effect for nav icons (no tooltip) */
.nav-icon:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background: #a93226;
}

/* Hero Section */
.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top:0; left:0;
    width:100%; height:100%;
    background: rgba(0,0,0,0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1.2s forwards;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1.4s forwards;
}

/* Scroll Arrow */
.scroll-toggle {
    position: absolute;
    bottom: 20px;
    z-index: 3;
    animation: fadeInUp 1.6s forwards;
}
.scroll-icon {
    color: var(--primary-color);
    font-size: 2rem;
    transition: color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    position: relative;
}
.scroll-icon:hover {
    color: var(--accent-color);
    transform: translateY(5px);
}

/* Sections */
section {
    padding: 3rem 0;
}

h2 {
    text-align: center;
    margin-bottom: 2rem;
}

p { 
    text-align: center;
}

li { 
    text-align: center;
}
.about p {
    line-height: 1.6;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Highlights */
.highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.highlight-card {
    background: var(--card-bg);
    flex: 1 1 300px;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.highlight-card h3 {
    margin-bottom: 1rem;
}

/* Products Page */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 2rem;
}

.product-card {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 4px;
    max-width: 50%;
    margin: 0 auto; /* Centers the card horizontally */
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.product-card img {
    max-width: 100%;
    border-radius: 4px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card h3 {
    margin-bottom: 0.5rem;
}

.product-card p {
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.price {
    font-weight: bold;
    color: var(--accent-color);
}

.services .service-list {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.6;
    color: var(--primary-color);
}

.services .service-list li {
    margin: 1rem 0;
}

/* Footer */
.footer {
    background: #111;
    color: #fff;
    padding: 1rem 0;
    margin-top: 2rem;
    flex-shrink: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.footer-content p {
    margin: 0;
    flex-shrink: 0;
}

main {
    flex: 1 0 auto; /* This expands main to fill available space and push footer down */
}

.social-links {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.social-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* In a real site, you'd implement a burger menu */
    }

    .hero h1 {
        font-size: 2rem;
    }

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

    .highlights {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
}

.customization, .info-section {
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-align: center;
}

.carousel-section {
    text-align: center;
    padding: 3rem 0;
}

.carousel-section h2 {
    margin-bottom: 2rem;
}

.carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 600px; /* Adjust as needed */
    margin: 0 auto;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease; /* Smooth animation */
    
}

.carousel-track img {
    min-width: 100%; /* Each image takes full container width */
    display: block;
    object-fit: cover;
    border-radius: 4px;
}

/* Buttons */
.carousel-btn {
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    padding: 0.75rem; /* Slightly more padding for a better click area */
    border-radius: 50%;
    transition: background 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4); /* Subtle depth */
}

.carousel-btn:hover {
    background: rgba(0,0,0,0.7);
    transform: translateY(-50%) scale(1.1); /* Enlarge slightly on hover */
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95); /* Press effect on click */
}

.carousel-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(192,57,43,0.5); /* Accent-colored focus ring */
}
.prev {
    left: 10px;
}

.next {
    right: 10px;
}
