body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: lightgray;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}


/* ============================================================
   LAYOUT — CONTAINER
   ============================================================ */

.container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    overflow-x: unset;
    background-color: #001f7c38;
}


/* ============================================================
   BACKGROUND VIDEO
   ============================================================ */

.back-vid {
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: -1;
    mix-blend-mode: overlay;
}

@media (max-aspect-ratio: 16/9) {
    .back-vid { width: auto; height: 100%; }
}

@media (min-aspect-ratio: 16/9) {
    .back-vid { width: 100%; height: auto; }
}


/* ============================================================
   HEADER
   ============================================================ */

header {
    display: flex;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.121);
    backdrop-filter: blur(5px);
    box-shadow: 0 0 15px #72a1dea2;
    z-index: 999;
}

.left {
    display: flex;
    align-items: center;
}

.brand-name {
    font-family: 'Kaushan Script', cursive;
    font-size: 32px;
    font-weight: 400;
    color: #9bc1eb;
    letter-spacing: 2px;
}

header ul {
    display: flex;
    justify-content: space-between;
    width: 30%;
    padding: 15px 15px;
    border-radius: 50px;
    background-color: rgba(0, 0, 69, 0.326);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 10px #72a1de63;
}

header ul li { list-style: none; }

header ul a {
    text-decoration: none;
    color: white;
    font-weight: 700;
    transition: 0.3s;
    margin: 0 10px;
}

header ul a:hover { text-shadow: 0 0 15px black; }

.box-icons {
    display: flex;
    gap: 40px;
}

.box-icons p {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    width: 30px;
    height: 30px;
    border: 2px solid #72a1de;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.5s;
}

.box-icons p:hover {
    background-color: #72a1de;
    color: black;
    box-shadow: 0 0 15px #72a1de;
}


/* ============================================================
   SIDEBAR
   ============================================================ */

.sidebar {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 70%;
    width: 0%;
    background-color: #000000b8;
    z-index: 999;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.479);
    backdrop-filter: blur(10px);
    opacity: 0;
    border-bottom-left-radius: 100%;
}

.close-icon {
    font-size: 50px;
    color: lightgray;
    padding-left: 10px;
    cursor: pointer;
}

.sidebar ul { padding-left: 20px; }

.sidebar ul li {
    list-style: none;
    margin-bottom: 30px;
}

.sidebar ul li a {
    text-decoration: none;
    color: lightgray;
    font-size: 30px;
    font-weight: 900;
    text-shadow: 0 0 15px #4c4c4c;
}

.social-sidebar {
    padding-left: 20px;
    margin-top: 60px;
    text-wrap: nowrap;
}

.social-sidebar a {
    font-size: 35px;
    padding: 5px 5px;
    cursor: pointer;
    transition: 0.5s;
}

.sidebar.open-sidebar {
    animation: openSideBarAnimation 1.5s forwards;
}

@keyframes openSideBarAnimation {
    to {
        width: 80%;
        opacity: 1;
        bottom: 0;
        border-radius: 0;
    }
}

.sidebar.close-sidebar {
    animation: closeSideBarAnimation 1.5s forwards;
}

@keyframes closeSideBarAnimation {
    from {
        width: 80%;
        opacity: 1;
        bottom: 0;
        border-radius: 0;
    }
    to {
        width: 0;
        opacity: 0;
        bottom: 70%;
        border-bottom-left-radius: 50%;
    }
}


/* ============================================================
   HERO SECTION
   ============================================================ */

.blackhole-box {
    position: absolute;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: -1;
    mix-blend-mode: lighten;
}

.blackhole-box video {
    width: 100%;
    margin-top: -23.5%;
}

.hero {
    position: relative;
    display: flex;
    width: 100%;
    height: 100vh;
    align-items: center;
    justify-content: space-between;
}

.hero-info {
    position: absolute;
    left: 5%;
}

.hero-info .hero-info-title {
    color: #72a1de;
    padding: 8px 5px;
    border-radius: 50px;
    margin-top: 60px;
    border: 1px solid #72a1de94;
    width: 240px;
    background-color: #2200493d;
    box-shadow: 0 0 5px #72a1de84;
}

