html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Premium dotted border effect */
.dotted-border {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px dotted #333;
    pointer-events: none;
    z-index: 1;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
}

.logo {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: lowercase;
}

.nav-links {
    display: flex;
    gap: 40px;
    font-size: 14px;
    font-weight: 400;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.7;
}

/* Main container */
.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 40px 40px;
    position: relative;
}

.main-content {
    max-width: 800px;
    width: 100%;
    text-align: center;
}

/* Hero section */
.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #888888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: #888888;
    margin-bottom: 60px;
    letter-spacing: 0.5px;
}

/* Form styling */
.shortener-form {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(20px);
    margin-bottom: 40px;
}

.input-group {
    margin-bottom: 30px;
}

.url-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px 24px;
    font-size: 16px;
    color: #ffffff;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.url-input::placeholder {
    color: #666666;
}

.url-input:focus {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.shorten-btn {
    width: 100%;
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 12px;
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
}

.shorten-btn:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
}

.shorten-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Loading state */
.loading {
    display: none;
    margin-top: 20px;
    text-align: center;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Result section */
.result {
    display: none;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(20px);
    animation: slideUp 0.4s ease;
}

.result.show {
    display: block;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #ffffff;
}

.short-url-display {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 16px;
    color: #ffffff;
    word-break: break-all;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.short-url-text {
    flex: 1;
    min-width: 0;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Error state */
.error {
    display: none;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    color: #ff6b6b;
    margin-top: 20px;
    font-size: 14px;
}

/* Added new sections styling */
/* Section styling */
.section {
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 300;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(135deg, #ffffff 0%, #888888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 18px;
    color: #888888;
    text-align: center;
    margin-bottom: 80px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Stats section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.stat-number {
    font-size: 3rem;
    font-weight: 300;
    color: #fff;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: #888888;
    font-weight: 400;
}

/* Features section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #fff, #393939);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 16px;
    color: #ffffff;
}

.feature-description {
    font-size: 16px;
    color: #888888;
    line-height: 1.6;
}

/* Companies section */
.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    align-items: center;
    opacity: 0.6;
}

.company-logo {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    color: #666666;
    transition: all 0.3s ease;
}

.company-logo:hover {
    color: #ffffff;
    transform: scale(1.05);
}

/* CTA section */
.cta-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(122, 122, 122, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 80px 60px;
    text-align: center;
    backdrop-filter: blur(20px);
    margin: 0 40px 100px 40px;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 300;
    margin-bottom: 20px;
    color: #ffffff;
}

.cta-subtitle {
    font-size: 18px;
    color: #888888;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn-primary {
    background: #fff;
    color: #000;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    display: inline-block;
}

.cta-btn-primary:hover {
    background: #393939;
    color: #fff;
    transform: translateY(-2px);
}

.cta-btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    display: inline-block;
}

.cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 40px 40px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: lowercase;
    margin-bottom: 20px;
}

.footer-description {
    font-size: 16px;
    color: #888888;
    margin-bottom: 40px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.footer-links {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #888888;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #666666;
    font-size: 14px;
}

/* Admin link */
.admin-link {
    position: fixed;
    bottom: 40px;
    right: 40px;
    color: #666666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.admin-link:hover {
    color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        padding: 20px;
    }

    .nav-links {
        gap: 20px;
        font-size: 12px;
    }

    .container {
        padding: 100px 20px 40px;
    }

    .shortener-form {
        padding: 30px 20px;
    }

    .dotted-border {
        top: 10px;
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .admin-link {
        bottom: 20px;
        right: 20px;
    }

    .section {
        padding: 60px 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .companies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .cta-section {
        margin: 60px 20px;
        padding: 60px 30px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-links {
        gap: 20px;
    }
}