@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --deep-navy: #0a1628;
    --rich-purple: #5b2c8e;
    --gold-accent: #d4af37;
    --soft-grey: #f5f6fa;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-muted: #6c757d;
    --border: #dee2e6;
    --success: #00b894;
    --btn-bg: #1a2d4a;
    --btn-hover-bg: #0a1628;
    --btn-text: #ffffff;
    --btn-hover-text: #d4af37;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}
body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background: var(--soft-grey);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── Splash Screen ── */
#splash {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--deep-navy);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s;
}
#splash.fade-out {
    opacity: 0;
    visibility: hidden;
}
.splash-content {
    text-align: center;
}
.splash-logo {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    animation: splashPulse 1.2s ease-in-out infinite alternate;
    margin-bottom: 1.5rem;
}
@keyframes splashPulse {
    from { transform: scale(0.95); opacity: 0.7; }
    to { transform: scale(1.05); opacity: 1; }
}
.splash-gif {
    max-width: 280px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* ── Overlay Menu ── */
.overlay-menu {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--deep-navy);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
}
.overlay-menu.active {
    opacity: 1;
    visibility: visible;
}
.overlay-menu ul {
    list-style: none;
    text-align: center;
}
.overlay-menu li {
    margin: 1.5rem 0;
}
.overlay-menu a {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s;
}
.overlay-menu a:hover {
    color: var(--gold-accent);
}
.overlay-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2.5rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
}

/* ── Navbar (original dark + blur, logo pushed left) ── */
.navbar {
    background: rgba(10, 22, 40, 0.9);
    backdrop-filter: blur(8px);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 0.8rem 1rem;
}

/* Reduce container padding to move brand left */
.navbar .container {
    padding-left: 0.5rem;
    max-width: 100%;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-right: auto;
    padding-left: 0;
}

.brand-logo {
    height: 40px;
    width: auto;
    display: block;
}

.brand-text {
    font-weight: 500;          /* same as nav-link */
    font-size: 1rem;          /* same as nav-link (default Bootstrap) */
    color: rgba(255,255,255,0.85) !important;  /* same opacity as nav-link */
    white-space: nowrap;
    text-decoration: none;
}

.navbar .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
}
.navbar .nav-link:hover {
    color: var(--gold-accent) !important;
}
.navbar-toggler {
    border: none;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,0.9)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* ── Hero (shorter) ── */
.hero {
    position: relative;
    height: 75vh;
    min-height: 450px;
    background: linear-gradient(135deg, var(--deep-navy), var(--rich-purple));
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}
#particleCanvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
}
.hero-content {
    position: relative;
    z-index: 1;
}
.hero h2 {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
}
.hero p {
    font-size: 1.3rem;
    opacity: 0.9;
}
.btn-cta {
    background: var(--btn-bg);
    color: var(--btn-text);
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}
.btn-cta:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    color: var(--btn-hover-text);
    background: var(--btn-hover-bg);
}

/* ── Brand Section ── */
.brand-section {
    padding: 4rem 0;
    background-color: #ffffff;
    background-image: radial-gradient(circle, rgba(10, 22, 40, 0.12) 1px, transparent 1px);
    background-size: 16px 16px;
}
.brand-section h2 {
    text-align: left;
    font-size: 2rem;
    font-weight: 700;
    color: var(--deep-navy);
    margin-bottom: 0;
    line-height: 1.15;
}
.brand-section .text-muted {
    text-align: left;
    margin-bottom: 0;
    line-height: 1.2;
}

/* Repair layout */
.repair-layout {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}
.repair-left-col {
    flex: 1 1 60%;
    min-width: 300px;
}
.repair-right-col {
    transform: translateX(-5rem);
}
.repair-right-col.hidden {
    display: none;
}
.assembly-gif {
    max-width: 350px;
    width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
}

/* Brand grid */
#brandContainer {
    display: block !important;
}
.brand-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 160px);
    justify-content: start;
    gap: 1.5rem;
    margin-top: 0.15rem;
}

