@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

:root {
    --bg-color: #010103;
    --text-color: #ededed;
    --main-color: #00aaff;
    --panel-bg: rgba(12, 12, 22, 0.4);
    --panel-border: rgba(255, 255, 255, 0.1);
    --panel-hover-border: rgba(0, 170, 255, 0.5);
    --spotlight-color: rgba(0, 170, 255, 0.15);
}

/* --- Custom Cursor --- */
.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.3s, transform 0.3s;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--main-color);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--main-color);
    background-color: rgba(0, 170, 255, 0.1);
    transition: width 0.2s, height 0.2s, border-width 0.2s, background-color 0.2s;
}

.cursor-outline.hover {
    width: 60px;
    height: 60px;
    border-width: 3px;
    background-color: rgba(0, 170, 255, 0.2);
}

html, body {
    cursor: none;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--main-color);
    border-radius: 8px;
}


html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

body.loaded {
    overflow: auto;
}

body.modal-active {
    overflow: hidden;
}

/* --- Loader --- */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loader-svg {
    width: 150px;
    height: 150px;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

.hidden {
    opacity: 0;
    pointer-events: none;
}

/* --- Spotlight Effect --- */
.spotlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
    background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), var(--spotlight-color) 0%, transparent 4%);
}

/* --- Aurora Background --- */
.aurora-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.aurora-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.2;
    transition: transform 0.2s ease-out;
}

