@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

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

:root {
    --font-body: "inter", sans-serif;
    --font-heading: "Playfair Display, serif";
    --primary: #2C3E50;
    --secondary: #5D6D7E;
    --accent: #E67E73;
    --light: #ECF0F1;
    --cream: #F8F9FA;
    --shadow: rgba(44, 62, 80, 0.15);
    --deep-shadow: rgba(44, 62, 80, 0.25);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(135deg, #F8F9FA 0%, #ECF0F1 100%);
    color: var(--primary);
    overflow-x: hidden;
    position: relative;
}

section {
    isolation: isolate;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

h1 {
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.1;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.15;
}

h3 {
    font-size: 1.2rem;
    font-weight: 500;
    padding-bottom: 1rem;
}

p {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
}

.sec-space {
    padding: 4rem 0;
    overflow: hidden;
    position: relative;
}

.extra-space {
    padding-top: 8rem;
}

.obj-width {
    max-width: 1400px;
    margin: auto;
}

/* Navigation  */
header {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: var(--cream);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px var(--shadow);
    border-bottom: 3px solid var(--accent);
}

#navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
}

#logo {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

#logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
}

#logo h2 {
    color: var(--primary);
    text-shadow: 2px 2px 0 var(--accent);
}

#nav ul {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    list-style: none;
}

#nav li a {
    color: var(--primary);
    text-decoration: none;
    margin-left: 40px;
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

#nav li a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

#nav li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

#nav li a:hover::after {
    width: 100%;
}

#menu {
    color: var(--primary);
    display: none;
}

/* Hero Section  */
.hero {
    display: flex;
    flex-direction: column;
    height: 100vh;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--cream) 0%, var(--light) 100%);
    margin-bottom: 0;
}

.mountain-layer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 70%;
    clip-path: polygon(
        0% 100%,
        0% 60%,
        10% 55%,
        20% 50%,
        30% 45%,
        40% 50%,
        50% 40%, 
        60% 50%,
        70% 45%,
        80% 55%,
        90% 50%,
        100% 60%,
        100% 100%
    );
}

.mountain-back {
    background: linear-gradient(135deg, #3E7C78 0%, #4A8C88 100%);
    height: 55%;
    z-index: 1;
    opacity: 0.6;
}

.mountain-middle {
    background: linear-gradient(135deg, #9B8267 0%, #B39A7D 100%);
    height: 45%;
    z-index: 2;
    opacity: 0.7;
}

.mountain-front {
    background: linear-gradient(135deg, #EDA076 0%, #F7C4A3 100%);
    height: 35%;
    z-index: 3;
    box-shadow: 0 -20px 60px rgba(237, 160, 118, 0.3);
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

.float-element {
    position: absolute;
    animation: float-drift 8s ease-in-out infinite;
}

@keyframes float-drift {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(20px, -20px);
    }
}

.circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0% #F5B896 100%);
    opacity: 0.3;
    top: 30%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.small-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary) 0%, #7D8FA0 100%);
    opacity: 0.4;
    top: 60%;
    right: 15%;
    animation: float 8s ease-in-out infinite 1s;
}

.square {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2D5F5D 0%, #3A706E 100%);
    opacity: 0.3;
    top: 30%;
    right: 20%;
    animation: float 7s ease-in-out infinite 0.5s;
}

.small-square {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, #8B7355 0%, #A89179 100%);
    opacity: 0.4;
    bottom: 40%;
    left: 20%;
    animation: float 9s ease-in-out infinite 1.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}


.box {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--secondary);
    color: var(--light);
    width: 210px;
    border-radius: 20px;
    padding: 7px;
    box-shadow: 0 10px 80px var(--deep-shadow);
    margin: 40px;
    z-index: 10;
    position: relative;
    animation: fadeInDown 0.8s ease 0.3s backwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.box p {
    padding-right: 5px;
}

.box i {
    color: var(--accent);
    padding-right: 5px;
}

.hero h1 {
    font-size: 6rem;
    text-shadow: 3px 3px 0 var(--accent);
    z-index: 10;
    position: relative;
    animation: fadeInScale 0.8s ease 0.6s backwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#slogan {
    padding: 20px;
    font-weight: 600;
    z-index: 10;
    position: relative;
    animation: fadeInUp 0.8s ease 0.9s backwards;
}

#btns {
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-top: 20px;
    z-index: 10;
    position: relative;
    animation: fadeInUp 0.8s ease 1.2s backwards;
}

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

