/* Bootstrap 5 Custom Styles for HardyIT */

/* CSS Custom Properties */
:root {
    --bs-primary: #3b82f6;
    --bs-primary-rgb: 59, 130, 246;
    --bs-secondary: #64748b;
    --bs-success: #10b981;
    --bs-info: #06b6d4;
    --bs-warning: #f59e0b;
    --bs-danger: #ef4444;
    --bs-light: #f8fafc;
    --bs-dark: #0f172a;
    --hero-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
}

/* Global Styles */
html {
    scroll-padding-top: 155px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(2, 12, 25, 0.98);
    border-bottom: 1px solid rgba(96, 165, 250, 0.2);
    box-shadow: 0 5px 24px rgba(0, 0, 0, 0.2);
}

.header-inner {
    width: min(100% - 3rem, 1500px);
    min-height: 140px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(240px, 390px) 1fr auto;
    align-items: center;
    gap: 2.5rem;
}

.header-logo {
    display: block;
    line-height: 0;
}

.header-logo img {
    display: block;
    width: min(100%, 390px);
    height: auto;
}

.primary-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1.4rem, 3vw, 3.5rem);
}

.primary-nav a,
.header-phone {
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
}

.primary-nav a {
    position: relative;
    color: #f8fafc;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    padding: 0.65rem 0;
    transition: color 180ms ease, transform 180ms ease;
}

