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

body {
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    overflow-x: hidden;
}

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

/* Top Bar */
.top-bar {
    background-color: #7cb342;
    color: white;
    padding: 8px 0;
    font-size: 13px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-link {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.top-link:hover {
    opacity: 0.8;
}

.separator {
    color: rgba(255, 255, 255, 0.5);
}

.top-bar-right {
    display: flex;
    gap: 15px;
}

.social-icon {
    color: white;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-2px);
}

/* Main Navigation */
.main-nav {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav-menu a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
}

.nav-menu a:hover {
    color: #7cb342;
}

.btn-signup {
    background-color: #7cb342;
    color: white !important;
    padding: 10px 25px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-signup:hover {
    background-color: #689f38;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(124, 179, 66, 0.3);
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

/* Side Share Buttons */
.side-share {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
}

.share-count {
    background-color: white;
    padding: 8px 10px;
    text-align: center;
    font-size: 11px;
    font-weight: bold;
    color: #666;
    border: 1px solid #ddd;
}

.share-btn {
    padding: 12px 15px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-btn:hover {
    padding-left: 20px;
}

.share-btn.facebook {
    background-color: #3b5998;
}

.share-btn.twitter {
    background-color: #1da1f2;
}

.share-btn.telegram {
    background-color: #0088cc;
}

.share-btn.whatsapp {
    background-color: #25d366;
}

.share-btn.reddit {
    background-color: #ff4500;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://images.unsplash.com/photo-1531415074968-036ba1b575da?w=1920') center/cover;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    padding: 60px 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo {
    text-align: center;
    margin-bottom: 40px;
}

.hero-logo img {
    height: 120px;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.hero-logo h1 {
    color: #ffeb3b;
    font-size: 48px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.hero-subtitle {
    color: white;
    font-size: 18px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.api-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.api-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.api-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.api-card h3 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
}

.hero-arrow:hover {
    transform: translateY(-50%) translateX(5px);
}

/* Features Section */
.features-section {
    padding: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.feature-box {
    padding: 60px 40px;
    text-align: center;
}

.feature-box h2 {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 700;
}

.feature-box p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.feature-btn {
    display: inline-block;
    padding: 12px 35px;
    background-color: white;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.feature-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.free-api {
    background-color: #7cb342;
    color: white;
}

.paid-api {
    background-color: #558b2f;
    color: white;
}

.now-serving {
    background-color: #33691e;
    color: white;
}

.serving-email {
    font-size: 14px;
    margin-top: 15px;
}

.serving-email a {
    color: white;
    text-decoration: underline;
}

/* Tabs Section */
.tabs-section {
    background-color: #1b5e20;
    padding: 40px 0;
}

.tabs-header {
    display: flex;
    gap: 2px;
    margin-bottom: 0;
}

.tab-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 15px 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.tab-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.tab-btn.active {
    background-color: #0d3d13;
}

.tabs-content {
    background-color: #0d3d13;
    padding: 0;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.code-block {
    background-color: #0d3d13;
    color: #4caf50;
    padding: 40px;
    border-radius: 0;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}

.code-block code {
    color: #4caf50;
}

/* Terms Modal */
.terms-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #333;
    color: white;
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

.terms-modal.hidden {
    display: none;
}

.terms-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding-right: 50px;
}

.terms-content h2 {
    margin-bottom: 10px;
    font-size: 18px;
}

.terms-content p {
    font-size: 14px;
    line-height: 1.6;
}

.terms-content a {
    color: #7cb342;
    text-decoration: underline;
}

.close-modal {
    position: absolute;
    top: -5px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-modal:hover {
    transform: rotate(90deg);
}

/* Responsive Design */
@media (max-width: 968px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .api-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 280px;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: 30px 20px;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
        align-items: flex-start;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .side-share {
        display: none;
    }
    
    .hero-logo h1 {
        font-size: 32px;
    }
    
    .hero-section {
        min-height: 500px;
    }
    
    .tabs-header {
        flex-direction: column;
    }
    
    .feature-box {
        padding: 40px 30px;
    }
}

@media (max-width: 640px) {
    .api-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .api-card {
        padding: 25px 15px;
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .top-bar-left {
        flex-direction: column;
        gap: 5px;
    }
    
    .hero-logo h1 {
        font-size: 24px;
    }
    
    .hero-logo img {
        height: 80px;
    }
    
    .code-block {
        padding: 20px;
        font-size: 12px;
    }
    
    .feature-box h2 {
        font-size: 22px;
    }
    
    .feature-box p {
        font-size: 14px;
    }
    
    .container {
        padding: 0 15px;
    }
}

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

/* Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #7cb342;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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