.btn {
    background: var(--accent);
    color: var(--light);
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
    width: 150px;
    padding: 15px 0 15px 35px;
    border: none;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(232, 149, 107, 0.4),
                inset 0 -3px 0 rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-w {
    background: var(--cream);
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
    width: 150px;
    padding: 15px 5px 15px 15px;
    border: 3px solid var(--primary);
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(45, 95, 93, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(232, 149, 107, 0.5),
                inset 0 -3px 0 rgba(0, 0, 0, 0.2);
}

.btn-w:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(45, 95, 93, 0.3);
    background: var(--primary);
    color: var(--light);
}

/* About */
.about {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--cream);
    position: relative;
    padding-top: 100px;
    margin-top: 0;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--cream);
    clip-path: polygon(0 50% 0, 100% 100%, 0 100%);
    z-index: 1;
    will-change: transform;
}

.title {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    width: 100px;
    height: 5px;
    border-radius: 15px;
    background: var(--accent);
    transform: translateX(-50%);
    box-shadow: 0 3px 10px rgba(232, 149, 107, 0.4);
}

.about-container {
    background: white;
    padding: 4rem;
    margin: 50px 100px 100px 100px;
    border-radius: 30px;
    position: relative;
    border: 8px solid var(--light);
    box-shadow: 0 30px 80px rgba(44, 62, 80, 0.2),
                0 50px 120px rgba(44, 62, 80, 0.15),
                0 10px 40px rgba(44, 62, 80, 0.25),
                inset 0 -10px 30px rgba(232, 149, 107, 0.1);
    transform-style: preserve-3d;
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 100px rgba(44, 62, 80, 0.25),
                0 60px 140px rgba(44, 62, 80, 0.2),
                0 20px 60px rgba(44, 62, 80, 0.3),
                inset 0 -10px 30px rgba(232, 149, 107, 0.1);
}

.about-container::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    background: var(--secondary);
    border-radius: 30px;
    z-index: -1;
    opacity: 0.3;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.about-pic {
    position: relative;
}

.image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.image-wrapper img {
    border: 10px solid white;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    box-shadow: 0 20px 40px var(--shadow),
                inset - -10px 30px rgba(0, 0, 0, 0.2);
}

.image-wrapper::after {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border-radius: 50%;
    border: 3px dashed var(--accent);
    z-index: -1;
}

#about-details h3 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 20px;
}

#about-details p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--secondary);
    margin-bottom: 15px;
}

/* Education  */
.education {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.education-container {
    padding: 3rem;
    margin: 50px 30px 50px 30px;
    background: var(--primary);
    color: var(--cream);
    border-radius: 30px;
    /* box-shadow: 20px 10px 20px var(--shadow); */
    box-shadow: 
                0 20px 60px rgba(44, 62, 80, 0.3),
                0 30px 80px rgba(44, 62, 80, 0.15);
    transition: all 0.3 ease-in-out;
}

.education-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    /* animation: rotate-slow 20s linear infinite; */
    pointer-events: none;
}

/* @keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
} */

.education-container:hover {
    /* box-shadow: 20px 10px 20px var(--deep-shadow); */
    box-shadow: 
                0 20px 60px rgba(44, 62, 80, 0.5),
                0 30px 80px rgba(44, 62, 80, 0.20);
    transform: translateY(-4px);
}

#cap {
    font-size: 4rem;
    margin-bottom: 20px;
}

#degree {
    margin-bottom: 10px;
}

#degree h2 {
    margin-bottom: 8px;

}

#degree p {
    opacity: 0.8;
}

.coursework h3 {
    font-weight: 600;
    margin-top: 20px;
}

#courses {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.course {
    padding: 10px 18px;
    background: var(--secondary);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid var(--light);
    transition: all 0.3s ease;
}

.course:hover {
    opacity: 10px;
    transform: translateY(-2px);
}

