:root {
    /* Colors */
    --bg-color: #0B0D17;
    --bg-secondary: #151932;
    --text-primary: #FFFFFF;
    --text-secondary: #A0AAB5;
    --accent-cyan: #00F0FF;
    --accent-purple: #7000FF;
    --accent-pink: #FF0055;

    /* Fonts */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;

    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
}

html {
    scroll-behavior: smooth;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Stars Effect */
#stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%);
    overflow: hidden;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle var(--duration) ease-in-out infinite;
    opacity: var(--opacity);
}

@keyframes twinkle {

    0%,
    100% {
        opacity: var(--opacity);
        transform: scale(1);
    }

    50% {
        opacity: 0.2;
        transform: scale(0.8);
    }
}

/* Typography */
h1,
h2,
h3,
.logo {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(11, 13, 23, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

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

.nav-links a:hover {
    color: var(--accent-cyan);
}

/* Sections */
.section {
    padding: var(--spacing-xl) 5%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-size: 3rem;
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(to right, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
}

.hero-content h1 {
    font-size: 5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    min-height: 1.1em;
    /* Prevent layout shift */
    display: inline-block;
    border-right: 4px solid var(--accent-cyan);
    padding-right: 10px;
    animation: blink-cursor 0.75s step-end infinite;
}

@keyframes blink-cursor {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: var(--accent-cyan);
    }
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    background: var(--accent-cyan);
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 400px;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-purple);
    box-shadow: 0 10px 30px rgba(112, 0, 255, 0.2), 0 0 20px rgba(0, 240, 255, 0.1);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.project-card:hover::before {
    transform: translateX(100%);
}

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

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-content p {
    color: var(--text-secondary);
}

/* Footer */
footer {
    padding: 2rem 5%;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
        /* Simple hide for now, mobile menu to be added */
    }
}

/* Tier List Styles */
.tier-list-page {
    padding-top: 80px;
    /* Space for navbar */
}

.tier-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tier-row {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 120px;
    border-radius: 8px;
    overflow: hidden;
}

.tier-label {
    width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.tier-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

.tier-label span {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
}

.tier-content {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

/* Tier Specific Colors */
.s-tier .tier-label {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(0, 0, 0, 0.5));
    border-left: 4px solid #FFD700;
}

.s-tier .tier-label span {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.a-tier .tier-label {
    background: linear-gradient(135deg, rgba(112, 0, 255, 0.1), rgba(0, 0, 0, 0.5));
    border-left: 4px solid #7000FF;
}

.a-tier .tier-label span {
    color: #7000FF;
    text-shadow: 0 0 10px rgba(112, 0, 255, 0.5);
}

.b-tier .tier-label {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(0, 0, 0, 0.5));
    border-left: 4px solid #00F0FF;
}

.b-tier .tier-label span {
    color: #00F0FF;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.c-tier .tier-label {
    background: linear-gradient(135deg, rgba(0, 255, 128, 0.1), rgba(0, 0, 0, 0.5));
    border-left: 4px solid #00FF80;
}

.c-tier .tier-label span {
    color: #00FF80;
    text-shadow: 0 0 10px rgba(0, 255, 128, 0.5);
}

.d-tier .tier-label {
    background: linear-gradient(135deg, rgba(160, 170, 181, 0.1), rgba(0, 0, 0, 0.5));
    border-left: 4px solid #A0AAB5;
}

.d-tier .tier-label span {
    color: #A0AAB5;
}

/* Tier Items */
.tier-item {
    width: 100px;
    height: 100px;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tier-item:hover {
    transform: scale(1.1);
    z-index: 10;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    border-color: var(--accent-cyan);
}

.tier-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 0.7rem;
    padding: 2px 5px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.tier-item:hover .item-overlay {
    opacity: 1;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    overflow-y: auto;
}

.modal-content {
    background-color: var(--bg-secondary);
    margin: 5% auto;
    padding: 2rem;
    border: 1px solid var(--accent-cyan);
    width: 80%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
    border-radius: 8px;
}

.close-modal {
    color: var(--text-secondary);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--accent-cyan);
}

.modal-body {
    margin-top: 1rem;
}

#modal-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.tier-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tier-row {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 120px;
    border-radius: 8px;
    overflow: hidden;
}

.tier-label {
    width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.tier-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

.tier-label span {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
}

.tier-content {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

/* Tier Specific Colors */
.s-tier .tier-label {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(0, 0, 0, 0.5));
    border-left: 4px solid #FFD700;
}

.s-tier .tier-label span {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.a-tier .tier-label {
    background: linear-gradient(135deg, rgba(112, 0, 255, 0.1), rgba(0, 0, 0, 0.5));
    border-left: 4px solid #7000FF;
}

.a-tier .tier-label span {
    color: #7000FF;
    text-shadow: 0 0 10px rgba(112, 0, 255, 0.5);
}

.b-tier .tier-label {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(0, 0, 0, 0.5));
    border-left: 4px solid #00F0FF;
}

.b-tier .tier-label span {
    color: #00F0FF;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.c-tier .tier-label {
    background: linear-gradient(135deg, rgba(0, 255, 128, 0.1), rgba(0, 0, 0, 0.5));
    border-left: 4px solid #00FF80;
}

.c-tier .tier-label span {
    color: #00FF80;
    text-shadow: 0 0 10px rgba(0, 255, 128, 0.5);
}

.d-tier .tier-label {
    background: linear-gradient(135deg, rgba(160, 170, 181, 0.1), rgba(0, 0, 0, 0.5));
    border-left: 4px solid #A0AAB5;
}

.d-tier .tier-label span {
    color: #A0AAB5;
}

/* Tier Items */
.tier-item {
    width: 100px;
    height: 100px;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tier-item:hover {
    transform: scale(1.1);
    z-index: 10;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    border-color: var(--accent-cyan);
}

.tier-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 0.7rem;
    padding: 2px 5px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.tier-item:hover .item-overlay {
    opacity: 1;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    overflow-y: auto;
}

.modal-content {
    background-color: var(--bg-secondary);
    margin: 5% auto;
    padding: 2rem;
    border: 1px solid var(--accent-cyan);
    width: 80%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
    border-radius: 8px;
}

.close-modal {
    color: var(--text-secondary);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--accent-cyan);
}

.modal-body {
    margin-top: 1rem;
}

#modal-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

#modal-title {
    color: var(--accent-cyan);
    margin-bottom: 1rem;
}

#modal-text {
    color: var(--text-primary);
    line-height: 1.8;
}

