/* Star Modshub - Modern Purple Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --purple-primary: #8B5CF6;
    --purple-secondary: #A78BFA;
    --purple-dark: #6D28D9;
    --purple-alt: #8a2be2;
    --purple-light: #da70d6;
    --text-primary: #E2E8F0;
    --text-secondary: #ffffff;
    --text-muted: #cccccc;
    --text-dark: #1E293B;
    --bg-main: linear-gradient(135deg, #1E1B4B 0%, #0F0F23 50%, #000000 100%);
    --bg-card: rgba(30, 27, 75, 0.6);
    --bg-section: rgba(15, 15, 35, 0.5);
    --bg-header: rgba(15, 15, 35, 0.95);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FFFFFF 0%, #8B5CF6 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg-header);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

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

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--purple-secondary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--purple-primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.cart-icon {
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.cart-icon:hover {
    color: var(--purple-secondary);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--purple-primary);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: 0.3s;
}

/* Main Content */
.main-content {
    padding-top: 80px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: heroZoom 8s ease-in-out infinite alternate, heroFadeIn 1.5s ease-out;
    transition: background-image 1s ease-in-out;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(30, 27, 75, 0.6));
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    animation: heroContentFadeIn 1.5s ease-out 0.5s forwards;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #8B5CF6 50%, #A78BFA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--purple-primary), var(--purple-secondary));
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.4s both;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

/* Sections */
.section {
    padding: 5rem 0;
    position: relative;
}

.section-bg {
    background: var(--bg-section);
    backdrop-filter: blur(10px);
}

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

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #8B5CF6 50%, #A78BFA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
    border-color: var(--purple-primary);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    text-align: center;
}

.card-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    text-align: center;
}

.card-button {
    background: linear-gradient(135deg, var(--purple-primary), var(--purple-secondary));
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin-top: auto;
}

.card-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.2);
}

.product-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1rem;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    text-align: center;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--purple-secondary);
    margin-bottom: 1rem;
}

.product-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    text-align: center;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--purple-primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Footer */
.footer {
    background: var(--bg-header);
    backdrop-filter: blur(20px);
    padding: 3rem 0 1rem;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--purple-secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--text-muted);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroZoom {
    0% {
        background-size: 100%;
    }
    100% {
        background-size: 110%;
    }
}

