:root {
    --primary: #6C63FF;
    --primary-dark: #564FD9;
    --primary-light: #E9E8FF;
    --secondary: #4FD1C5;
    --danger: #FC8181;
    --success: #68D391;
    --warning: #F6AD55;
    --light: #F7FAFC;
    --dark: #2D3748;
    --darker: #1A202C;
    --gray: #718096;
    --light-gray: #EDF2F7;
    --dark-gray: #4A5568;
    --card-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --card-shadow-hover: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --gradient: linear-gradient(135deg, var(--primary), #8B7AFF);
    --platform-gradient: linear-gradient(135deg, var(--primary), #8B7AFF);
    --nav-height: 80px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    padding: 0;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Modern Header with Glass Morphism Effect */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--dark);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    height: var(--nav-height);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-img {
    height: 40px;
    margin-right: 15px;
    transition: transform 0.3s ease;
}

.logo-container:hover .logo-img {
    transform: rotate(-10deg);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, var(--primary), #8B7AFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Main Content Padding to account for fixed header */
main {
    padding-top: calc(var(--nav-height) + 30px);
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    flex-direction: column;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #E9E8FF 100%);
    padding: 40px 0;
    margin-bottom: 40px;
    border-radius: 0 0 20px 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(108,99,255,0.1) 0%, transparent 70%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(to right, var(--dark), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.hero p {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

/* Attractive card design with glass morphism */
.card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    padding: 30px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.card:hover::before {
    opacity: 1;
}

.card-title {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    position: relative;
}

.card-title i {
    margin-right: 15px;
    font-size: 1.8rem;
    color: var(--primary);
    background: var(--primary-light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Form styles */
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px 15px;
}

.form-group {
    flex: 1;
    min-width: 250px;
    padding: 0 10px;
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--dark);
    font-size: 0.95rem;
}

input[type="text"],
select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--light-gray);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s;
    background-color: white;
    font-family: 'Poppins', sans-serif;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

input[type="text"]:focus,
select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

/* Enhanced textarea for generated query */
textarea {
    width: 100%;
    min-height: 140px;
    padding: 20px;
    border: 1px solid var(--light-gray);
    border-radius: 12px;
    font-family: 'Roboto Mono', monospace;
    font-size: 15px;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s;
    background-color: #f8fafc;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
    background-color: white;
}

/* Button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    margin-right: 12px;
    margin-bottom: 12px;
    font-family: 'Poppins', sans-serif;
}

.btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.15);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.15);
}

.btn:hover::after {
    transform: translateX(0);
}

.btn-secondary {
    background: var(--secondary);
}

.btn-secondary:hover {
    background: #38B2AC;
}

.btn-danger {
    background: var(--danger);
}

.btn-danger:hover {
    background: #F56565;
}

.btn-success {
    background: var(--success);
}

.btn-success:hover {
    background: #48BB78;
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    margin-top: 25px;
}

/* Platform selector */
.platform-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.platform-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 130px;
    height: 130px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    cursor: pointer;
    transition: all 0.3s;
    padding: 15px;
    text-align: center;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.platform-btn:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: var(--card-shadow-hover);
}

.platform-btn.active {
    border-color: var(--primary);
    background-color: var(--primary-light);
    transform: translateY(-3px);
}

.platform-btn.active::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    content: '\f00c';
    font-size: 10px;
}

.platform-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--gray);
    transition: all 0.3s;
}

.platform-btn.active .platform-icon,
.platform-btn:hover .platform-icon {
    color: var(--primary);
    transform: scale(1.1);
}

.platform-name {
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.platform-btn:hover .platform-name {
    color: var(--primary);
}

/* Platform specific colors */
.platform-btn.linkedin .platform-icon {
    color: #0077B5;
}

.platform-btn.twitter .platform-icon {
    color: #1DA1F2;
}

.platform-btn.facebook .platform-icon {
    color: #1877F2;
}

.platform-btn.instagram .platform-icon {
    color: #E4405F;
}

.platform-btn.youtube .platform-icon {
    color: #FF0000;
}

.platform-btn.github .platform-icon {
    color: #333;
}

/* FAQ Section Styles */
.faq-section {
    background: white;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid rgba(0,0,0,0.05);
}

.section-title {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 30px;
    font-weight: 600;
    display: flex;
    align-items: center;
    position: relative;
}

.section-title i {
    margin-right: 15px;
    font-size: 1.8rem;
    color: var(--primary);
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 20px;
}

.faq-question {
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question::after {
    content: "\f078";
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1rem;
    transition: all 0.3s;
}

.faq-question.active::after {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    color: var(--gray);
    line-height: 1.7;
    font-size: 0.95rem;
}

.faq-answer.show {
    max-height: 500px;
    padding-top: 10px;
}

/* Feature Highlights Section */
.features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.feature-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    padding: 30px;
    transition: all 0.3s;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient);
}

.feature-icon {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 20px;
    background: var(--primary-light);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.feature-title {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark);
    font-size: 1.2rem;
}

.feature-desc {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* About Tool Section */
.about-tool {
    background: linear-gradient(135deg, #f5f7fa 0%, #E9E8FF 100%);
    padding: 60px 0;
    margin: 40px 0;
    border-radius: 20px;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 30px;
    text-align: center;
}

.about-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--dark-gray);
}

footer {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%); 
    color: #fff; 
    padding: 120px 20px 70px; 
    font-family: 'Poppins', sans-serif; 
    width: 100%; 
    box-sizing: border-box; 
    margin-top: 100px; 
    position: relative; 
    overflow: hidden;
}

