/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-teal: #17a2b8;
    --primary-cyan: #00bcd4;
    --dark-teal: #0d7a8a;
    --light-cyan: #4dd0e1;
    --text-dark: #212529;
    --text-light: #6c757d;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-teal);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-cyan));
    color: var(--white);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30%, -30%) scale(1.1); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: var(--white);
    color: var(--primary-teal);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--gray-light);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

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

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

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

/* Categories Section */
.categories {
    padding: 80px 0;
    background: var(--white);
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-item {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.05), rgba(0, 188, 212, 0.05));
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(23, 162, 184, 0.1);
    transition: all 0.3s ease;
}

.category-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-cyan);
    box-shadow: var(--shadow-hover);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.category-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.category-item p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Installation Section */
.install {
    padding: 80px 0;
    background: var(--gray-light);
}

.install-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-cyan));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

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

.install-cta {
    text-align: center;
}

.install-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-cyan));
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.install-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(23, 162, 184, 0.3);
}

.install-note {
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Privacy Section */
.privacy {
    padding: 80px 0;
    background: var(--white);
}

.privacy-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.privacy-card {
    background: var(--gray-light);
    padding: 2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.privacy-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.privacy-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-teal);
}

.privacy-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-teal), var(--primary-teal));
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    opacity: 0.9;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-links a {
    display: block;
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-contact p {
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.footer-contact a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-contact a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid,
    .categories-grid,
    .install-steps,
    .privacy-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .search-container {
        margin: 1.5rem auto;
    }
    
    .search-input {
        font-size: 1rem;
        padding: 14px 20px;
    }
    
    .search-button {
        padding: 0 20px;
    }
    
    .preview-container {
        padding: 1.5rem;
    }
    
    .preview-search-bar {
        flex-direction: column;
    }
    
    .preview-input {
        width: 100%;
    }
    
    .preview-search-btn {
        width: 100%;
    }
    
    .category-tabs {
        justify-content: center;
    }
    
    .category-tab {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .result-item h3 {
        font-size: 1.1rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Selection */
::selection {
    background: var(--primary-cyan);
    color: var(--white);
}

::-moz-selection {
    background: var(--primary-cyan);
    color: var(--white);
}

/* Minimal Homepage Styles */
.minimal-home {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.03), rgba(0, 188, 212, 0.03));
}

.search-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.search-logo {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-wrapper {
    width: 100%;
    max-width: 600px;
    margin-bottom: 1.5rem;
}

.minimal-search-form {
    width: 100%;
}

.search-box-container {
    position: relative;
    background: var(--white);
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 6px rgba(32, 33, 36, .1);
}

.search-box-container:hover,
.search-box-container:focus-within {
    box-shadow: 0 1px 6px rgba(32, 33, 36, .28);
    border-color: rgba(223, 225, 229, 0);
}

.search-icon {
    color: #9aa0a6;
    margin-right: 12px;
    flex-shrink: 0;
}

.minimal-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 0;
    font-size: 16px;
    color: var(--text-dark);
    background: transparent;
}

.minimal-search-input::placeholder {
    color: #9aa0a6;
}

.minimal-search-button {
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-cyan));
    color: var(--white);
    border: none;
    padding: 8px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 12px;
}

.minimal-search-button:hover {
    background: linear-gradient(135deg, var(--dark-teal), var(--primary-teal));
    box-shadow: 0 1px 1px rgba(0, 0, 0, .1);
}

.search-tagline {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    text-align: center;
}

.category-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 600px;
}

.category-btn {
    background: var(--white);
    border: 1px solid #dfe1e5;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.875rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-btn:hover {
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
    border-color: #dadce0;
    background: #f8f9fa;
}

.minimal-footer {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    background: #f2f2f2;
    border-top: 1px solid #dadce0;
}

.minimal-footer a {
    color: #70757a;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.minimal-footer a:hover {
    color: var(--primary-teal);
    text-decoration: underline;
}

/* Responsive adjustments for minimal homepage */
@media (max-width: 768px) {
    .search-logo {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
    
    .search-wrapper {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .search-box-container {
        padding: 0 16px;
    }
    
    .minimal-search-button {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .category-buttons {
        gap: 0.5rem;
    }
    
    .category-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .minimal-footer {
        gap: 1.5rem;
        padding: 1.5rem;
    }
}

/* Search Container */
.search-container {
    max-width: 600px;
    margin: 2rem auto;
    position: relative;
    z-index: 1;
}

.search-form {
    display: flex;
    background: var(--white);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease;
}

.search-form:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.search-input {
    flex: 1;
    padding: 16px 24px;
    border: none;
    font-size: 1.125rem;
    outline: none;
    color: var(--text-dark);
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-button {
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-cyan));
    border: none;
    padding: 0 24px;
    cursor: pointer;
    color: var(--white);
    transition: all 0.3s ease;
}

.search-button:hover {
    background: linear-gradient(135deg, var(--dark-teal), var(--primary-teal));
}

.hero-description {
    font-size: 1rem;
    margin-top: 1.5rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

/* Preview Section */
.preview {
    padding: 80px 0;
    background: var(--white);
}

.preview-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--gray-light);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.preview-search-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.preview-input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 1rem;
    background: var(--white);
    color: var(--text-dark);
}

.preview-search-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-cyan));
    color: var(--white);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
}

.category-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.category-tab {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: var(--white);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.category-tab:hover {
    border-color: var(--primary-cyan);
    background: rgba(0, 188, 212, 0.05);
}

.category-tab.active {
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-cyan));
    color: var(--white);
    border-color: transparent;
}

.preview-results {
    background: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    transition: opacity 0.15s ease;
}

.result-item {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item h3 {
    color: #1a0dab;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    font-weight: 400;
    cursor: pointer;
}

.result-item h3:hover {
    text-decoration: underline;
}

.result-url {
    color: #006621;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.result-description {
    color: var(--text-light);
    line-height: 1.6;
}

.preview-note {
    text-align: center;
    color: var(--text-light);
    margin-top: 2rem;
    font-style: italic;
}