/* ==================== RESET & ROOT VARIABLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #4169E1;
    --light-blue: #E8F2FF;
    --charcoal: #2C3E50;
    --soft-gray: #F7F9FC;
    --success-green: #10B981;
    --white: #FFFFFF;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--charcoal);
    transition: background 0.4s, color 0.4s;
}

/* ==================== DARK MODE COLORS ==================== */
html.dark {
    --primary-blue: #5B7FE8;
    --light-blue: #1a2b44;
    --charcoal: #e0e7ff;
    --soft-gray: #1e293b;
    --white: #0f172a;
    background: #0f172a;
    color: #e0e7ff;
}

html.dark footer,
html.dark .footer-section a,
html.dark .footer-bottom p {
    color: #cbd5e1 !important;
}

html.dark .footer-section h4 {
    color: #93bbfc !important;
}

html.dark .footer-section a:hover {
    opacity: 1;
    color: #ffffff !important;
}

html.dark nav,
html.dark .service-card,
html.dark .contact-card,
html.dark .blog-card {
    background: #1e293b;
    border-color: #334155;
}

html.dark .service-card:hover,
html.dark .blog-card:hover {
    border-color: #5B7FE8;
}

html.dark footer {
    background: #0a0e17;
}

html.dark .trust-section {
    background: #1e293b;
}

html.dark .about-section {
    background: #334155;
}

html.dark .trust-item h3 {
    color: #5B7FE8;
}

html.dark .about-text p {
    color: #94a3b8;
}

html.dark .contact-card a {
    color: #94a3b8;
}

html.dark .contact-card a:hover {
    color: #5B7FE8;
}

html.dark .section-subtitle {
    color: #94a3b8;
}

html.dark .service-card p {
    color: #94a3b8;
}

html.dark .trust-item p {
    color: #94a3b8;
}

html.dark .hero-toggle {
    color: #e0e7ff;
    background: rgba(0,0,0,0.25);
}

html.dark .hero-toggle:hover {
    background: rgba(0,0,0,0.4);
}

html.dark .coming-soon {
    background: #1e293b;
}

html.dark .coming-soon h2 {
    color: #5B7FE8;
}

html.dark .coming-soon p {
    color: #94a3b8;
}

html.dark .blog-date {
    color: #64748b;
}

html.dark .blog-card h3 {
    color: #e0e7ff;
}

html.dark .blog-card p {
    color: #94a3b8;
}

html.dark .page-hero {
    background: #1e293b;
}

/* ==================== NAVIGATION ==================== */
nav {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--charcoal);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-blue);
}

.phone-btn {
    background: var(--primary-blue);
    color: var(--white) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.phone-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(65, 105, 225, 0.3);
}

.phone-btn .full {
    display: inline;
}

.phone-btn .short {
    display: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--charcoal);
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    background-image: url('images/blue-laptop.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 6rem 2rem;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(65, 105, 225, 0.7);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.hero > * {
    position: relative;
    z-index: 3;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-button {
    background: var(--white);
    color: var(--primary-blue);
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.hero-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.25);
    color: white;
    border: none;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    z-index: 10;
}

.hero-toggle:hover {
    background: rgba(255,255,255,0.4);
    transform: scale(1.1);
}

#sunIcon, #moonIcon {
    position: absolute;
    transition: opacity 0.3s;
}

html.dark #sunIcon {
    opacity: 1;
}

html.dark #moonIcon {
    opacity: 0;
}

html:not(.dark) #sunIcon {
    opacity: 0;
}

html:not(.dark) #moonIcon {
    opacity: 1;
}

/* ==================== CONTAINER ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* ==================== TRUST INDICATORS ==================== */
.trust-section {
    background: var(--soft-gray);
    padding: 3rem 2rem;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.trust-item {
    text-align: center;
}

.trust-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.trust-item h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

/* ==================== SERVICES SECTION ==================== */
.services-section {
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--charcoal);
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
}

.service-category {
    margin-bottom: 4rem;
}

.category-title {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 2rem;
    text-align: center;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    border: 2px solid var(--soft-gray);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-color: var(--primary-blue);
}

.service-icon {
    font-size: 3rem !important;
    margin-bottom: 1.5rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;                      /* prevents any vertical shrinking */
}

.service-card h3 {
    color: var(--charcoal);
    margin-bottom: 1rem;
}