@keyframes heroFadeIn {
    0% {
        opacity: 0;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes heroContentFadeIn {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Go to Top Button */
.go-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--purple-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 1000;
}

.go-to-top:hover {
    background: var(--purple-dark);
    transform: translateY(-2px);
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    z-index: 1001;
    display: none;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.cookie-accept, .cookie-decline {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cookie-accept {
    background: var(--purple-primary);
    color: white;
}

.cookie-decline {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Notifications */
.notification {
    position: fixed;
    top: 100px;
    right: 2rem;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    z-index: 1002;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-color: #10B981;
}

.notification.error {
    border-color: #EF4444;
}

/* Cart */
.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: var(--purple-secondary);
    font-weight: 700;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: var(--purple-primary);
    color: white;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-item {
    background: #EF4444;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1003;
}

.modal-content {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

/* About Page Styles */
.about-story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    overflow-x: hidden;
}

.about-image {
    text-align: center;
}

.story-image {
    width: 100%;
    max-width: 400px;
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
    border: 2px solid rgba(139, 92, 246, 0.3);
}

.about-content {
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    align-items: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-header);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 1rem;
        transition: left 0.3s ease;
        transform: none;
        text-align: center;
        border-top: 1px solid rgba(139, 92, 246, 0.2);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-container {
        padding: 0 1rem;
        text-align: center;
        justify-content: space-between;
    }
    
    .nav-right {
        display: flex;
        align-items: center;
        gap: 1rem;
        z-index: 1001;
    }
    
    .hamburger {
        display: flex;
        z-index: 1002;
        position: relative;
    }
    
    /* Hero Mobile Styles */
    .main-content {
        padding-top: 0;
        margin-top: 0;
    }
    
    .hero {
        min-height: 70vh;
        padding-top: 60px;
        padding-bottom: 0;
        background-attachment: scroll;
        background-size: cover !important;
        background-position: center center;
        background-repeat: no-repeat;
        margin-top: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    
    .header {
        padding: 0.5rem 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
        text-align: center;
        margin-bottom: 1rem;
        line-height: 1.2;
        padding: 0 1rem;
        color: #ffffff;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        text-align: center;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
        line-height: 1.4;
        color: rgba(255, 255, 255, 0.9);
    }
    
    .hero-content {
        text-align: center;
        padding: 1rem;
        max-width: 100%;
        width: 100%;
    }
    
    .cta-button {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
        display: inline-block;
        margin: 0 auto;
        width: auto;
        min-width: 160px;
        touch-action: manipulation;
    }
    
    /* Section Mobile Styles */
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
        text-align: center;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
        margin-top: 2rem;
    }
    
    .card {
        text-align: center;
        padding: 1.5rem;
        margin: 0 auto;
        max-width: 100%;
    }
    
    .card-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .card-description {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .card-button {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
        display: block;
        text-align: center;
    }
    
    .card-image {
        width: 100%;
        height: 180px;
        object-fit: cover;
        border-radius: 15px;
        margin-bottom: 1rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .product-card {
        text-align: center;
    }
    
    .container {
        padding: 0 1rem;
        text-align: center;
    }
    
    .footer-content {
        text-align: center;
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .cookie-popup {
        left: 1rem;
        right: 1rem;
        text-align: center;
    }
    
    .notification {
        right: 1rem;
        left: 1rem;
        text-align: center;
    }
    
    .modal-content {
        text-align: center;
    }
    
    .form-group {
        text-align: left;
    }
    
    .about-story-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        overflow-x: hidden;
    }
    
    .about-content {
        text-align: center;
        padding: 0 1rem;
        word-wrap: break-word;
    }
    
    .story-image {
        max-width: 280px;
        height: 220px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .values-grid h3 {
        text-align: center;
        font-size: 1.5rem;
    }
    
    .values-grid p {
        text-align: center;
    }
    
    /* Contact Page Mobile Styles */
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .contact-form,
    .contact-info {
        text-align: center;
    }
    
    .faq-accordion {
        text-align: center;
    }
    
    .faq-question {
        text-align: center !important;
    }
    
    .faq-answer {
        text-align: center !important;
    }
    
    /* Cart Page Mobile Styles */
    #cartLayout {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cart-item-details {
        text-align: center;
    }
    
    .quantity-controls {
        justify-content: center;
    }
    
    #orderSummary {
        text-align: center;
    }
    
    #emptyCart {
        text-align: center;
        padding: 3rem 1rem;
    }
    
    /* Blog Post Mobile Styles */
    .section {
        margin-top: 80px;
    }
    
    article {
        text-align: center;
        padding: 0 1rem;
    }
    
    article img {
        height: 200px !important;
        margin-bottom: 1.5rem !important;
    }
    
    article h2 {
        text-align: center;
        font-size: 1.5rem !important;
    }
    
    article p {
        text-align: center;
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding-top: 0;
        margin-top: 0;
    }
    
    .hero {
        min-height: 70vh;
        padding-top: 50px;
        padding-bottom: 0;
        background-size: cover !important;
        background-position: center center;
        background-repeat: no-repeat;
        margin-top: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    
    .header {
        padding: 0.3rem 0;
    }
    
    .hero-title {
        font-size: 1.6rem;
        text-align: center;
        margin-bottom: 0.8rem;
        line-height: 1.2;
        padding: 0 1rem;
        color: #ffffff;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
        text-align: center;
        padding: 0 1rem;
        margin-bottom: 1.2rem;
        line-height: 1.3;
        color: rgba(255, 255, 255, 0.9);
    }
    
    .hero-content {
        padding: 0.5rem 1rem;
        width: 100%;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        min-width: 140px;
        touch-action: manipulation;
    }
    
    .section {
        padding: 2.5rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        text-align: center;
        padding: 0 0.5rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }
    
    .card {
        padding: 1.2rem;
        text-align: center;
        margin: 0;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
    
    .card-description {
        font-size: 0.9rem;
    }
    
    .card-image {
        height: 160px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 0.5rem;
    }
    
    .container {
        padding: 0 0.5rem;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
}