/* Global Reset & Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #4361ee;
    --primary-dark: #3a56d4;
    --secondary-color: #ff6b6b;
    --accent-color: #7209b7;
    --text-color: #2b2d42;
    --text-light: #6c757d;
    --bg-color: #f8f9fa;
    --bg-dark: #e9ecef;
    --success-color: #52b788;
    --warning-color: #ffb703;
    --danger-color: #e63946;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(120deg, var(--primary-color), var(--accent-color));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    font-size: 1.75rem;
}

.logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.support-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(67, 97, 238, 0.3);
}

.support-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(67, 97, 238, 0.4);
}

/* Hero Section */
.hero {
    position: relative;
    height: 500px;
    width: 100%;
    overflow: hidden;
    margin-bottom: 3rem;
}

.video-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: -2;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.85), rgba(114, 9, 183, 0.9));
    z-index: -1;
}

.hero-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: white;
    text-align: center;
    padding: 0 1rem;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    max-width: 800px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 700px;
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Input Container */
.input-container {
    max-width: 900px;
    margin: -100px auto 3rem;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

.input-group {
    display: flex;
    position: relative;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

#urlInput {
    flex: 1;
    padding: 1.5rem 4rem 1.5rem 1rem; /* Modified padding to match icon positioning */
    border: none;
    font-size: 1.1rem;
    color: var(--text-color);
    outline: none;
}

#urlInput::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.input-icon {
    position: absolute;
    right: 12.5rem; /* Changed from left to right */
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    opacity: 0.5;
    display: none;
}

#analyzeBtn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 0 2.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: auto; /* Push button to the end */
}

#analyzeBtn:hover {
    opacity: 0.95;
    transform: translateX(2px);
}

.result {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    background-color: white;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.result.safe {
    border-left: 5px solid var(--success-color);
}

.result.warning {
    border-left: 5px solid var(--warning-color);
}

.result.danger {
    border-left: 5px solid var(--danger-color);
}

.result h3 {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.result p {
    color: var(--text-light);
}

.hidden {
    display: none;
}

.loader {
    margin: 2rem auto;
    width: 50px;
    height: 50px;
    border: 5px solid var(--bg-dark);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 5rem;
    padding: 0 1.5rem;
}

.feature-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-light);
}

/* Support Modal */
.support-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

.support-modal.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.4s ease-out;
}

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

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 1.75rem;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-modal:hover {
    color: var(--danger-color);
}

.support-header {
    text-align: center;
    padding: 2.5rem 2rem 1.5rem;
    border-bottom: 1px solid var(--bg-dark);
}

.support-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.support-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.support-header p {
    color: var(--text-light);
}

.support-form {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--bg-dark);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-color);
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
    outline: none;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.error-message {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.support-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.submit-btn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    transform: translateX(2px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.btn-icon {
    transition: transform 0.2s ease;
}

.submit-btn:hover .btn-icon {
    transform: translateX(3px);
}

/* Footer */
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

footer p {
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    #analyzeBtn {
        padding: 1rem;
    }
    
    .form-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .submit-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Animation for Feature Cards */
[data-aos] {
    opacity: 0;
    transition: opacity 0.8s, transform 0.8s;
}

[data-aos="fade-up"] {
    transform: translateY(50px);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}


/* Mobile-specific styles */
@media screen and (max-width: 768px) {
    .input-container {
        width: 90%;
        margin: 0 auto;
    }
    
    .input-group {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 10px;
    }
    
    #urlInput {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }
    
    .input-icon {
        position: absolute;
        right: 10px;
        top: 20%;
        transform: translateY(-50%);
        width: 20px;
        height: 20px;
    }
    
    #analyzeBtn {
        width: 100%;
        padding: 14px;
        font-size: 18px;
    }
    
    footer {
        text-align: center;
        font-size: 12px;
        padding: 15px 10px;
    }

    .hero{
        height: 300px;

        margin-bottom: 1.5rem;

    }

    .header{
        padding: unset;
    }

    
}