/* Brand cards */
.brand-card {
    --glow-x: 50%;
    --glow-y: 50%;
    width: 160px;
    min-height: 190px;
    background: linear-gradient(145deg, #ffffff, #f0f0f5);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(10, 22, 40, 0.12),
                0 2px 6px rgba(10, 22, 40, 0.06);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.4s ease;
    opacity: 0;
    transform: translateY(40px);
    animation: cardEntrance 0.6s ease forwards;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
}
@keyframes cardEntrance {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.brand-card:hover {
    transform: translateY(-14px);
    box-shadow: 0 24px 48px rgba(10, 22, 40, 0.2),
                0 8px 16px rgba(10, 22, 40, 0.1);
}
.brand-card::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 24px;
    padding: 4px;
    background: radial-gradient(
        circle at var(--glow-x) var(--glow-y),
        rgba(212, 175, 55, 1) 0%,
        rgba(212, 175, 55, 0.8) 25%,
        rgba(212, 175, 55, 0.3) 50%,
        transparent 75%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}
.brand-card:hover::before {
    opacity: 1;
}
.brand-card .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.4);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
    z-index: 1;
}
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}
.brand-card img,
.brand-card i {
    width: 3.5rem;
    height: 3.5rem;
    object-fit: contain;
    font-size: 3.2rem;
    margin-bottom: 1rem;
    color: var(--deep-navy);
    filter: drop-shadow(0 2px 4px rgba(10, 22, 40, 0.1));
    position: relative;
    z-index: 2;
}
.brand-card h5 {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--deep-navy);
    line-height: 1.3;
    position: relative;
    z-index: 2;
    margin: 0;
}
.brand-card img[alt="Samsung"] {
    width: 4rem;
    height: 4rem;
}

/* Series buttons */
.series-btn {
    display: inline-block;
    margin: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: white;
    border: 2px solid var(--deep-navy);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    color: var(--deep-navy);
}
.series-btn:hover {
    background: var(--deep-navy);
    color: white;
    border-color: var(--deep-navy);
}

/* Repair flow spacing */
#seriesTitle,
#selectedBrandTitle,
#selectedDeviceTitle {
    margin-bottom: 0.35rem;
    line-height: 1.2;
}
.back-link {
    margin-bottom: 0.5rem;
    display: inline-block;
}

/* Device list */
.device-list-section {
    padding: 2rem 0;
    display: none;
}
.device-list-section.active {
    display: block;
}
.device-list-item {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
}
.device-list-item:hover {
    background: #f0f0f0;
}

/* Repair options */
.repair-option-card {
    background: white;
    border: 2px solid var(--success);
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: box-shadow 0.2s;
}
.repair-option-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.repair-name {
    font-weight: 600;
    font-size: 1rem;
}
.repair-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--success);
    line-height: 1.2;
}
.repair-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}
.btn-sm-cta {
    background: var(--btn-bg);
    color: var(--btn-text);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 0.25rem;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}
.btn-sm-cta:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    color: var(--btn-hover-text);
    background: var(--btn-hover-bg);
}

/* Misc panels */
.notlisted-container,
.other-brands-container,
.series-container {
    display: none;
    text-align: center;
    padding: 2rem 0;
}
.back-link {
    color: var(--btn-bg);
    cursor: pointer;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

/* About */
.about-section {
    padding: 3rem 0;
    background: #eef3f9;
    border-top: 1px solid rgba(10,22,40,0.08);
    border-bottom: 1px solid rgba(10,22,40,0.08);
}
.about-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--deep-navy);
    margin-bottom: 1.5rem;
    text-align: center;
}
.about-section img {
    max-width: 200px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

/* FAQ */
.faq-section {
    padding: 3rem 0;
    background: #ffffff;
    border-top: 1px solid rgba(10,22,40,0.08);
}
.faq-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--deep-navy);
    margin-bottom: 0.5rem;
    text-align: center;
}

/* Contact */
.contact-section {
    padding: 2.5rem 0;
    background: linear-gradient(135deg, #08111f, #0a1628);
    color: white;
    text-align: center;
}
.contact-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.contact-section a {
    color: var(--gold-accent);
    text-decoration: none;
    font-weight: 600;
}
.contact-section a:hover {
    text-decoration: underline;
}
.contact-section .lead,
.contact-section p {
    color: rgba(255,255,255,0.92);
    margin-bottom: 0.35rem;
}

/* Footer */
footer {
    background: #060d18;
    color: rgba(255,255,255,0.78);
    text-align: center;
    padding: 1rem;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}
footer p {
    margin-bottom: 0.15rem;
    line-height: 1.4;
}
footer p:last-child {
    margin-bottom: 0;
}

/* Force remove any shadow from GIF */
.repair-right-col,
.repair-right-col *,
.assembly-gif {
    box-shadow: none !important;
    filter: none !important;
    border-radius: 0 !important;
    background: transparent !important;
}

/* Smooth scroll offset */
#services, #about, #faq, #contact, #booking, #repairOptionsContainer,
#deviceListContainer, #seriesContainer, #notListedContainer,
#otherBrandsContainer {
    scroll-margin-top: 80px;
}

/* GIF Slideshow */
.gif-slideshow {
    position: relative;
    width: 100%;
    max-width: 350px;
    height: 400px;
    overflow: hidden;
}
.gif-slideshow .assembly-gif {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 1s ease;
}
.gif-slideshow .assembly-gif.active {
    opacity: 1;
    position: relative;
}