/* Skill  */
.skill {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.skills-container {
    margin: 4rem;
    display: flex;
    justify-content: space-between;
}

.expertise {
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    background: var(--cream);
    padding: 40px;
    margin-right: 20px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 15px 40px var(--shadow),
                inset 0 -5px 15px rgba(232, 149, 107, 0.1);
    transition: all 0.4s ease;
    border: 5px solid var(--light);
}

.expertise::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: 10px;
    bottom: 10px;
    background: var(--accent);
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: all 0.4s ease;
}

.expertise:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px var(--deep-shadow),
                inset 0 -5px 15px rgba(232, 149, 107, 0.2);
}

.expertise:hover::before {
    opacity: 0.3;
    top: -15px;
    left: -15px;
}

.skill-icon {
    font-size: 40px;
}

.expertise h2 {
    font-size: 35px;
    margin: 10px 0 20px 0;
}

.skill-list {
    list-style: none;
    line-height: 30px;
    color: var(--secondary);
    position: relative;
}

.skill-list li {
    margin-left: 20px;
}

.skill-list li::before {
    content: '\2B25';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.add-skill {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--cream);
    padding: 3rem;
    border-radius: 20px;
    border: 5px solid var(--light);
    box-shadow: 0 15px 40px var(--shadow),
                inset 0 -5px 15px rgba(232, 149, 107, 0.1);
    transition: all 0.4s ease;
    position: relative;
}

.add-skill::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: 10px;
    bottom: 10px;
    background: var(--light);
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: all 0.4s ease;
}

.add-skill:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px var(--deep-shadow),
                inset 0 -5px 15px rgba(232, 149, 107, 0.2);
}

.add-skill:hover::before {
    opacity: 0.3;
    top: -15px;
    left: -15px;
}

.add-skill h3 {
    font-weight: 600;
    align-items: center;
    margin-bottom: 15px;
}

#core-skill {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.core {
    background: var(--accent);
    color: var(--light);
    backdrop-filter: blur(20px);
    padding: 8px 18px;
    border: 2px solid var(--accent);
    border-radius: 20px;
    box-shadow: 2px 2px 2px var(--shadow);
}

.core:hover {
    transform: translateY(-2px);
}

/* Project  */
.project {
    display: flex;
    justify-content: center;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.project::before {
    content: '';
    position: absolute;
    top: 25%;
    left: 0;
    width: 384px;
    height: 384px;
    background: rgba(237, 160, 118, 0.15);
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    pointer-events: none;
}

.project::after {
    content: '';
    position: absolute;
    bottom: 25%;
    right: 0;
    width: 320px;
    height: 320px;
    background: rgba(159, 239, 195, 0.15);
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    pointer-events: none;
}

.project-container {
    display: flex;
    justify-content: space-between;
    margin: 5rem 6rem;
    position: relative;
    padding-bottom: 3rem;
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.project-item {
    display: flex;
    justify-content: space-between;
    width: 540px;
    background: var(--cream);
    padding: 1.5rem;
    border-radius: 25px;
    box-shadow: -3px 3px 12px var(--shadow);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.project-item:hover {
    transform: translateX(8px);
    border-color: var(--accent);
}

.project-item.active {
    background: var(--primary);
    box-shadow: 0 20px 40px rgba(44, 62, 80, 0.3);
    border-color: var(--primary);
}

.project-item.active::before {
    opacity: 1;
}

.pro-item {
    display: flex;
}

.project-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: var(--cream);
    font-size: 25px;
    border-radius: 10px;
    margin-right: 25px;
    transition: all 0.3s ease;
}

.project-item.active .project-logo {
    background: var(--accent);
}

.pro-name {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 10px;
    margin-right: 25px;
    line-height: 3px;
}

.pro-name h3 {
    transition: color 0.3s ease;
}

.project-item.active .pro-name h3 {
    color: white;
}

.pro-name p {
    color: var(--secondary);
}

.project-item.active .pro-name p {
    color: var(--accent);
}

.pro-arrow {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 30px;
    transform: translateX(-8px);
}

.project-item.active .pro-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--accent);
}

