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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #020617;
    color: #e5e7eb;
    overflow-x: hidden;
}

body.loading {
    overflow: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
    background-size: 70px 70px;
    pointer-events: none;
    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(56, 189, 248, 0.16), transparent 32%),
        radial-gradient(circle at 85% 30%, rgba(99, 102, 241, 0.16), transparent 34%),
        radial-gradient(circle at 50% 90%, rgba(168, 85, 247, 0.12), transparent 34%);
    pointer-events: none;
    z-index: -3;
}

/* INTRO WELCOME ANIMATION */
.intro-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background:
        radial-gradient(circle at center, rgba(56, 189, 248, 0.14), transparent 35%),
        #020617;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.9s ease, visibility 0.9s ease;
}

.intro-screen.hide-intro {
    opacity: 0;
    visibility: hidden;
}

.intro-content {
    text-align: center;
}

.intro-word {
    display: flex;
    justify-content: center;
    gap: 14px;
    overflow: hidden;
}

.intro-word span {
    color: #38bdf8;
    font-size: clamp(42px, 8vw, 120px);
    font-weight: 900;
    letter-spacing: 6px;
    text-shadow: 0 0 35px rgba(56, 189, 248, 0.85);
    opacity: 0;
    transform: translateY(100px) scale(0.6) rotateX(90deg);
    animation: assembleWelcome 1.1s ease forwards;
}

.intro-word span:nth-child(1) {
    animation-delay: 0.1s;
}

.intro-word span:nth-child(2) {
    animation-delay: 0.22s;
}

.intro-word span:nth-child(3) {
    animation-delay: 0.34s;
}

.intro-word span:nth-child(4) {
    animation-delay: 0.46s;
}

.intro-word span:nth-child(5) {
    animation-delay: 0.58s;
}

.intro-word span:nth-child(6) {
    animation-delay: 0.7s;
}

.intro-word span:nth-child(7) {
    animation-delay: 0.82s;
}

.intro-content p {
    margin-top: 22px;
    color: #cbd5e1;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 13px;
    opacity: 0;
    animation: fadeIntroText 1s ease forwards;
    animation-delay: 1.35s;
}

@keyframes assembleWelcome {
    0% {
        opacity: 0;
        transform: translateY(100px) scale(0.6) rotateX(90deg);
        filter: blur(10px);
    }

    60% {
        opacity: 1;
        transform: translateY(-8px) scale(1.08) rotateX(0deg);
        filter: blur(0);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
        filter: blur(0);
    }
}

@keyframes fadeIntroText {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

/* FLOATING LEFT MENU */
.nav-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 95px;
    height: 100vh;
    z-index: 2500;
}

.menu-tab {
    position: fixed;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 58px;
    height: 86px;
    border-radius: 22px;
    background: rgba(56, 189, 248, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #67e8f9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    backdrop-filter: blur(18px);
    box-shadow: 0 0 35px rgba(56, 189, 248, 0.22);
    transition: 0.35s ease;
}

.menu-tab span {
    font-size: 24px;
    line-height: 1;
}

.menu-tab small {
    margin-top: 8px;
    writing-mode: vertical-rl;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 10px;
    font-weight: bold;
}

.nav-wrapper:hover .menu-tab {
    opacity: 0;
    transform: translate(-20px, -50%) scale(0.8);
}

.sidebar {
    position: fixed;
    top: 26px;
    left: 20px;
    width: 255px;
    max-height: calc(100vh - 52px);
    padding: 18px;
    border-radius: 28px;
    background: rgba(8, 15, 32, 0.68);
    border: 1px solid rgba(56, 189, 248, 0.24);
    backdrop-filter: blur(24px);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.45), 0 0 55px rgba(56, 189, 248, 0.14);
    transform: translateX(-125%);
    opacity: 0;
    transition: 0.42s ease;
    overflow-y: auto;
}

