:root {
    --bg: #09090b;
    --bg-secondary: #111827;
    --card: rgba(255, 255, 255, .04);
    --border: rgba(255, 255, 255, .08);
    --text: #fafafa;
    --text-secondary: #a1a1aa;
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --shadow: 0 10px 40px rgba(99, 102, 241, .15);
    --left-text-color: #c9d1d9;

    /* compatibility */

    --bg-color: var(--bg);
    --card-color: var(--card);
    --text-color: var(--text);
    --secondary-text: var(--text-secondary);
    --primary-color: var(--primary);
    --border-color: var(--border);
}

.light-mode {
    --bg: #fafafa;
    --bg-secondary: #ffffff;
    --card: rgba(255, 255, 255, .8);
    --border: #e5e7eb;

    --text: #18181b;
    --text-secondary: #71717a;
    --left-text-color: #4d4d4f;

    --primary: #6366f1;
    --primary-hover: #4f46e5;

    --shadow: 0 10px 40px rgba(99, 102, 241, .1);

    --bg-color: var(--bg);
    --card-color: var(--card);
    --text-color: var(--text);
    --secondary-text: var(--text-secondary);
    --primary-color: var(--primary);
    --border-color: var(--border);
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    font-family: 'Fira Code', monospace;
    overflow-x: hidden;
    transition: background-color .2s ease, color .2s ease;
}

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

/* Background Blur */
.blur1 {
    position: absolute;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(0, 255, 174, .14), transparent 65%);
    pointer-events: none;
    top: 0;
    left: 0;
}

.blur2 {
    position: absolute;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(125, 95, 255, .16), transparent 65%);
    pointer-events: none;
    right: 0;
    top: 200px;
}

/* Navbar */

.navbar {
    padding-top: 25px;
}

.navbar-brand {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 700;
    transition: color .2s ease;
}

.nav-link {
    color: var(--left-text-color);
    margin-left: 20px;
    transition: color .2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus-visible,
.navbar .nav-link.active,
.navbar .navbar-brand:hover,
.navbar .navbar-brand:focus-visible {
    color: #00ffae;
}

/* Hero */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.subtitle {
    color: var(--primary-color);
    margin-bottom: 20px;
}

h1 {
    font-size: 65px;
    font-weight: 700;
}

.name {
    color: var(--primary-color);
}

.desc {
    color: var(--secondary-text);
    line-height: 1.9;
    margin-top: 25px;
}

/* Button */

.main-btn {
    background: #00ffae;
    color: black;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    margin-top: 30px;
    font-weight: 600;
    transition: background-color .2s ease, color .2s ease;
}

.main-btn:hover {
    background: white;
}

/* Social */

.socials {
    margin-top: 35px;
}

.socials a,
.socials button {
    background: none;
    border: 0;
    padding: 0;
}

.socials i {
    color: var(--text-color);
    font-size: 22px;
    margin-right: 20px;
    transition: color .2s ease;
}

.socials i:hover {
    color: var(--primary-color);
}

/* Hero Visual */
/* =========================
   HERO
========================= */
.hero{
    padding:100px 0;
}
/* =========================
   IMAGE CARD
========================= */
.personal-card{
    position:relative;
    overflow:hidden;
    margin:0;
    padding:10px;
    border-radius:25px;
    background:linear-gradient(
        135deg,
        rgba(0,255,174,.18),
        rgba(99,102,241,.16)
    );
    border:1px solid var(--border-color);
    box-shadow:0 18px 42px rgba(0,0,0,.22);
}
.personal-card::after{
    content:"";
    position:absolute;
    inset:10px;
    border-radius:18px;
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.15);
    pointer-events:none;
}
.personal-card img{
    width:100%;
    height:100%;
    min-height:550px;
    object-fit:cover;
    border-radius:18px;
}
.personal-card figcaption{
    position:absolute;
    left:25px;
    right:25px;
    bottom:25px;
    padding:15px 18px;
    background:rgba(9,9,11,.8);
    color:#fff;
    border:1px solid rgba(255,255,255,.12);
    border-radius:15px;
}
.personal-card figcaption span{
    font-weight:600;
}
/* =========================
   CODE BOX
========================= */
.code-box{
    background:var(--card-color);
    border:1px solid var(--border-color);
    border-radius:25px;
    padding:30px;
    box-shadow:0 0 30px rgba(0,255,174,.1);
    display:flex;
    flex-direction:column;
    justify-content:center;
}
.code{
    line-height:2;
    color:var(--left-text-color);
    overflow-x:auto;
}
.green-text{
    color:var(--primary-color);
}
.purple{
    color:#b388ff;
}
.orange{
    color:#ffb86b;
}
/* =========================
   DOTS
========================= */
.dot{
    width:13px;
    height:13px;
    border-radius:50%;
}

