/* POLAR ICE - Custom CSS */

/* Color Variables */
:root {
    --primary-color: #009bdf;
    --black: #000000;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #6c757d;
    --transition: all 0.3s ease;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.text-accent {
    color: var(--primary-color) !important;
}

.btn-accent {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transition: var(--transition);
}

.btn-accent:hover {
    background-color: #007bb8;
    border-color: #007bb8;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 155, 223, 0.3);
}

/* Navigation */
.navbar {
    background-color: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.95) !important;
    padding: 0.5rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white) !important;
}

.navbar-brand img {
    height: 60px;
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background: linear-gradient(135deg, var(--black) 0%, #1a1a1a 100%);
    background-image: url('img/main-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
}

.hero-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 155, 223, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(0, 155, 223, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 155, 223, 0);
    }
}

/* Feature Items */
.feature-item {
    padding: 0.5rem 0;
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateX(5px);
    background-color: rgba(0, 155, 223, 0.1);
    border-radius: 5px;
}

/* Production Cards */
.production-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 1px solid #e9ecef;
}

.production-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.production-icon i {
    transition: var(--transition);
}

.production-card:hover .production-icon i {
    transform: scale(1.1);
    color: #007bb8;
}

/* Ice Type Cards */
.ice-type-card {
    transition: var(--transition);
}

.ice-type-card:hover {
    transform: translateY(-5px);
}

.ice-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.ice-image-container img {
    transition: var(--transition);
}

.ice-type-card:hover .ice-image-container img {
    transform: scale(1.05);
}

/* Gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.gallery-item img {
    transition: var(--transition);
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 155, 223, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay i {
    font-size: 2rem;
    color: var(--white);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Contact Cards */
.contact-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: var(--transition);
}

.contact-link:hover {
    text-decoration: none;
    color: inherit;
}

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(0, 155, 223, 0.3);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 155, 223, 0.1), transparent);
    transition: left 0.5s ease;
}

.contact-link:hover .contact-card::before {
    left: 100%;
}

.contact-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(0, 155, 223, 0.2);
}

.contact-icon i {
    transition: var(--transition);
}

.contact-card:hover .contact-icon i {
    transform: scale(1.1);
    color: #007bb8;
}

.contact-action {
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.contact-card:hover .contact-action {
    opacity: 1;
    transform: translateY(0);
}

.contact-action .btn {
    pointer-events: none;
    border: 1px solid var(--primary-color);
}

.contact-card:hover .contact-action .btn {
    background-color: var(--primary-color);
    animation: pulse-btn 1.5s infinite;
}

@keyframes pulse-btn {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 155, 223, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 155, 223, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 155, 223, 0);
    }
}

/* Delivery Hours Card */
.delivery-hours-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.hours-item {
    transition: var(--transition);
}

.hours-item:hover {
    transform: translateX(5px);
}

/* Map Container Large */
.map-container-large {
    height: 100%;
}

.map-container-large iframe {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.map-container-large iframe:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Call to Action Section */
.cta-section {
    background: rgba(0, 155, 223, 0.1);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.cta-section:hover {
    background: rgba(0, 155, 223, 0.15);
    transform: translateY(-3px);
}

.btn-outline-light:hover {
    background-color: var(--white);
    border-color: var(--white);
    color: var(--black);
}

/* Footer */
footer {
    background-color: var(--black) !important;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    color: var(--white) !important;
}

/* Smooth Scrolling */
.smooth-scroll {
    scroll-behavior: smooth;
}

/* Section Padding */
section {
    padding: 5rem 0;
}

@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
    
    .hero-section {
        height: 80vh;
        background-attachment: scroll;
        margin-top: 50px;
    }
    
    .display-2 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    section {
        padding: 2rem 1rem;
    }
    .hero-logo {
        width: 70px;
        height: 70px;
    }
    .production-card,
    .ice-type-card {
        margin-bottom: 1.2rem;
        width: 100%;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    .gallery-item img {
        height: 120px;
        object-fit: cover;
        border-radius: 8px;
    }
    .certificate-item img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        display: block;
        margin: 0 auto;
    }
    .social-links a {
        width: 36px;
        height: 36px;
        line-height: 36px;
        margin: 0 4px;
        font-size: 1.1rem;
    }
    .display-2 {
        font-size: 2rem;
    }
    .display-5 {
        font-size: 1.3rem;
    }
    .feature-item {
        padding-left: 0.5rem;
        font-size: 0.95rem;
    }
    .contact-card {
        border-radius: 10px;
        padding: 0.8rem;
    }
    .contact-action .btn {
        font-size: 0.9rem;
        padding: 0.3rem 0.7rem;
    }
    .map-container-large {
        min-height: 180px;
    }
    footer {
        padding: 1.5rem 0;
    }
}

/* Certificate Items */
.certificate-item {
    transition: var(--transition);
}

.certificate-item:hover {
    transform: translateX(10px);
}

.certificate-item img {
    border-radius: 10px;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: #007bb8;
    transform: translateY(-3px);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

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

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Utility Classes */
.shadow-custom {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.border-accent {
    border-color: var(--primary-color) !important;
}

.bg-accent {
    background-color: var(--primary-color) !important;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .navbar-nav {
        text-align: center;
        padding-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        margin: 0.25rem 0;
    }
}

@media (max-width: 576px) {
    .hero-logo {
        width: 80px;
        height: 80px;
    }
    
    .production-card,
    .ice-type-card {
        margin-bottom: 2rem;
    }
    
    .gallery-item img {
        height: 200px;
    }
}
