:root {
    --accent: 88 101 242;
}

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

html {
    scroll-behavior: smooth;
    background: #000000;
}

body {
    background: #000000;
    color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
}

body.dyslexia-font {
    font-family: "OpenDyslexic", "Atkinson Hyperlegible", "Verdana", "Tahoma", sans-serif;
    letter-spacing: 0.015em;
    word-spacing: 0.05em;
    line-height: 1.6;
}

body.modal-open {
    overflow: hidden;
}

body::before,
body::after {
    content: none;
}

body::before {
    background: none;
}

body::after {
    background: none;
}

body.custom-cursor-enabled,
body.custom-cursor-enabled * {
    cursor: none !important;
}

@media (max-width: 768px) {
    body.custom-cursor-enabled,
    body.custom-cursor-enabled * {
        cursor: default !important;
    }
}
#customCursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 14px;
    height: 14px;
    pointer-events: none;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 8px 18px rgba(0, 0, 0, 0.35);
    transform: translate(-50%, -50%);
    transition: transform 0.08s ease-out, width 0.18s ease, height 0.18s ease, border-color 0.18s ease, background 0.18s ease, opacity 0.2s ease, box-shadow 0.18s ease;
    z-index: 10000;
    opacity: 0.95;
    will-change: left, top, transform, width, height, border-color, background;
}

#customCursor::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    transform: translate(-50%, -50%);
    transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

#customCursor.hover {
    width: 22px;
    height: 22px;
    border-color: rgb(var(--accent) / 0.86);
    background: rgb(var(--accent) / 0.14);
    box-shadow: 0 0 0 1px rgb(var(--accent) / 0.3), 0 10px 24px rgb(var(--accent) / 0.22);
    opacity: 1;
}

#customCursor.click {
    width: 12px;
    height: 12px;
    border-color: rgb(var(--accent) / 0.95);
    background: rgb(var(--accent) / 0.24);
    box-shadow: 0 0 0 1px rgb(var(--accent) / 0.45), 0 6px 16px rgb(var(--accent) / 0.26);
}

#customCursor.click::after {
    transform: translate(-50%, -50%) scale(0.8);
    background: rgb(var(--accent));
}

#customCursor.text {
    width: 2px;
    height: 18px;
    border-radius: 2px;
    background: #ffffff;
    border: none;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.45);
}

#customCursor.text::after {
    opacity: 0;
}

#customCursor.hidden {
    opacity: 0;
}

@media (max-width: 768px) {
    body {
        cursor: default;
    }
    
    #customCursor {
        display: none;
    }
}


/************************************************************************
   CONTACT CSS - TRB REFACUT 
*************************************************************************/

.contact-now-btn {
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 28px;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    width: 100%;
    margin-top: 16px;
}

.contact-now-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.contact-now-btn:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.contact-now-btn i {
    font-size: 24px;
    color: #ffffff;
    width: 32px;
    text-align: center;
}

.contact-now-btn span {
    flex: 1;
    font-size: 18px;
    color: #ffffff;
    font-weight: 600;
}

