/* =========================================================
   main.css — Shared styles for public pages (index, services, about, legal)
   Tailwind CDN handles utility classes; this file covers custom overrides.
   ========================================================= */

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

/* Body base */
body {
    font-family: 'Outfit', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---- Navbar scroll shadow ---- */
#navbar.scrolled {
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

/* ---- Mobile menu open state ---- */
body.menu-open {
    overflow: hidden;
}

/* ---- Hero phone mockup (index.html) ---- */
.phone-mockup {
    border: 8px solid #2D2B52;
    border-radius: 36px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 40px 80px rgba(45, 43, 82, 0.25);
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: #2D2B52;
    border-radius: 3px;
    z-index: 10;
}

/* ---- Service/pricing card hover lift ---- */
.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(93, 78, 227, 0.12);
}

/* ---- FAQ icon rotation ---- */
.faq-icon {
    transition: transform 0.25s ease;
}

.faq-icon.rotate-180 {
    transform: rotate(180deg);
}

/* ---- Gradient text utility ---- */
.text-gradient {
    background: linear-gradient(135deg, #5D4EE3 0%, #88D1C4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Section dividers ---- */
.section-divider {
    border: none;
    border-top: 1px solid #F3F4F6;
    margin: 0;
}

/* ---- Phone mockup notch (index.html) ---- */
.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 20px;
    background: #2D2B52;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 10;
}

/* ---- Float animations (index.html decorative elements) ---- */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-20px); }
}

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

.animate-float          { animation: float 6s ease-in-out infinite; }
.animate-float-delayed  { animation: float-delayed 8s ease-in-out infinite; }

/* ---- Portfolio project grid ---- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.portfolio-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #E5E7EB;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(93, 78, 227, 0.1);
}

/* ---- Print utilities (used on quote view page) ---- */
@media print {
    #navbar, footer, .no-print {
        display: none !important;
    }
}

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

@media (max-width: 640px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}