.primary-nav a::after {
    content: '';
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: 0;
    height: 2px;
    background: #3b82f6;
    transition: left 180ms ease, right 180ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a[aria-current="page"] {
    color: #60a5fa;
    transform: translateY(-1px);
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after,
.primary-nav a[aria-current="page"]::after {
    left: 0;
    right: 0;
}

.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: #f8fafc;
    font-size: 0.9rem;
    white-space: nowrap;
    border: 2px solid #1473dc;
    border-radius: 7px;
    padding: 0.85rem 1.1rem;
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.header-phone .material-icons {
    color: #348cf0;
    font-size: 1.5rem;
}

.header-phone:hover,
.header-phone:focus-visible {
    color: #fff;
    background: rgba(59, 130, 246, 0.14);
    border-color: #60a5fa;
}

.nav-toggle {
    display: none;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
    background: rgba(59, 130, 246, 0.14);
}

/* Material Icons Alignment */
.material-icons {
    vertical-align: middle;
    font-size: 1.2em;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: var(--hero-gradient);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.hero::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="%2360a5fa" stop-opacity="0.1"/><stop offset="100%" stop-color="%2360a5fa" 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;
    background-size: cover;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.hero-text .text-primary {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-service-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.hero-service-links a {
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.45rem 0.8rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.hero-service-links a:hover,
.hero-service-links a:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: #60a5fa;
    color: #ffffff;
}

/* Hero Visual Elements - Star Wars Scroller Style */
.tech-showcase {
    position: relative;
    height: 600px;
    overflow: hidden;
    perspective: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, rgba(96, 165, 250, 0.1) 0%, transparent 70%);
}

.starwars-scroller {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) rotateX(25deg);
    transform-origin: 50% 100%;
    animation: starwarsScroll 13s linear infinite;
    width: 500px;
    height: 500px;
}

.service-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.service-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.service-item .material-icons {
    font-size: 3rem;
    color: #60a5fa;
    margin-bottom: 1rem;
    display: block;
}

.service-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.service-item p {
    font-size: 1rem;
    color: #cbd5e1;
    line-height: 1.4;
}

@keyframes starwarsScroll {
    0% {
        top: 100%;
        opacity: 1;
    }

    15% {
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

    100% {
        top: -100%;
        opacity: 0;
    }
}

/* Contact Form Section */
.contact-section {
    background: #f8fafc;
}

.contact-form-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.info-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.price-line {
    color: var(--bs-primary);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.industry-pill {
    background: #ffffff;
    border: 1px solid #dbe4f0;
    border-left: 4px solid var(--bs-primary);
    border-radius: 8px;
    color: #1e293b;
    font-weight: 700;
    padding: 1rem;
    min-height: 64px;
    display: flex;
    align-items: center;
}

.plan-hero {
    min-height: 72vh;
}

.about-hero {
    min-height: 68vh;
}

.josh-portrait {
    position: relative;
    z-index: 2;
    margin: 0 auto;
    max-width: 470px;
    border-bottom: 3px solid rgba(96, 165, 250, 0.7);
    background: radial-gradient(circle at 50% 58%, rgba(59, 130, 246, 0.24), transparent 64%);
}

.josh-portrait img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 620px;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.35));
}

.family-mark {
    margin: 0;
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
}

.family-mark img {
    display: block;
    width: 100%;
    height: auto;
}

.case-study-intro {
    background: linear-gradient(180deg, #eef5ff 0%, #ffffff 100%);
}

.case-result-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.case-result {
    display: grid;
    gap: 0.35rem;
    align-content: start;
    min-height: 150px;
    padding: 1.5rem;
    border: 1px solid #dbe4f0;
    border-top: 4px solid var(--bs-primary);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.case-result .material-icons {
    color: var(--bs-primary);
    font-size: 2rem;
}

.case-result strong {
    color: #0f172a;
    font-size: 1.25rem;
}

.case-result span:last-child {
    color: #64748b;
}

.case-photo {
    margin: 0;
    overflow: hidden;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.case-photo img {
    display: block;
    width: 100%;
    height: auto;
}

.case-photo figcaption {
    padding: 1rem 1.25rem;
    color: #475569;
}

.case-photo-portrait {
    max-width: 360px;
    margin-inline: auto;
}

.plan-card {
    display: flex;
    flex-direction: column;
}

.plan-card ul {
    padding-left: 1.2rem;
    margin-bottom: 0;
}

.tutorial-card ul {
    padding-left: 1.2rem;
    margin-bottom: 0;
}

.tutorial-card li {
    margin-bottom: 0.35rem;
}

.featured-plan {
    border-color: var(--bs-primary);
    box-shadow: 0 10px 28px rgba(59, 130, 246, 0.18);
}

/* Form Enhancements */
.form-control:focus,
.form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

.form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* Button Enhancements */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb, #1e40af);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
    transform: translateY(-2px);
}

/* Footer Enhancements */
footer {
    background: var(--bs-dark) !important;
}

footer .text-primary {
    color: #60a5fa !important;
}

.footer-brand {
    display: inline-block;
    line-height: 0;
}

.footer-brand img {
    display: block;
    width: clamp(128px, 18vw, 300px);
    height: clamp(128px, 18vw, 300px);
    min-width: 128px;
    min-height: 128px;
    max-width: 300px;
    max-height: 300px;
    object-fit: contain;
}

/* Responsive Design */
@media (max-width: 1300px) {
    html {
        scroll-padding-top: 105px;
    }

    .header-inner {
        width: min(100% - 2rem, 760px);
        min-height: 92px;
        grid-template-columns: 1fr auto;
        gap: 1rem;
    }

    .header-logo img {
        width: 260px;
    }

    .nav-toggle {
        display: grid;
        gap: 5px;
        border: 1px solid #3b82f6;
        border-radius: 6px;
        background: transparent;
        padding: 0.7rem;
    }

    .nav-toggle span {
        width: 24px;
        height: 2px;
        background: #f8fafc;
    }

    .primary-nav {
        display: none;
        grid-column: 1 / -1;
        align-items: stretch;
        gap: 0;
        padding-bottom: 1rem;
    }

    .primary-nav.is-open {
        display: grid;
    }

    .primary-nav a {
        padding: 0.8rem 0.25rem;
        border-top: 1px solid rgba(96, 165, 250, 0.15);
    }

    .primary-nav a::after {
        display: none;
    }

    .header-phone {
        display: none;
    }

    .hero {
        min-height: auto;
        text-align: center;
        padding: 4.5rem 0 3rem;
    }

    .plan-hero {
        padding-top: 5rem;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero-visual {
        display: block !important;
        margin-top: 1rem;
    }

    .tech-showcase {
        height: auto;
        perspective: none;
        background: none;
        padding: 1rem;
    }

    .starwars-scroller {
        position: static;
        transform: none;
        animation: none;
        height: auto;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .service-item {
        margin-bottom: 0;
        padding: 1rem;
    }

    .contact-form-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    html {
        scroll-padding-top: 88px;
    }

    .hero {
        padding: 2.5rem 0 2rem;
    }

    .header-inner {
        min-height: 76px;
    }

    .header-logo img {
        width: 210px;
    }

    .starwars-scroller {
        grid-template-columns: 1fr;
        gap: 1rem;
        /* height: auto; */
    }

    .service-item {
        padding: 1rem;
    }

    .service-item .material-icons {
        font-size: 2.5rem;
    }

    .service-item h3 {
        font-size: 1.2rem;
    }

    .service-item p {
        font-size: 0.9rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }

    .hero-service-links {
        justify-content: center;
    }

    .hero-service-links a {
        font-size: 0.82rem;
        padding: 0.4rem 0.65rem;
    }
}

@media (max-width: 768px) {
    .case-result-grid {
        grid-template-columns: 1fr;
    }

    .case-result {
        min-height: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .primary-nav a,
    .primary-nav a::after,
    .header-phone {
        transition: none;
    }
}

/* Additional Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: var(--bs-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}

/* Business Services Sticky Notes */
.business-section .sticky-note {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.business-section .sticky-note:hover {
    transform: rotate(0deg) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    z-index: 10;
}

.business-section .sticky-note::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.service-note {
    border-left: 5px solid #ffc107 !important;
}

.service-card {
    min-height: 280px;
}

.service-card .badge {
    font-size: 0.75rem;
    margin: 2px;
}

.cta-note {
    max-width: 400px;
    transform: rotate(-0.5deg);
}

/* Business Section Background */
.business-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Responsive adjustments for business services */
@media (max-width: 768px) {
    .business-section .sticky-note {
        transform: none !important;
    }

    .service-card {
        min-height: auto;
        margin-bottom: 1rem;
    }

    .cta-note {
        transform: none !important;
        max-width: 100%;
    }
}
