/* =============================
   BASE VARIABLES AND RESET
   ============================= */
:root {
    --primary-black: #121212;
    --secondary-black: #1e1e1e;
    --accent-purple: #8a2be2;
    --accent-green: #00ff7f;
    --text-white: #ffffff;
    --text-gray: #cccccc;
    --text-light: #e0e0e0;
    --border-color: #333333;
    --glass-effect: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition-speed: 0.3s;
}

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

/* =============================
   TYPOGRAPHY
   ============================= */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--primary-black);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: var(--text-white);
    transition: color var(--transition-speed) ease;
}

/* =============================
   HEADER & NAVIGATION
   ============================= */
header {
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

nav {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform var(--transition-speed) ease;
}

.logo-image:hover { transform: scale(1.1); }

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-purple);
    white-space: nowrap;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    position: relative;
    font-weight: 500;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-purple);
    transition: width var(--transition-speed) ease;
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a:hover,
.nav-links a.active { color: var(--accent-purple); }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-white);
    border-radius: 2px;
    transition: all var(--transition-speed) ease;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--glass-border);
    padding: 6rem 2rem 2rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-menu.active { right: 0; }

.mobile-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background var(--transition-speed) ease;
}

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

.mobile-menu a {
    padding: 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    transition: all var(--transition-speed) ease;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    background: rgba(138, 43, 226, 0.2);
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 998;
}

.mobile-overlay.active { opacity: 1; visibility: visible; }

/* =============================
   HERO SECTION
   ============================= */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--secondary-black) 50%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(138, 43, 226, 0.1) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-content {
    max-width: 900px;
    z-index: 2;
    position: relative;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-white) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: 2.5rem;
    color: var(--text-gray);
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--accent-purple) 0%, #7b1dd1 100%);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all var(--transition-speed) ease;
    border: 1px solid rgba(138, 43, 226, 0.3);
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.5);
    background: linear-gradient(135deg, #9d4dff 0%, var(--accent-purple) 100%);
}

/* =============================
   SECTIONS
   ============================= */
section {
    padding: 5rem 2rem;
    max-width: 1440px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 4rem;
}

.page-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    color: var(--text-white);
}

.page-header p {
    color: var(--text-gray);
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 700px;
    margin: 0 auto;
}

/* ==============================
   Contact Section Glass Effect
   ============================== */
.contact-content {
    background: rgba(255, 255, 255, 0.05); /* semi-transparent glass */
    border: 1px solid rgba(255, 255, 255, 0.1); /* subtle border */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 2rem;
    max-width: 900px;
    margin: 2rem auto;
    transition: all 0.3s ease;
}

.contact-content h2,
.contact-content h3 {
    color: var(--accent-purple); /* optional accent for headings */
    margin-bottom: 1rem;
}

.contact-content p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Optional: subtle hover for interactivity */
.contact-content:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(138, 43, 226, 0.15);
}


/* =============================
   ITEM GRID AND CARD
   ============================= */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
    width: 100%;
    align-items: stretch;
}

.item-card {
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform var(--transition-speed) ease,
                box-shadow var(--transition-speed) ease,
                background var(--transition-speed) ease,
                border-color var(--transition-speed) ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border-color: rgba(138, 43, 226, 0.4);
    background: rgba(40, 40, 40, 0.7);
}

.item-image-container {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    padding: clamp(0.5rem, 2vw, 1rem);
    background: rgba(255, 255, 255, 0.02);
    transition: all var(--transition-speed) ease;
}

.item-icon {
    max-width: 85%;
    max-height: 85%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform var(--transition-speed) ease;
}

.item-card:hover .item-icon {
    transform: scale(1.05);
}

.item-content {
    padding: clamp(0.75rem, 2.5vw, 1.5rem);
    display: flex;
    flex-direction: column;
    gap: clamp(0.5rem, 2vw, 1rem);
    flex: 1;
    transition: all var(--transition-speed) ease;
}

.item-content h3 {
    margin: 0;
    font-weight: 700;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-white);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: font-size var(--transition-speed) ease;
}

.item-content p {
    margin: 0;
    font-size: clamp(0.85rem, 2vw, 1rem);
    color: var(--text-gray);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    transition: font-size var(--transition-speed) ease;
}

.item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: clamp(0.5rem, 1.5vw, 1rem);
    border-top: 1px solid var(--glass-border);
    font-size: clamp(0.75rem, 1.5vw, 0.9rem);
    color: var(--text-gray);
    gap: clamp(0.5rem, 1vw, 1rem);
    flex-shrink: 0;
    transition: all var(--transition-speed) ease;
}