.red{
    background:#ff5f56;
}

.yellow{
    background:#ffbd2e;
}

.green{
    background:#27c93f;
}
/* =========================
   TABLET
========================= */

@media (max-width:991px){

    h1{
        font-size:45px;
    }

    .personal-card img{
        min-height:500px;
    }

    .code{
        font-size:14px;
        line-height:1.8;
    }

}


/* =========================
   MOBILE
========================= */

@media (max-width:768px){

    h1{
        font-size:38px;
    }

    h2{
        font-size:24px;
    }

    .personal-card img{
        min-height:380px;
    }

    .code-box{
        padding:20px;
    }

    .code{
        font-size:13px;
        line-height:1.7;
    }

}


/* =========================
   SMALL MOBILE
========================= */

@media (max-width:576px){

    h1{
        font-size:32px;
    }

    h2{
        font-size:22px;
    }

    .personal-card img{
        min-height:300px;
    }

    .code{
        font-size:12px;
        white-space:pre-wrap;
        word-break:break-word;
    }

    .dot{
        width:10px;
        height:10px;
    }

}

/* About */

.about {
    position: relative;
    padding-top: 100px;
}

.section-title {
    font-size: 50px;
    font-weight: 700;
}

.section-subtitle {
    color: var(--secondary-text);
}

.terminal-card {
    background: var(--card-color);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 0 40px rgba(0, 255, 174, .08);
}

.terminal-body {
    margin-top: 25px;
    color: var(--left-text-color);
    line-height: 2;
}

.stat-card {
    background: var(--card-color);
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, .08);
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
    will-change: transform;
}

.stat-card:hover {
    transform: translate3d(0, -6px, 0);
    box-shadow: 0 10px 24px rgba(0, 255, 174, .12);
}

.stat-card h3 {
    color: var(--primary-color);
    font-size: 40px;
    margin-bottom: 15px;
}

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

.skills-area {
    margin-top: 80px;
}

.skill-badge {
    background: var(--card-color);
    border: 1px solid rgba(255, 255, 255, .08);
    padding: 12px 22px;
    border-radius: 50px;
    color: var(--primary-color);
    transition: background-color .2s ease, color .2s ease;
}

.skill-badge:hover {
    background: #00ffae;
    color: black;
    cursor: pointer;
}

@media(max-width:768px) {

    .section-title {
        font-size: 36px;
    }

    .stat-card {
        padding: 25px;
    }

    .stat-card h3 {
        font-size: 30px;
    }

}



/* Projects */

.projects {
    padding-top: 100px;
}

.project-card {
    background: var(--card-color);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 25px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
    height: 100%;
    will-change: transform;
}

.project-card:hover {
    transform: translate3d(0, -6px, 0);
    box-shadow: 0 12px 28px rgba(0, 255, 174, .12);
}

.project-image {
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg,
            rgba(0, 255, 174, .15),
            rgba(125, 95, 255, .15));
}

.project-image i {
    font-size: 80px;
    color: var(--primary-color);
}

.project-body {
    padding: 30px;
}

.project-body h4 {
    margin-bottom: 20px;
}

.project-body p {
    color: var(--secondary-text);
    line-height: 1.8;
}

