/* 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 */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.header {
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 3em 0;
    text-align: center;
}

.header>h1 {
    display: inline-block;
    vertical-align: middle;
    font-size: 3em;
}

.hardy {
    color: rgb(148, 148, 148);
}

.it {
    color: rgb(70, 129, 255);
}

.tech {
    color: white;
}

.box {
    border-color: rgb(0, 0, 0);
    border-style: solid;
    padding: 2px 4px;
    margin: 0 2px;
}

.box-border {
    border-style: solid;
    border-width: 2px;
    border-color: black;
    padding: 2px 4px;
}

/* 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 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;
}

/* 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;
}

/* Responsive Design */
@media (max-width: 820px) {
    .hero {
        min-height: 140vh;
        text-align: center;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero-visual {
        display: block !important;
        margin-top: 2rem;
    }

    .tech-showcase {
        height: auto;
        perspective: none;
        background: none;
        padding: 2rem 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: 1.5rem;
    }

    .contact-form-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .header {
        position: relative;
        background: var(--hero-gradient);
        margin: 0 0;
        padding: 0 0;
        border-style: solid;
        border-width: 0 0 1px 0;
        border-color: var(--bs-primary)
    }

    .header>h1 {
        font-size: 2em;
    }

    .header>img {
        width: 96px;
        height: auto;
    }

    .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;
    }
}

/* 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;
}