/* ===== RESET & BASE STYLES ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Sego UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #0C0f17 0%, #151925 100%);
    color: #e6e9f0;
    min-height: 100vh;
    overflow-x: hidden;
}

.hidden {
    display: none !important;
}

/* ===== HEADER & NAVIGATION ====== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background-color: rgba(12, 15, 23, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(42, 252, 133, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #e6e9f0;
    text-decoration: none;
}

.logo-icon {
    color: #2afc85;
    font-size: 1.8rem;
}

.logo-text {
    background: linear-gradient(90deg, #e6e9f0 0%, #2afc85 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    color: #c2c6d3;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

nav a:hover {
    color: #2afc85;
}

nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    left: 0;
    bottom: 0;
    background-color: #2afc85;
    transition: width 0.3s ease;
}

nav a:hover:after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: #e6e9f0;
    cursor: pointer;
}

/* ===== HERO SECTION ====== */
.hero {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    padding: 120px 40px 60px;
    min-height: 100vh;
}

.content {
    max-width: 600px;
    opacity: 1;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 0.5s;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #e6e9f0 0%, #2afc85 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(46, 252, 139, 0.3);
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #c2c6d3;
    font-weight: 500;
}

p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #c2c6d3;
    margin-bottom: 30px;
}

.typing-text {
    position: relative;
    display: inline-block;
    color: #2afc85;
}

.typing-text::after {
    content: '|';
    position: absolute;
    right: -8px;
    animation: blink 0.7s infinite;
    color: #2afc85;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 0.8s;
}

.btn {
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(90deg, #1ed761 0%, #15c46a 100%);
    color: #0c0f17;
    box-shadow: 0 5px 15px rgba(30, 215, 97, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(30, 215, 97, 0.6);
}

.btn-primary:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(225, 225, 225, 0.4),
            transparent);
    transition: 0.5;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    border: 2px solid #2afc85;
    color: #2afc85;
}

.btn-secondary:hover {
    box-shadow: 0 8px 20px rgba(42, 252, 133, 0.1);
    transform: translateY(-3px);
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 50px;
    opacity: 1;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 1.1s;
}

.social-icons a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1f2e 0%, #232838 100%);
    color: #2afc85;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.social-icons a:hover {
    transform: translateY(-5px);
    color: #151925;
    box-shadow: 0 8px 20px rgba(30, 215, 97, 0.3);
}

.social-icons a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1ed761, #2afc85, #15c46a);
    opacity: 0;
    transition: 0.3s;
    z-index: -1;
}

.socia-icons a:hover::before {
    opacity: 1;
}

/*===== PROFILE IMAGE SECTION ====== */
.profile-container {
    position: relative;
    width: 300px;
    height: 300px;
}

.profile-img {
    width: 240px;
    height: 240px;
    object-fit: cover;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.4);
    border: 4px solid #0c0f17;
    transition: all 0.5s ease;
}

.profile-img:hover {
    transform: translate(-50%, -50%) scale(1.05);
}

/* Animated rings */
.border-outer {
    position: absolute;
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    border-radius: 50%;
    background: conic-gradient(transparent,
            #2afc85,
            transparent,
            transparent);
    z-index: 1;
    animation: rotate 4s linear infinite;
}

.border-middle {
    position: absolute;
    width: 270px;
    height: 270px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    border-radius: 50%;
    background: conic-gradient(transparent,
            #15c46a,
            transparent,
            transparent);
    z-index: 2;
    animation: rotate-reverse 3s linear infinite;
    filter: blur(3px);
}

.border-inner {
    position: absolute;
    width: 240px;
    height: 240px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    border-radius: 50%;
    background: conic-gradient(transparent,
            #1ed761,
            transparent,
            transparent);
    z-index: 3;
    animation: rotate 2s linear infinite;
}

/* Pulsing Effect */
.pulse-ring {
    position: absolute;
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    border-radius: 50%;
    border: 2px solid rgba(42, 252, 133, 0.3);
    z-index: 0;
    animation: pulse 3s ease-out infinite;
}

.pulse-ring:nth-child(2) {
    animation-delay: 1s;
}

.pulse-ring:nth-child(3) {
    animation-delay: 2s;
}

/* Border Container */
.border-container {
    position: absolute;
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 4;
}