.hero-info h1 {
    font-size: 60px;
    font-family: 'Kaushan Script', cursive;
    max-width: 600px;
    font-weight: 400;
    line-height: 60px;
    margin-top: 40px;
    margin-bottom: 30px;
    word-wrap: break-word;
}

.hero-info p {
    font-family: 'Kaushan Script', cursive;
    max-width: 550px;
    line-height: 25px;
    margin-bottom: 40px;
    font-size: 20px;
}

.hero-info button {
    color: white;
    padding: 15px 35px;
    border-radius: 10px;
    border: 1px solid #72a1de81;
    background-color: #2200493d;
    box-shadow: 0 0 5px #72a1de81;
    cursor: pointer;
    transition: 0.3s;
}

.hero-info button:hover { box-shadow: 0 0 15px #72a1de81; }

.skills-video-box {
    position: absolute;
    right: 3%;
}

.skills-video {
    height: 900px;
    mix-blend-mode: lighten;
}

.scroll-down {
    height: 50px;
    width: 30px;
    border: 2px solid lightgray;
    position: absolute;
    left: 49%;
    bottom: 8%;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.626);
}

.scroll-down::before,
.scroll-down::after {
    content: "";
    position: absolute;
    top: 20%;
    left: 50%;
    height: 10px;
    width: 10px;
    transform: translate(-50%, -100%) rotate(45deg);
    border: 2px solid lightgray;
    border-top: transparent;
    border-left: transparent;
    animation: scroll-down 2s ease-in-out infinite;
}

.scroll-down::before {
    top: 30%;
    animation-delay: 0.5s;
}

@keyframes scroll-down {
    0%   { opacity: 0; }
    30%  { opacity: 1; }
    60%  { opacity: 1; }
    100% { top: 90%; opacity: 0; }
}


/* ============================================================
   GRADIENT ANIMATION
   ============================================================ */

