/* ============================================
   ONE STEP AHEAD MAINTENANCE — Website Styles
   Color Palette:
     - Dark:    #0a0a0a, #111111, #1a1a1a
     - Accent:  #00b4d8 (cyan blue from logo)
     - Light:   #ffffff, #f5f5f5, #e0e0e0
   ============================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #333;
    line-height: 1.6;
    background: #fff;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: #00b4d8;
    color: #fff;
    border-color: #00b4d8;
}

.btn-primary:hover {
    background: #0096b7;
    border-color: #0096b7;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 180, 216, 0.3);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-outline:hover {
    background: #fff;
    color: #0a0a0a;
    transform: translateY(-2px);
}


/* ---------- NAVIGATION ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

.nav-logo-img {
    height: 90px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: #fff;
    padding: 8px 16px;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #00b4d8;
}

.nav-cta {
    background: #00b4d8;
    color: #fff !important;
    margin-left: 8px;
}

.nav-cta:hover {
    background: #0096b7;
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}


/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #0a0a0a;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(0, 180, 216, 0.08) 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.hero-logo {
    max-width: 420px;
    margin: 0 auto 30px;
}

.hero-tagline {
    color: #00b4d8;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hero-sub {
    color: #ccc;
    font-size: 1.15rem;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll a {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}


/* ---------- SECTION HEADERS ---------- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: 'Roboto Slab', serif;
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.section-line {
    width: 60px;
    height: 4px;
    background: #00b4d8;
    margin: 0 auto 16px;
    border-radius: 2px;
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
}


/* ---------- ABOUT ---------- */
.about {
    padding: 100px 0;
    background: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.about-text h3 {
    font-family: 'Roboto Slab', serif;
    font-size: 1.8rem;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.about-text p {
    color: #555;
    margin-bottom: 16px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat i {
    font-size: 1.6rem;
    color: #00b4d8;
    width: 40px;
    text-align: center;
}

.stat span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #444;
    line-height: 1.4;
}


/* ---------- SERVICES ---------- */
.services {
    padding: 100px 0;
    background: #f7f8fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: #00b4d8;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #00b4d8, #0096b7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-icon i {
    font-size: 1.6rem;
    color: #fff;
}

.service-card h3 {
    font-family: 'Roboto Slab', serif;
    font-size: 1.2rem;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.service-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
}


/* ---------- PORTFOLIO ---------- */
.portfolio {
    padding: 100px 0;
    background: #0a0a0a;
}

.portfolio .section-header h2 {
    color: #fff;
}

.portfolio .section-subtitle {
    color: #999;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
    height: 320px;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.08);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay span {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
}


/* ---------- CONTACT ---------- */
.contact {
    padding: 100px 0;
    background: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    font-family: 'Roboto Slab', serif;
    font-size: 1.6rem;
    color: #1a1a1a;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-item i {
    font-size: 1.2rem;
    color: #00b4d8;
    margin-top: 4px;
    width: 24px;
    text-align: center;
}

.contact-item strong {
    display: block;
    color: #1a1a1a;
    margin-bottom: 2px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-item a,
.contact-item span {
    color: #555;
    font-size: 1rem;
}

.contact-item a:hover {
    color: #00b4d8;
}

.contact-social {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.contact-social a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.contact-social a:hover {
    background: #00b4d8;
    color: #fff;
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-full {
    grid-column: span 2;
}

.contact-form label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    color: #333;
    transition: border-color 0.3s ease;
    background: #fafafa;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #00b4d8;
    background: #fff;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    justify-content: center;
    font-size: 1.05rem;
    padding: 16px;
}


/* ---------- FOOTER ---------- */
.footer {
    background: #111;
    color: #aaa;
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #222;
}

.footer-logo {
    height: 50px;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 320px;
}

.footer-links h4,
.footer-contact h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.footer-links a {
    color: #aaa;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #00b4d8;
}

.footer-contact p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.footer-contact i {
    color: #00b4d8;
    margin-right: 8px;
    width: 18px;
}

.footer-contact a {
    color: #aaa;
}

.footer-contact a:hover {
    color: #00b4d8;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 0.85rem;
    color: #666;
}


/* ---------- BACK TO TOP ---------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: #00b4d8;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #0096b7;
    transform: translateY(-3px);
}


/* ---------- ANIMATIONS ---------- */
.animate-target {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-target.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger service cards */
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.2s; }
.service-card:nth-child(4) { transition-delay: 0.3s; }
.service-card:nth-child(5) { transition-delay: 0.4s; }
.service-card:nth-child(6) { transition-delay: 0.5s; }

/* Stagger portfolio items */
.portfolio-item:nth-child(2) { transition-delay: 0.1s; }
.portfolio-item:nth-child(3) { transition-delay: 0.15s; }
.portfolio-item:nth-child(4) { transition-delay: 0.2s; }
.portfolio-item:nth-child(5) { transition-delay: 0.25s; }
.portfolio-item:nth-child(6) { transition-delay: 0.3s; }
.portfolio-item:nth-child(7) { transition-delay: 0.35s; }
.portfolio-item:nth-child(8) { transition-delay: 0.4s; }


/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* Nav */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        padding: 100px 30px 30px;
        gap: 0;
        transition: right 0.3s ease;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        padding: 14px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid #222;
        width: 100%;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 16px;
        text-align: center;
        border-bottom: none;
    }

    /* Hero */
    .hero-logo {
        max-width: 280px;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .hero-sub {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* About */
    .about {
        padding: 70px 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image img {
        height: 300px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    /* Services */
    .services {
        padding: 70px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Portfolio */
    .portfolio {
        padding: 70px 0;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-item {
        height: 250px;
    }

    /* Contact */
    .contact {
        padding: 70px 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .form-full {
        grid-column: span 1;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        max-width: 220px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .nav-logo-img {
        height: 60px;
    }

    .portfolio-item {
        height: 220px;
    }

    .service-card {
        padding: 30px 20px;
    }

    .contact-item {
        font-size: 0.95rem;
    }
}

/* Touch-friendly: ensure tap targets are at least 44px */
@media (hover: none) and (pointer: coarse) {
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .portfolio-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
    }

    .btn {
        min-height: 48px;
    }

    .contact-social a {
        width: 48px;
        height: 48px;
    }
}
