/*
 * ElectroCorp Custom Styles
 * Author: Gemini AI
 */

/* === CSS Variables: Base & Colors === */
:root {
    /* TODO: Gradient Start: #f60 (Orange/Red) */
    --primary-gradient-start: #f60;
    /* TODO: Gradient End: #075aa3e (Blue/Cyan - Note: This is an invalid 7-digit hex with transparency, using a valid blue near the specified color and adjusting the opacity with rgba/opacity where needed for a subtle effect) */
    --primary-gradient-end: #075aa3; /* Clean Blue */
    --primary-color: var(--primary-gradient-end);
    --secondary-color: #f60; /* Used for accents */
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #fff;
    --border-radius: 8px;
    --transition-speed: 0.3s;
    --box-shadow-subtle: 0 4px 6px rgba(0, 0, 0, 0.05);

    /* Fonts */
    --font-family-base: 'Poppins', sans-serif;
}

/* === Base Styles === */
body {
    font-family: var(--font-family-base);
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--secondary-color);
}

/* === Custom Bootstrap Overrides & Utility Classes === */
.btn-primary-cta {
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    border: none;
    color: var(--white);
    font-weight: 600;
    padding: 10px 25px;
    border-radius: var(--border-radius);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.btn-primary-cta:hover,
.btn-primary-cta:focus {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    color: var(--white);
}

/* === Header & Navigation === */
.top-header {
    background: linear-gradient(to right, var(--primary-gradient-end), var(--primary-gradient-start));
    color: var(--white);
}

.top-header a {
    color: var(--white);
    text-decoration: none;
}

.top-header a:hover {
    color: var(--light-bg);
}

.navbar {
    background-color: var(--white);
    box-shadow: var(--box-shadow-subtle);
    transition: top 0.3s; /* for sticky behavior */
}

/* Sticky Navbar on Scroll (applied via JS) */
.navbar.sticky {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar-nav .nav-link {
    font-weight: 500;
    text-transform: uppercase;
    margin-right: 15px;
    color: var(--text-color);
    transition: color var(--transition-speed), border-bottom var(--transition-speed);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 5px;
}

/* === Notice Section (Marquee-like) === */
.notice-container {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    position: relative;
    /* Hide the initial text until JS starts the scroll */
}

/* In styles.css, around line 105 */
.notice-text {
    display: inline-block;
    padding-right: 100%; 
    /* KEY CHANGE: Increased duration for slower scroll */
    animation: scroll-text 60s linear infinite;
    cursor: default;
}

/* In styles.css, around line 115 */
/* Animation Keyframes for the Marquee-like scroll */
@keyframes scroll-text {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(-100%);
    }
}

/* Pause animation on hover/touch (JS handles touch/focus pause) */
.notice-container:hover .notice-text {
    animation-play-state: paused;
}
/* Add this new block to styles.css */
#notice-section {
    transition: box-shadow 0.3s ease;
}

#notice-section:hover {
    /* Subtle glow/lift on hover */
    box-shadow: 0 0 10px rgba(255, 99, 71, 0.3); /* Using a reddish/accent color for the glow */
}
/* === Hero Section (Carousel) === */
.hero-section {
    position: relative;
    height: 70vh; /* Responsive height */
    min-height: 400px;
}

.carousel-item {
    height: 70vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: opacity 1s ease-in-out; /* Smooth fade transition */
}

/* Add this new block to your styles.css */
.carousel-caption {
    bottom: 3rem;
    z-index: 10;
    text-align: left;
    left: 10%;
    right: 10%;

    /* New styles for text-only background effect */
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent dark background */
    padding: 20px 30px; /* Padding around the text */
    border-radius: 10px; /* Rounded corners */
    backdrop-filter: blur(4px); /* OPTIONAL: Adds a slight blur effect to what is behind the background */
    
    /* Ensure the caption text itself is easy to read */
    color: white;
}

.carousel-caption {
    bottom: 3rem;
    z-index: 10;
    text-align: left;
    left: 10%;
    right: 10%;
}

.carousel-caption h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Mobile adjustments for carousel caption */
@media (max-width: 768px) {
    .hero-section, .carousel-item {
        height: 50vh;
        min-height: 300px;
    }
    .carousel-caption {
        bottom: 1rem;
    }
    .carousel-caption h2 {
        font-size: 1.5rem;
    }
    .carousel-caption p {
        font-size: 0.9rem;
    }
}

/* === Product Cards === */
.product-card {
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: box-shadow var(--transition-speed), transform var(--transition-speed), border-color var(--transition-speed);
}

.product-card:hover {
    box-shadow: 0 8px 16px #00000026;
    transform: scale(1.02);
    border-color: var(--secondary-color);
}

/* Product Card Button Hover Effect */
.product-view-btn {
    transition: background-color var(--transition-speed), color var(--transition-speed);
}
.product-view-btn:hover {
    background-color: var(--secondary-color) !important;
    color: var(--white) !important;
    border-color: var(--secondary-color);
}

/* === Profile Card === */
.profile-card {
    border-top: 5px solid var(--secondary-color);
}

/* === Footer === */
.site-footer {
    /* Apply the custom gradient defined in :root */
    background: linear-gradient(to right, var(--primary-gradient-end), var(--primary-gradient-start));
    /* You can try 'to top', 'to left', or '135deg' for different effects */
    
    color: var(--white); /* Ensure text is readable */
    padding-top: 5rem; 
    padding-bottom: 3rem;
}

/* Ensure links and icons stand out on the gradient background */
.site-footer a {
    color: #eee; /* Light gray for links */
    transition: color var(--transition-speed);
}

.site-footer a:hover {
    color: var(--secondary-color); /* Hover color for accent */
}

.quick-links li a {
    display: block;
    padding: 2px 0;
}

.footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.2); /* Lighter divider for contrast */
}

/* Map Placeholder Styling */
.map-placeholder {
    border: 2px solid var(--light-bg);
}
/* === Media Queries for Mobile Responsiveness (Slider Caption) === */
@media (max-width: 767.98px) {
    /* Target screens smaller than the Bootstrap 'md' breakpoint */
    
    .carousel-caption {
        /* Reduce padding around the text box on small screens */
        padding: 10px 15px; 
        
        /* Center the box and adjust vertical position */
        bottom: 2rem;
        left: 5%;
        right: 5%;
        text-align: center !important; /* Center the text inside the box */
    }

    .carousel-caption h2 {
        font-size: 1.5rem; /* Smaller heading size */
    }

    .carousel-caption p {
        font-size: 0.9rem; /* Smaller paragraph size */
        margin-bottom: 5px; /* Reduce margin under paragraph */
    }
}