/* PowerPro Shop Home Page Styles */

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #2b2b2b;
    color: #ffffff;
    line-height: 1.6;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1f1f1f;
    padding: 20px 50px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.navbar a {
    color: #fff;
    text-decoration: none;
    margin-left: 30px;
    font-weight: 500;
    transition: color 0.3s;
}

.navbar a:hover {
    color: #ff4d4d;
}

.brand {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
}

.login-btn {
    border: 1px solid #ff4d4d;
    padding: 8px 15px;
    border-radius: 4px;
    color: #ffffff;
    transition: background-color 0.3s, color 0.3s;
}

.login-btn:hover {
    background-color: #ff4d4d;
    color: #fff;
}

/* Hero Section */
.content-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80vh;
    padding: 60px 100px;
    position: relative;
    background-color: #121212;
    overflow: hidden;
}

.content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.content h1 {
    font-size: 48px;
    margin-bottom: 30px;
    line-height: 1.2;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.content p {
    font-size: 16px;
    margin-bottom: 40px;
    line-height: 1.8;
    color: #e0e0e0;
}

.buttons {
    display: flex;
    gap: 15px;
}

.buttons button {
    background-color: transparent;
    border: 2px solid #ff4d4d;
    color: #fff;
    padding: 12px 24px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.buttons .signup {
    background-color: #ff4d4d;
    color: #fff;
}

.buttons button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 77, 77, 0.3);
}

.image-boxes {
    display: flex;
    justify-content: center;
    position: relative;
    width: 600px;
    height: 600px;
    z-index: 2;
}

.box1, .box2 {
    position: absolute;
    width: 450px;
    height: 350px;
    background-color: #1a1a1a;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.box1 {
    top: 50px;
    left: 50px;
    z-index: 1;
    transform: rotate(-5deg);
}

.box2 {
    top: 170px;
    left: 150px;
    z-index: 2;
    transform: rotate(5deg);
}

.box1:hover, .box2:hover {
    transform: scale(1.02) rotate(0);
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    z-index: 3;
}

.box1 img, .box2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.box1:hover img, .box2:hover img {
    transform: scale(1.1);
}

/* Featured Products Section */
.featured-products {
    padding: 80px 50px;
    background-color: #2b2b2b;
}

.section-title {
    font-size: 36px;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    font-weight: 700;
    letter-spacing: 1px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #ff4d4d;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.product-card {
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.product-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.product-image:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 70%, rgba(0,0,0,0.7) 100%);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.product-info {
    padding: 25px 20px;
}

.product-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.product-price {
    color: #ff4d4d;
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 20px;
}

.view-btn {
    background-color: transparent;
    border: 2px solid #ff4d4d;
    color: #ff4d4d;
    padding: 10px 18px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.view-btn:hover {
    background-color: #ff4d4d;
    color: #fff;
    transform: translateY(-3px);
}

/* Why Choose Us Section */
.why-choose {
    padding: 80px 50px;
    background-color: #121212;
    position: relative;
}

.why-choose:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/pattern.png') repeat;
    opacity: 0.05;
    z-index: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

.feature-card {
    background-color: #1a1a1a;
    padding: 35px 25px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #ff4d4d;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.feature-card:hover:before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.feature-icon {
    font-size: 45px;
    color: #ff4d4d;
    margin-bottom: 25px;
    transition: transform 0.5s;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2);
}

.feature-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
}

.feature-card p {
    color: #d0d0d0;
    line-height: 1.7;
}

/* Newsletter Section */
.newsletter {
    padding: 80px 50px;
    background-color: #1a1a1a;
    text-align: center;
    position: relative;
}

.newsletter:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,77,77,0.5) 50%, transparent 100%);
}

.newsletter p {
    max-width: 700px;
    margin: 0 auto 40px;
    color: #d0d0d0;
    font-size: 18px;
}

.newsletter-form {
    max-width: 600px;
    margin: 30px auto 0;
    display: flex;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    border-radius: 4px;
    overflow: hidden;
}

.newsletter-input {
    flex: 1;
    padding: 18px 20px;
    border: none;
    font-size: 16px;
    background-color: #2b2b2b;
    color: #fff;
}

.newsletter-input::placeholder {
    color: #aaa;
}

.newsletter-input:focus {
    outline: none;
    background-color: #333;
}

