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

body {
    font-family: 'Montserrat', sans-serif;

    background-image: url('images/Main.jpg');

    overflow-x: hidden;
}

body::after {
    content: "";
    position: fixed;
    width: 200%;
    height: 200%;

    background-image:
        linear-gradient(rgba(0,0,0,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.02) 1px, transparent 1px);

    background-size: 40px 40px;

    animation: gridMove 20s linear infinite;

    pointer-events: none;
}

/* GRID MOTION */
@keyframes gridMove {

    from {
        transform: translate(0,0);
    }

    to {
        transform: translate(-40px,-40px);
    }
}

/* NAV */
.nav {
position: absolute;
top: 25px;
width: 100%;
padding: 0 60px;
display: flex;
justify-content: space-between;
font-size: 14px; 
}

.nav-left span {
margin-right: 20px;
border: 1px solid #082431;
background-color: #071b25;
padding: 6px 12px;
border-radius: 20px;
font-weight: 700;
color: #f8f5f5;

}
.nav-left span:hover {
    background: rgba(0, 0, 0, 0.1);
}

.nav-right span {
border: 1px solid #041219;
background-color: #031721;
padding: 6px 14px;
font-weight: 700;
border-radius: 20px;
color: #f8f7f7;
}


/* NAV LINKS */
.nav a {
    text-decoration: none;
    margin-right: 15px;
    padding: 8px 16px;

    font-weight: 700;
    font-size: 13px;

    color: #111;

    border-radius: 20px;

    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);

    border: 1px solid rgba(0,0,0,0.1);

    transition: all 0.3s ease;
}

/* HOVER */
.nav a:hover {
    background: #111;
    color: white;
    transform: translateY(-2px);
}

/* HERO */
.hero {
height: 100vh;
position: relative;
}


.hero::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(214, 225, 244, 0.08), transparent 70%);
    top: 20%;
    left: 30%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 200, 255, 0.05), transparent 70%);
    bottom: 10%;
    right: 20%;
    z-index: 0;
}


/* BIG TEXT (IN FRONT) */
.name {
    position: absolute;
    font-size: 140px;
    font-weight: 900;
    color: #cfcfcf;
    letter-spacing: -5px;
    z-index: 3;   /* HIGHER → now above image */
}



/* LEFT TEXT */
.name.left {
left: 60px;
top: 45%;
transform: translateY(-50%);
}

/* RIGHT TEXT */
.name.right {
right: 40px;
bottom: 60px;
}

/* IMAGE (BEHIND) */
.image-wrap {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
z-index: 1;   /* LOWER */
}

.image-wrap img {
width: 600px;
}

/* SIDE TEXT */
.side {
position: absolute;
right: 80px;
top: 40%;
font-size: 16px;
line-height: 1.5;
font-weight: 700;
}

.name {
    color: rgba(0,0,0,0.15);  /* softer grey like real designs */
}

/* BIG TEXT BASE */
.name {
    position: absolute;
    font-size: 150px;
    font-weight: 900;
    letter-spacing: -5px;
    z-index: 3;
    overflow: hidden;
}

/* TEXT STYLE */
.name span {
    display: inline-block;
    color: rgba(0,0,0,0.15);
    transition: all 0.4s ease;
}

/* POSITIONING */
.name.left {
    left: 60px;
    top: 45%;
    transform: translateY(-50%);
}

.name.right {
    right: 40px;
    bottom: 60px;
}

/* ✨ UNIQUE EFFECT: HOVER REVEAL */
.name span:hover {
    color: #000;
    transform: translateY(-5px) scale(1.02);
}

/* IMAGE */
.image-wrap img {
    width: 600px;
    transition: transform 0.5s ease;
}

/* =========================================
   PARALLAX ROBOT
========================================= */

.image-wrap img {
    transition:
        transform 0.5s ease,
        filter 0.5s ease;
}

.hero:hover .image-wrap img {
    transform:
        scale(1.04)
        translateY(-10px);
}

.name {
    z-index: 3;
}

.nav-left span:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* GENERAL SECTION */
.section {
    padding: 100px 80px;
}

/* TITLES */
.section h2 {
    margin-bottom: 20px;
    font-size: 28px;
}

/* PROJECT GRID */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

/* PROJECT CARD */
.project-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    padding-bottom: 10px;
    transition: 0.3s;
}

.project-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.project-card h3 {
    padding: 10px;
}

.project-card p {
    padding: 0 10px;
    color: #555;
}

.project-card:hover {
    transform: translateY(-5px);
}

/* SKILLS */
.skills-list span {
    display: inline-block;
    margin: 10px;
    padding: 8px 15px;
    background: rgba(0,0,0,0.05);
    border-radius: 20px;
}

html {
    scroll-behavior: smooth;
}

.nav {
    position: absolute;
    top: 25px;
    width: 100%;
    padding: 0 60px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    z-index: 999;   /* 🔥 THIS FIXES CLICKING */
}