.nav-wrapper:hover .sidebar,
.nav-wrapper:focus-within .sidebar {
    transform: translateX(0);
    opacity: 1;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.side-nav a {
    text-decoration: none;
    color: #cbd5e1;
    padding: 12px 15px;
    border-radius: 16px;
    font-size: 15px;
    transition: 0.28s ease;
    border: 1px solid transparent;
}

.side-nav a:hover,
.side-nav a.active {
    background: rgba(56, 189, 248, 0.18);
    color: #ffffff;
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.14);
}

/* MAIN CONTENT */
.main-content {
    width: 100%;
}

.section {
    min-height: 100vh;
    padding: 95px 110px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.08), transparent 32%),
        radial-gradient(circle at bottom left, rgba(99, 102, 241, 0.08), transparent 38%);
    position: relative;
}

/* HERO */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 70px;
    padding-left: 150px;
}

.hero-text {
    max-width: 790px;
}

.small-title {
    display: inline-block;
    color: #67e8f9;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 10px 16px;
    border-radius: 30px;
    margin-bottom: 25px;
    font-size: 14px;
}

.hero-text h1 {
    font-size: 58px;
    line-height: 1.08;
    color: #ffffff;
    margin-bottom: 18px;
}

.hero-text h1 span {
    color: #38bdf8;
}

.hero-subtitle {
    color: #93c5fd;
    font-size: 23px;
    margin-bottom: 24px;
    line-height: 1.45;
}

.hero-quote {
    color: #e0f2fe;
    font-size: 20px;
    line-height: 1.7;
    margin-bottom: 24px;
    padding-left: 20px;
    border-left: 4px solid #38bdf8;
}

.hero-description {
    color: #cbd5e1;
    font-size: 16.5px;
    line-height: 1.75;
    max-width: 780px;
    margin-bottom: 14px;
}

.hero-buttons {
    margin-top: 32px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    text-decoration: none;
    padding: 13px 24px;
    border-radius: 30px;
    font-weight: bold;
    transition: 0.3s ease;
}

.primary-btn {
    background: #38bdf8;
    color: #020617;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.35);
}

.primary-btn:hover {
    background: #7dd3fc;
    transform: translateY(-4px);
}

.secondary-btn {
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #e0f2fe;
    background: rgba(15, 23, 42, 0.6);
}

.secondary-btn:hover {
    background: rgba(56, 189, 248, 0.12);
    transform: translateY(-4px);
}

/* PHOTO */
.hero-image {
    width: 360px;
    flex-shrink: 0;
    animation: floatPhoto 5s ease-in-out infinite;
}

.photo-card {
    padding: 14px;
    border-radius: 32px;
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.35), rgba(99, 102, 241, 0.15));
    box-shadow: 0 0 60px rgba(56, 189, 248, 0.25);
}

.photo-placeholder {
    height: 440px;
    border-radius: 25px;
    background: linear-gradient(145deg, #0f172a, #082f49);
    border: 1px solid rgba(56, 189, 248, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 25px;
    filter: contrast(1.05) saturate(1.08);
}

/* SECTION HEADING */
.section-heading {
    margin-bottom: 40px;
}

.section-heading p {
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 10px;
}

.section-heading h2 {
    color: #ffffff;
    font-size: 43px;
}

/* COMMON CARDS */
.glass-card,
.info-card,
.timeline-card,
.project-card,
.contact-card,
.skill-box {
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 0 35px rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    transition: 0.3s ease;
}

.glass-card:hover,
.info-card:hover,
.timeline-card:hover,
.project-card:hover,
.contact-card:hover,
.skill-box:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.65);
}

.glass-card h3,
.info-card h3,
.project-card h3,
.timeline-card h3,
.skill-box h3 {
    color: #38bdf8;
    font-size: 23px;
    margin-bottom: 14px;
}

.glass-card p,
.info-card p,
.project-card p,
.timeline-card p,
.contact-card p {
    color: #cbd5e1;
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 13px;
}

.profile-card {
    max-width: 1100px;
}

.about-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 36px;
}

.section-subtitle {
    margin: 42px 0 24px;
}

.section-subtitle h3 {
    color: #ffffff;
    font-size: 26px;
}

