body {
    background-color: #0D111C; 
    font-family: 'Urbanist', sans-serif;
    color: #e2e8f0; 
    overflow-x: hidden;
    cursor: none; 
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a; 
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #38bdf8, #a78bfa);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #7dd3fc, #c4b5fd);
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.gradient-text-hero {
    background: linear-gradient(135deg, #7dd3fc, #a78bfa, #ec4899); 
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.base-panel {
    background-color: var(--dark-panel); 
    border: 1px solid var(--dark-border);
    border-radius: 1rem; /* 16px */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.base-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--accent-blue) 0%, transparent 70%);
    opacity: 0;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
    transform: scale(0.7);
    z-index: 0;
}
.base-panel:hover::before {
    transform: scale(1);
    opacity: 0.1;
}

.info-panel { 
}

.skill-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.skill-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--accent-blue);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3), 0 0 20px rgba(56, 189, 248, 0.3);
}
.skill-card i {
    transition: transform 0.3s ease-out;
}
.skill-card:hover i {
    transform: translateY(-5px) scale(1.1);
}

.project-card {
    display: flex;
    flex-direction: column;
    padding: 0; 
}
.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-purple);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3), 0 0 20px rgba(167, 139, 250, 0.3);
}
.project-card .p-6 { 
    padding: 1.5rem;
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
}
.project-card img {
    border-bottom: 1px solid var(--dark-border); /* Consistent border */
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.contact-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--accent-pink);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3), 0 0 20px rgba(244, 114, 182, 0.3);
}
.contact-card i {
    transition: transform 0.3s ease-out;
}
.contact-card:hover i {
    transform: translateY(-5px) scale(1.1);
}


.btn-base {
    @apply px-8 py-3 rounded-full font-semibold transition-all duration-300 text-center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn-base::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease-out;
    z-index: -1;
}
.btn-base:hover::before {
    transform: scaleX(1);
}

.btn-primary {
    @extend .btn-base;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    color: white;
    border: 1px solid transparent;
}
.btn-primary::before {
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
}
.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

.btn-secondary {
    @extend .btn-base;
    background: transparent;
    color: var(--accent-blue);
    border: 1px solid var(--accent-blue);
}
.btn-secondary::before {
    background: var(--accent-blue);
}
.btn-secondary:hover {
    color: white; 
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.2);
}

.section-title {
    @apply text-4xl md:text-5xl font-extrabold text-center mb-16 relative pb-4 text-slate-50; 
    letter-spacing: -0.05em; 
}
.section-title::after {
    content: '';
    @apply absolute bottom-0 left-1/2 -translate-x-1/2 w-24 h-1.5 bg-gradient-to-r from-accent-blue via-accent-purple to-accent-pink rounded-full;
    transform-origin: center;
    transition: all 0.4s ease-out;
}
.section-title:hover::after {
    width: 120px; 
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.5); 
}
.section-title span.gradient-text {
    display: inline-block;
    transition: transform 0.3s ease-out, filter 0.3s ease-out;
}
.section-title:hover span.gradient-text {
    transform: translateY(-3px);
    filter: brightness(1.2); 
}

#main-header {
    background-color: var(--dark-bg); 
    border-bottom: 1px solid var(--dark-border);
}
.nav-link {
    @apply relative text-slate-300 hover:text-accent-blue font-medium transition-colors duration-200;
}
.nav-link.active {
    color: var(--accent-blue);
    font-weight: 600;
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px; 
    left: 50%;
    transform: translateX(-50%);
    width: 8px; 
    height: 8px;
    background-color: var(--accent-blue);
    border-radius: 50%;
    opacity: 1;
    transition: all 0.3s ease-out;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.5); 
}
.nav-link:not(.active)::after {
    opacity: 0;
    transform: translateX(-50%) scale(0.5); 
}
.nav-link:hover:not(.active) { 
    transform: translateY(-2px);
}


#mobile-menu-toggle i {
    transition: transform 0.3s ease-in-out, color 0.3s ease-out;
}
#mobile-menu-toggle.active i {
    transform: rotate(90deg);
    color: var(--accent-pink); 
}

#cursor-dot {
    background-color: var(--accent-blue);
}
#cursor-outline {
    border-color: var(--accent-blue);
    animation: cursor-pulse 2s infinite ease-in-out;
}
#cursor-outline.scale-150 { 
    animation: none;
    background-color: var(--accent-blue) !important; 
    border-color: var(--accent-blue) !important; 
    opacity: 0.2; 
}
@keyframes cursor-pulse {
    0% { transform: scale(1) translate3d(var(--x), var(--y), 0); opacity: 1; }
    50% { transform: scale(1.05) translate3d(var(--x), var(--y), 0); opacity: 0.9; }
    100% { transform: scale(1) translate3d(var(--x), var(--y), 0); opacity: 1; }
}

.tag-badge {
    @apply px-3 py-1 text-xs font-semibold rounded-full transition-all duration-200;
    border: 1px solid transparent; 
}
.tag-badge.bg-accent-blue\/20:hover {
    background-color: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}
.tag-badge.bg-accent-purple\/20:hover {
    background-color: var(--accent-purple);
    color: white;
    border-color: var(--accent-purple);
}
.tag-badge.bg-accent-pink\/20:hover {
    background-color: var(--accent-pink);
    color: white;
    border-color: var(--accent-pink);
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; 
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    visibility: hidden; 
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    transform: translateY(20px); 
    transition: transform 0.3s ease-in-out;
    position: relative; 
    max-width: 800px; 
}

.modal-overlay.show .modal-content {
    transform: translateY(0); 
}

#close-modal-btn {
    cursor: pointer;
}

.glass-card-one {
    background: rgba(0, 46, 92, 0.11); 
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem; 
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.glass-card-two {
    background: radial-gradient(ellipse at 50% 50%, rgba(33, 166, 223, 0.1) 0%, rgba(167, 139, 250, 0) 30%, rgba(19, 98, 117, 0.07) 60%, transparent 80%);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem; 
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.linear-gradient {
    background: radial-gradient(ellipse at 50% 50%, rgba(33, 166, 223, 0.47) 0%, rgba(167, 139, 250, 0.74) 30%, rgba(244, 114, 181, 0.53) 60%, transparent 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}