.project-tech {
    margin-top: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-tech span {
    background: var(--card-color);
    color: var(--primary-color);
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 14px;
}

.project-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.project-btn {
    color: var(--text-color);
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 12px;
    background: var(--card-color);
    border: none;
    transition: background-color .2s ease, color .2s ease;
}

.project-btn:hover {
    background: #00ffae;
    color: black;
}

@media(max-width:768px) {

    .project-links {
        flex-direction: column;
    }

    .project-btn {
        text-align: center;
    }

}




/* Contact */

.contact {
    padding-top: 100px;
}

.contact-card {
    background: var(--card-color);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 25px;
    padding: 40px;
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.icon-box {
    width: 55px;
    height: 55px;
    background: rgba(0, 255, 174, .1);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-box i {
    color: var(--primary-color);
    font-size: 24px;
}

.contact-item h6 {
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--secondary-text);
}

.social-contact {
    margin-top: 40px;
}

.social-contact a,
.social-contact button {
    width: 50px;
    height: 50px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: var(--card-color);
    border: none;
    border-radius: 15px;
    text-decoration: none;
    margin-right: 10px;
    transition: background-color .2s ease;
}

.social-contact a i,
.social-contact button i {
    color: var(--text-color);
    font-size: 20px;
}

.social-contact a:hover,
.social-contact button:hover {
    background: #00ffae;
}

.social-contact a:hover i,
.social-contact button:hover i {
    color: black;
}

/* Form */

.custom-input {
    background: var(--bg-color);
    border: none;
    color: var(--text-color);
    padding: 15px;
    border-radius: 15px;
}

.custom-input:focus {
    background: var(--bg-color);
    color: var(--text-color);
    box-shadow: 0 0 20px rgba(0, 255, 174, .15);
}

.custom-input::placeholder {
    color: var(--secondary-text);
}

.send-btn {
    background: #00ffae;
    color: black;
    border: none;
    padding: 15px 35px;
    border-radius: 15px;
    font-weight: 600;
    transition: background-color .2s ease, color .2s ease;
}

.send-btn:hover {
    background: white;
}

/* Footer */

footer {
    margin-top: 100px;
    padding-bottom: 40px;
}

footer hr {
    border-color: rgba(255, 255, 255, .1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.footer-content h5 {
    color: var(--primary-color);
}

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

@media(max-width:768px) {

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .contact-card {
        padding: 25px;
    }

}

html {
    scroll-behavior: auto;
}

/* Sticky Navbar */

.navbar {
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar {
    background: rgba(13, 17, 23, .75);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .08);
}

.light-mode .navbar {
    background: rgba(255, 255, 255, .75);
    box-shadow: 0 5px 30px rgba(0, 0, 0, .06);
}

.light-mode .navbar .nav-link:hover,
.light-mode .navbar .nav-link:focus-visible,
.light-mode .navbar .nav-link.active,
.light-mode .navbar .navbar-brand:hover,
.light-mode .navbar .navbar-brand:focus-visible {
    color: #4f46e5;
}

.light-mode .personal-card {
    background: linear-gradient(135deg, rgba(79, 70, 229, .18), rgba(6, 182, 212, .16));
    box-shadow: 0 18px 34px rgba(79, 70, 229, .12);
}

.light-mode .main-btn,
.light-mode .send-btn {
    background: #6366f1;
    color: white;
}

.light-mode .main-btn:hover,
.light-mode .send-btn:hover {
    background: #4f46e5;
}

.light-mode .blur1 {
    background: #6366f1;
    opacity: .08;
}

.light-mode .blur2 {
    background: #06b6d4;
    opacity: .08;
}

/* Reveal */

.reveal {
    opacity: 0;
    transform: translate3d(0, 36px, 0);
    transition: opacity .35s ease, transform .35s ease;
}

.reveal.active {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* Top Button */

.top-btn {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 55px;
    height: 55px;
    border: none;
    border-radius: 50%;
    background: #00ffae;
    color: black;
    font-size: 22px;
    cursor: pointer;
    display: none;
    z-index: 9999;
    transition: transform .2s ease, background-color .2s ease;
}

/* Loader */

.loader-wrapper {
    position: fixed;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, .1);
    border-top: 5px solid #00ffae;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Particles */

.particles span {
    position: fixed;
    width: 6px;
    height: 6px;
    background: #00ffae;
    border-radius: 50%;
    opacity: .16;
    animation: float 24s linear infinite;
    pointer-events: none;
    will-change: transform;
}

.particles span:nth-child(1) {
    left: 10%;
    animation-duration: 28s;
}

.particles span:nth-child(2) {
    left: 30%;
}

.particles span:nth-child(3) {
    left: 55%;
    animation-duration: 32s;
}

.particles span:nth-child(4) {
    left: 75%;
}

.particles span:nth-child(5) {
    left: 90%;
    animation-duration: 30s;
}

@keyframes float {

    0% {
        transform: translate3d(0, 100vh, 0);
    }

    100% {
        transform: translate3d(0, -100px, 0);
    }

}

/* Custom Scrollbar */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--card-color);
}

::-webkit-scrollbar-thumb {
    background: #00ffae;
    border-radius: 20px;
}

.theme-btn {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: var(--card-color);
    color: var(--primary-color);
    font-size: 20px;
    cursor: pointer;
    transition: transform .2s ease;
}

.theme-btn:hover {
    transform: rotate(180deg);
}

.theme-switch {
    width: 55px;
    height: 55px;
    border: none;
    border-radius: 18px;
    background: var(--card-color);
    color: var(--primary-color);
    box-shadow:
        0 8px 30px rgba(0, 0, 0, .1);
    transition: transform .2s ease, background-color .2s ease;
}

.theme-switch:hover {
    transform: translate3d(0, -3px, 0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

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

@media (max-width: 768px) {
    .blur1,
    .blur2,
    .particles {
        display: none;
    }
}

@media (max-width: 576px) {
    .personal-card figcaption {
        left: 22px;
        right: 22px;
        bottom: 22px;
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .personal-card figcaption small {
        white-space: normal;
    }
}
