/* Tailwind CSS styles have been manually compiled */

* {
    box-sizing: border-box;
}

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

/* Custom Styles */

:root {
    /* Modern color palette */
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --secondary-color: #6366f1;
    --accent-color: #8b5cf6;
    --text-dark: #1f2937;
    --text-medium: #4b5563;
    --text-light: #9ca3af;
    --background-light: #f9fafb;
    --background-white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --border-color: #e5e7eb;
    
    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-serif: 'Merriweather', Georgia, Cambria, 'Times New Roman', Times, serif;
    --font-mono: 'Roboto Mono', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    font-family: var(--font-sans);
    color: var(--text-dark);
}

body {
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Custom transitions */
.transition {
    transition: all 0.3s ease;
}

/* Image hover effects */
.hover-zoom {
    transition: transform 0.3s ease;
    overflow: hidden;
}

.hover-zoom img {
    transition: transform 0.5s ease;
}

.hover-zoom:hover img {
    transform: scale(1.05);
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes pulse-slow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2), 0 2px 4px -1px rgba(59, 130, 246, 0.1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3), 0 4px 6px -2px rgba(59, 130, 246, 0.1);
    }
}

.animate-pulse-slow {
    animation: pulse-slow 3s ease-in-out infinite;
}

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

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* Custom button styles */
.btn-primary {
    padding-left: 2rem;
    padding-right: 2rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    color: #fff;
    border-radius: 9999px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    background-color: var(--primary-color);
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2), 0 2px 4px -1px rgba(59, 130, 246, 0.1);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark), var(--primary-color));
    background-size: 200% 200%;
    z-index: -1;
    transition: all 0.5s ease;
}

.btn-primary:hover {
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3), 0 4px 6px -2px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px) scale(1.05);
}

.btn-primary:hover::before {
    background-position: 100% 100%;
}

.btn-secondary {
    background-color: #fff;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    border-radius: 9999px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-secondary:hover {
    background-color: rgba(59, 130, 246, 0.05);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px) scale(1.05);
    color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Card hover effects */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0.75rem;
    overflow: hidden;
    background-color: var(--background-white);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.card:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Custom navigation styles */
.nav-link {
    position: relative;
    font-size: 1.125rem; /* 18px */
    line-height: 1.75rem; /* 28px */
    font-weight: 500;
    color: #4b5563;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
}

/* Custom section styles */
.section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.section-title {
    font-size: 1.875rem; /* 30px */
    line-height: 2.25rem; /* 36px */
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem; /* 48px */
    color: var(--text-dark);
}

/* Custom image styles */
.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-shadow {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
}

/* Gradient text */
.text-gradient {
    background-clip: text;
    color: transparent;
    background-image: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom shadow effects */
.shadow-hover {
    transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Custom scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem;
    border-radius: 9999px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease-in-out;
    z-index: 50;
    display: none;
}

.scroll-to-top.visible {
    display: block;
}

.scroll-to-top:hover {
    background-color: var(--primary-dark);
    transform: scale(1.1);
}

/* Custom form styles */
.form-input {
    width: 100%;
    padding: 0.5rem 1rem;
    border-width: 1px;
    border-color: var(--border-color);
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
}

.form-input:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
    border-color: var(--primary-color);
}

/* Custom tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 8rem;
    background-color: var(--text-dark);
    color: #fff;
    text-align: center;
    border-radius: 0.375rem;
    padding: 0.5rem;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Custom badge */
.badge {
    display: inline-block;
    padding: 0.25em 0.4em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    background-color: var(--primary-color);
    color: white;
}

.badge-secondary {
    background-color: #e5e7eb;
    color: #1f2937;
}

/* Custom overlay */
.overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: #000;
    opacity: 0.5;
}

/* Custom code block */
pre {
    background-color: #f3f4f6;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    font-family: var(--font-mono);
}

code {
    padding: 0.125rem 0.25rem;
    background-color: #f3f4f6;
    color: #1f2937;
    border-radius: 0.25rem;
    font-family: var(--font-mono);
}

/* Custom table styles */
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom-width: 2px;
    border-color: #e5e7eb;
    background-color: rgba(59, 130, 246, 0.05);
}

td {
    padding: 0.75rem 1rem;
    border-bottom-width: 1px;
    border-color: #e5e7eb;
}

/* Custom timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 1rem;
    height: 1rem;
    background-color: var(--primary-color);
    border-radius: 9999px;
    margin-left: -0.5rem;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 0;
    top: 1rem;
    bottom: 0;
    width: 2px;
    background-color: #e5e7eb;
    margin-left: -1px;
}

/* Custom progress bar */
.progress {
    width: 100%;
    background-color: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
    height: 0.5rem;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    transition: width 1s ease;
}

/* Custom alert styles */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.alert-info {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary-dark);
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.alert-error {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

/* Custom aspect ratios */
.aspect-video {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
}

.aspect-square {
    aspect-ratio: 1 / 1;
    width: 100%;
    height: auto;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Video container styles */
.video-container {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    aspect-ratio: 16 / 9;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-button {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background-color: rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease-in-out;
}

.video-play-button svg {
    width: 4rem;
    height: 4rem;
    transition: all 0.2s ease-in-out;
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 1rem;
    opacity: 0;
    transition: all 0.2s ease-in-out;
}

.video-container:hover .video-controls {
    opacity: 1;
}

/* Responsive Design */

/* Mobile first approach */

/* Tablet */
@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem; /* 36px */
        line-height: 2.5rem; /* 40px */
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .section-title {
        font-size: 3rem; /* 48px */
        line-height: 1;
    }

    .nav-link {
        font-size: 1.1rem;
    }
}

/* Making the form responsive */
#challenge-form form {
    display: flex;
    flex-direction: column;
}

#challenge-form input {
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    #challenge-form form {
        flex-direction: row;
    }

    #challenge-form input {
        margin-bottom: 0;
        margin-right: 0.5rem;
    }
}