.newsletter-btn {
    background-color: #ff4d4d;
    color: #fff;
    border: none;
    padding: 0 35px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.newsletter-btn:hover {
    background-color: #e53e3e;
}

/* Footer Styles */
.footer {
    background-color: #101010;
    padding: 70px 50px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    font-weight: 600;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #ff4d4d;
}

.footer-column p {
    color: #9e9e9e;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 15px;
}

.footer-column ul li a {
    color: #9e9e9e;
    text-decoration: none;
    transition: color 0.3s, padding-left 0.3s;
    position: relative;
}

.footer-column ul li a:before {
    content: '›';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: opacity 0.3s, left 0.3s;
}

.footer-column ul li a:hover {
    color: #ff4d4d;
    padding-left: 15px;
}

.footer-column ul li a:hover:before {
    opacity: 1;
    left: 0;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #1a1a1a;
    border-radius: 50%;
    color: #fff;
    transition: background-color 0.3s, transform 0.3s;
}

.social-link:hover {
    background-color: #ff4d4d;
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid #2a2a2a;
    color: #9e9e9e;
    font-size: 14px;
}

/* Mobile menu styles */
.mobile-menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100%;
    background-color: #1f1f1f;
    z-index: 999;
    padding: 50px 30px;
    transition: left 0.3s ease;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu a {
    display: block;
    margin: 25px 0;
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s, padding-left 0.3s;
}

.mobile-menu a:hover {
    color: #ff4d4d;
    padding-left: 10px;
}

/* Hero overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(18,18,18,1) 0%, rgba(18,18,18,0.8) 50%, rgba(18,18,18,0.4) 100%);
    z-index: 1;
}

/* Responsive Styles */
@media screen and (max-width: 1200px) {
    .content-container {
        padding: 50px 50px;
    }
    
    .image-boxes {
        width: 500px;
        height: 500px;
    }
    
    .box1, .box2 {
        width: 380px;
        height: 300px;
    }
}

@media screen and (max-width: 991px) {
    .content-container {
        flex-direction: column;
        height: auto;
        padding: 60px 40px;
        text-align: center;
    }
    
    .content {
        margin-bottom: 60px;
        max-width: 100%;
    }
    
    .buttons {
        justify-content: center;
    }
    
    .image-boxes {
        width: 100%;
        height: 500px;
    }
    
    .box1, .box2 {
        width: 320px;
        height: 250px;
    }
    
    .box1 {
        left: calc(50% - 160px);
        transform: translateX(-50px) rotate(-5deg);
    }
    
    .box2 {
        left: calc(50% - 160px);
        transform: translateX(50px) rotate(5deg);
    }
    
    .featured-products,
    .why-choose,
    .newsletter,
    .footer {
        padding: 60px 40px;
    }
}

@media screen and (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }
    
    .links {
        display: none;
    }
    
    .mobile-menu-icon {
        display: block;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .content-container {
        padding: 40px 20px;
        min-height: auto;
    }
    
    .content h1 {
        font-size: 32px;
    }
    
    .image-boxes {
        height: 400px;
    }
    
    .box1, .box2 {
        width: 260px;
        height: 200px;
    }
    
    .product-grid,
    .features-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-input {
        border-radius: 4px 4px 0 0;
        padding: 15px;
    }
    
    .newsletter-btn {
        border-radius: 0 0 4px 4px;
        padding: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .content h1 {
        font-size: 28px;
    }
    
    .buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .buttons button {
        width: 100%;
    }
    
    .image-boxes {
        height: 350px;
    }
    
    .box1, .box2 {
        width: 220px;
        height: 170px;
    }
    
    .featured-products,
    .why-choose,
    .newsletter {
        padding: 40px 20px;
    }
    
    .product-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Font Face for CakePHP compatibility */
@font-face {
    font-family: 'cakefont';
    src: url('../font/cakedingbats-webfont.eot');
    src: url('../font/cakedingbats-webfont.eot?#iefix') format('embedded-opentype'),
    url('../font/cakedingbats-webfont.woff2') format('woff2'),
    url('../font/cakedingbats-webfont.woff') format('woff'),
    url('../font/cakedingbats-webfont.ttf') format('truetype'),
    url('../font/cakedingbats-webfont.svg#cake_dingbatsregular') format('svg');
    font-weight: normal;
    font-style: normal;
}