﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #121212;
    color: #ffffff;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    width: 100%;
}

.sticky-nav {
    background-color: #1e1e1e;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 25px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5em;
    font-weight: 700;
    color: #ffd700;
}

.hamburger {
    display: none;
    font-size: 1.5em;
    color: #ffffff;
    cursor: pointer;
}

.nav-links {
    display: flex;
    list-style: none;
}

    .nav-links li {
        margin-left: 20px;
    }

    .nav-links a {
        color: #ffffff;
        text-decoration: none;
        font-size: 1.1em;
        font-weight: 400;
        transition: color 0.3s ease;
    }

        .nav-links a:hover,
        .nav-links a.active {
            color: #ffd700;
        }

.header {
    background: linear-gradient(135deg, #2b5876, #4e4376);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0.3) 100%);
        z-index: 1;
    }

.header-content {
    position: relative;
    z-index: 2;
}

.header h1 {
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeInDown 1s ease-out;
}

.header p {
    font-size: 1.3em;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.header-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #ff6f61;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    animation: fadeInUp 1s ease-out 0.6s both;
}

    .header-btn:hover {
        background-color: #e55a50;
        transform: translateY(-3px);
    }

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 20px; /* Reduced padding for better mobile fit */
    width: 100%;
    box-sizing: border-box;
}

.buttons-layout {
    display: flex;
    gap: 30px;
    max-width: 100%;
    box-sizing: border-box;
}

.buttons-main {
    flex: 3;
}

.buttons-sidebar {
    flex: 1;
    padding: 20px;
    background-color: #1e1e1e;
    border-radius: 10px;
}

    .buttons-sidebar h3 {
        font-size: 1.6em;
        margin-bottom: 20px;
        color: #ffd700;
    }

    .buttons-sidebar ul {
        list-style: none;
        padding: 0;
    }

    .buttons-sidebar a {
        color: #ffffff;
        text-decoration: none;
        font-size: 1em;
        display: block;
        padding: 10px 0;
        transition: color 0.3s ease;
    }

        .buttons-sidebar a:hover {
            color: #ffd700;
        }

.social-share {
    margin-top: 20px;
}

    .social-share h3 {
        font-size: 1.4em;
        margin-bottom: 10px;
        color: #ffd700;
    }

    .social-share a {
        color: #ffffff;
        font-size: 1.5em;
        margin-right: 15px;
        transition: color 0.3s ease;
    }

        .social-share a:hover {
            color: #ffd700;
        }

.adsense-placeholder {
    margin-top: 20px;
    text-align: center;
    color: #bbbbbb;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 30px;
}

.template-card {
    background: linear-gradient(#1e1e1e, #1e1e1e) padding-box, linear-gradient(135deg, #ff6f61, #1e90ff) border-box;
    border: 1px solid transparent;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
}

    .template-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    }

    .template-card img {
        width: 100%;
        height: 230px;
        object-fit: cover;
    }

.template-info {
    padding: 25px;
}

    .template-info h3 {
        font-size: 1.6em;
        margin-bottom: 10px;
        color: #ffd700;
    }

    .template-info .description {
        font-size: 1em;
        color: #bbbbbb;
        margin-bottom: 15px;
        line-height: 1.5;
        height: 70px;
        overflow: hidden;
    }

.buttons {
    display: flex;
    gap: 15px;
}

.template-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.live-btn {
    background-color: #1e90ff;
    color: white;
}

    .live-btn:hover {
        background-color: #1565c0;
        transform: scale(1.05);
    }

.buy-btn {
    background-color: #ff4500;
    color: white;
}

    .buy-btn:hover {
        background-color: #d83a00;
        transform: scale(1.05);
    }

