/* Custom CSS for Bryan McGuire Website */

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

/* Typewriter Effect */
.typewriter {
    overflow: hidden;
    border-right: .15em solid #0078D7;
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: .15em;
    animation:
        typing 3.5s steps(40, end),
        blink-caret .75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #0078D7; }
}

/* Button Animations */
.btn-primary, .btn-secondary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    box-shadow: 0 10px 25px rgba(0, 120, 215, 0.3);
}

.btn-secondary:hover {
    box-shadow: 0 10px 25px rgba(0, 120, 215, 0.2);
}

/* Navigation Active State */
.nav-link.active {
    color: #0078D7 !important;
    font-weight: 600;
}

/* Counter Animation */
.counter {
    transition: all 0.5s ease;
}

/* Project Card Hover Effects */
.project-card {
    transition: all 0.3s ease;
    background: white;
    border: 1px solid #e5e7eb;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #0078D7;
}

.project-card .project-icon {
    transition: all 0.3s ease;
}

.project-card:hover .project-icon {
    transform: scale(1.1);
}

/* Skill Progress Bars */
.skill-bar {
    background-color: #f3f2f1;
    border-radius: 10px;
    overflow: hidden;
    height: 8px;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #0078D7, #00BCF2);
    border-radius: 10px;
    transition: width 2s ease-in-out;
    width: 0;
}

.skill-progress.animate {
    width: var(--progress-width);
}

/* Section Fade In Animation */
.section-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

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

/* Contact Form Styles */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #0078D7;
    box-shadow: 0 0 0 3px rgba(0, 120, 215, 0.1);
}

.form-label {
    position: absolute;
    left: 16px;
    top: 12px;
    color: #9ca3af;
    font-size: 16px;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    top: -8px;
    left: 12px;
    font-size: 12px;
    color: #0078D7;
    background: white;
    padding: 0 4px;
}

/* Loading Animation */
.loading-spinner {
    border: 3px solid #f3f2f1;
    border-top: 3px solid #0078D7;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Animation */
.success-checkmark {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
    stroke-width: 2;
    stroke: #10b981;
    stroke-miterlimit: 10;
    margin-right: 8px;
    box-shadow: inset 0px 0px 0px #10b981;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.success-checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #10b981;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 30px #10b981;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .typewriter {
        font-size: 1.5rem;
        letter-spacing: .1em;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

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

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, #0078D7, #00BCF2);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Parallax Effect */
.parallax {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

/* Industry Color Coding */
.industry-maritime { border-left: 4px solid #1e40af; }
.industry-safety { border-left: 4px solid #dc2626; }
.industry-content { border-left: 4px solid #7c3aed; }
.industry-business { border-left: 4px solid #059669; }
.industry-hr { border-left: 4px solid #ea580c; }
.industry-ai { border-left: 4px solid #0078D7; }
.industry-theatre { border-left: 4px solid #be185d; }