/* ========== RESET & BASE STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #e9edf0;
    overflow-x: hidden;
    width: 100%;
}

/* ========== NAVIGATION BAR - FULLY RESPONSIVE ========== */

    /* ===== NAVBAR RESPONSIVE STYLES ===== */
    .navbar {
        background-color: #2c3e50;
        color: white;
        padding: 0.8rem 0;
        position: sticky;
        top: 0;
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        width: 100%;
    }

    .nav-container {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 15px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .logo h2 {
        color: #fff;
        font-size: 1.2rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .logo h2 a {
        display: flex;
        align-items: center;
        text-decoration: none;
    }

    .rounded-image {
        width: 35px;
        height: 35px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid rgba(255,255,255,0.2);
    }

    /* ===== HAMBURGER MENU ===== */
    .menu-toggle {
        display: none;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        padding: 8px;
        background: none;
        border: none;
        border-radius: 5px;
        transition: background 0.3s ease;
    }

    .menu-toggle:hover {
        background: rgba(255,255,255,0.1);
    }

    .menu-toggle span {
        display: block;
        width: 28px;
        height: 3px;
        background: white;
        border-radius: 3px;
        transition: all 0.3s ease;
        transform-origin: center;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    /* ===== NAV MENU ===== */
    .nav-menu {
        display: flex;
        list-style: none;
        gap: 0.6rem;
        align-items: center;
        flex-wrap: wrap;
        margin: 0;
        padding: 0;
    }

    .nav-menu li {
        position: relative;
    }

    .nav-menu a {
        text-decoration: none;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        padding: 0.5rem 1rem;
        font-weight: 500;
        font-size: 0.75rem;
        letter-spacing: 0.3px;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        white-space: nowrap;
        color: white;
        background: linear-gradient(135deg, #667eea 0%, #2c3e50 100%);
        border: 2px solid #5a67d8;
    }

    .nav-menu a:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(102, 126, 234, 0.3);
        background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    }

    .nav-menu a i {
        font-size: 0.85rem;
    }

    #cart-count {
        background: #ffd700;
        color: #2c3e50;
        padding: 1px 8px;
        border-radius: 12px;
        font-size: 0.65rem;
        font-weight: 700;
        margin-left: 3px;
    }

    /* ===== DROPDOWN - FIXED ===== */
    /* ===== DROPDOWN - FIXED ===== */
.dropdown {
    position: relative;
}

.dropdown-btn {
    background: linear-gradient(135deg, #667eea 0%, #2c3e50 100%) !important;
    color: white !important;
    border: 2px solid #5a67d8 !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    cursor: pointer;
}

.dropdown-btn i.fa-chevron-down {
    font-size: 0.6rem;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

/* Desktop: Show when active class is added */
.dropdown.active .dropdown-btn i.fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-top: 8px;
    z-index: 1001;
    overflow: hidden;
    padding: 5px 0;
    animation: slideDown 0.3s ease;
}

/* Show dropdown when active class is added */
.dropdown.active .dropdown-content {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    color: #333 !important;
    background: white !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border-bottom: 1px solid #f0f0f0 !important;
    font-size: 0.85rem !important;
    text-transform: none !important;
    font-weight: 500 !important;
    white-space: nowrap;
}

.dropdown-content a i {
    width: 18px;
    color: #667eea;
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    background: #f7f7f7 !important;
    padding-left: 25px;
    color: #667eea !important;
    transform: none !important;
    box-shadow: none !important;
}

.dropdown-content hr {
    margin: 5px 0;
    border: none;
    border-top: 1px solid #e2e8f0;
}

/* ===== RESPONSIVE - TABLET & MOBILE ===== */
@media screen and (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem 0;
        border-top: 1px solid rgba(255,255,255,0.1);
        margin-top: 10px;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        width: 100%;
        justify-content: center;
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }

    /* Dropdown on mobile */
    .dropdown {
        width: 100%;
    }

    .dropdown-btn {
        width: 100%;
        justify-content: center;
    }

    .dropdown-content {
        position: static;
        width: 100%;
        box-shadow: none;
        background: rgba(255,255,255,0.05) !important;
        margin-top: 5px;
        border-radius: 8px;
        border: 1px solid rgba(255,255,255,0.1);
        padding: 0;
        display: none;
    }

    .dropdown.active .dropdown-content {
        display: block !important;
        animation: slideDown 0.3s ease;
    }

    .dropdown.active .dropdown-btn i.fa-chevron-down {
        transform: rotate(180deg);
    }

    .dropdown-content a {
        color: white !important;
        background: rgba(255,255,255,0.05) !important;
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
        justify-content: center;
        padding: 12px 15px;
    }

    .dropdown-content a:hover {
        background: rgba(255,255,255,0.15) !important;
        color: #667eea !important;
        padding-left: 15px;
    }

    .dropdown-content a i {
        color: #667eea;
    }

    .dropdown-content hr {
        border-color: rgba(255,255,255,0.1);
    }
}

@media screen and (max-width: 480px) {
    .logo h2 {
        font-size: 1rem;
    }

    .rounded-image {
        width: 28px;
        height: 28px;
    }

    .nav-container {
        padding: 0 10px;
    }

    .nav-menu a {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
    }

    .menu-toggle span {
        width: 24px;
        height: 2.5px;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 5px);
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -5px);
    }
}
/* ===== CARD - FULLY RESPONSIVE ===== */
.card {
    width: 100%;
    max-width: 1200px;
    padding: 15px;
    min-height: auto;
    border: 1px solid #0d1117;
    border-radius: 10px;
    background-color: #000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    margin: 10px auto;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.mac-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.mac-header span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mac-header .red { background-color: #ff5f57; }
.mac-header .yellow { background-color: #ffbd2e; }
.mac-header .green { background-color: #28c941; }

.card-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 8px;
    color: #e6e6ef;
}

.card-description {
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
}

.card .card-tag {
    display: inline-block;
    font-size: 9px;
    border-radius: 5px;
    background-color: #0d1117;
    padding: 3px 8px;
    margin-bottom: 10px;
    color: #dcdcdc;
}

.code-editor {
    background-color: #0d1117;
    color: #dcdcdc;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", monospace;
    font-size: 13px;
    line-height: 1.5;
    border-radius: 5px;
    padding: 12px;
    overflow: auto;
    min-height: 300px;
    max-height: 500px;
    border: 1px solid #333;
}

.code-editor::-webkit-scrollbar {
    width: 6px;
}

.code-editor::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.code-editor pre code {
    white-space: pre-wrap;
    display: block;
}

/* ===== RESPONSIVE CARD ===== */
@media screen and (max-width: 768px) {
    .card {
        padding: 12px;
        margin: 8px auto;
    }

    .card-title {
        font-size: 14px;
    }

    .card-description {
        font-size: 12px;
    }

    .code-editor {
        font-size: 12px;
        padding: 10px;
        min-height: 200px;
        max-height: 350px;
    }

    .code-editor h1 {
        font-size: 1.2rem !important;
    }

    .code-editor p {
        font-size: 0.9rem !important;
    }
}

@media screen and (max-width: 480px) {
    .card {
        padding: 10px;
        border-radius: 8px;
    }

    .mac-header span {
        width: 8px;
        height: 8px;
    }

    .card-title {
        font-size: 13px;
    }

    .code-editor {
        font-size: 11px;
        padding: 8px;
        min-height: 150px;
        max-height: 280px;
    }

    .code-editor h1 {
        font-size: 1rem !important;
    }

    .code-editor p {
        font-size: 0.8rem !important;
    }
}

/* ===== AI BUTTON - RESPONSIVE ===== */
.outer-cont {
    padding: 10px 16px;
    width: 100%;
    max-width: 200px;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    position: relative;
    background: linear-gradient(90deg, #5bfcc4, #f593e4, #71a4f0);
    border-radius: 12px;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: inset 0px 0px 5px #ffffffa9, inset 0px 35px 30px #000, 0px 5px 10px #000000cc;
    text-shadow: 1px 1px 1px #000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.outer-cont svg {
    width: 20px;
    height: 20px;
}

.outer-cont a {
    text-decoration: none;
    color: antiquewhite;
    font-weight: 600;
    font-size: 0.85rem;
}

.outer-cont::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    border-radius: 12px;
    filter: blur(0);
    z-index: -1;
    box-shadow: none;
    background: conic-gradient(#00000000 80deg, #40baf7, #f34ad7, #5bfcc4, #00000000 280deg);
    transition: all 0.3s ease;
}

.outer-cont:hover::before {
    filter: blur(15px);
}

.outer-cont:active::before {
    filter: blur(5px);
    transform: translateY(1px);
}

.outer-cont:active {
    box-shadow: inset 0px 0px 5px #ffffffa9, inset 0px 35px 30px #000;
    margin-top: 3px;
}

@media screen and (max-width: 480px) {
    .outer-cont {
        padding: 8px 14px;
        max-width: 170px;
        font-size: 0.8rem;
    }

    .outer-cont svg {
        width: 18px;
        height: 18px;
    }

    .outer-cont a {
        font-size: 0.75rem;
    }
}

/* ===== TERMINAL LOADER - RESPONSIVE ===== */
.terminal-loader {
    border: 0.1em solid #333;
    background-color: #1a1a1a;
    color: #0f0;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.9rem;
    padding: 1.2em 0.8em;
    width: 100%;
    max-width: 280px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    margin: 20px auto;
}

.terminal-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1.8em;
    background-color: #333;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    padding: 0 0.4em;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.terminal-controls {
    margin-left: auto;
    display: flex;
    gap: 6px;
}

.control {
    display: inline-block;
    width: 0.6em;
    height: 0.6em;
    border-radius: 50%;
    background-color: #777;
}

.control.close { background-color: #e33; }
.control.minimize { background-color: #ee0; }
.control.maximize { background-color: #0b0; }

.terminal-title {
    color: #eee;
    font-size: 0.8rem;
}

.text {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    border-right: 0.2em solid green;
    animation: typeAndDelete 4s steps(11) infinite, blinkCursor 0.5s step-end infinite alternate;
    margin-top: 1.5em;
    font-size: 0.9rem;
}

@keyframes blinkCursor {
    50% { border-right-color: transparent; }
}

@keyframes typeAndDelete {
    0%, 10% { width: 0; }
    45%, 55% { width: 6.2em; }
    90%, 100% { width: 0; }
}

@media screen and (max-width: 480px) {
    .terminal-loader {
        max-width: 100%;
        font-size: 0.8rem;
        padding: 1em 0.6em;
    }

    .text {
        font-size: 0.8rem;
    }

    .terminal-title {
        font-size: 0.7rem;
    }

    .control {
        width: 0.5em;
        height: 0.5em;
    }
}

/* ===== FOOTER - FULLY RESPONSIVE ===== */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
    color: #fff;
    margin-top: 40px;
    width: 100%;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00bfff, #04AA6D, #00bfff);
}

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

.footer-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding: 40px 0 30px;
}

.footer-col h3 {
    color: #00bfff;
    font-size: 1.1rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #00bfff, #04AA6D);
}

.footer-col h4 {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.footer-col p {
    color: #ccc;
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    color: #00bfff;
    transform: translateX(5px);
}

.footer-col ul li i {
    color: #00bfff;
    margin-right: 8px;
    width: 16px;
}

.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.social-links a:hover {
    background: #00bfff;
    transform: translateY(-3px);
}

.newsletter-form {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.newsletter-form input {
    flex: 1;
    min-width: 150px;
    padding: 10px 12px;
    border: 1px solid #444;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    outline: none;
    font-size: 0.9rem;
}

.newsletter-form input:focus {
    border-color: #00bfff;
}

.newsletter-form input::placeholder {
    color: #999;
}

.newsletter-form button {
    width: 42px;
    height: 42px;
    background: #00bfff;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: #04AA6D;
    transform: scale(1.05);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom p {
    color: #ccc;
    margin: 0;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: #00bfff;
    text-decoration: none;
}

.payment-methods {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.payment-methods i {
    font-size: 20px;
    color: #ccc;
    transition: color 0.3s ease;
}

.payment-methods i:hover {
    color: #00bfff;
}

/* ===== RESPONSIVE FOOTER ===== */
@media screen and (max-width: 992px) {
    .footer-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media screen and (max-width: 768px) {
    .footer-row {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 30px 0 20px;
    }

    .footer-col {
        text-align: center;
    }

    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-col ul li a {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .newsletter-form {
        max-width: 100%;
        justify-content: center;
    }

    .footer-bottom .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .payment-methods {
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .footer {
        margin-top: 30px;
    }

    .footer-col h3 {
        font-size: 1rem;
    }

    .footer-col p,
    .footer-col ul li a {
        font-size: 0.85rem;
    }

    .social-links a {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }

    .newsletter-form input {
        font-size: 0.85rem;
        padding: 8px 10px;
        min-width: 120px;
    }

    .newsletter-form button {
        width: 38px;
        height: 38px;
    }

    .payment-methods i {
        font-size: 18px;
    }

    .footer-bottom p {
        font-size: 0.75rem;
    }
}

/* ===== MESSAGES - RESPONSIVE ===== */
.messages-container {
    position: fixed;
    top: 70px;
    right: 10px;
    z-index: 1050;
    max-width: 320px;
    width: 90%;
    pointer-events: none;
}

.messages-container .alert {
    pointer-events: auto;
    margin-bottom: 8px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease-in-out;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 12px 16px;
}

.alert-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.alert-error, .alert-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.alert-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.alert-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media screen and (max-width: 480px) {
    .messages-container {
        top: 60px;
        right: 5px;
        max-width: 280px;
    }

    .messages-container .alert {
        font-size: 0.8rem;
        padding: 10px 12px;
        border-radius: 6px;
    }
}

