/* IFIXLAPTOPS Custom Styles */

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Global Styles */
body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    letter-spacing: -0.01em;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.02em;
    font-weight: 700;
}

a{
    text-decoration: none;
}

.display-1, .display-2, .display-3, .display-4, .display-5 {
    letter-spacing: -0.03em;
    font-weight: 800;
}

p, .lead {
    letter-spacing: -0.005em;
}

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

.hero-content h1{
    line-height:1.1;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    letter-spacing: -0.02em;
    color: var(--primary-color) !important;
}

/* Dynamic logo styling */
.logo-i {
    font-weight: 900;
}

.logo-fix {
    font-weight: 900;
}

.logo-laptops {
    font-weight: 400;
}

.logo-icon {
    color: var(--primary-color);
    font-size: 1.8rem;
    transition: all 0.3s ease;
    vertical-align: middle;
    position: relative;
    top: -4px;
}

.logo-img {
    height: 42px;
    vertical-align: middle;
    transition: all 0.3s ease;
    position: relative;
    top: -2px;
}

.navbar-brand:hover .logo-icon {
    transform: scale(1.1);
    color: var(--secondary-color);
}

.navbar-brand:hover .logo-img {
    transform: scale(1.05);
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    letter-spacing: -0.01em;
}

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

/* Support nav item styling */
.navbar-light .navbar-nav .nav-link[data-bs-toggle="modal"] i {
    color: var(--primary-color);
}

.navbar-light .navbar-nav .nav-link.active {
    position: relative;
}

.navbar-light .navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 1px;
}