.project-detail-wrapper {
    position: sticky;
    top: 120px;
    max-width: 600px;
    width: 100%;
    margin-left: 2rem;
    align-self: flex-start;
    height: fit-content;
}

.project-detail-container {
    position: relative;
}

.diorama-layer-1, 
.diorama-layer-2 {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    transition: all 0.4s ease;
}

.diorama-layer-1 {
    background: var(--accent);
    transform: translate(16px, 16px);
}

.diorama-layer-2 {
    background: var(--primary);
    transform: translate(8px, 8px);
}

.project-detail {
    background: var(--cream);
    padding: 32px;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(44, 62, 80, 0.25);
    position: relative;
    transform-style: preserve-3d;
    animation: fadeIn 0.4s ease;
}

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

.pro-image img {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 540px;
    height: 300px;
    border-radius: 25px;
    box-shadow: 2px 2px 4px var(--shadow);
    margin-bottom: 25px;
}

.pro-tag {
    display: inline-block;
    align-items: center;
    background: var(--accent);
    color: var(--cream);
    font-size: 13px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 25px;
    margin-bottom: 20px;
    transition: background 0.4s ease;
}

.detail {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.detail h3 {
    font-size: 30px;
    font-weight: 800px;
}

.detail p {
    margin-bottom: 20px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.tech {
    background: var(--light);
    color: var(--primary);
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 400;
    border: 2px solid white;
    transition: all 0.3s ease;
}

.tech:hover {
    background: var(--primary);
    color: var(--cream);
    transform: translateY(-2px);
}

.pro-actions {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    padding-top: 25px;
    position: relative;
}

.pro-actions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--accent), var(--secondary));
    border-radius: 2px;
}

.pro-actions a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.2);
}

.pro-actions a:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(232, 149, 107, 0.4);
}

.pro-actions a i {
    font-size: 18px;
}

.pro-actions a:first-child {
    background: var(--accent);
}

.pro-actions a:first-child:hover {
    background: var(--primary);
}

.pro-actions a:last-child {
    background: var(--secondary);
}

.pro-actions a:last-child:hover {
    background: var(--primary);
}

/* Contact  */
.contact {
    overflow: hidden;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    margin: 5rem;
    position: relative;
}

.contact-info {
    display: flex;
    flex-direction: column;
    margin-right: 3rem;
    gap: 20px;
    justify-content: flex-start;
}

.talk {
    display: flex;
    width: 560px;
    background: var(--primary);
    padding: 2rem;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(44, 62, 80, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.talk::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.talk:hover::before {
    left: 100%;
}

.talk:hover {
    box-shadow: 0 20px 50px rgba(44, 62, 80, 0.35),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.talk:last-child {
    flex-direction: column;
}

.contact-logo {
    display: flex;
}

.contact-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: var(--cream);
    font-size: 25px;
    border-radius: 10px;
    margin-right: 25px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.contact-icon a {
    text-decoration: none;
    color: var(--cream);
}

.talk:last-child .contact-icon:hover {
    transform: translateY(-5px) scale(1.1);
}

.contact-detail {
    display: flex;
    flex-direction: column;
    padding-top: 10px;
    margin-right: 25px;
    line-height: 3px;
}

.contact-info h3 {
    color: var(--light);
    font-weight: 550;
}

.contact-detail p {
    color: rgba(236, 240, 241, 0.85);
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    width: 600px;
    background: var(--cream);
    box-shadow: 0 20px 60px rgba(44, 62, 80, 0.2),
                0 10px 30px rgba(44, 62, 80, 0.15);
    padding: 2rem;
    border-radius: 20px;
    border: 8px solid var(--light);
    position: relative;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: 12px;
    bottom: 12px;
    background: var(--secondary);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.3;
    transition: all 0.4s ease;
}

.contact-form label {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    margin: 0 0 1.5rem 0;
    border: 2px solid var(--light);
    border-radius: 15px;
    outline: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-family: var(--font-body);
    background: lightgray;
    color: var(--primary);
} 

.contact-form input:focus, 
.contact-form textarea:focus {
    border-color: var(--accent);
    background: white;
    box-shadow: 0 0 0 4px rgba(230, 126, 115, 0.1),
                0 4px 12px rgba(230, 126, 115, 0.15);
    transform: translateY(-2px);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form input[type="submit"] {
    background: var(--accent);
    color: var(--light);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(230, 126, 115, 0.4),
                inset 0 -3px 0 rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.contact-form input[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(230, 126, 115, 0.5),
                inset 0 -3px 0 rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, var(--accent) 0%, #f09080 100%);
}

.contact-form input[type="submit"]:active {
    transform: translateY(-1px);
}

/* Footer  */
.footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    background: var(--primary);
    padding: 4rem;
    overflow: hidden;
}  

.link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-right: 10rem;
}

.link h2 {
    color: var(--cream);
    margin-bottom: 20px;
}

.link h3 {
    color: var(--cream);
    font-weight: 600;
}

.link p {
    color: var(--light);
}

.link a {
    font-size: 16px;
    font-weight: 300;
    font-family: var(--font-body);
    text-decoration: none;
    color: var(--cream);
    margin-bottom: 10px;
    position: relative;
}

.link a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--accent);
    transition: width 0.3s ease;
}

.link a:hover::after {
    width: 100%;
}

.link a:hover {
    font-weight: 400;
}

.copyright {
    width: 100%;
    text-align: center;
    color: var(--cream);
    margin-top: 40px;
    position: relative;
}

.copyright::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    height: 2px;
    width: 100%;
    background: var(--light);
}