/* Editor Styles */
.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.header-row .section-title {
    margin-bottom: 0;
}

.editor-content {
    max-width: 900px;
    background: #1a1f3c;
    /* Slightly lighter than bg-secondary */
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-cyan);
    font-weight: 600;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 4px;
    font-family: var(--font-body);
}

.tier-select {
    display: flex;
    gap: 1.5rem;
}

.tier-select label {
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toolbar {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 4px 4px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.tool-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tool-group label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.tool-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.tool-btn:hover {
    background: var(--accent-cyan);
    color: black;
}

.editor-area {
    min-height: 400px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    padding: 2rem;
    color: white;
    outline: none;
    overflow-y: auto;
    border-radius: 0 0 4px 4px;
    margin-bottom: 2rem;
}

.editor-area img {
    max-width: 100%;
    cursor: pointer;
    border: 2px solid transparent;
}

}

.tier-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 0.7rem;
    padding: 2px 5px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.tier-item:hover .item-overlay {
    opacity: 1;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    overflow-y: auto;
}

.modal-content {
    background-color: var(--bg-secondary);
    margin: 5% auto;
    padding: 2rem;
    border: 1px solid var(--accent-cyan);
    width: 80%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
    border-radius: 8px;
}

.close-modal {
    color: var(--text-secondary);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--accent-cyan);
}

.modal-body {
    margin-top: 1rem;
}

#modal-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

#modal-title {
    color: var(--accent-cyan);
    margin-bottom: 1rem;
}

#modal-text {
    color: var(--text-primary);
    line-height: 1.8;
}

/* Editor Styles */
.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.header-row .section-title {
    margin-bottom: 0;
}

.editor-content {
    max-width: 900px;
    background: #1a1f3c;
    /* Slightly lighter than bg-secondary */
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-cyan);
    font-weight: 600;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 4px;
    font-family: var(--font-body);
}

.tier-select {
    display: flex;
    gap: 1.5rem;
}

.tier-select label {
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toolbar {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 4px 4px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.tool-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tool-group label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.tool-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.tool-btn:hover {
    background: var(--accent-cyan);
    color: black;
}

.editor-area {
    min-height: 400px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    padding: 2rem;
    color: white;
    outline: none;
    overflow-y: auto;
    border-radius: 0 0 4px 4px;
    margin-bottom: 2rem;
}

.editor-area img {
    max-width: 100%;
    cursor: pointer;
    border: 2px solid transparent;
}

.editor-area img.selected {
    border-color: var(--accent-cyan);
}

/* Image Resize Control (Dynamic) */
.resize-control {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    padding: 0.5rem;
    border-radius: 4px;
    display: none;
    z-index: 1001;
}

/* Admin Controls */
.admin-controls {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}