/* ===== SELF-HOSTED FONTS ===== */

/* Outfit */
@font-face {
    font-family: 'Outfit';
    src: url('fonts/Outfit/Outfit-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* Anybody */
@font-face {
    font-family: 'Anybody';
    src: url('fonts/Anybody/Anybody-VariableFont_wdth,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Anybody';
    src: url('fonts/Anybody/Anybody-Italic-VariableFont_wdth,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

/* Dela Gothic One */
@font-face {
    font-family: 'Dela Gothic One';
    src: url('fonts/Dela_Gothic_One/DelaGothicOne-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Urban Calligraphy (handwritten) */
@font-face {
    font-family: 'Urban Calligraphy';
    src: url('fonts/el_font_urban_calligraphy/Urban Calligraphy.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

body {
    line-height: 1;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* SEO Utilities */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

/* Custom Styles */
:root {
    --bg-dark: #0e0e0e;
    /* A darker gray to match the image */
    --text-light: #f5f5f5;
    --yellow-bg: #fddb3a;
    /* Similar to the pop-art yellow */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
}

/* Header & Nav */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 3rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    opacity: 0;
}

.logo-link img {
    height: 40px;
    /* Adjust based on actual logo size */
}

/* Hamburger Menu Profile */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 105;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.red-circle {
    width: 20px;
    height: 20px;
    background-color: #cc292b;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.behance-link:hover .red-circle {
    transform: scale(1.2);
}

nav>a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

nav>a:hover {
    color: var(--yellow-bg);
}

/* Main Parallax Container */
main {
    width: 100%;
    height: 100vh;
    /* Banner size in viewport height */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Background figure for banner */
main>figure {
    position: absolute;
    /* top: 0; */
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* animation: bannerBreathe 5s ease-in-out infinite; */
}

@keyframes bannerBreathe {

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

    50% {
        transform: translateY(15px);
    }
}

main>figure>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    border-radius: 30px;
}

/* Radial Gradient Background */
.radial-gradient {
    position: absolute;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, rgba(204, 41, 43, 0.5) 0%, transparent 60%);
    z-index: 2;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

/* Typography Roller Animation */
.title-container {
    position: absolute;
    z-index: 13;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 12vw;
    line-height: 1.8;
    /* text-align: center; */
    color: #fff;
    white-space: nowrap;

    width: 110%;
    display: flex;
    flex-direction: column;
    /* align-items: center;
    justify-content: center; */
    transform-style: preserve-3d;
    transform: translateY(25%);
    /* Softer, more transparent Oval Edges */
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 95%);
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 95%);
    filter: blur(1px);
}

.title-row {
    height: 1em;
    overflow: hidden;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    opacity: 0;
}

.left-enter {
    right: 10%;
    font-family: 'Anybody', sans-serif;
}

.right-enter {
    left: 10%;
    font-family: 'Dela Gothic One', sans-serif;
    font-weight: 500;
}

.title-roller {
    display: flex;
    flex-direction: column;
    transform: perspective(600px) rotateX(8deg);
    transform-origin: center center;
    animation: textRoll 8s infinite cubic-bezier(0.85, 0, 0.15, 1);
}

.title-row:nth-child(2) .title-roller {
    animation-delay: 0.15s;
}

.title-row:nth-child(3) .title-roller {
    animation-delay: 0.3s;
}

.title-face {
    height: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    /* text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); */
}



@keyframes textRoll {

    0%,
    35% {
        transform: translateY(0);
    }

    45%,
    85% {
        transform: translateY(-1em);
    }

    95%,
    100% {
        transform: translateY(-2em);
    }
}

/* Central Character Section */
main>section {
    position: relative;
    width: 100%;
    height: 60%;
    /* Matching banner height for baseline alignment */
    z-index: 10;
    opacity: 0;
    display: flex;
    justify-content: center;
    /* align-items: center; */
}

main>section>img {
    position: absolute;
    height: 140%;
    /* Pops out top of the 60% banner */
    width: 100%;
    object-fit: contain;
    object-position: bottom;
    /* Aligns image content to the bottom */
    bottom: 0;
    /* Aligns image container to the bottom of section */
    will-change: transform, opacity;
    transform: translateY(20%);
}

main>section>img:nth-of-type(1) {
    z-index: 12;


}

main>section>img:nth-of-type(2) {
    z-index: -1;
    opacity: 0;
    /* Removed height: 30% so it fits identically to main_image.webp if they share the same canvas dimensions. 
       If cap.webp is cropped, adjust width/height and use top/left instead of bottom: 0 */
    bottom: auto;
    top: -4%;
    /* Approximate placement for the head relative to the section */
    width: auto;
    height: 30%;
    transform: translatex(-60%);
    /* Re-applied as user requested previously, but placed at top */
}

main>section>img:nth-of-type(3) {
    z-index: 14;
    opacity: 0;
}

/* Footer Elements */
.bottom-footer {
    position: absolute;
    bottom: 5%;
    width: 90%;
    display: flex;
    justify-content: space-between;
    z-index: 100;
    opacity: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.bottom-left span {
    font-weight: 400;
    color: #aaa;
}

/* Featured Section Overlap */
#featured {
    background-color: #111;
    border-radius: 40px 40px 0 0;
    padding: 5rem 5%;
    position: relative;
    z-index: 50;
    /* Needs to rest above the pinned main container */
    overflow: hidden;
}

.featured-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.featured-title {
    font-family: 'Anybody', sans-serif;
    font-size: 4rem;
    color: #fff;
    font-weight: 400;
}

.handwritten {
    font-family: 'Urban Calligraphy', cursive;
    font-size: 5rem;
    margin-left: 10px;
}

.arrows {
    display: flex;
    gap: 1rem;
}

.arrow-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(5px);
}

.arrow-btn:hover {
    background: #fff;
    color: #000;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    border-color: #fff;
}

.arrow-btn:active {
    transform: scale(0.95);
}

/* Staggered Cards Layout */
.projects-carousel {
    display: flex;
    align-items: center;
    /* Center vertically for the scale effect */
    margin-top: 4rem;
    height: 70vh;
    padding-left: 35vw;
    /* Start with first card close to center */
    padding-right: 35vw;
    width: 250vw;
    /* Wide track for scroll */
}

.project-card {
    flex-shrink: 0;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), filter 0.6s ease, z-index 0.6s ease;
    position: relative;
    width: 21vw;
    height: 60vh;
    margin-right: 2vw;
    /* Small gap instead of large overlap */
    z-index: 1;
    filter: grayscale(1) brightness(0.6);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transform-origin: center center;
}

.project-card:hover {
    transform: scale(1.15) !important;
    filter: grayscale(0) brightness(1) !important;
    z-index: 50 !important;
}

.project-card img {
    border-radius: 20px;
    object-fit: cover;
    width: 100%;
    height: 85%;
}

.project-card h4 {
    margin-top: 1rem;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 500;
    padding-left: 10px;
    margin-bottom: 0;
}

/* What I Do Section */
#what-i-do {
    background-color: #1a1a1a;
    border-radius: 40px 40px 0 0;
    padding: 8rem 5%;
    position: relative;
    z-index: 51;
}

.what-header {
    margin-bottom: 4rem;
    display: flex;
    justify-content: center;
}

.what-heading {
    display: flex;
    gap: 1.5rem;
    font-size: 4rem;
    font-weight: 300;
    color: #fff;
    align-items: center;
}

.word-wrapper {
    overflow: hidden;
    perspective: 800px;
    display: inline-block;
}

.word {
    font-family: 'Anybody', sans-serif;
    display: inline-block;
    transform-origin: bottom center;
}

.handwritten {
    font-family: 'Urban Calligraphy', cursive;
    font-size: 6rem;
    transform: translateY(-5px);
}

/* Grid Layout */
.what-grid {
    display: flex;
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 60vh;
}

.grid-main-link {
    display: flex;
    flex: 2;
    text-decoration: none;
    color: inherit;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s;
}

.grid-main-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.col-illustration {
    flex: 1;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: #111;
}

.col-illustration img {
    max-height: 100%;
    object-fit: contain;
}

.col-details {
    flex: 1;
    padding: 3rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.col-details h3 {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #fff;
}

.col-details p {
    font-size: 0.9rem;
    color: #bbb;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.view-more-btn {
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    padding: 0.8rem 2rem;
    width: max-content;
    border-radius: 2px;
    font-size: 1rem;
    text-align: center;
    transition: background 0.3s;
}

.grid-main-link:hover .view-more-btn {
    background: #fff;
    color: #000;
}

.number-bg {
    position: absolute;
    bottom: 1.5rem;
    right: 2rem;
    font-size: 5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
}

.col-side {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.side-item {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 2rem;
    text-decoration: none;
    color: #fff;
    transition: background-color 0.3s;
}

.side-item:first-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.side-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.side-item img {
    width: 40%;
    height: 100%;
    object-fit: cover;
    margin-right: 1.5rem;
}

.side-item h4 {
    font-size: 1.5rem;
    font-weight: 400;
}

/* Responsive Media Queries */
@media screen and (max-width: 768px) {
    header {
        padding: 1.5rem 5%;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-dark);
        flex-direction: column;
        padding: 2rem 0;
        gap: 2rem;
        transform: translateY(-150%);
        opacity: 0;
        transition: transform 0.4s ease, opacity 0.4s ease;
        pointer-events: none;
        z-index: 104;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    /* Hamburger Animation */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Minimize main image in mobile view */
    main>section>img:nth-of-type(1) {
        height: 110%;
        transform: translateY(10%) !important;
    }

    main>section>img:nth-of-type(2) {
        height: 20%;
    }

    main>section>img:nth-of-type(3) {
        height: 110%;
        transform: translateY(10%) !important;
    }

    .title-container {
        font-size: 14vw;
    }

    .featured-title {
        font-size: 2.5rem;
    }

    .handwritten {
        font-size: 3.5rem;
    }

    .projects-carousel {
        height: 50vh;
        padding-left: 20vw;
    }

    .project-card {
        width: 60vw;
        height: 40vh;
        margin-right: -15vw;
    }

    .what-heading {
        font-size: 2.2rem;
        flex-wrap: wrap;
        gap: 0.8rem;
    }

    .handwritten-be {
        font-size: 3.5rem;
    }

    .what-grid {
        flex-direction: column;
        height: auto;
    }

    .grid-main-link {
        flex-direction: column;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .col-illustration {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .side-item h4 {
        font-size: 1.2rem;
    }
}

/* Pill Footer Section */
#pill-footer {
    background-color: #000;
    min-height: 40vh;
    /* padding: 10rem 5%; */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 52;
    border-radius: 60px 60px 0 0;
    overflow: hidden;
    margin-top: 4rem;
    /* Margin top as requested for spacing before footer */
}

.pill-container {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 420px;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 4rem;
    border-radius: 100px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 1.8rem;
    transition: transform 0.3s, background-color 0.3s, color 0.3s;
    cursor: pointer;
}

.pill.solid {
    background-color: #ff2a2a;
    /* Neon Yellow/Green */
    color: #000;
}

.pill.outline {
    background-color: transparent;
    border: 2px solid #ff2a2a;
    color: #ff2a2a;
}

/* Sizing Variants */
.pill.small {
    font-size: 1.2rem;
    padding: 1rem 3rem;
}

.pill.medium {
    font-size: 2rem;
    padding: 1.8rem 5rem;
}

.pill.large {
    font-size: 3.5rem;
    padding: 2.5rem 6.5rem;
}

.pill.long {
    padding: 1.5rem 8rem;
}

/* Absolute scatter positions — each pill owns its rotation & scale via CSS vars */
.pill {
    position: absolute;
    transform: rotate(var(--pill-rotate, 0deg)) scale(var(--pill-scale, 1));
    transition: --pill-scale 0.3s ease, filter 0.3s ease, background-color 0.3s, color 0.3s;
}

/* 1 — contact (solid, large) — top-center, tilted left */
.pill-container> :nth-child(1) {
    top: 22%;
    left: 35%;
    --pill-rotate: -7deg;
    --pill-scale: 1.9;
}

/* 2 — ME (solid, small) — overlapping contact, right of it */
.pill-container> :nth-child(2) {
    top: 50%;
    left: 53%;
    --pill-rotate: 19deg;
    --pill-scale: 2.2;
}

/* 3 — 2026 (small outline) — bottom-left */
.pill-container> :nth-child(3) {
    bottom: 8%;
    left: 5%;
    --pill-rotate: -8deg;
    --pill-scale: 2;
}

/* 4 — Stalin eapen (large outline) — center-bottom */
.pill-container> :nth-child(4) {
    bottom: 14%;
    left: 20%;
    --pill-rotate: 14deg;
    --pill-scale: 1.4;
}

/* 5 — UI/UX (medium outline) — top-right */
.pill-container> :nth-child(5) {
    top: 54%;
    right: 7%;
    --pill-rotate: 12deg;
    --pill-scale: 1.5;
}

/* 6 — DESIGNER (long outline) — bottom-right, strong tilt */
.pill-container> :nth-child(6) {
    bottom: 4%;
    right: 3%;
    --pill-rotate: 10deg;
    --pill-scale: 1.2;
}

/* 7 — :P (small outline) — center, between stalin and designer */
.pill-container> :nth-child(7) {
    bottom: 54%;
    left: 65%;
    --pill-rotate: -25deg;
    --pill-scale: 2.1;
}




/* Hover — only scale up, rotation stays intact */
.pill:hover {
    --pill-scale: 1.08;
    filter: brightness(1.2);
}

.pill.solid:hover {
    background-color: #fff;
}

.pill.outline:hover {
    background-color: #ff2a2a;
    color: #000;
}

/* Animations prep */
.move-down {
    opacity: 0;
}

/* Responsive Footer for Mobile Layout */
@media screen and (max-width: 1024px) {
    /* Tablet overlap adjustments if any, but focus on the main layout below */
}

@media screen and (max-width: 768px) {
    #pill-footer {
        min-height: auto;
        padding: 4rem 5% 5rem 5%;
        border-radius: 40px 40px 0 0;
        margin-top: 0;
    }

    .pill-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1.2rem;
        height: auto;
        min-height: auto;
    }

    /* Reset all scattered absolute positions to build a vertical minimal layout */
    .pill {
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        --pill-rotate: 0deg !important;
        --pill-scale: 1 !important;
        transform: none !important;
        width: 100% !important;
        max-width: 280px !important;
        height: 60px !important;
        text-align: center !important;
        padding: 0 !important;
        font-size: 1.2rem !important;
        font-weight: 500 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
    }

    .pill.large,
    .pill.medium,
    .pill.small,
    .pill.long {
        padding: 1.2rem !important;
        font-size: 1.1rem !important;
    }

    /* Maintain slight hover effect without breaking stack */
    .pill:hover {
        --pill-scale: 1.05;
    }
}