/* Responsiveness  */
@media (max-width: 699px) {
    /* Navigation bar  */
    #nav {
        background-color: var(--light);
        display: block;
        width: 280px;
        height: auto;
        position: absolute;
        top: 80px;
        right: -100%;
        padding: 30px 0;
        box-shadow: 0 4px 20px var(--shadow);
        border-radius: 13px;
        opacity: 0;
        transition: all 0.3s ease;
    }

    #nav.active {
        right: 10px;
        opacity: 1;
    }

    #nav ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 20px;
    }

    #nav li {
        padding: 1rem;
        width: 100%;
    }

    #nav li a {
        color: var(--primary);
        margin-left: 0;
        display: inline-block;
        width: auto;
    }

    #nav li a::after {
        bottom: -5px;
    }

    #menu {
        display: block;
        font-size: 1.7rem;
        cursor: pointer;
    }   
    
    /* About  */
    .about-container {
        padding: 3rem;
        margin: 60px 23px 20px 23px;
    }
    
    .about-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
    }

    .image-wrapper img {
        border: 8px solid white;
    }

    .image-wrapper::after {
        top: -13px;
        left: -13px;
        right: 13px;
        bottom: 13px;
    }

    #about-details h3 {
        font-size: 25px;
        text-align: center;
    }

    /* Education  */
    .education-container {
        padding: 1.8rem;
    }

    #degree h2 {
        font-size: 26px;
        margin-bottom: 10px;
    }

    .coursework h3 {
        font-size: 20px;
    }

    /* Skills  */
    .skills-container {
        margin: 3.5rem 2rem;
        flex-direction: column;
    }

    .expertise {
        padding: 30px;
        margin-bottom: 30px;
    }

    .add-skill {
        margin: 0 3rem 2rem 2rem;
        padding: 30px;
    }

    /* Project  */
    .project {
        padding: 2rem 0;
    }

    .project .title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .project-container {
        flex-direction: column;
        margin: 2rem 1rem;
        gap: 2rem;
    }

    .project-list {
        width: 100%;
        gap: 12px;
        display: flex;
        flex-direction: column;
    }

    .project-item {
        width: 100%;
        padding: 1rem;
        order: 0;
    }

    .project-item::before {
        display: none;
    }

    .pro-item {
        flex-direction: row;
        width: 100%;
    }

    .project-logo {
        width: 45px;
        height: 45px;
        font-size: 22px;
        margin-right: 15px;
        flex-shrink: 0;
    }

    .pro-name {
        margin-right: 0;
        padding-top: 0;
        line-height: 1.3;
    }

    .pro-name h3 {
        font-size: 1rem;
        padding-bottom: 0.3rem;
    }

    .pro-name p {
        font-size: 0.85rem;
    }

    .pro-arrow {
        display: none;
    }

    .project-detail-wrapper {
        position: static;
        margin-left: 0;
        max-width: 100%;
        width: 100%;
        order: 0; /* Reset order */
        margin-top: 1rem;
        margin-bottom: 1rem;
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .diorama-layer-1 {
        transform: translate(8px, 8px);
    }

    .diorama-layer-2 {
        transform: translate(4px, 4px);
    }

    .project-detail {
        padding: 1.5rem;
    }

    .pro-image img {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        object-fit: cover;
    }

    .pro-tag {
        font-size: 12px;
        padding: 4px 8px;
        margin-bottom: 15px;
    }

    .detail h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .detail p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 15px;
    }

    .tech-stack {
        gap: 8px;
    }

    .tech {
        padding: 8px 12px;
        font-size: 12px;
    }

    .pro-actions {
        flex-direction: column;
        gap: 12px;
        margin-top: 20px;
        padding-top: 20px;
    }

    .pro-actions a {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 14px;
    }

    /* contact  */
    .contact-container {
        margin: 4rem 1.2rem;
        flex-direction: column;
    }

    .contact-info {
        margin-bottom: 3rem;
    }

    .talk {
        flex-direction: column;
        width: 370px;
    }

    .contact-icon {
        margin-bottom: 25px;
    }

    .contact-form {
        width: 100%;
    }

    /* Footer  */
    .footer {
        align-items: center;
        padding: 3rem;
    } 

    .link {
        margin-bottom: 4rem;
    }

    .link p {
        width: 100%;
    }

}

