@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=DM+Sans:wght@300;400;500&family=Poppins:wght@300;400;500;600&display=swap');

/*Removes default Browser spacing */
*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}

/*  DESIGN TOKENS
    Every colour, radius, shadow, motion, spacing
    step, and font size used across the site lives
    here. Reference var(--token).*/
:root {
/* Colours */
    --bg:       #f0efea;
    --bg-nav:   rgba(240 ,239, 234, 0.85); /* --bg at the nav's blur opacity */
    --bg-hover: #e5e4df;                   /* --bg at the nav's hover opacity */
    --white:    #ffffff;
    --black:    #111110;
    --gray:     #6b6b65;
    --border:   #d8d8d2;
    --blue:     #4BA4F2;
    --green:    #70D263;

/* Type families */
    --font-body:    'DM Sans', sans-serif;
    --font-heading: 'Instrument Serif', Georgia, serif;
    --font-poppins: 'Poppins', sans-serif;

/* Type scale*/
    --fs-display-xl: clamp(48px, 8vw, 88px); /* hero h1 */
    --fs-display-l:  clamp(48px, 8vw, 80px); /* project name */
    --fs-display-m:  clamp(32px, 5vw, 64px); /* footer heading */
    --fs-heading:    24px;                   /* card titles, content headings */
    --fs-body-lg:    18px;                   /* standard paragraph copy */
    --fs-body:       16px;                   /* buttons, nav links */
    --fs-caption:    14px;                   /* section labels, meta, footer copy */

/* line Height */
    --lh-tight: 1.05; /* big display headings */
    --lh-heading: 1.4; /* card titles, content headings */
    --lh-body:  1.6;  /* paragraph copy */

/* spacing scale */
    --space-8:  8px;
    --space-12: 12px;
    --space-16: 16px;
    --space-24: 24px;
    --space-32: 32px;
    --space-48: 48px;
    --space-64: 64px;
    --space-80: 80px;

/* Radius scale */
    --r-pill:    100px; /* buttons, nav pill, floating hero card, tags */
    --r-card:    16px;  /* cards, hero images */
    --r-tile:    12px;  /* photo tiles, placeholder blocks */
    --r-tile-lg: 20px;  /* larger stat cards */
    --r-round:   50%;   /* avatars, circular icon buttons */

/* Elevation */
    --shadow-rest: 0 4px 24px rgba(0, 0, 0, 0.07);
    --shadow-lift: 0 16px 48px rgba(0, 0, 0, 0.1);

/* Motion */
    --t-color: 0.2s;
    --t-lift:  0.3s ease;
    --t-zoom:  0.4s ease;
}

html {
    scroll-behavior: smooth;
}
/* body */
body{
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--black);
    font-size: 24px;
    line-height: var(--lh-body); 
    cursor:none;
}
/* Custom Cursor */
.cursor-dot{
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    background: var(--black);
    pointer-events: none;
    transform: translate(-50%, -50%);
    will-change: transform;
}

#cursor-trail-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 997;
}
.cursor-dot {
    width: 20px;
    height: 20px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.3s cubic-bezier(.16,1,.3,1),
                height 0.3s cubic-bezier(.16,1,.3,1),
                border-radius 0.3s ease,
                background-color 0.3s ease;
}
.cursor-dot span {
    opacity: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    white-space: nowrap;
    transition: opacity 0.2s ease 0.05s;
}
.cursor-dot.is-hovering span {
    opacity: 1;
}
/* Navigation */
nav{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 48px;
    background-color: var(--bg-nav);
    backdrop-filter: blur(12px);
}
/* Navigation Styling  */
.logo{
    font-size: 24px;
    font-weight: 600;
    color: var(--black);
    text-decoration: none;
}
.nav-links{
    list-style: none;
    display: flex;
    align-items: center;
    gap: var(--space-24);
}
.nav-links a {
    font-size: var(--fs-body-lg);
    color: var(--gray);
    text-decoration: none;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: var(--black);
}
.btn-nav{
    background: var(--black);
    color: var(--white) !important;
    padding: 16px 18px;
    border-radius: var(--r-pill);
    font-size: var(--fs-body);
    transition: opacity var(--t-color);
}
.btn-nav:hover{
    opacity: 0.75;
}
/* Hero Section Styling */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-64);
    position: relative;
}
/* Main Heading */
.hero h1{
    font-family: var(--font-poppins);
    font-size: var(--fs-display-xl);
    font-weight: 400;
    line-height: var(--lh-tight);
    letter-spacing: 0.01em;
    margin: var(--space-24);
}
.hero-tagline{
    font-size: 24px;
    color: var(--gray);
    letter-spacing: 0.02em;
    margin-bottom: var(--space-24);
}
.hero-buttons{
    display:flex;
    gap: var(--space-12);
}