.service-card p {
    color: #666;
    margin-bottom: 1rem;
}

/* ==================== ABOUT SECTION ==================== */
.about-section {
    background: var(--soft-gray);
}

.about-content {
    display: flex;
    gap: 3rem;
    align-items: center;
}

/* Let text take more space than the image on desktop (optional) */
.about-text {
    flex: 2;
}

.about-text h2 {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.about-text p {
    margin-bottom: 1rem;
    color: #666;
    font-size: 1.1rem;
}

.about-image {
    flex: 1;
    background: var(--light-blue);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    font-size: 0; /* removes leftover emoji spacing issues */
}

.about-photo {
    max-width: 360px;       /* adjust to taste */
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;         /* centers the image */
    border-radius: 12px;
    object-fit: cover;
}

/* Mobile layout – stack vertically, text then image */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }

    .about-image {
        order: 2;           /* ensure image comes after text */
        margin-top: 1.5rem; /* spacing under the text */
    }

    .about-text {
        order: 1;
    }
}

/* ==================== CONTACT SECTION ==================== */
.contact-section {
    background: var(--white);
    text-align: center;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    background: var(--soft-gray);
    padding: 2rem;
    border-radius: 12px;
}

.contact-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.contact-card a {
    color: var(--charcoal);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
}

.contact-card a:hover {
    color: var(--primary-blue);
}

/* ==================== FOOTER ==================== */
footer {
    background: var(--charcoal);
    color: var(--white);
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.7;
}

/* ==================== BLOG PAGE STYLES ==================== */
.page-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #5B7FE8 100%);
    color: var(--white);
    padding: 4rem 2rem 3rem;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.2rem;
    opacity: 0.95;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background: var(--white);
    border: 2px solid var(--soft-gray);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-color: var(--primary-blue);
}

.blog-image {
    background: var(--light-blue);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.blog-content {
    padding: 1.5rem;
}

.blog-date {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.blog-card h3 {
    color: var(--charcoal);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.blog-card p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.read-more {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
}

.read-more:hover {
    text-decoration: underline;
}

.blog-category {
    display: inline-block;
    background: var(--light-blue);
    color: var(--primary-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.coming-soon {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--soft-gray);
    border-radius: 12px;
    margin-top: 2rem;
}

.coming-soon-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.coming-soon h2 {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.coming-soon p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.newsletter {
    background: var(--primary-blue);
    color: var(--white);
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 3rem;
}

.newsletter h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.newsletter p {
    margin-bottom: 2rem;
    opacity: 0.95;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input {
    flex: 1;
    min-width: 250px;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 0.75rem 2rem;
    background: var(--charcoal);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
}

/* ==================== TEXT ALIGNMENT ==================== */
.about-text p,
.service-card p,
.trust-item p,
.contact-card p,
.section-subtitle {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

.about-text p,
.service-card p {
    line-height: 1.7;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
    /* Navigation */
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    /* Phone Button */
    .phone-btn {
        padding: 0.55rem 1rem;
        font-size: 0.9rem;
        border-radius: 8px !important;
    }

    .phone-btn .full {
        display: none;
    }

    .phone-btn .short {
        display: inline;
    }

    /* Hero */
    .hero h1 {
        font-size: 2rem;
    }

    .hero-toggle {
        top: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
    }

    /* About */
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    /* Text Alignment */
    body {
        text-align: center;
    }

    .about-text p,
    .service-card p,
    .trust-item p,
    .contact-card p,
    .section-subtitle,
    .section-title,
    .category-title,
    .footer-section,
    .footer-bottom p {
        text-align: center;
    }

    .about-text p,
    .service-card p,
    .trust-item p {
        text-align: center;
        hyphens: auto;
    }

    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    /* Blog */
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        min-width: 100%;
    }

    .page-hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .phone-btn {
        padding: 0.5rem 0.85rem;
        font-size: 0.85rem;
        border-radius: 8px !important;
    }
}

.trust-item h3,
.trust-item p,
.service-card h3,
.service-card p,
.section-title,
.section-subtitle {
    text-align: center;
}

.section-subtitle {
    margin-left: auto;
    margin-right: auto;
    max-width: 800px;
}
/* Tablet (iPad) – show only the short version of the phone number */

@media (min-width: 768px) and (max-width: 1024px) {

    .phone-btn .full {

        display: none;

    }

    .phone-btn .short {

        display: inline;

    }

}