/* Mobile navigation active state fix */
@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link.active::after {
        bottom: 0;
        left: 0;
        transform: none;
        width: 100%;
        height: 2px;
        border-radius: 0;
    }
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(to bottom, #f8fafc 0%, #e2e8f0 60%, #F8F9FA 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>') no-repeat center center;
    background-size: cover;
    opacity: 0.5;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

/* Desktop vertical centering - override Bootstrap */
@media (min-width: 769px) {
    .hero-section {
        display: flex;
        align-items: center;
        min-height: 100vh;
        padding-top: 0;
        padding-bottom: 0;
    }
    
    .hero-section .container {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-section .row {
        min-height: auto !important;
        width: 100%;
        margin: 0;
    }
    
    .hero-content {
        padding-top: 0;
        padding-bottom: 0;
    }
}

.hero-stats .stat-item {
    padding: 1rem;
    border-radius: 6px;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-stats .stat-item:hover {
    transform: translateY(-5px);
}

/* HomeStars stat item styling */
.stat-homestars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.stat-homestars-logo {
    height: 40px;
    width: auto;
    opacity: 0.8;
}

.stat-homestars-stars {
    color: var(--warning-color);
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .hero-content h1{
        font-size: 2.5rem;
    }
    
    .hero-stats .stat-item {
        height: 120px;
        padding: 1rem 0.75rem;
    }
    
    .stat-homestars {
        flex-direction: column !important;
        gap: 0.3rem !important;
        margin-bottom: 0.5rem;
        align-items: center;
        justify-content: center;
    }
    
    .stat-homestars-logo {
        height: 40px;
    }
    
    .stat-homestars-stars {
        font-size: 1.3rem;
    }
    
    .hero-stats .stat-item h3 {
        margin-bottom: 0.5rem;
    }
    
    .hero-stats .stat-item p {
        font-size: 0.9rem;
        line-height: 1.2;
    }
}

.hero-buttons .btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.hero-text-section {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.hero-typography h2 {
    font-weight: 900;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.hero-typography p {
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 1.1rem !important;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Services Section */
#services {
    background: linear-gradient(to bottom, #F8F9FA 0%, #F8F9FA 60%, #FFFFFF 100%) !important;
}

.service-card {
    background: white;
    border-radius: 6px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

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

.service-icon {
    color: var(--primary-color);
    display: inline-block;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 2.5rem;
}

.service-icon-img {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.service-icon-img img {
    height: 50px;
    width: auto;
}

.service-card h4 {
    color: #1f2937;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-card p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Reviews Section */
.homestars-badge {
    font-size: 1.5rem;
}

.homestars-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.homestars-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.homestars-badge .bi-star-fill {
    font-size: 1.8rem;
    margin: 0;
}

.homestars-logo-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.homestars-logo {
    height: 48px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.homestars-logo:hover {
    opacity: 1;
}

.homestars-text {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 1.1rem;
}

/* Testimonials Carousel */
.testimonial-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 6px;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); */
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-rating {
    color: var(--warning-color);
}

.testimonial-rating i {
    font-size: 1.2rem;
    margin: 0 2px;
}

.testimonial-rating .rating-text {
    font-weight: 700;
    color: var(--primary-color);
    margin-left: 0.5rem;
}

.testimonial-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--dark-color);
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    font-size: 1rem;
    color: var(--dark-color);
}

.testimonial-author strong {
    color: var(--primary-color);
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary-color);
    background-image: none !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.carousel-control-prev-icon::after,
.carousel-control-next-icon::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.carousel-control-prev-icon::after {
    border-width: 8px 12px 8px 0;
    border-color: transparent white transparent transparent;
    margin-left: -2px;
}

.carousel-control-next-icon::after {
    border-width: 8px 0 8px 12px;
    border-color: transparent transparent transparent white;
    margin-right: -2px;
}

/* Mobile carousel controls */
@media (max-width: 768px) {
    .carousel-control-prev,
    .carousel-control-next {
        width: 3rem;
        height: 3rem;
        top: auto;
        bottom: -1.8rem;
        opacity: 1;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .carousel-control-prev {
        left: 25%;
        transform: translateX(-50%);
    }
    
    .carousel-control-next {
        right: 25%;
        transform: translateX(50%);
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 2rem;
        height: 2rem;
        pointer-events: none;
    }
    
    .carousel-control-prev-icon::after {
        border-width: 5px 8px 5px 0;
        margin-left: -1px;
    }
    
    .carousel-control-next-icon::after {
        border-width: 5px 0 5px 8px;
        margin-right: -1px;
    }
    
    /* Remove shadows on mobile testimonials */
    .testimonial-card {
        box-shadow: none;
    }
    
    /* Hide HomeStars stars on mobile */
    .homestars-stars {
        display: none;
    }
}

.carousel-indicators {
    margin-bottom: -1rem;
    gap: 0.5rem;
}

.carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(37, 99, 235, 0.3);
    border: none;
    margin: 0;
    transition: all 0.3s ease;
}

.carousel-indicators [data-bs-target].active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Contact Section */
.contact-section {
    background: #f8fafc;
}

.contact-item {
    padding: 1rem 0;
}

.contact-item i {
    font-size: 2rem;
    display: block;
}

.contact-buttons .btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-buttons .btn:hover {
    transform: translateY(-2px);
}

.coffee-link {
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

/* Contact Form */
.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.contact-form .form-floating > .form-control,
.contact-form .form-floating > .form-select {
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.contact-form .form-floating > .form-control:focus,
.contact-form .form-floating > .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.contact-form .form-floating > label {
    color: #64748b;
    font-weight: 500;
}

.contact-form .btn-primary {
    border-radius: 50px;
    padding: 12px 40px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.contact-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.contact-alternatives {
    text-align: center;
}

.contact-alternatives .btn {
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 500;
}

/* Loading animation */
.spin {
    animation: spin 1s linear infinite;
}

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

/* Support Modal */
.teamviewer-logo {
    height: 20px;
    width: auto;
}

.support-feature {
    padding: 1rem;
    line-height: 1.4 !important;
}

.support-feature i {
    font-size: 2rem;
    display: block;
}

.support-instructions ol {
    max-width: 400px;
    margin: 0 auto;
}

.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-header {
    position: relative;
    padding: 2rem 2rem 1rem;
}

.modal-body {
    padding: 1rem 2rem 2rem;
}

.modal-footer {
    padding: 1rem 2rem 2rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .contact-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0 !important;
    }
    
    .teamviewer-logo {
        height: 20px;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .support-feature {
        padding: 0.5rem;
    }
    
    /* Hide support info on mobile */
    .support-info {
        display: none;
    }
    
    /* Contact form mobile styling */
    .contact-form {
        padding: 1.5rem;
        margin: 0 0.75rem;
    }
    
    .contact-alternatives .d-flex {
        flex-direction: column;
        gap: 0.5rem !important;
    }
    
    .contact-alternatives .btn {
        width: 100%;
    }
    
    /* Center footer text on mobile */
    footer .col-md-6 {
        text-align: center !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        padding-top: 180px;
    }
    
    .hero-typography h2 {
        font-size: 3rem !important;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.5rem !important;
    }
    
    .hero-stats .row {
        margin: 0;
    }
    
    .hero-stats .stat-item {
        margin-bottom: 1rem;
    }
    
    /* Add padding to hero stats on mobile */
    .hero-stats {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

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

/* Section Spacing */
section {
    scroll-margin-top: 80px;
    padding-top: 160px !important;
    padding-bottom: 160px !important;
}

/* Override for hero section which has its own padding */
.hero-section {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Mobile section spacing - tighter padding */
@media (max-width: 768px) {
    section {
        padding-top: 80px !important;
        padding-bottom: 80px !important;
    }
}

/* Button Animations */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}


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

.service-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.border-radius-custom {
    border-radius: 15px;
}

/* Print Styles */
@media print {
    .navbar,
    .hero-buttons,
    .floating-icons {
        display: none;
    }
    
    .hero-section {
        background: white;
    }
    
    .service-card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}