.features-header {
    text-align: center;
    margin-bottom: 50px;
}

    .features-header h2 {
        font-size: 2.5em;
        font-weight: 600;
        margin-bottom: 15px;
        color: #ffd700;
        animation: fadeInDown 1s ease-out;
    }

    .features-header p {
        font-size: 1.2em;
        color: #bbbbbb;
        animation: fadeInUp 1s ease-out 0.3s both;
    }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: #1e1e1e;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

    .feature-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    }

    .feature-card i {
        color: #ff6f61;
        margin-bottom: 15px;
    }

    .feature-card h3 {
        font-size: 1.4em;
        margin-bottom: 10px;
        color: #ffffff;
    }

    .feature-card p {
        font-size: 1em;
        color: #bbbbbb;
        line-height: 1.5;
    }

.footer {
    text-align: center;
    padding: 20px;
    background-color: #1e1e1e;
    color: #bbbbbb;
    font-size: 0.9em;
    margin-top: 50px;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .template-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
    }

    .container {
        padding: 20px 8px;
        max-width: 100%;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

        .hamburger i {
            color: #ffffff;
            font-size: 1.3em;
            transition: color 0.3s ease;
        }

            .hamburger i.fa-bars {
                color: #ffffff;
            }

            .hamburger i.fa-times {
                color: #ff6f61;
            }

    .sticky-nav .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 10px;
    }

    .sticky-nav ul {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color: #1e1e1e;
        padding: 50px 15px 15px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
        transform: translateY(-100%);
        transition: transform 0.3s ease, opacity 0.3s ease;
        opacity: 0;
        z-index: 999;
    }

        .sticky-nav ul.active {
            display: flex;
            transform: translateY(0);
            opacity: 1;
            animation: slideInDown 0.3s ease-out;
        }

    .sticky-nav li {
        margin: 10px 0;
        text-align: center;
    }

    .sticky-nav a {
        font-size: 1em;
        display: block;
        padding: 8px;
    }

    .header h1 {
        font-size: 1.6em;
        line-height: 1.2;
    }

    .header p {
        font-size: 0.9em;
    }

    .header {
        padding: 40px 10px;
    }

    .buttons-layout {
        flex-direction: column;
        padding: 0 5px;
        max-width: 100%;
    }

    .buttons-main {
        width: 100%;
    }

        .buttons-main h2 {
            font-size: 1.4em;
        }

        .buttons-main h3 {
            font-size: 1.2em;
            margin: 10px 0;
        }

        .buttons-main p, .buttons-main ul {
            font-size: 0.85em;
            margin: 8px 0;
        }

    .buttons-sidebar {
        position: static;
        width: 100%;
        margin-top: 10px;
        padding: 10px 0;
        background-color: transparent;
    }

        .buttons-sidebar h3 {
            font-size: 1.1em;
        }

        .buttons-sidebar a {
            font-size: 0.85em;
            padding: 6px 0;
        }

    .anim-section {
        padding: 15px;
        margin: 10px 0;
        border-radius: 10px;
        overflow: hidden;
        max-width: 100%;
        box-sizing: border-box;
    }

        .anim-section h3 {
            font-size: 1.2em;
            margin-bottom: 10px;
        }

        .anim-section p, .anim-section ul {
            font-size: 0.85em;
            margin-bottom: 10px;
        }

    .anim-code-container {
        flex-direction: column !important;
        gap: 10px;
        width: 100%;
        max-width: 100% !important;
        padding: 5px;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .code-editor, .code-output {
        min-width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        margin: 0;
    }

        .code-editor .CodeMirror {
            height: 180px;
            font-size: 0.8em;
            width: 100%;
            overflow-x: auto;
            box-sizing: border-box;
        }

        .code-editor .CodeMirror-linenumber {
            font-size: 0.8em;
        }

        .code-output iframe {
            height: 150px !important;
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
            border: none;
        }

    .anim-header {
        font-size: 1em;
        padding: 8px;
    }

    .code-actions {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .template-btn {
        padding: 8px;
        font-size: 0.8em;
        width: 100%;
        box-sizing: border-box;
    }

    .anim-note {
        font-size: 0.8em;
        padding: 8px;
        margin: 8px 0;
    }

    .anim-icon {
        font-size: 1em;
        margin-right: 8px;
    }

    .social-share a {
        font-size: 1.2em;
        margin-right: 10px;
    }

    .footer {
        padding: 15px;
        font-size: 0.8em;
    }
}