.gradient {
    background: linear-gradient(to right, #00aaa7, #7e42a7, #6600c5, #6070fd, #2a46ff, #0099ff, #008ead);
    background-size: 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animate-gradient 2.5s linear infinite;
}

@keyframes animate-gradient {
    to { background-position: 200%; }
}


/* ============================================================
   CODE CARD
   ============================================================ */

.code-card {
    position: absolute;
    right: 5%;
    top: 65%;
    transform: translateY(-50%);
    width: 310px;
    max-height: 320px;
    background: #0a1f3f;
    border-radius: 16px;
    border: 1px solid rgba(12, 56, 10, 0.1);
    box-shadow: 0 0 40px rgba(80, 100, 255, 0.15);
    overflow: hidden;
    z-index: 10;
    mix-blend-mode: normal;
}

.code-card-dots {
    display: flex;
    gap: 8px;
    padding: 14px 16px 10px;
    background: #061c3b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-card-dots span {
    width: 13px;
    height: 13px;
    border-radius: 50%;
}

.code-card-dots span:nth-child(1) { background: #ff5f57; }
.code-card-dots span:nth-child(2) { background: #febc2e; }
.code-card-dots span:nth-child(3) { background: #28c840; }

.code-card-body {
    padding: 16px 18px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 22px;
    margin: 0;
    white-space: pre;
    background: #020f21;
}

.c-white  { color: #e6edf3; }
.c-yellow { color: #e3b341; }
.c-red    { color: #ff7b72; }
.c-green  { color: #7ec16e; }

.code-card-stats {
    display: flex;
    justify-content: space-around;
    padding: 12px 10px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: #0d1117;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-num {
    font-size: 28px;
    font-weight: 800;
    color: #6070fd;
    font-family: 'Montserrat', sans-serif;
}

.stat-label {
    font-size: 10px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.45);
    font-family: 'Inter', sans-serif;
}


/* ============================================================
   INFO SECTION & CARDS
   ============================================================ */

.info-section {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 80%;
    margin-top: 100px;
}

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

.info-cards {
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 20px;
    width: 100%;
    height: 100%;
    margin-top: 30px;
}

.card {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    width: auto;
    height: 40vh;
    overflow: hidden;
    border: 1px solid gray;
    background-color: #080020b7;
    border-radius: 20px;
    transition: 0.5s;
}

.card h1 {
    position: absolute;
    margin: 0;
    bottom: 40%;
    left: 5%;
    font-size: 25px;
    z-index: 1;
    color: lightgray;
}

.card p {
    position: absolute;
    bottom: 3%;
    left: 5%;
    z-index: 1;
    max-width: 300px;
    color: gray;
    font-size: 13px;
    line-height: 20px;
}

.card img { width: 80%; height: 50%; object-fit: cover; }

.card video {
    margin-top: 10%;
    width: 70%;
    height: 50%;
    object-fit: cover;
    mix-blend-mode: lighten;
}

.card button {
    position: absolute;
    bottom: 5%;
    left: 5%;
    padding: 10px 25px;
    border: 1px solid gray;
    background-color: #0f1217;
    color: gray;
    border-radius: 20px;
    box-shadow: 0 0 5px lightgray;
    cursor: pointer;
    transition: 0.3s;
}

.card button:hover { box-shadow: 0 0 15px lightgray; opacity: 0.7; }
.card:hover        { box-shadow: 0 0 15px rgb(211, 211, 211); }

.card:nth-child(3)    { grid-row: span 2; height: 83vh; }
.card:nth-child(3) p  { bottom: 12%; }
.card:nth-child(3) h1 { bottom: 21%; }
.card:nth-child(4)    { grid-column: span 2; }
.card:nth-child(4) p  { max-width: 650px; }
.card:nth-child(4) h1 { bottom: 35%; }


/* ============================================================
   PROJECTS SECTION
   ============================================================ */

.my-project {
    display: flex;
    flex-direction: column;
    gap: 10%;
    align-items: center;
    position: relative;
    width: 80%;
    margin: 100px auto 80px auto;
}

.project-card {
    display: flex;
    width: 100%;
    height: 40%;
    align-items: center;
    gap: 10%;
    justify-content: center;
}

.project-vidbox {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
    mix-blend-mode: exclusion;
    position: relative;
    cursor: pointer;
    transition: 0.5s;
    min-width: 400px;
}

.project-vidbox video {
    object-fit: cover;
    width: 100%;
    box-shadow: 0 0 10px lightgray;
    border-radius: 20px;
    transition: 0.5s;
}

.project-card video:hover { box-shadow: 0 0 25px rgb(255, 255, 255); }

.project-info {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    width: 50%;
    padding-left: 10%;
}

.project-info h1 {
    width: 90%;
    font-size: 25px;
    font-weight: bold;
    text-wrap: nowrap;
    margin-top: 0;
    margin-bottom: 10px;
    max-width: 450px;
}

.project-info p {
    width: 90%;
    max-width: 400px;
    min-width: 300px;
    margin-bottom: 50px;
    margin-top: 0;
}

.project-info button {
    color: white;
    padding: 15px 35px;
    border-radius: 10px;
    border: 1px solid #72a1de81;
    background-color: #2200493d;
    box-shadow: 0 0 5px #72a1de81;
    cursor: pointer;
    transition: 0.3s;
}

.project-info button:hover { opacity: 0.8; box-shadow: 0 0 15px #72a1de81; }

.project-vidbox .hover-sign {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30%;
    height: 100px;
}

.hover-sign::before,
.hover-sign::after {
    content: "👆";
    text-align: center;
    position: absolute;
    font-size: 50px;
    top: 20%;
    left: 40%;
    border-radius: 40px;
    animation: hover-animation 4s ease-in-out infinite;
}

.hover-sign.active { display: none; }

@keyframes hover-animation {
    0%   { box-shadow: 0 0 5px rgb(255,255,255); transform: translate(100%, 50%) rotate(30deg); }
    100% { box-shadow: 0 0 5px rgb(255,255,255); transform: translateX(80%, 80%) rotate(20deg); }
}


/* ============================================================
   TOOLS SECTION
   ============================================================ */

.tools-section {
    width: 100%;
    padding: 100px 0;
    text-align: center;
    overflow: hidden;
}

.tools-marquee {
    width: 100%;
    overflow: hidden;
}

.tools-track {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: scrollTools 30s linear infinite;
}

@keyframes scrollTools {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.tool-card {
    width: 180px;
    height: 140px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    transition: 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.1);
}

.tool-card img  { width: 45px; height: 45px; object-fit: contain; }

.tool-card span {
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    color: rgba(220, 225, 235, 0.85);
    font-weight: 500;
}


/* ============================================================
   SKILLS SECTION
   ============================================================ */

.skills-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

#skills > * {
    position: relative;
    z-index: 2;
    padding-top: 40px;
}

#skills .skills-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 40px;
    padding: 0 80px;
}

#skills .skill-card {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    padding: 30px 26px;
    backdrop-filter: blur(18px);
    color: #ffffff;
    text-align: center;
}

#skills .skill-card .icon { font-size: 26px; margin-bottom: 12px; }

#skills .skill-card h3 {
    margin: 0 0 6px;
    font-size: 1.25rem;
    font-weight: 600;
}

#skills .skill-card p {
    margin: 0;
    opacity: 0.85;
    font-size: 0.95rem;
    font-weight: 400;
    color: #d1d5db;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}


/* ============================================================
   SECTION HEADINGS (shared)
   ============================================================ */

.section-heading,
.skills-heading {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 3.8rem;
    font-weight: 800;
    letter-spacing: 6px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(to bottom, #e6dcd7, #6d6967);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* ============================================================
   ABOUT SECTION
   ============================================================ */

.about-section {
    width: 100%;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px;
}

.about-content { max-width: 900px; }

.about-content h1 {
    font-size: 50px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 40px;
    background: linear-gradient(to bottom, #67a0fd 0%, #b1cdf4 40%, #254778 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Montserrat', sans-serif;
}

.about-content p {
    font-family: 'Kaushan Script', cursive;
    font-size: 25px;
    line-height: 45px;
    color: #b8c7e2;
    font-weight: 250;
}

.about-images {
    position: relative;
    width: 800px;
    height: 500px;
}

.image-card {
    position: absolute;
    width: 350px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 40px rgba(90,120,255,0.2);
    transition: 0.5s ease;
}

.image-card img { width: 100%; display: block; border-radius: 30px; }

.card1 { left: 0; top: 0; animation: float1 6s ease-in-out infinite; }
.card2 { right: 0; bottom: 0; animation: float1 6s ease-in-out infinite; animation-delay: 2s; }

@keyframes float1 {
    0%   { transform: translateY(0px) rotate(-8deg); }
    50%  { transform: translateY(-15px) rotate(-8deg); }
    100% { transform: translateY(0px) rotate(-8deg); }
}

.highlight { color: white; font-weight: 700; }


/* ============================================================
   SLIDER
   ============================================================ */

.slider {
    position: absolute;
    bottom: 5%;
    right: 20%;
    width: 60%;
    height: var(--height);
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, #000 10% 90%, transparent);
    mix-blend-mode: difference;
    opacity: 0.7;
}

.slider .list {
    display: flex;
    width: 100%;
    min-width: calc(var(--width) * var(--quantity));
    position: relative;
}

.slider .list .item {
    width: var(--width);
    height: var(--height);
    position: absolute;
    left: 100%;
    animation: autoRun 10s linear infinite;
    transition: filter 0.5s;
    animation-delay: calc((10s / var(--quantity)) * (var(--position) - 1) - 10s) !important;
}

.slider .list .item img { width: 100%; }

@keyframes autoRun {
    from { left: 100%; }
    to   { left: calc(var(--width) * -1); }
}

.slider:hover .item  { animation-play-state: paused !important; filter: grayscale(1); }
.slider .item:hover  { filter: grayscale(0); }


/* ============================================================
   CONTACT SECTION
   ============================================================ */

.contact-section .section-title {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 2px;
    text-align: center;
}

.contact-slide {
    width: 100%;
    padding: 120px 20px 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-wrapper {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.contact-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-box p { font-size: 14px; color: rgba(255,255,255,0.8); margin: 5px 0; }

.contact-box input,
.contact-box textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    color: white;
    outline: none;
    transition: 0.3s;
    resize: none;
    box-sizing: border-box;
}

.contact-box textarea { min-height: 100px; }

.contact-box input:focus,
.contact-box textarea:focus {
    border-color: #6f88ff;
    box-shadow: 0 0 10px rgba(111,136,255,0.5);
}

.contact-box button {
    margin-top: 15px;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #4f5f75, #6f88ff);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.contact-box button:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.4); }

.contact-email { font-size: 14px; color: #6f88ff; }

.contact-footer {
    width: 100%;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.footer-icons a {
    font-size: 26px;
    color: rgba(255,255,255,0.7);
    margin-left: 20px;
    transition: 0.3s;
}

.footer-icons a:hover { color: #6f88ff; transform: scale(1.1); }


/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */

.autoBlur {
    animation: autoBlurAnimation linear both;
    animation-timeline: view();
}

@keyframes autoBlurAnimation {
    0%         { filter: blur(40px); }
    35%, 65%   { filter: blur(0); opacity: 1; }
    100%       { filter: blur(40px); opacity: 0; }
}

.autoDisplay {
    animation: autoDisplayAnimation both;
    animation-timeline: view();
}

@keyframes autoDisplayAnimation {
    from { filter: blur(10px); transform: translateY(-200px) scale(0); }
    50%  { opacity: 1; filter: blur(0px); transform: translateX(0) scale(1); }
}

.fadein-left {
    animation: fadeInLeftAnimation both;
    animation-timeline: view();
}

@keyframes fadeInLeftAnimation {
    0%       { opacity: 0; transform: translateX(-500px) scale(0.2); filter: blur(10px); }
    35%, 65% { opacity: 1; transform: translateX(0) scale(1); filter: blur(0px); }
    100%     { filter: blur(10px); }
}


/* ============================================================
   RESPONSIVE — 1200px
   ============================================================ */

@media screen and (max-width: 1200px) {

    .blackhole-box video { margin-top: -20%; }

    .hero-info h1 { font-size: 40px; max-width: 400px; line-height: 40px; }
    .hero-info p  { max-width: 300px; }

    .skills-video-box       { right: 0%; }
    .skills-video-box video { height: 500px; }

    .info-cards { grid-template-columns: auto; }

    .card:nth-child(3)    { grid-column: span 2; height: 70vh; }
    .info-cards .card h1  { font-size: 20px; }
    .info-cards .card:nth-child(3) h1 { bottom: 25%; }

    .card video { height: 60%; margin-top: 5%; }

    .my-project { scale: 0.8; }

    .contact-section .section-title { left: 30%; }
}


/* ============================================================
   RESPONSIVE — 700px
   ============================================================ */

@media screen and (max-width: 700px) {

    header            { position: fixed; height: 50px; }
    header ul         { display: none; }
    header .box-icons { display: none; }

    .about-content h1 { font-size: 42px; }
    .about-content p  { font-size: 18px; line-height: 30px; }

    .blackhole-box video { width: 100%; margin-top: -15%; }

    .autoBlur { animation: none; }

    .hero { flex-direction: column; top: 0; bottom: 0; left: 0; right: 0; overflow: hidden; }
    .hero-info   { bottom: 5%; }
    .scroll-down { bottom: 5%; }

    .hero .skills-video-box { height: 200px; top: 5%; }

    .info-cards        { grid-template-columns: auto; }
    .card:nth-child(3) { grid-column: span 2; height: 70vh; }
    .card video        { width: 100%; }

    .container { height: 100%; }

    .project-vidbox video { width: 250px; margin-left: -100px; }
    .project-info         { overflow: hidden; padding-left: 0; margin-left: -50px; }
    .project-info h1      { font-size: 20px; max-width: 200px; text-wrap: wrap; }
    .project-info p       { font-size: 10px; text-wrap: wrap; max-width: 200px; min-width: 0; font-family: 'Inter', sans-serif; }
    .project-info button  { padding: 5px 10px; }

    .project-card   { flex-direction: column; margin-left: 25%; gap: 30px; }
    .project-vidbox { min-width: 200px; }
    .project-info   { width: 85%; }
    .project-info h1 { text-wrap: nowrap; }
    .project-info p  { max-width: 300px; }

    .slider .list .item img { width: 70%; }

    .contact-section { flex-direction: column; margin-top: 100px; margin-bottom: 50px; }

    .footer     { font-size: 10px; }
    .social-box { margin-left: -90px; }

    /* Code card — visible below hero on mobile */
    .code-card {
        display: block;
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 90%;
        margin: 20px auto 0 auto;
        max-height: none;
    }
}


/* ============================================================
   RESPONSIVE — 480px
   ============================================================ */

@media screen and (max-width: 480px) {

    /* --- HERO --- */
    .hero {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding-bottom: 40px;
        height: auto;
        min-height: 100svh;
        overflow: hidden;
    }

    .hero-info {
        position: relative;
        top: auto;
        left: auto;
        bottom: auto;
        margin-top: 80px;
        padding: 0 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-info .hero-info-title { margin-top: 0; }

    .hero-info h1 {
        font-size: 28px;
        line-height: 36px;
        max-width: 100%;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .hero-info p {
        font-size: 15px;
        line-height: 24px;
        max-width: 100%;
        margin-bottom: 25px;
    }

    .skills-video-box { display: none; }

    .scroll-down {
        position: relative;
        left: auto;
        transform: none;
        margin: 20px auto 0 auto;
        display: block;
    }

    /* --- BLACKHOLE --- */
    .blackhole-box       { overflow: hidden; position: absolute; }
    .blackhole-box video { width: 140%; margin-top: -27%; }

    /* --- LEFT / BRAND --- */
    .left    { scale: 0.9; margin-left: -30px; }
    .left h2 { font-size: 20px; }

    /* --- CODE CARD --- */
    .code-card {
        display: block;
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 90%;
        margin: 30px auto 0 auto;
        max-height: none;
    }

    /* --- ABOUT --- */
    .about-section {
        flex-direction: column;
        padding: 80px 20px 60px;
        gap: 40px;
    }

    .about-content h1 { font-size: 32px; margin-bottom: 20px; }
    .about-content p  { font-size: 16px; line-height: 28px; }

    .about-images {
        width: 100%;
        height: 280px;
        display: flex;
        justify-content: center;
    }

    .image-card {
        position: relative;
        width: 80%;
        left: auto; right: auto; top: auto; bottom: auto;
        transform: none !important;
        animation: none !important;
    }

    /* --- PROJECTS --- */
    .my-project {
        width: 100%;
        margin: 60px 0;
        padding: 0 20px;
        gap: 60px;
        scale: 1;
        box-sizing: border-box;
    }

    .project-card {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin: 0;
        width: 100%;
    }

    .project-vidbox           { width: 100%; min-width: unset; }
    .project-vidbox video     { width: 100%; margin-left: 0; border-radius: 16px; }

    .project-info {
        width: 100%;
        padding: 0 20px;
        margin: 0;
        overflow: visible;
        box-sizing: border-box;
    }

    .project-info h1 {
        font-size: 18px;
        text-wrap: wrap;
        white-space: normal;
        max-width: 100%;
        margin-bottom: 10px;
    }

    .project-info p {
        font-size: 13px;
        line-height: 20px;
        max-width: 100%;
        min-width: unset;
        margin-bottom: 16px;
    }

    .project-info button { padding: 10px 20px; font-size: 13px; }

    /* --- SKILLS --- */
    #skills .skills-container {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        padding: 0 20px;
    }

    #skills .skill-card p {
        font-size: 12px;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

    /* --- TOOLS --- */
    .tools-section { padding: 60px 0; }
    .tool-card     { width: 130px; height: 110px; }

    /* --- CONTACT --- */
    .contact-slide { padding: 80px 20px 60px 20px; }

    .contact-wrapper {
        width: 100%;
        gap: 24px;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .contact-box input,
    .contact-box textarea { font-size: 14px; }

    .contact-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    /* --- HEADINGS --- */
    .section-heading,
    .skills-heading {
        font-size: 2rem;
        letter-spacing: 3px;
        padding: 0 20px;
    }

    /* --- MISC --- */
    .section-title { font-size: 25px; }

    .info-cards { display: flex; flex-direction: column; }
    .card       { min-height: 20rem; }
    .card h1    { bottom: 30%; font-size: 5px; }

    .project-card { height: 50%; }
    .skills-box   { height: 120vh; margin-right: 30px; }
    .slider       { bottom: 0%; }

    .footer            { padding: 15px; }
    .footer h1         { max-width: 150px; }
    .footer .box-icons { gap: 10px; }
}