/*
 * 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) === */
/* Base */
.hero-section {
    position: relative;
    overflow: hidden;
}

/* Desktop & Tablet */
@media (min-width: 769px) {
    .hero-section {
        height: 70vh;
        min-height: 400px;
    }

    .carousel,
    .carousel-inner,
    .carousel-item {
        height: 100%;
    }

    .slider-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* Mobile – NO extra space */
@media (max-width: 768px) {
    .hero-section {
        height: auto;
        min-height: 0;
    }

    .carousel,
    .carousel-inner,
    .carousel-item {
        height: auto;
    }

    .slider-img {
        width: 100%;
        height: auto;
        display: block; /* removes bottom gap */
        object-fit: contain;
    }
}


/* === 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);
}