.shape-1 { width: 500px; height: 500px; background: #0055aa; top: -10%; left: -10%; animation: move 20s infinite alternate ease-in-out; }
.shape-2 { width: 450px; height: 450px; background: #aa00ff; top: 50%; left: 60%; animation: move 25s infinite alternate ease-in-out -5s; }
.shape-3 { width: 400px; height: 400px; background: #ff0055; bottom: -10%; right: -10%; animation: move 18s infinite alternate ease-in-out -10s; }

@keyframes move {
    from { transform: translate(0, 0) rotate(0deg); }
    to { transform: translate(150px, 80px) rotate(90deg); }
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    border-bottom: 1px solid var(--panel-border);
    border-bottom-left-radius: 1.5rem;
    border-bottom-right-radius: 1.5rem;
    transition: background 0.3s;
}

.logo {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.logo:hover {
    color: var(--main-color);
}

.navbar a { font-size: 1.7rem; color: var(--text-color); font-weight: 500; margin-left: 3.5rem; transition: .3s; }
.navbar a:hover, .navbar a.active { color: var(--main-color); }

.header-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#menu-icon, #theme-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    cursor: pointer;
}

#menu-icon { display: none; }

/* --- Theme Customizer --- */
.theme-customizer {
    position: fixed;
    top: 8rem;
    right: -30rem;
    width: 25rem;
    padding: 2rem;
    background: var(--panel-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--panel-border);
    border-radius: 1.5rem;
    z-index: 101;
    transition: right 0.4s ease;
}

.theme-customizer.active {
    right: 2rem;
}

.theme-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.theme-colors {
    display: flex;
    justify-content: space-around;
}

.color-swatch {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
}

.color-swatch:hover {
    transform: scale(1.1);
}

.color-swatch.active::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: -0.5rem;
    right: -0.5rem;
    bottom: -0.5rem;
    border: 2px solid var(--main-color);
    border-radius: 50%;
}

.color-swatch[data-color="#00aaff"] { background: #00aaff; }
.color-swatch[data-color="#00ffaa"] { background: #00ffaa; }
.color-swatch[data-color="#ff55aa"] { background: #ff55aa; }
.color-swatch[data-color="#ffaa55"] { background: #ffaa55; }
.color-swatch[data-color="#aaff55"] { background: #aaff55; }


/* --- Main Content --- */
.main-container { padding: 0 9%; }
section { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 10rem 0 2rem; position: relative; }
.home { align-items: center; }
.home-content { max-width: 60rem; }
.home-content h1 { font-size: 5.6rem; font-weight: 700; line-height: 1.3; }

.home-content h3 { font-size: 3.2rem; font-weight: 700; color: var(--main-color); margin-bottom: 2rem; min-height: 4rem; }
.text-animate { color: var(--main-color); }
.typed-cursor { color: var(--main-color); font-size: 3.2rem; }

.time-based-greeting {
    font-size: 2.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #c0c0d0;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 1s ease 0.5s forwards;
}

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

.home-content p { font-size: 1.6rem; margin-bottom: 4rem; max-width: 50rem; }
.btn-box { display: flex; gap: 1.5rem; width: 100%; }
.btn, .btn-box a, .action-btn, .contact-right form .btn { 
    position: relative;
    overflow: hidden;
}
.btn-box a { display: inline-flex; justify-content: center; align-items: center; padding: 1.2rem 2.8rem; background: var(--main-color); border: .2rem solid var(--main-color); border-radius: .8rem; font-size: 1.8rem; font-weight: 600; color: var(--bg-color); transition: .5s; }
.btn-box a:nth-child(2) { background: transparent; color: var(--main-color); }
.btn-box a:hover { transform: scale(1.05); box-shadow: 0 0 25px var(--main-color); }
.btn-box a:nth-child(2):hover { background: var(--main-color); color: var(--bg-color); }

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-effect 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-effect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.home-sci { margin-top: 4rem; width: 170px; display: flex; justify-content: space-between; }
.home-sci a, .contact-social a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 20px;
    color: var(--main-color);
    z-index: 1;
    overflow: hidden;
    transition: all .3s ease-in-out;
}
.home-sci a:hover, .contact-social a:hover { background: var(--main-color); color: var(--bg-color); box-shadow: 0 0 20px var(--main-color); }

/* --- Glass Panels (Non-Tilted) --- */
.about-container, .projects-box, .contact-container {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    backdrop-filter: blur(15px);
    border-radius: 2rem;
    transition: all 0.3s ease-out;
}
.about-container { padding: 4rem; }
.projects-box { padding: 2rem; cursor: pointer; }
.projects-box:hover { transform: translateY(-5px) scale(1.02); border-color: var(--panel-hover-border); }


.heading { font-size: 5rem; margin-bottom: 3rem; text-align: center; }
span { color: var(--main-color); }

/* --- About Section --- */
.about-container { display: flex; align-items: center; gap: 4rem; }
.about-img { flex-shrink: 0; width: 25rem; height: 25rem; transition: transform 0.4s ease; }
.about-img:hover { transform: scale(1.05); }
.about-img img { width: 100%; height: 100%; }
.about-content h3 { font-size: 2.6rem; margin-bottom: 1rem; }
.about-content p { font-size: 1.6rem; line-height: 1.7; }

/* --- Projects Section --- */
.projects-container { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.projects-box { display: flex; align-items: center; justify-content: space-between; }
.project-info h4 { font-size: 2rem; font-weight: 600; margin-bottom: 0.5rem; }
.project-info p { font-size: 1.5rem; color: #c0c0d0; }
.project-link { display: inline-flex; justify-content: center; align-items: center; width: 4.5rem; height: 4.5rem; background: transparent; border: 1px solid var(--main-color); border-radius: 50%; font-size: 2.5rem; color: var(--main-color); transition: .3s ease; }
.project-link i { transition: transform 0.3s ease; }
.projects-box:hover .project-link { background: var(--main-color); color: var(--bg-color); box-shadow: 0 0 15px var(--main-color); }
.projects-box:hover .project-link i { transform: rotate(45deg) scale(1.1); }

/* --- Aura Showcase Section --- */
#three-js-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.showcase-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 85rem;
    min-height: 45rem;
    margin: 0 auto;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    backdrop-filter: blur(10px);
    border-radius: 2rem;
    transform-style: preserve-3d;
    transition: all 0.2s ease-out;
    padding: 3rem;
    display: flex;
    flex-direction: column;
}

.mini-ui-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--panel-border);
}

.mini-ui-profile {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.mini-ui-profile img {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
}

.mini-ui-profile span {
    font-size: 1.8rem;
    font-weight: 500;
}

.mini-ui-buttons {
    display: flex;
    gap: 1.5rem;
}

.mini-btn {
    width: 4rem;
    height: 4rem;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mini-btn:hover {
    background: var(--main-color);
    color: var(--bg-color);
    transform: scale(1.1);
}

.mini-ui-body {
    flex-grow: 1;
    padding-top: 2.5rem;
    display: flex;
    gap: 2.5rem;
    justify-content: space-between;
}

.mini-ui-chart {
    flex-grow: 1;
    background: rgba(0,0,0,0.2);
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.mini-ui-chart p {
    font-size: 1.6rem;
    font-weight: 500;
    color: #c0c0d0;
    margin-bottom: 1.5rem;
}

.chart-area {
    flex-grow: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 5%;
}

.chart-bar {
    width: 15%;
    background: var(--main-color);
    height: 0;
    border-radius: 0.5rem;
    opacity: 0.7;
    transition: height 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.showcase-panel.is-visible .chart-bar {
    height: var(--h);
    opacity: 1;
    filter: drop-shadow(0 0 5px var(--main-color));
}

.showcase-panel.is-visible .chart-bar:nth-child(1) { transition-delay: 0.2s; }
.showcase-panel.is-visible .chart-bar:nth-child(2) { transition-delay: 0.3s; }
.showcase-panel.is-visible .chart-bar:nth-child(3) { transition-delay: 0.4s; }
.showcase-panel.is-visible .chart-bar:nth-child(4) { transition-delay: 0.5s; }
.showcase-panel.is-visible .chart-bar:nth-child(5) { transition-delay: 0.6s; }

.mini-ui-actions {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
}

.action-btn {
    padding: 1.2rem 2.5rem;
    font-size: 1.6rem;
    font-weight: 500;
    border-radius: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--main-color);
    color: var(--bg-color);
    border: 1px solid var(--main-color);
}

.action-btn.secondary {
    background: transparent;
    color: var(--main-color);
}

.action-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--main-color);
}

/* --- Contact Section --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 3rem;
    max-width: 100rem;
    margin: 0 auto;
    overflow: hidden;
}

.contact-left h3 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.contact-left p {
    font-size: 1.6rem;
    line-height: 1.7;
    color: #c0c0d0;
    margin-bottom: 2rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.contact-info i {
    font-size: 2.5rem;
    color: var(--main-color);
}

.contact-social {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
}

.contact-social a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.5rem;
    height: 4.5rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2.5rem;
    color: var(--main-color);
    transition: .5s;
}

.contact-social a:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--main-color);
    transform: scale(1.1);
}

.contact-right form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-right form input,
.contact-right form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: rgba(0,0,0,0.2);
    border-radius: .8rem;
    border: 1px solid var(--panel-border);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-right form input:focus,
.contact-right form textarea:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.5);
}

.contact-right form .btn {
    cursor: pointer;
    padding: 1.2rem 2.8rem;
    background: var(--main-color);
    border: .2rem solid var(--main-color);
    border-radius: .8rem;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--bg-color);
    transition: .5s;
    align-self: flex-start;
}

.contact-right form .btn:hover {
    box-shadow: 0 0 20px var(--main-color);
    transform: scale(1.05);
}

/* --- Project Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 80rem;
    padding: 4rem;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 2rem;
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3.5rem;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--main-color);
    transform: rotate(90deg);
}

.modal-img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.modal-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.modal-description {
    font-size: 1.6rem;
    line-height: 1.7;
    color: #c0c0d0;
    margin-bottom: 2rem;
}

.modal-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tech-tag {
    background: rgba(0,0,0,0.3);
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-size: 1.4rem;
    border: 1px solid var(--panel-border);
}

.modal-links {
    display: flex;
    gap: 2rem;
}


/* --- Footer --- */
.footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 2rem 9%; background: transparent; }
.footer-text p { font-size: 1.4rem; }
.footer-icon-top a { display: inline-flex; justify-content: center; align-items: center; padding: .8rem; background: var(--main-color); border-radius: .8rem; transition: .5s ease; }
.footer-icon-top a:hover { box-shadow: 0 0 1rem var(--main-color); transform: translateY(-4px); }
.footer-icon-top a i { font-size: 2.4rem; color: var(--bg-color); }

/* --- Breakpoints --- */
@media (max-width: 991px) {
    .header, .main-container, .footer { padding-left: 3%; padding-right: 3%; }
}
@media (max-width: 768px) {
    #menu-icon { display: block; }
    .navbar { position: absolute; top: 100%; left: 0; width: 100%; padding: 1rem 3%; background: var(--bg-color); border-top: .1rem solid var(--panel-border); display: none; }
    .navbar.active { display: block; }
    .navbar a { display: block; font-size: 2rem; margin: 3rem 0; }
    .home { text-align: center; }
    .home-content h1 { font-size: 5rem; }
    .home-sci { margin: 2rem auto 0; }
    .about-container { flex-direction: column; text-align: center; }
    .contact-container { grid-template-columns: 1fr; }
    .mini-ui-body { flex-direction: column; }
    .modal-content { width: 95%; padding: 2.5rem; }
    .modal-title { font-size: 2.5rem; }
}
@media (max-width: 450px) {
    html { font-size: 50%; }
}