.contact-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(25px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.contact-overlay.active {
    display: flex;
    opacity: 1;
    animation: overlayFadeIn 0.4s ease-out;
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.contact-modal {
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 40px;
    max-width: 520px;
    width: 90%;
    position: relative;
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.contact-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-modal-title {
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-modal-title i {
    font-size: 24px;
    color: rgb(var(--accent));
}

.contact-close-btn {
    background: none;
    border: none;
    color: #888888;
    font-size: 28px;
    padding: 8px;
    border-radius: 12px;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: rotate(90deg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.form-label {
    font-size: 12px;
    color: #cccccc;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-label i {
    font-size: 11px;
    color: rgb(var(--accent));
}

.form-input,
.form-textarea {
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 13px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus,
.form-textarea:focus {
    border-color: rgb(var(--accent) / 0.5);
    background: rgba(10, 10, 10, 0.8);
    box-shadow: 0 0 0 3px rgb(var(--accent) / 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #666666;
}

.form-textarea {
    min-height: 140px;
    resize: none;
    max-height: 140px;
    overflow-y: auto;
}

.form-textarea::-webkit-scrollbar {
    width: 6px;
}

.form-textarea::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.form-textarea::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.form-textarea::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.char-count {
    font-size: 11px;
    color: #666666;
    text-align: right;
    margin-top: -12px;
}

.char-count.warning {
    color: #faa61a;
}

.char-count.error {
    color: #f04747;
}

.form-submit-btn {
    background: linear-gradient(135deg, rgb(var(--accent) / 0.15), rgb(var(--accent) / 0.08));
    border: 1px solid rgb(var(--accent) / 0.3);
    color: rgb(var(--accent));
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.form-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgb(var(--accent) / 0.25), rgb(var(--accent) / 0.15));
    border-color: rgb(var(--accent) / 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgb(var(--accent) / 0.3);
}

.form-submit-btn:disabled {
    opacity: 0.5;
}

.form-submit-btn.sending {
    pointer-events: none;
}

.form-submit-btn .spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgb(var(--accent) / 0.2);
    border-top-color: rgb(var(--accent));
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.form-message {
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: messageSlideIn 0.3s ease-out;
}

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

.form-message.success {
    background: rgba(67, 181, 129, 0.15);
    border: 1px solid rgba(67, 181, 129, 0.3);
    color: #43b581;
}

.form-message.error {
    background: rgba(240, 71, 71, 0.15);
    border: 1px solid rgba(240, 71, 71, 0.3);
    color: #f04747;
}

.form-message.warning {
    background: rgba(250, 166, 26, 0.15);
    border: 1px solid rgba(250, 166, 26, 0.3);
    color: #faa61a;
}

.form-message i {
    font-size: 12px;
}

.cooldown-timer {
    background: rgba(250, 166, 26, 0.15);
    border: 1px solid rgba(250, 166, 26, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cooldown-icon {
    font-size: 24px;
    color: #faa61a;
}

.cooldown-content {
    flex: 1;
}

.cooldown-title {
    font-size: 12px;
    color: #faa61a;
    font-weight: 600;
    margin-bottom: 4px;
}

.cooldown-text {
    font-size: 13px;
    color: #cccccc;
}

#customCursor {
    z-index: 10003 !important;
}

body.cursor-disabled,
body.cursor-disabled * {
    cursor: default !important;
}

body.cursor-disabled #customCursor {
    opacity: 0;
    visibility: hidden;
}

body.reduce-motion *,
body.reduce-motion *::before,
body.reduce-motion *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
}

body.reduce-motion .project-card:hover,
body.reduce-motion .contact-item:hover,
body.reduce-motion .about-card:hover,
body.reduce-motion .music-player-card:hover,
body.reduce-motion .behance-card:hover,
body.reduce-motion .favorite-tile:hover,
body.reduce-motion .social-link:hover,
body.reduce-motion .invite-card-modern:hover,
body.performance-mode .project-card:hover,
body.performance-mode .contact-item:hover,
body.performance-mode .about-card:hover,
body.performance-mode .music-player-card:hover,
body.performance-mode .behance-card:hover,
body.performance-mode .favorite-tile:hover,
body.performance-mode .social-link:hover,
body.performance-mode .invite-card-modern:hover,
body.performance-mode .weather-day:hover {
    transform: none !important;
}

body.performance-mode .starfield {
    display: none;
}

body.performance-mode::before,
body.performance-mode::after {
    animation: none;
    opacity: 0.28;
}

body.performance-mode .discord-card,
body.performance-mode .weather-card,
body.performance-mode .favorites-card,
body.performance-mode .music-player-card,
body.performance-mode .project-card,
body.performance-mode .fixed-nav,
body.performance-mode .settings-modal,
body.performance-mode .invite-card-modern,
body.performance-mode .contact-now-btn {
    backdrop-filter: none;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

body.performance-mode .status-indicator.online,
body.performance-mode .status-indicator.idle,
body.performance-mode .status-indicator.dnd {
    box-shadow: none;
}

body.performance-mode .pulse-dot,
body.performance-mode .star,
body.performance-mode .name,
body.performance-mode .playing-bars .bar {
    animation: none !important;
}

body.performance-mode .discord-card::before,
body.performance-mode .project-card::before,
body.performance-mode .music-player-card::before,
body.performance-mode .invite-card-modern::before {
    opacity: 0.35;
}

body.high-contrast .discord-card,
body.high-contrast .contact-item,
body.high-contrast .contact-now-btn,
body.high-contrast .project-card,
body.high-contrast .social-link,
body.high-contrast .invite-card-modern,
body.high-contrast .settings-modal,
body.high-contrast .settings-item,
body.high-contrast .behance-card,
body.high-contrast .open-work,
body.high-contrast .info-item,
body.high-contrast .weather-day,
body.high-contrast .music-player-card {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(12, 12, 12, 0.95);
}

body.high-contrast .tagline,
body.high-contrast .project-desc,
body.high-contrast .contact-label,
body.high-contrast .external-redirect-text,
body.high-contrast .behance-card p,
body.high-contrast .about-content p,
body.high-contrast .settings-item-desc {
    color: #e0e0e0;
}

body.high-contrast .project-title,
body.high-contrast .name,
body.high-contrast .behance-header h3,
body.high-contrast .info-value,
body.high-contrast .settings-item-title {
    color: #ffffff;
}

body.large-text {
    font-size: 18px;
    line-height: 1.55;
}

body.large-text .tagline {
    font-size: 21px;
}

body.large-text .name {
    font-size: clamp(2.4rem, 6vw, 4.5rem);
}

body.large-text .project-desc,
body.large-text .about-content p,
body.large-text .behance-card p,
body.large-text .settings-item-desc,
body.large-text .contact-label {
    font-size: 12px;
}

body.large-text .project-title,
body.large-text .settings-item-title,
body.large-text .behance-card h4 {
    font-size: 17px;
}

body.large-text .contact-value {
    font-size: 20px;
}

body.focus-outlines a:focus-visible,
body.focus-outlines button:focus-visible,
body.focus-outlines input:focus-visible,
body.focus-outlines textarea:focus-visible,
body.focus-outlines select:focus-visible,
body.focus-outlines [tabindex]:focus-visible {
    outline: 2px solid rgb(var(--accent)) !important;
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.55);
    border-radius: 12px;
}

body.custom-cursor-enabled .contact-overlay,
body.custom-cursor-enabled .contact-overlay *,
body.custom-cursor-enabled .contact-modal,
body.custom-cursor-enabled .contact-modal *,
body.custom-cursor-enabled .contact-form,
body.custom-cursor-enabled .contact-form * {
    cursor: none !important;
}

body.custom-cursor-enabled .external-redirect-overlay,
body.custom-cursor-enabled .external-redirect-overlay *,
body.custom-cursor-enabled .external-redirect-modal,
body.custom-cursor-enabled .external-redirect-modal * {
    cursor: none !important;
}

body.custom-cursor-enabled .settings-overlay,
body.custom-cursor-enabled .settings-overlay *,
body.custom-cursor-enabled .settings-modal,
body.custom-cursor-enabled .settings-modal * {
    cursor: none !important;
}

@media (max-width: 768px) {
    .contact-overlay,
    .contact-overlay *,
    .contact-modal,
    .contact-modal *,
    .contact-form,
    .contact-form * {
        cursor: default !important;
    }

    .external-redirect-overlay,
    .external-redirect-overlay *,
    .external-redirect-modal,
    .external-redirect-modal * {
        cursor: default !important;
    }

    .settings-overlay,
    .settings-overlay *,
    .settings-modal,
    .settings-modal * {
        cursor: default !important;
    }

    .contact-now-btn {
        padding: 20px;
        margin-top: 12px;
    }

    .contact-modal {
        padding: 32px 24px;
        width: 95%;
    }

    .contact-modal-title {
        font-size: 24px;
    }

    .form-group {
        gap: 8px;
    }

    .form-submit-btn {
        padding: 14px 28px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .contact-now-btn {
        padding: 18px;
        margin-top: 10px;
    }

    .contact-modal {
        padding: 28px 20px;
        width: 98%;
    }

    .contact-modal-header {
        margin-bottom: 24px;
        padding-bottom: 16px;
    }

    .contact-modal-title {
        font-size: 18px;
    }

    .contact-modal-title i {
        font-size: 20px;
    }

    .form-label {
        font-size: 13px;
    }

    .form-input,
    .form-textarea {
        padding: 12px 14px;
        font-size: 12px;
    }

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

    .form-submit-btn {
        padding: 13px 24px;
        font-size: 12px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease-out;
}