.item-meta span {
    display: flex;
    align-items: center;
    gap: clamp(0.25rem, 0.8vw, 0.5rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-actions {
    margin-top: clamp(0.75rem, 2vw, 1rem);
    display: flex;
    gap: clamp(0.5rem, 1.5vw, 1rem);
    flex-shrink: 0;
    transition: all var(--transition-speed) ease;
}

.download-btn,
.view-btn {
    padding: clamp(0.5rem, 1.5vw, 0.75rem) clamp(1rem, 2.5vw, 1.25rem);
    border-radius: 8px;
    font-size: clamp(0.8rem, 2vw, 1rem);
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    border: none;
    cursor: pointer;
    flex: 1;
    text-align: center;
    white-space: nowrap;
}

.download-btn {
    background: linear-gradient(135deg, var(--accent-purple) 0%, #7b1dd1 100%);
    color: white;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.download-btn:hover {
    background: linear-gradient(135deg, #9d4dff 0%, var(--accent-purple) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.4);
}

.view-btn {
    background: linear-gradient(135deg, var(--accent-green) 0%, #00e66f 100%);
    color: var(--primary-black);
    border: 1px solid rgba(0, 255, 127, 0.3);
}

.view-btn:hover {
    background: linear-gradient(135deg, #00ff9f 0%, var(--accent-green) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 127, 0.4);
}

/* =============================
   FOOTER STYLES
   ============================= */
footer {
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 3rem 2rem 2rem;
    margin-top: 5rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    align-items: start;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    color: var(--accent-purple);
    margin-bottom: 0.5rem;
}

.footer-section p,
.footer-section a {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-section a:hover {
    color: var(--accent-purple);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    transition: all var(--transition-speed) ease;
    color: var(--text-white);
    font-size: 1.2rem;
}

.social-link:hover {
    background: rgba(138, 43, 226, 0.2);
    border-color: var(--accent-purple);
    color: var(--accent-purple);
    transform: translateY(-3px);
}

.footer-bottom {
    max-width: 1440px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* =============================
   RESPONSIVE BREAKPOINTS
   ============================= */

/* All screens below 1025px - Show hamburger */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

/* Tablet (<= 768px) - Adjust card scaling with padding, image height, text */
@media (max-width: 768px) {
    .items-grid {
        grid-template-columns: 1fr 1fr; /* Two columns on tablets */
        gap: 1rem; /* Reduce gap */
    }

    .item-card {
        width: 100%;
        min-width: 0;
    }

    .item-image-container {
        aspect-ratio: auto; /* Adjust for smaller screens */
        height: 150px; /* Smaller height */
    }

    .item-icon {
        max-width: 80%;
        max-height: 80%;
    }

    .item-content {
        padding: 0.75rem; /* Reduce padding */
    }

    .item-content h3 {
        font-size: 0.9rem; /* Smaller text */
        margin-bottom: 0.25rem;
    }

    .item-content p {
        font-size: 0.75rem; /* Smaller text */
        margin-bottom: 0.5rem;
    }

    .item-meta {
        font-size: 0.8rem; /* Reduce meta size */
        gap: 0.5rem;
    }

    .item-actions {
        gap: 0.5rem;
    }

    .download-btn,
    .view-btn {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
}

/* Mobile (<= 480px) - Further scaling */
@media (max-width: 480px) {
    .items-grid {
        grid-template-columns: 1fr 1fr; /* Keep 2 columns */
        gap: 0.5rem; /* Smaller gap */
    }

    .item-card {
        width: 100%;
    }

    .item-image-container {
        height: 120px;
    }

    .item-icon {
        max-width: 75%;
        max-height: 75%;
    }

    .item-content {
        padding: 0.5rem;
    }

    .item-content h3 {
        font-size: 0.8rem;
    }

    .item-content p {
        font-size: 0.7rem;
    }

    .item-meta {
        font-size: 0.75rem;
        gap: 0.25rem;
    }

    .item-actions {
        gap: 0.25rem;
    }

    .download-btn,
    .view-btn {
        padding: 0.4rem;
        font-size: 0.8rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Extra Small Devices (<360px) - Compact scaling for hero & footer */
@media (max-width: 359px) {

    /* ================= Hero Section ================= */
    .hero {
        padding: 1rem 0.5rem; /* Reduce overall hero spacing */
        min-height: auto; /* Let hero shrink to fit content */
    }

    .hero-content {
        max-width: 90%; /* Slightly narrower to fit small screens */
        padding: 0 0.25rem;
    }

    .hero h1 {
        font-size: 1.2rem; /* smaller, still readable */
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }

    .hero p {
        font-size: 0.6rem; /* smaller text */
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }

    .cta-button {
        font-size: 0.7rem; /* smaller button */
        padding: 0.45rem 0.8rem; /* reduce padding */
    }

    /* ==============================
    Contact Details - Extra Small Devices (<360px)
    ============================== */
    .contact-details {
        padding: 0.6rem;            /* smaller padding */
        margin-top: 0.5rem;
        border-radius: 10px;        /* slightly smaller corners */
    }

    .contact-details h3 {
        font-size: 0.85rem;         /* smaller sub-heading */
        margin-bottom: 0.3rem;
    }

    .contact-details p {
        font-size: 0.7rem;          /* smaller text */
        line-height: 1.35;
        margin-bottom: 0.25rem;
    }


    /* ================= Footer ================= */
    footer {
        padding: 1.8rem 0.8rem; /* shrink footer spacing */
    }

    .footer-content {
        gap: 0.8rem; /* reduce section gaps */
    }

    .footer-section h3 {
        font-size: 0.8rem; /* smaller headings */
    }

    .footer-section p,
    .footer-section a {
        font-size: 0.65rem; /* smaller text */
    }

    .social-link {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }

    .footer-bottom {
        font-size: 0.6rem; /* smaller copyright */
    }

    /* ================= Detail Page Icon ================= */
    .detail-page .detail-icon {
        max-width: 50%;
        max-height: 50%;
    }

}