.hero {
    position: relative;
    z-index: 1;
}

body {
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.page {
    min-height: 100vh;
    padding: 60px;
    font-family: 'Montserrat', sans-serif;
}

/* reusable container */
.container {
    max-width: 1000px;
    margin: auto;
}

.about-page {
    background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
}

.about-page h1 {
    margin-bottom: 20px;
}

.about-page p {
    line-height: 1.7;
}

.projects-page {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
}

.projects-page h1 {
    margin-bottom: 30px;
}

.projects-page .project-card {
    background: #334155;
}

.skills-page {
    background: linear-gradient(135deg, #ecfeff, #cffafe);
}

.skills-list span {
    background: white;
    border: 1px solid #ddd;
}

.contact-page {
    background: linear-gradient(135deg, #fff1f2, #ffe4e6);
}

@media (max-width: 768px) {

    /* NAV */
    .nav {
        padding: 0 20px;
        font-size: 12px;
    }

    /* BIG NAME */
    .name {
        font-size: 60px;
        letter-spacing: -2px;
    }

    .name.left {
        left: 20px;
        top: 30%;
    }

    .name.right {
        right: 20px;
        bottom: 20%;
    }

    /* IMAGE */
    .image-wrap img {
        width: 250px;
    }

    /* SIDE TEXT */
    .side {
        right: 20px;
        top: 60%;
        font-size: 12px;
    }

}

/* =========================================
   CINEMATIC INTRO ANIMATION
========================================= */

/* HIDE FIRST */
.nav,
.name,
.side {
    opacity: 0;
}

/* ROBOT INITIAL */
.image-wrap img {
    opacity: 0;
    transform: scale(0.7) translateY(40px);
    filter: blur(10px);
}

/* ROBOT APPEARS FIRST */
.image-wrap img {
    animation: robotReveal 1.5s ease forwards;
}

@keyframes robotReveal {
    0% {
        opacity: 0;
        transform: scale(0.7) translateY(40px);
        filter: blur(10px);
    }

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

/* LEFT NAME FLOATS IN */
.name.left {
    animation: floatLeft 1.5s ease forwards;
    animation-delay: 1.1s;
}

@keyframes floatLeft {

    0% {
        opacity: 0;
        transform: translate(-120px, -50%) rotate(-8deg);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(-50%);
        filter: blur(0);
    }
}

/* RIGHT NAME FLOATS IN */
.name.right {
    animation: floatRight 1.5s ease forwards;
    animation-delay: 1.4s;
}

@keyframes floatRight {

    0% {
        opacity: 0;
        transform: translate(120px, 80px) rotate(8deg);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: translate(0,0);
        filter: blur(0);
    }
}

/* SIDE TEXT REVEAL */
.side {
    animation: sideReveal 1.2s ease forwards;
    animation-delay: 2s;
}

@keyframes sideReveal {

    from {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(5px);
    }

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

/* NAV APPEARS LAST */
.nav {
    animation: navReveal 1s ease forwards;
    animation-delay: 2.5s;
}

@keyframes navReveal {

    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

/* =========================================
   FLOATING PARTICLES
========================================= */

.hero::before,
.hero::after {
    animation: floatParticle 8s ease-in-out infinite alternate;
}

@keyframes floatParticle {

    from {
        transform: translate(-50%, -50%) translateY(0px);
    }

    to {
        transform: translate(-50%, -50%) translateY(30px);
    }
}

/* =========================================
   MOUSE FOLLOW GLOW
========================================= */

.cursor-glow {
    position: fixed;

    width: 300px;
    height: 300px;

    border-radius: 50%;

    background: radial-gradient(
        circle,
        rgba(0, 140, 255, 0.15),
        transparent 70%
    );

    pointer-events: none;

    transform: translate(-50%, -50%);

    z-index: 0;

    transition:
        transform 0.08s linear,
        opacity 0.3s ease;
}

/* =========================================
   MODERN PAGE DESIGN
========================================= */

body {
    overflow-x: hidden;
}

/* SECTION */
.modern-section {
    min-height: 100vh;
    padding: 120px 8%;
    position: relative;
    z-index: 2;
}

/* PAGE GLOW */
.page-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle,
    rgba(0,140,255,0.15),
    transparent 70%);
    top: -100px;
    right: -100px;
    z-index: 0;
}

/* TOP BAR */
.top-bar {
    margin-bottom: 60px;
}

.top-bar a {
    text-decoration: none;
    color: white;
    background: #111827;
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: 700;
}

/* PAGE TITLE */
.page-title {
    margin-bottom: 70px;
}

.page-title h1 {
    font-size: 60px;
    margin-bottom: 15px;
}

.page-title p {
    font-size: 18px;
    opacity: 0.8;
}

/* ABOUT */
.about-page {
    background:
    linear-gradient(135deg,#dbeafe,#eff6ff);
}

.about-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.about-card {
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
}

.about-card.large {
    min-height: 300px;
}

/* =========================================
   CLEAN PROJECT PAGE
========================================= */

.projects-page{

    background:
    linear-gradient(135deg,#020617,#0f172a);

    color:white;

    min-height:100vh;

    overflow-x:hidden;
}

/* GRID */
.projects-modern-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(320px,1fr));

    gap:30px;

    align-items:start;
}

/* CARD */
.modern-project{

    background:
    rgba(255,255,255,0.05);

    border:
    8px solid rgba(255,255,255,0.08);

    backdrop-filter:blur(12px);

    border-radius:24px;

    overflow:hidden;

    transition:0.4s ease;

    position:relative;
}

/* HOVER */
.modern-project:hover{

    transform:
    translateY(-10px);

    box-shadow:
    0 20px 40px rgba(0,0,0,0.35);
}

/* IMAGE */
.modern-project img{

    width:100%;

    height:230px;

    object-fit:cover;

    display:block;

    transition:0.5s ease;
}

/* IMAGE HOVER */
.modern-project:hover img{

    transform:scale(1.04);
}

/* CONTENT */
.project-content{

    padding:24px;
}

/* TITLE */
.project-content h3{

    font-size:24px;

    margin-bottom:14px;

    color:white;
}

/* DESCRIPTION */
.project-content p{

    font-size:15px;

    line-height:1.7;

    color:
    rgba(255,255,255,0.75);

    margin-bottom:24px;
}

/* BUTTON AREA */
.project-buttons{

    display:flex;

    gap:12px;
}

/* BUTTON */
.project-buttons a{

    text-decoration:none;

    padding:12px 18px;

    border-radius:30px;

    font-size:13px;

    font-weight:700;

    background:
    rgba(255,255,255,0.08);

    border:
    1px solid rgba(255,255,255,0.08);

    color:white;

    transition:0.3s ease;
}

/* BUTTON HOVER */
.project-buttons a:hover{

    background:white;

    color:black;
}

/* =========================================
   MOBILE FIX
========================================= */

@media(max-width:768px){

    .projects-modern-grid{

        grid-template-columns:1fr;

        gap:22px;
    }

    .modern-project img{

        height:220px;
    }

    .project-content{

        padding:20px;
    }

    .project-content h3{

        font-size:21px;
    }
}

.projects-page {
    padding-bottom: 100px;
}
/* SKILLS */
.skills-page {
    background:
    linear-gradient(135deg,#cffafe,#ecfeff);
}

.skills-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.skill-card {
    padding: 20px 28px;
    background: white;
    border-radius: 16px;
    font-weight: 700;
    transition: 0.3s;
}

.skill-card:hover {
    transform: scale(1.05);
}

/* CONTACT */
.contact-page {
    background:
    linear-gradient(135deg,#fae8ff,#fdf4ff);
}

.contact-modern {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-card {
    flex: 1;
    min-width: 280px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
}

@media (max-width: 768px) {

    body {
        overflow-x: hidden;
    }

    /* HERO SECTION */
    .hero {

        min-height: 100vh;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        padding: 120px 20px 40px;

        text-align: center;

        position: relative;
    }

    /* NAVBAR */
    .nav {

        position: fixed;

        top: 0;
        left: 0;

        width: 100%;

        padding: 20px;

        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 45px;

        background: rgba(0, 0, 1, 0.3);

        backdrop-filter: blur(10px);

        z-index: 999;
    }

    .nav a {

        font-size: 12px;

        padding: 8px 14px;

        margin: 0;
    }

    /* NAMES */
    .name {

        position: relative !important;

        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;

        transform: none !important;

        font-size: 52px !important;

        line-height: 0.9;

        letter-spacing: -2px;

        text-align: center;

        width: 100%;

        z-index: 3;
    }

    .name.left {
        margin-bottom: 10px;
    }

    .name.right {
        margin-top: 10px;
    }

    /* ROBOT */
    .image-wrap {

        position: relative !important;

        left: auto !important;
        top: auto !important;

        transform: none !important;

        margin: 10px 0;

        width: 100%;

        display: flex;
        justify-content: center;
    }

    .image-wrap img {

        width: 90vw;

        max-width: 420px;

        height: auto;

        object-fit: contain;
    }

    /* SIDE TEXT */
    .side {

        position: relative !important;

        right: auto !important;
        top: auto !important;

        margin-top: 20px;

        font-size: 13px;

        text-align: center;

        padding: 0 20px;
    }

    /* PAGE TITLES */
    .page-title h1 {
        font-size: 38px;
    }

    .page-title p {
        font-size: 14px;
    }

    /* PROJECTS */
    .projects-modern-grid {

        grid-template-columns: 1fr;

        gap: 25px;
    }

    .modern-project img {
        height: 220px;
    }

    /* ABOUT */
    .about-layout {
        grid-template-columns: 1fr;
    }

    /* CONTACT */
    .contact-modern {
        flex-direction: column;
    }

    /* SECTION PADDING */
    .modern-section {
        padding: 100px 20px;
    }
}