.border-container::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    background: linear-gradient(135deg, #151925 0%, #1a1f2e 100%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}

/* ===== Animations ===== */
@keyframes rotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes rotate-reverse {
    0% {
        transform: translate(-50%, -50%) rotate(360deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* ===== SECTION SHARED STYLES ====== */
.projects,
.contact {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 100px 40px;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-title .highlight {
    background: linear-gradient(90deg, #e6e9f0 0%, #2afc85 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #c2c6d3;
    margin-bottom: 0;
}

/* ===== PROJECTS SECTION ====== */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 22px;
    border-radius: 50px;
    border: 2px solid rgba(42, 252, 133, 0.3);
    background: transparent;
    color: #c2c6d3;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #2afc85;
    color: #2afc85;
}

.filter-btn.active {
    background: linear-gradient(90deg, #1ed761 0%, #15c46a 100%);
    border-color: transparent;
    color: #0c0f17;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.projects-empty {
    text-align: center;
    color: #c2c6d3;
    font-size: 1.1rem;
    padding: 40px 0;
    display: none;
}

.project-card {
    background: linear-gradient(135deg, #1a1f2e 0%, #232838 100%);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(42, 252, 133, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(42, 252, 133, 0.4);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.project-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: linear-gradient(135deg, #151925 0%, #1a1f2e 100%);
}

.project-card-image-placeholder {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #2afc85;
    background: linear-gradient(135deg, #151925 0%, #1a1f2e 100%);
}

.project-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-card-category {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #2afc85;
    background: rgba(42, 252, 133, 0.1);
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.project-card-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #e6e9f0;
}

.project-card-desc {
    font-size: 0.95rem;
    color: #c2c6d3;
    margin-bottom: 15px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.project-tag {
    font-size: 0.75rem;
    color: #c2c6d3;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 6px;
}

/* Project modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 15, 23, 0.85);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, #1a1f2e 0%, #232838 100%);
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 40px;
    border: 1px solid rgba(42, 252, 133, 0.2);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #e6e9f0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(42, 252, 133, 0.2);
    color: #2afc85;
}

.modal-content img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 20px;
}

.modal-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #e6e9f0;
}

.modal-content p {
    color: #c2c6d3;
    margin-bottom: 20px;
}

.modal-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ===== HIDDEN ADMIN LOGIN MODAL ====== */
.admin-login-modal {
    max-width: 400px;
}

.admin-login-modal h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #e6e9f0;
    text-align: center;
}

.admin-login-modal .form-group {
    margin-bottom: 18px;
}

.admin-login-modal button[type="submit"] {
    width: 100%;
    justify-content: center;
    border: none;
    cursor: pointer;
}

#adminDiscordVerification p {
    text-align: center;
    color: #c2c6d3;
    margin-bottom: 10px;
}

#adminDiscordVerification #adminTimeRemaining {
    color: #2afc85;
    font-weight: 700;
}

.logo {
    cursor: pointer;
}

/* ===== CONTACT SECTION ====== */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #c2c6d3;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 14px 16px;
    color: #e6e9f0;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2afc85;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.contact-form button[type="submit"] {
    align-self: flex-start;
    border: none;
    cursor: pointer;
}

.contact-form button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.form-status {
    font-size: 0.95rem;
    min-height: 1.2em;
}

.form-status.success {
    color: #2afc85;
}

.form-status.error {
    color: #ff6b6b;
}

/* ===== TICKET PAGE ====== */
.ticket-page {
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    padding: 140px 40px 80px;
    min-height: 100vh;
}

.ticket-container {
    background: linear-gradient(135deg, #1a1f2e 0%, #232838 100%);
    border-radius: 16px;
    border: 1px solid rgba(42, 252, 133, 0.1);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ticket-header h1 {
    font-size: 2rem;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #e6e9f0 0%, #2afc85 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ticket-header p {
    color: #c2c6d3;
    font-size: 1rem;
    margin-bottom: 0;
}

.ticket-closed-banner {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.95rem;
}

.ticket-thread {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 6px;
}

.ticket-message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.ticket-message-sender {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    opacity: 0.8;
}

.ticket-message-content {
    white-space: pre-wrap;
    word-break: break-word;
}

.ticket-message.from-visitor {
    align-self: flex-end;
    background: linear-gradient(90deg, #1ed761 0%, #15c46a 100%);
    color: #0c0f17;
}

.ticket-message.from-admin {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e6e9f0;
}

.ticket-reply-form {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.ticket-reply-form textarea {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 14px;
    color: #e6e9f0;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
}

.ticket-reply-form textarea:focus {
    outline: none;
    border-color: #2afc85;
}

.ticket-reply-form button {
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.ticket-reply-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .ticket-page {
        padding: 110px 20px 60px;
    }

    .ticket-container {
        padding: 24px;
    }

    .ticket-message {
        max-width: 90%;
    }

    .ticket-reply-form {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        gap: 50px;
        padding: 140px 30px 60px;
    }

    .content {
        max-width: 100%;
    }

    .cta-buttons {
        justify-content: center;
    }

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

@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }

    nav ul {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background-color: rgba(12, 15, 23, 0.95);
        backdrop-filter: blur(10px);
        width: 200px;
        padding: 20px;
        gap: 20px;
        transition: right 0.3s ease;
    }

    nav ul.active {
        left: 0;
    }

    nav a {
        font-size: 1.2rem;
        padding: 15px 0;
    }

    .menu-toggle {
        display: block;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    p {
        font-size: 1.1rem;
    }

    .profile-container,
    .border-outer,
    .border-middle,
    .border-inner,
    .pulse-ring,
    .border-container {
        width: 220px;
        height: 220px;
    }

    .profile-img {
        width: 180px;
        height: 180px;
    }

    .border-container::after {
        width: 190px;
        height: 190px;
    }
}

@media (max-width: 480px) {
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

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

@media (max-width: 768px) {
    .projects,
    .contact {
        padding: 70px 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    .modal-content {
        padding: 25px;
    }

    .contact-form button[type="submit"] {
        align-self: stretch;
        justify-content: center;
    }
}