footer > div {
    position: relative; 
    max-width: 1400px; 
    margin: 0 auto;
}

footer .footer-content {
    display: flex; 
    flex-wrap: wrap; 
    justify-content: space-between; 
    gap: 50px;
}

footer .footer-section {
    flex: 1 1 300px; 
    min-width: 300px;
}

footer .footer-logo {
    display: flex; 
    align-items: center; 
    margin-bottom: 30px;
}

footer .logo-bg {
    background: linear-gradient(45deg, #6a1b9a, #f50057); 
    padding: 8px; 
    border-radius: 20px; 
    display: inline-flex; 
    box-shadow: 0 5px 25px rgba(106, 27, 154, 0.5); 
    transform: rotate(-5deg);
}

footer .logo-img {
    width: 70px; 
    height: 70px; 
    border-radius: 15px; 
    object-fit: cover;
}

footer h3 {
    font-size: 42px; 
    font-weight: 800; 
    margin: 0 0 0 20px; 
    background: linear-gradient(45deg, #fff 0%, #aaa 100%); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    text-transform: uppercase; 
    letter-spacing: 1px;
}

footer p {
    font-size: 17px; 
    line-height: 1.7; 
    margin-bottom: 30px; 
    color: #d1d1d1; 
    font-weight: 300; 
    max-width: 350px;
}

footer .section-title {
    font-size: 26px; 
    font-weight: 700; 
    margin-bottom: 30px; 
    color: #fff; 
    position: relative; 
    display: inline-block; 
    letter-spacing: 0.5px;
}

footer .title-underline {
    position: absolute; 
    bottom: -10px; 
    left: 0; 
    width: 50px; 
    height: 4px; 
    background: linear-gradient(45deg, #6a1b9a, #f50057); 
    border-radius: 4px;
}

footer ul {
    list-style: none; 
    padding: 0; 
    font-size: 16px; 
    line-height: 2.4; 
    color: #d1d1d1;
}

footer ul li a {
    color: #fff; 
    text-decoration: none; 
    transition: all 0.3s ease; 
    font-weight: 400; 
    display: inline-block; 
    position: relative; 
    padding-left: 20px;
}

footer .footer-bottom {
    text-align: center; 
    padding-top: 80px; 
    font-size: 16px; 
    border-top: 1px solid rgba(255,255,255,0.1); 
    margin-top: 80px; 
    position: relative;
}

footer .bg-radial {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: radial-gradient(circle at 20% 30%, rgba(106, 27, 154, 0.15) 0%, transparent 50%); 
    pointer-events: none;
}

footer input[type="email"] {
    padding: 20px 25px; 
    font-size: 16px; 
    border: none; 
    border-radius: 12px; 
    transition: all 0.3s ease; 
    background: rgba(255,255,255,0.1); 
    color: #fff; 
    font-family: 'Poppins', sans-serif; 
    outline: none; 
    backdrop-filter: blur(5px); 
    border: 1px solid rgba(255,255,255,0.1);
}

footer button[type="submit"] {
    padding: 20px 30px; 
    background: linear-gradient(45deg, #6a1b9a, #f50057); 
    border: none; 
    color: #fff; 
    font-size: 17px; 
    cursor: pointer; 
    border-radius: 12px; 
    transition: all 0.3s ease; 
    font-weight: 600; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px; 
    box-shadow: 0 5px 20px rgba(106, 27, 154, 0.4);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .platform-btn {
        width: calc(20% - 15px);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .platform-btn {
        width: calc(33.333% - 15px);
        height: 120px;
    }
    
    .btn-group {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .header-container {
        flex-direction: column;
        padding: 15px 20px;
        height: auto;
    }
    
    .logo-container {
        margin-bottom: 15px;
        justify-content: center;
        width: 100%;
    }
    
    .hero {
        padding: 30px 0;
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .platform-btn {
        width: calc(50% - 15px);
        height: 110px;
    }
    
    .btn-group .btn {
        width: 100%;
        margin-right: 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Animation for cards when they appear */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .feature-card, .faq-section {
    animation: fadeInUp 0.6s ease forwards;
}

.card:nth-child(2) {
    animation-delay: 0.2s;
}

.features-section .feature-card:nth-child(1) {
    animation-delay: 0.3s;
}

.features-section .feature-card:nth-child(2) {
    animation-delay: 0.4s;
}

.features-section .feature-card:nth-child(3) {
    animation-delay: 0.5s;
}

.faq-section {
    animation-delay: 0.6s;
}