@media (min-width: 700px) and (max-width:1024px) {
    /* About  */
    .about-container {
        padding: 3rem;
        margin: 60px 23px 20px 23px;
    }
    
    .about-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
    }

    .image-wrapper img {
        border: 8px solid white;
    }

    .image-wrapper::after {
        top: -13px;
        left: -13px;
        right: 13px;
        bottom: 13px;
    }

    #about-details h3 {
        font-size: 25px;
        text-align: center;
    }

    /* Skills  */
    .skills-container {
        margin: 3rem 2rem;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .expertise {
        padding: 30px;
        margin-right: 0;
        margin-bottom: 0;
    }

    .add-skill {
        margin: 2rem;
        padding: 30px;
    }

    /* Project  */
    .project {
        padding: 3rem 0;
    }

    .project-container {
        flex-direction: column;
        margin: 3rem 2rem;
        gap: 3rem;
    }

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

    .project-item {
        width: 100%;
        order: 0;
    }

    .project-logo {
        width: 48px;
        height: 48px;
        font-size: 24px;
        margin-right: 20px;
    }

    .pro-name h3 {
        font-size: 1.1rem;
    }

    .pro-name p {
        font-size: 0.9rem;
    }

    #pro-arrow {
        font-size: 28px;
    }

    .project-detail-wrapper {
        position: static;
        margin-left: 0;
        max-width: 100%;
        width: 100%;
        order: 0;
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
        animation: slideDown 0.3s ease;
    }

    .diorama-layer-1 {
        transform: translate(12px, 12px);
    }

    .diorama-layer-2 {
        transform: translate(6px, 6px);
    }

    .project-detail {
        padding: 2rem;
    }

    .pro-image img {
        width: 100%;
        height: auto;
        max-height: 350px;
        object-fit: cover;
    }

    .detail h3 {
        font-size: 1.5rem;
    }

    .detail p {
        font-size: 1rem;
    }

    .tech-stack {
        gap: 12px;
    }

    .tech {
        padding: 9px 14px;
        font-size: 13px;
    }

    .pro-actions {
        gap: 15px;
        flex-wrap: wrap;
    }

    .pro-actions a {
        flex: 1;
        min-width: 150px;
        justify-content: center;
    }

    /* contact  */
    .contact-container {
        flex-direction: column;
        align-items: center;
    }

    .contact-info {
        margin-bottom: 3rem;
    }

    .talk {
        flex-direction: column;
        width: 100%;
    }

    .contact-icon {
        margin-bottom: 25px;
    }

    .contact-form {
        width: 100%;
    }

    /* Footer  */
    .link {
        margin-right: 2rem;
    }
}
