/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.3s, color 0.3s;
}

:root {
    /* Light Theme Colors */
    --primary-color: #2563eb;
    --secondary-color: #3b82f6;
    --accent-color: #60a5fa;
    --text-color: #1f2937;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --header-bg: #ffffff;
    --nav-bg: #1e40af;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dark-mode {
    /* Dark Theme Colors */
    --primary-color: #60a5fa;
    --secondary-color: #3b82f6;
    --accent-color: #2563eb;
    --text-color: #f8fafc;
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --header-bg: #1e293b;
    --nav-bg: #0f172a;
    --border-color: #334155;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Header */
.top-header {
    background-color: var(--header-bg);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    flex: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 5px;
}

#logo-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.search-section {
    flex: 2;
    display: flex;
    justify-content: center;
}

.search-box {
    display: flex;
    width: 100%;
    max-width: 500px;
    gap: 10px;
}

#mainSearch {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    font-size: 16px;
    background-color: var(--card-bg);
    color: var(--text-color);
    outline: none;
}

#mainSearch::placeholder {
    color: #9ca3af;
}

.search-button {
    padding: 12px 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.3);
}

.theme-section {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.theme-toggle {
    padding: 10px 20px;
    background-color: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.theme-toggle:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Second Header */
.second-header {
    background-color: var(--nav-bg);
    padding: 12px 0;
    margin-bottom: 30px;
}

.nav-menu {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.nav-link.upload-btn {
    background-color: #10b981;
    color: white;
    font-weight: 600;
}

.nav-link.upload-btn:hover {
    background-color: #059669;
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
    padding: 40px 0;
}

.software-names h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.typing-container {
    font-size: 24px;
    height: 40px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.typing-words {
    display: inline-block;
    position: relative;
}

.word {
    position: absolute;
    opacity: 0;
    animation: wordChange 20s infinite;
    font-weight: 600;
}

@keyframes wordChange {
    0%, 8% { opacity: 0; }
    9%, 17% { opacity: 1; }
    18%, 100% { opacity: 0; }
}

.word:nth-child(1) { animation-delay: 0s; }
.word:nth-child(2) { animation-delay: 2s; }
.word:nth-child(3) { animation-delay: 4s; }
.word:nth-child(4) { animation-delay: 6s; }
.word:nth-child(5) { animation-delay: 8s; }
.word:nth-child(6) { animation-delay: 10s; }
.word:nth-child(7) { animation-delay: 12s; }
.word:nth-child(8) { animation-delay: 14s; }
.word:nth-child(9) { animation-delay: 16s; }
.word:nth-child(10) { animation-delay: 18s; }

.tagline {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 18px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Ad Containers */
.ad-container {
    margin: 40px 0;
    text-align: center;
}

.ad-slot {
    background-color: var(--card-bg);
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    padding: 40px;
    margin: 0 auto;
}

.ad-placeholder {
    color: #9ca3af;
    font-style: italic;
}

/* Popular Software Section */
.popular-software {
    margin: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.software-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    border: 1px solid var(--border-color);
}

.software-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.software-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.software-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.software-desc {
    color: #6b7280;
    margin-bottom: 20px;
    font-size: 14px;
}

.software-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    color: #9ca3af;
    font-size: 14px;
}

.download-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.3s;
}

.download-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, var(--primary-color));
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    margin: 60px 0;
    color: white;
}

.newsletter-section h2 {
    font-size: 32px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.newsletter-section p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.newsletter-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
}

.subscribe-btn {
    padding: 15px 30px;
    background-color: white;
    color: var(--primary-color);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s;
}

.subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.form-note {
    font-size: 14px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Footer */
.footer {
    background-color: var(--nav-bg);
    color: white;
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
}

.footer-desc {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-section h4 {
    font-size: 20px;
    margin-bottom: 20px;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: white;
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.copyright {
    opacity: 0.7;
    font-size: 14px;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .top-header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .software-names h1 {
        font-size: 36px;
    }
    
    .nav-menu {
        gap: 15px;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .search-box {
        flex-direction: column;
    }
}
/* Newsletter Status Messages */
.form-status {
    margin-top: 15px;
    padding: 12px 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-status.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
    display: block;
}

.form-status.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
    display: block;
}

.form-status.loading {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #3b82f6;
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Fix Typing Animation - One Line Display */
.typing-container {
    font-size: 28px;
    font-weight: 600;
    height: 45px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    overflow: visible;
    position: relative;
}

.typing-text {
    display: inline;
    white-space: nowrap;
}

.typing-words {
    display: inline-block;
    position: relative;
    height: 45px;
    vertical-align: middle;
    margin-left: 10px;
    min-width: 300px;
}

.word {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    animation: wordChange 20s infinite;
    font-weight: 700;
    white-space: nowrap;
    display: inline-block;
    line-height: 45px;
    height: 45px;
}

@keyframes wordChange {
    0%, 8% { 
        opacity: 0; 
        transform: translateY(10px);
    }
    9%, 17% { 
        opacity: 1; 
        transform: translateY(0);
    }
    18%, 100% { 
        opacity: 0; 
        transform: translateY(-10px);
    }
}

.word:nth-child(1) { animation-delay: 0s; }
.word:nth-child(2) { animation-delay: 2s; }
.word:nth-child(3) { animation-delay: 4s; }
.word:nth-child(4) { animation-delay: 6s; }
.word:nth-child(5) { animation-delay: 8s; }
.word:nth-child(6) { animation-delay: 10s; }
.word:nth-child(7) { animation-delay: 12s; }
.word:nth-child(8) { animation-delay: 14s; }
.word:nth-child(9) { animation-delay: 16s; }
.word:nth-child(10) { animation-delay: 18s; }

/* Adjust hero section spacing */
.software-names h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 10px;
}

.tagline {
    font-size: 18px;
    color: #6b7280;
    margin-top: 15px;
    margin-bottom: 30px;
}

/* Alternative fix if above doesn't work */
@media (max-width: 768px) {
    .typing-container {
        font-size: 22px;
        height: 40px;
        flex-wrap: wrap;
    }
    
    .typing-words {
        min-width: 250px;
        height: 40px;
    }
    
    .word {
        line-height: 40px;
        height: 40px;
    }
}