@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

body {
    background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 50%, #be185d 100%);
    background-attachment: fixed;
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

main {
    flex: 1;
}

/* Typography & Headers */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero-section {
    text-align: center;
    padding: 7rem 1rem 4rem 1rem;
}

.display-4 {
    font-weight: 800;
    font-size: clamp(2.5rem, 5vw, 4rem);
    background: linear-gradient(to right, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto;
}

/* Glasscard */
.shortener-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 28px;
    padding: 3.5rem 3rem;
    box-shadow: 0 30px 60px -12px rgba(0,0,0,0.3), inset 0 1px 1px rgba(255,255,255,0.15);
    max-width: 700px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}

.shortener-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 40px 80px -15px rgba(0,0,0,0.4), inset 0 1px 1px rgba(255,255,255,0.2);
}

/* Inputs & Buttons */
.input-group {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    padding: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    align-items: center;
}

.input-group:focus-within {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.05), inset 0 2px 5px rgba(0,0,0,0.1);
}

.form-control-custom {
    background: transparent !important;
    border: none !important;
    color: white !important;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 400;
}

.form-control-custom::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-control-custom:focus {
    box-shadow: none !important;
}

.btn-custom {
    border-radius: 99px !important;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1e1b4b;
    border: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-custom:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #1e1b4b;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.5);
}

.btn-custom:active {
    transform: translateY(0) scale(0.98);
}

/* Result Box */
.result-box {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2.5rem;
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(15px);
}

.short-url-text {
    font-size: 1.7rem;
    font-weight: 700;
    color: #fbbf24;
    word-break: break-all;
    letter-spacing: 0.5px;
    margin: 15px 0;
}

.btn-light {
    border-radius: 99px;
    font-weight: 600;
    padding: 0.8rem 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #4338ca;
}

.btn-outline-light {
    border-radius: 99px;
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-width: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-light:hover, .btn-outline-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Features */
.feature-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 24px;
    padding: 3rem 2rem;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    backdrop-filter: blur(12px);
}

.feature-box:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-10px);
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
}

/* How It Works */
.how-it-works {
    position: relative;
    padding: 7rem 1rem;
    margin-top: 5rem;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    z-index: -1;
}

.step-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.step-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    border-radius: 50%;
    font-weight: 800;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 10px 20px -5px rgba(236, 72, 153, 0.5);
    color: white;
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Footer */
.footer {
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(20px);
    padding: 3.5rem 0;
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.footer-links a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.4);
}

/* Alert Boxes */
.alert-danger {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: #ffcccc;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
}

/* Navigation */
.navbar-custom {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
}
.navbar-custom .navbar-brand {
    font-weight: 800;
    font-size: 1.6rem;
    color: #ffffff;
    letter-spacing: -0.5px;
}
.navbar-custom .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 1.05rem;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}
.navbar-custom .nav-link:hover, .navbar-custom .nav-link.active {
    color: #ffffff;
    transform: translateY(-1px);
}
.navbar-toggler {
    border-color: rgba(255,255,255,0.3);
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