/* Button Styling */
.btn-primary{
    background-color: var(--black);
    color: var(--white);
    padding: 12px 28px;
    border-radius: var(--r-pill);

    font-size: var(--fs-body);
    font-weight: 600;
    text-decoration: none;
    transition: opacity var(--t-color);
}
.btn-primary:hover{
    opacity: 0.75;
}
.btn-outline{
    background-color: transparent;
    color: var(--black);
    padding: 12px 28px;
    border-radius: var(--r-pill);
    border: 1px solid var(--border);
    font-size: var(--fs-body);
    font-weight: 600;
    text-decoration: none;
    transition: opacity var(--t-color);
}
.btn-outline.btn--centre{
    display: block;
    width: fit-content;
    margin: 24px auto 0;
    
}
.btn-outline:hover {
    background-color: #e5e4df;
}
/* Tags Styling */
.tag {
    display: inline-block;
    background: var(--gray);
    color: var(--white);
    padding: 8px 12px;
    border-radius: 12px;
    font-size: var(--fs-heading);
}

/* Hero Card Styling */
.hero-card {
    position: absolute;
    right: var(--space-80);
    bottom: var(--space-80);
    display: flex;
    align-items: center;
    gap : var(--space-12);
    background : var(--white);
    border :1px solid var(--border);
    border-radius: var(--r-pill);
    padding: var(--space-8) var(--space-16) var(--space-8) var(--space-8);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    z-index: 3;
}
.hero-card-avatar{
    height: var(--space-80);
    border-radius:50%;
    object-fit: cover;
    flex-shrink: 0;
}
.hero-card-text{
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: var(--lh-heading);
}
.hero-card-name{
    font-size: 20px;
    font-weight: 600;
    color: var(--black);
}
.hero-card-role{
    font-size: 18px;
    color: var(--gray);
}

/* About Section */
.about {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-80);
    padding: var(--space-64);
    align-items: center;
    max-width: 1440px;
    min-height: 100vh;
    margin:0 auto;
}
.about-left {
    padding-top: 4px;
}
.about-body {
    color: var(--black);
    line-height: var(--lh-body);
    font-weight: 450;
    font-size: 38px;
}

/* Project Section */
.mywork {
    padding: var(--space-64);
    max-width: 1440px;
    margin: 0 auto;
    scroll-margin-top: 2rem;
}
.section-label{
    color: var(--gray);
    letter-spacing: 0.04em;
}
/* Adds the \ before the text */
.section-label::before {
    content: '\\ ';
}
.project-tagline {
    color: var(--black);
    margin: 12px;
    margin-bottom: 36px;
    line-height: var(--lh-heading);
}
/* Left + Right two column layout */
.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
/* Right column stacks two cards vertically */
.project-grid-right {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* SHARED CARD STYLES */
.project-card-large,.project-card-small,.project-card-seemore {
    display: block;           /* makes <a> tag behave like a div */
    text-decoration: none;    
    color: var(--black);      
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: none;
}

/* Hover lift — applies to all three cards */
.project-card-large:hover,.project-card-small:hover,.project-card-seemore:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

.project-card-body {
    padding:32px;
}

.project-title {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 12px;
}

.project-description {
    font-size: 24px;
    color: var(--gray);
    line-height: var(--lh-body);
}

/* Big left card image — taller */
.project-card-large .project-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Small right card image — shorter */
.project-card-small .project-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

/* See More Card */
.project-card-seemore {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px;
    overflow: visible; /* overrides the shared overflow: hidden */
}

.seemore-title {
    font-size: 24px;
    font-weight: 500;
    color: var(--black);
    margin-bottom: 8px;
}

.seemore-desc {
    font-size: 24px;
    color: var(--gray);
    line-height: var(--lh-body);
}

.seemore-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--black);
    font-size: 14px;
    flex-shrink: 0;
    transition: var(--t-color);
}

.project-card-seemore:hover .seemore-btn {
    background: var(--black);
    color: var(--white);
}

/* hobbies section*/
.hobbies-section {
    min-height: 90vh;
    padding: 64px;
    max-width: 1440px;
    margin: 0 auto;
}

.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px;
}

.hobbies-items{
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1/1;
}

.hobbies-items img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.hobbies-items:hover img {
    transform: scale(1.04);
}

/*footer*/
footer {
    display: flex;
    flex-direction: column; /* stacks top and bottom vertically */
    padding: 64px 64px 24px; 
    gap: 32px;
}

.footer-top{
    text-align: right;
}

.footer-heading{
    font-family: var(--font-poppins);
    font-size:clamp(32px, 5vw, 64px);
    font-weight: 400;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}

.footer-body{
    font-size: clamp(16px, 2vw, 24px);
    color: var(--gray);
    line-height: var(--lh-heading);
    margin: 0 auto;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 32px;
}

.footer-copy {
    font-size: clamp(12px, 2vw, 18px);
    color: var(--gray);
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: clamp(12px, 2vw, 24px);
    color: var(--gray);
    text-decoration: none;
    transition: color var(--t-color);
}

.footer-links a:hover {
    color: var(--black);
}


@media (max-width: 768px) {
    .about {
        grid-template-columns: 1fr;
        gap: var(--space-32);
        padding: var(--space-32);
    }
    .hero-card {
        right: var(--space-32);
        bottom: var(--space-32);
    }
    .project-grid {
        grid-template-columns: 1fr;
    }
    .project-grid-right {
        flex-direction: column;
    }
    .hobbies-grid {
        grid-template-columns: repeat(2,1fr);
    }
}