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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: #0056b3;
    transition: color 0.3s ease;
}

a:hover {
    color: #003d82;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.btn, .btn-details, .view-all-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0056b3;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
}

.btn:hover, .btn-details:hover, .view-all-btn:hover {
    background-color: #003d82;
}

.view-all-btn {
    display: block;
    width: 220px;
    margin: 30px auto 0;
    font-weight: 500;
}

section {
    padding: 60px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

section.animate {
    opacity: 1;
    transform: translateY(0);
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-align: center;
    color: #002855;
}

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo h1 {
    font-size: 1.8rem;
    color: #0056b3;
    font-weight: 700;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #333;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 3px;
}

nav ul li a:hover,
nav ul li a.active {
    color: #0056b3;
    background-color: rgba(0, 86, 179, 0.1);
}

/* Mobile Menu Button */
.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #002855;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/mobile-hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 100px 0;
    opacity: 1;
    transform: none;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.search-box {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto;
}

.search-box form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.search-box input,
.search-box select {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.search-box button {
    padding: 12px 25px;
    background-color: #0056b3;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.search-box button:hover {
    background-color: #003d82;
}

/* Featured Brands */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
}

.brand-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.brand-card img {
    height: 140px;
    object-fit: contain;
    width: 100%;
    padding: 15px;
}

.brand-card h3 {
    font-size: 1.5rem;
    padding: 15px 15px 5px;
    color: #002855;
}

.brand-card p {
    padding: 0 15px 15px;
    color: #666;
}

.brand-card a {
    display: block;
    padding: 10px 15px;
    background-color: #f5f5f5;
    text-align: center;
    color: #0056b3;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.brand-card a:hover {
    background-color: #e9e9e9;
}

/* Latest Phones */
.latest-phones {
    background-color: #f0f5ff;
}

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

.phone-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.phone-img {
    position: relative;
}

.phone-img img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    padding: 15px;
    background-color: #f9f9f9;
}

.price-tag {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: #0056b3;
    color: #fff;
    padding: 5px 10px;
    font-weight: 600;
    font-size: 0.9rem;
}

.phone-card h3 {
    font-size: 1.3rem;
    padding: 15px 15px 10px;
    color: #002855;
    text-align: center;
}

.specs-highlights {
    padding: 0 15px 15px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.specs-highlights p {
    font-size: 0.9rem;
    color: #555;
}

.specs-highlights i {
    color: #0056b3;
    margin-right: 5px;
}

.btn-details {
    display: block;
    margin: 0 15px 15px;
    text-align: center;
    padding: 8px 0;
}

/* Price Ranges */
.range-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.range-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
    color: #333;
}

.range-card:hover {
    transform: translateY(-5px);
    background-color: #0056b3;
    color: #fff;
}

.range-icon {
    font-size: 2.5rem;
    color: #0056b3;
    margin-bottom: 15px;
}

.range-card:hover .range-icon {
    color: #fff;
}

.range-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.range-card p {
    color: #666;
}

.range-card:hover p {
    color: #e0e0e0;
}

/* Services */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #fff;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.service-card i {
    font-size: 2.5rem;
    color: #0056b3;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #002855;
}

/* Testimonials */
.testimonials {
    background-color: #002855;
    color: #fff;
}

.testimonials h2 {
    color: #fff;
}

.testimonial {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.testimonial-author h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.testimonial-author p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.8;
}

/* Testimonial Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #fff;
}

/* Newsletter */
.newsletter {
    background-color: #f5f5f5;
    text-align: center;
}

.newsletter p {
    max-width: 600px;
    margin: 0 auto 30px;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 12px 25px;
    background-color: #0056b3;
    color: #fff;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #003d82;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #0056b3;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 99;
    transition: background-color 0.3s ease;
}

.back-to-top:hover {
    background-color: #003d82;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 60px 0 20px;
}

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

.footer-about h3,
.footer-links h3,
.footer-brands h3,
.footer-contact h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #fff;
}

.footer-about p {
    color: #bbb;
    margin-bottom: 15px;
}

.footer-links ul li,
.footer-brands ul li {
    margin-bottom: 10px;
}

.footer-links ul li a,
.footer-brands ul li a {
    color: #bbb;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover,
.footer-brands ul li a:hover {
    color: #fff;
}

.footer-contact p {
    margin-bottom: 15px;
    color: #bbb;
}

.footer-contact i {
    margin-right: 10px;
    color: #0056b3;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #333;
    color: #fff;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: #0056b3;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.footer-bottom p {
    color: #888;
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .search-box input,
    .search-box select,
    .search-box button {
        width: 100%;
    }
    
    .search-box button {
        border-radius: 5px;
        margin-top: 10px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
        border-radius: 5px;
    }
    
    .newsletter-form button {
        margin-top: 10px;
    }
    
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 15px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    nav ul li {
        margin: 5px 10px;
    }

    /* Mobile menu styles */
    .mobile-menu-button {
        display: block;
        position: absolute;
        top: 15px;
        right: 15px;
    }

    nav ul {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }

    nav ul li a {
        display: block;
        padding: 10px;
    }
    
    .phone-grid,
    .brand-grid,
    .range-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .specs-highlights {
        grid-template-columns: 1fr;
    }
} 