/* Centering panels */
#seriesContainer,
#deviceListContainer,
#repairOptionsContainer {
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
#seriesContainer {
    text-align: center;
}
#otherBrandsContainer,
#notListedContainer {
    text-align: center;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}


/* Mobile hamburger button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}
.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.mobile-menu-btn.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile slide-down nav panel */
.mobile-nav-panel {
    display: none;
    flex-direction: column;
    background: rgba(10, 22, 40, 0.97);
    backdrop-filter: blur(8px);
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 999;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
.mobile-nav-panel.open {
    max-height: 400px;
    padding: 1rem 0;
}
.mobile-nav-panel a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: color 0.2s, background 0.2s;
}
.mobile-nav-panel a:last-child {
    border-bottom: none;
}
.mobile-nav-panel a:hover {
    color: var(--gold-accent);
    background: rgba(255,255,255,0.04);
}


/* Responsive */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 1.8rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .repair-layout {
        flex-direction: column;
        gap: 1.5rem;
    }
    .repair-right-col {
        transform: translateX(0) !important;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .assembly-gif,
    .gif-slideshow {
        max-width: 280px;
        height: auto;
        margin: 0 auto;
    }
    .brand-grid {
        grid-template-columns: repeat(2, 150px) !important;
        justify-content: center !important;
        gap: 1rem !important;
    }
    .brand-card {
        width: 150px;
        min-height: 170px;
        padding: 1rem;
    }
    .brand-card img,
    .brand-card i {
        width: 2.8rem;
        height: 2.8rem;
        font-size: 2.6rem;
    }
    .brand-card h5 {
        font-size: 0.85rem;
    }
    .series-btn {
        margin: 0.3rem;
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
	.mobile-menu-btn {
		display: flex;
	}
	.mobile-nav-panel {
		display: flex;
	}
	.navbar .d-none.d-lg-flex {
		display: none !important;
	}
	.navbar-toggler {
		display: none !important;
	}
    /* Allow brand text to wrap on very small screens */
    .brand-text {
        white-space: normal;
        font-size: 1.2rem;
    }
    #seriesContainer,
    #deviceListContainer,
    #repairOptionsContainer,
    #otherBrandsContainer,
    #notListedContainer {
        max-width: 100%;
        padding: 1rem;
    }
    .repair-option-card {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    .repair-right {
        align-items: center;
    }
    .brand-section {
        padding: 2rem 0;
    }
    .gif-slideshow {
        height: 300px;
    }
	/* Center logo on mobile */
    .navbar-brand {
        justify-content: center;
        width: 100%;
        margin: 0;
    }
    .brand-text {
        display: none;   /* hide the tagline text */
    }
    .navbar .container {
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }
    /* Ensure the logo image itself is centered */
	.brand-logo {
        margin: 0 auto;
	

    }
} 

/* Repair actions (Text + Email buttons) */
.repair-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-email {
    background: #1a2d4a;
    color: #fff;
}

.btn-email:hover {
    background: #0a1628;
    color: var(--gold-accent);
}

.contact-section .btn-cta {
    min-width: 200px;
    text-align: center;
}

/* Booking Section */
.booking-section {
    padding: 4rem 0;
    background: #ffffff;
    border-top: 1px solid rgba(10,22,40,0.08);
}
.booking-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--deep-navy);
    margin-bottom: 0.5rem;
}
.booking-section .lead {
    color: var(--text-muted);
}

/* Outline CTA button variant */
.btn-cta-outline {
    background: var(--btn-bg);
    color: var(--btn-text) !important;
    border: none;
}
.btn-cta-outline:hover {
    background: var(--btn-hover-bg);
    color: var(--btn-hover-text) !important;
}

/* Calendly responsive fix */
@media (max-width: 768px) {
    .navbar .d-none.d-lg-flex {
        display: none !important;
    }
    .navbar-toggler {
        display: block !important;
    }
}

/* Global Book button override – works on all screens */
.btn-book {
    background: var(--btn-bg);
    color: var(--btn-text);
}
.btn-book:hover {
    background: var(--btn-hover-bg);
    color: var(--btn-hover-text);
}


.repair-option-card {
    flex-wrap: nowrap;
}

.repair-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
}

.btn-sm-cta {
    padding: 0.4rem 0.7rem;
    font-size: 0.8rem;
    white-space: nowrap;
}


/* ── Social Icons ── */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-social a {
    color: rgba(255,255,255,0.8);
    font-size: 1.8rem;
    transition: color 0.3s, transform 0.2s;
}

.footer-social a:hover {
    color: var(--gold-accent);
    transform: scale(1.1);
}

.contact-social {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.contact-social .social-icon {
    color: rgba(255,255,255,0.9);
    font-size: 2.2rem;
    transition: color 0.3s, transform 0.2s;
}

.contact-social .social-icon:hover {
    color: var(--gold-accent);
    transform: scale(1.1);
}