.styled-list {
    margin: 15px 0 18px 20px;
}

.styled-list li {
    color: #cbd5e1;
    margin-bottom: 10px;
    line-height: 1.6;
}

.wide-card {
    margin-top: 28px;
}

.highlight-card {
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.12), rgba(15, 23, 42, 0.8));
}

.value-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.value-tags span {
    background: rgba(56, 189, 248, 0.12);
    color: #bae6fd;
    border: 1px solid rgba(56, 189, 248, 0.28);
    padding: 10px 15px;
    border-radius: 30px;
    font-size: 14px;
}

/* GRIDS */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* SKILLS */
.skills-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skills-list span {
    background: rgba(56, 189, 248, 0.12);
    color: #bae6fd;
    border: 1px solid rgba(56, 189, 248, 0.28);
    padding: 10px 15px;
    border-radius: 30px;
    font-size: 14px;
}

/* TIMELINE */
.timeline-card {
    margin-bottom: 25px;
}

.timeline-card h4 {
    color: #93c5fd;
    font-size: 16px;
    margin-bottom: 15px;
}

.timeline-card ul {
    padding-left: 20px;
}

.timeline-card li {
    color: #cbd5e1;
    line-height: 1.8;
    margin-bottom: 8px;
}

.module-title {
    margin-top: 20px;
}

/* PROJECTS */
.project-card .tag {
    display: inline-block;
    color: #020617;
    background: #38bdf8;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 15px;
}

.project-card .tools {
    margin-top: 15px;
    color: #93c5fd;
    font-size: 14px;
}

/* CONTACT */
.contact-card {
    max-width: 750px;
}

.contact-card p {
    margin-bottom: 14px;
}

.contact-card a {
    color: #38bdf8;
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* SCROLL ANIMATIONS */
.reveal-left,
.reveal-right,
.reveal-up {
    opacity: 0;
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal-left {
    transform: translateX(-70px);
}

.reveal-right {
    transform: translateX(70px);
}

.reveal-up {
    transform: translateY(65px);
}

.show {
    opacity: 1;
    transform: translate(0, 0);
}

@keyframes floatPhoto {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}

/* RESPONSIVE */
@media (max-width: 1000px) {
    .nav-wrapper {
        width: 90px;
        height: 100vh;
        pointer-events: auto;
    }

    .menu-tab {
        display: flex;
        left: 16px;
        width: 54px;
        height: 78px;
        z-index: 3000;
    }

    .sidebar {
        position: fixed;
        top: 18px;
        left: 16px;
        width: 260px;
        max-height: calc(100vh - 36px);
        border-radius: 26px;
        transform: translateX(-125%);
        opacity: 0;
        pointer-events: none;
    }

    .nav-wrapper:hover .sidebar {
        transform: translateX(-125%);
        opacity: 0;
        pointer-events: none;
    }

    .nav-wrapper.open .sidebar {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-wrapper.open .menu-tab {
        opacity: 0;
        transform: translate(-20px, -50%) scale(0.8);
    }

    .side-nav {
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .section {
        padding: 75px 28px;
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-left: 28px;
        gap: 35px;
    }

    .hero-image {
        width: 100%;
        max-width: 320px;
        order: -1;
        margin-top: 20px;
    }

    .photo-placeholder {
        height: 370px;
    }

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

    .hero-text h1 {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 19px;
    }

    .hero-quote {
        border-left: none;
        padding-left: 0;
        font-size: 18px;
    }

    .card-grid,
    .skills-section,
    .about-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .section {
        padding: 70px 22px;
    }

    .section-heading h2 {
        font-size: 34px;
    }

    .hero-text h1 {
        font-size: 34px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-description {
        font-size: 15.5px;
    }

    .small-title {
        font-size: 12.5px;
        line-height: 1.6;
    }

    .side-nav a {
        font-size: 14px;
        padding: 10px 12px;
    }

    .intro-word {
        gap: 6px;
    }

    .intro-word span {
        letter-spacing: 2px;
    }

    .photo-placeholder {
        height: 340px;
    }
}