/* =========================================================
CHINTOO KUMAR PORTFOLIO
MAIN STYLESHEET
========================================================= */

/* =========================================================
GLOBAL
========================================================= */

{
margin: 0;
padding: 0;
box-sizing: border-box;
}

html {
scroll-behavior: smooth;
scroll-padding-top: 120px;
}

body {
font-family: Arial, Helvetica, sans-serif;
background: #0b0b0b;
color: #ffffff;
line-height: 1.6;
overflow-x: hidden;
}

a {
color: inherit;
text-decoration: none;
}

button,
input,
textarea {
font-family: inherit;
}

button {
cursor: pointer;
}

img {
max-width: 100%;
}

::selection {
background: #ffffff;
color: #111111;
}

:focus-visible {
outline: 2px solid #ffffff;
outline-offset: 3px;
}

/* =========================================================
HEADER
========================================================= */

#main-header {
position: fixed;
top: 18px;
left: 50%;
transform: translateX(-50%);

width: 90%;
max-width: 1250px;

padding: 20px 30px;

display: flex;
align-items: center;
justify-content: space-between;

background: rgba(15, 15, 15, 0.86);

border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 14px;

backdrop-filter: blur(15px);
-webkit-backdrop-filter: blur(15px);

z-index: 1000;

transition:
    width 0.35s ease,
    max-width 0.35s ease,
    top 0.35s ease,
    padding 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease;

}

#main-header.scrolled {
width: 94%;
max-width: 1300px;

top: 8px;
padding: 14px 25px;

background: rgba(10, 10, 10, 0.96);

box-shadow:
    0 10px 35px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04);

}

/* =========================================================
LOGO
========================================================= */

.logo {
flex-shrink: 0;

font-size: 28px;
font-weight: 800;

letter-spacing: -1px;

color: #ffffff;

transition: transform 0.3s ease;

}

.logo span {
font-size: inherit;
}

.logo:hover {
transform: scale(1.03);
}

/* =========================================================
NAVIGATION
========================================================= */

nav {
display: flex;
align-items: center;

gap: 26px;

}

nav > a {
position: relative;

font-size: 14px;
font-weight: 600;

color: #cfcfcf;

white-space: nowrap;

transition: color 0.3s ease;

}

nav > a::after {
content: "";

position: absolute;
left: 0;
bottom: -7px;

width: 0;
height: 2px;

background: #ffffff;

transition: width 0.3s ease;

}

nav > a:hover {
color: #ffffff;
}

nav > a:hover::after {
width: 100%;
}

/* =========================================================
DIVIDER
========================================================= */

.divider {
width: 1px;
height: 25px;

flex-shrink: 0;

background: #333333;

margin: 0 2px;

}

/* =========================================================
SOCIAL ICONS
========================================================= */

.social {
display: flex;
align-items: center;

gap: 10px;

}

.social a {
width: 35px;
height: 35px;

display: flex;
align-items: center;
justify-content: center;

color: #cccccc;

border: 1px solid #333333;
border-radius: 50%;

transition:
    color 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;

}

.social a:hover {
color: #111111;

background: #ffffff;

border-color: #ffffff;

transform: translateY(-3px);

}

.social i {
font-size: 15px;
}

/* =========================================================
HERO
========================================================= */

.hero {
min-height: 100vh;

max-width: 1300px;

margin: 0 auto;

padding: 150px 50px 90px;

display: flex;
align-items: center;
justify-content: space-between;

gap: 80px;

}

.hero-text {
flex: 1;

max-width: 650px;

opacity: 0;

transform: translateY(35px);

transition:
    opacity 0.8s ease,
    transform 0.8s ease;

}

.hero-text.animate {
opacity: 1;

transform: translateY(0);

}

.hero-text h4 {
margin-bottom: 15px;

font-size: 15px;
font-weight: 600;

letter-spacing: 3px;

color: #999999;

}

.hero-text h1 {
margin-bottom: 25px;

font-size: clamp(55px, 7vw, 95px);

line-height: 0.98;

font-weight: 800;

letter-spacing: -4px;

color: #ffffff;

}

.hero-text p {
max-width: 560px;

margin-bottom: 32px;

font-size: 18px;

line-height: 1.8;

color: #a9a9a9;

}

/* =========================================================
HERO BUTTON
========================================================= */

.hero-text button,
.about-btn {
position: relative;

overflow: hidden;

display: inline-flex;
align-items: center;
justify-content: center;

padding: 13px 25px;

border: 1px solid #ffffff;
border-radius: 6px;

background: #ffffff;

color: #111111;

font-size: 13px;
font-weight: 700;

letter-spacing: 0.5px;

transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;

}

.hero-text button:hover,
.about-btn:hover {
background: transparent;

color: #ffffff;

transform: translateY(-3px);

}

/* =========================================================
HERO IMAGE
========================================================= */

.hero-image {
flex: 1;

display: flex;
align-items: center;
justify-content: center;

}

.hero img {
width: 100%;
max-width: 480px;

height: 540px;

object-fit: cover;

border-radius: 16px;

opacity: 0;

transform: translateX(50px);

transition:
    opacity 0.8s ease 0.2s,
    transform 0.8s ease 0.2s;

box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05);

}

.hero img.animate {
opacity: 1;

transform: translateX(0);

}

/* =========================================================
COMMON SECTIONS
========================================================= */

.projects,
.about,
.contact {
padding: 110px 50px;
}

.projects {
background: #080808;
}

.about {
background: #0d0d0d;
}

.contact {
background: #080808;
}

/* =========================================================
SECTION HEADING
========================================================= */

.section-heading {
max-width: 700px;

margin: 0 auto 65px;

text-align: center;

opacity: 0;

transform: translateY(30px);

transition:
    opacity 0.8s ease,
    transform 0.8s ease;

}

.section-heading.animate {
opacity: 1;

transform: translateY(0);

}

.section-heading h2,
.about-text h2 {
position: relative;

display: inline-block;

margin-bottom: 20px;

font-size: 42px;

line-height: 1.2;

font-weight: 800;

}

.section-heading h2::after,
.about-text h2::after {
content: "";

position: absolute;

left: 50%;
bottom: -10px;

width: 55px;
height: 3px;

transform: translateX(-50%);

background: #ffffff;

}

.section-heading p {
color: #929292;

font-size: 16px;

line-height: 1.7;

}

/* =========================================================
PROJECT GRID
========================================================= */

.projects-grid {
max-width: 1200px;

margin: 0 auto;

display: grid;

grid-template-columns: repeat(3, 1fr);

gap: 25px;

}

/* =========================================================
PROJECT CARD
========================================================= */

.project-card {
position: relative;

overflow: hidden;

display: flex;
flex-direction: column;

background: #141414;

border: 1px solid #242424;

border-radius: 12px;

opacity: 0;

transform: translateY(45px);

transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    opacity 0.8s ease;

}

.project-card.animate {
opacity: 1;

transform: translateY(0);

}

.project-card:hover {
transform: translateY(-8px);

border-color: #444444;

box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.45);

}

/* =========================================================
PROJECT IMAGE
========================================================= */

.project-img {
width: 100%;
height: 210px;

display: block;

object-fit: cover;

background: #1c1c1c;

transition: transform 0.5s ease;

}

.project-card:hover .project-img {
transform: scale(1.05);
}

/* =========================================================
PROJECT CONTENT
========================================================= */

.project-content {
flex: 1;

display: flex;
flex-direction: column;

padding: 24px;

}

.project-content h3 {
margin-bottom: 10px;

font-size: 21px;

line-height: 1.35;

font-weight: 700;

color: #ffffff;

}

.project-content p {
margin-bottom: 20px;

color: #999999;

font-size: 14px;

line-height: 1.7;

}

.project-content strong {
color: #d8d8d8;

font-weight: 600;

}

/* =========================================================
PROJECT STATUS
========================================================= */

.project-status {
display: flex;
align-items: center;

gap: 8px;

min-height: 22px;

margin-top: auto;
margin-bottom: 8px;

color: #999999;

font-size: 12px;
font-weight: 700;

letter-spacing: 0.5px;

}

.project-status::before {
content: "";

width: 8px;
height: 8px;

flex-shrink: 0;

border-radius: 50%;

background: #777777;

}

.project-status.status-completed {
color: #bcbcbc;
}

.project-status.status-completed::before {
background: #ffffff;

box-shadow: 0 0 8px rgba(255, 255, 255, 0.45);

}

.project-status.status-working {
color: #999999;
}

.project-status.status-working::before {
background: #777777;

box-shadow: 0 0 7px rgba(255, 255, 255, 0.15);

}

/* =========================================================
PROJECT BUTTON
========================================================= */

.project-btn {
align-self: flex-start;

display: inline-flex;
align-items: center;
justify-content: center;

margin-top: 5px;

padding: 8px 17px;

border: 1px solid #444444;

border-radius: 5px;

color: #ffffff;

font-size: 13px;
font-weight: 600;

transition:
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;

}

.project-btn:hover {
background: #ffffff;

color: #111111;

border-color: #ffffff;

transform: translateY(-2px);

}

/* =========================================================
FULL-STACK SKILLS
========================================================= */

#skills {
background: #0b0b0b;
}

#skills .projects-grid {
grid-template-columns: repeat(4, 1fr);

gap: 18px;

}

#skills .project-card {
min-height: 210px;

background:
    linear-gradient(
        145deg,
        #161616 0%,
        #101010 100%
    );

border: 1px solid #282828;

opacity: 0;

transform: translateY(35px);

}

#skills .project-card.animate {
opacity: 1;

transform: translateY(0);

}

#skills .project-card::before {
content: "";

position: absolute;

top: 0;
left: 0;

width: 100%;
height: 3px;

background: #ffffff;

transform: scaleX(0);

transform-origin: left;

transition: transform 0.35s ease;

}

#skills .project-card:hover::before {
transform: scaleX(1);
}

#skills .project-card:hover {
border-color: #444444;

transform: translateY(-7px);

}

#skills .project-content {
justify-content: center;

padding: 28px;

}

#skills .project-content h3 {
margin-bottom: 14px;

font-size: 18px;

line-height: 1.4;

}

#skills .project-content p {
margin: 0;

color: #888888;

font-size: 13px;

line-height: 1.7;

}

/* =========================================================
ABOUT
========================================================= */

.about-content {
max-width: 1200px;

margin: 0 auto;

display: flex;

align-items: center;

gap: 70px;

}

.about-image {
flex: 1;

opacity: 0;

transform: translateX(-50px);

transition:
    opacity 0.8s ease,
    transform 0.8s ease;

}

.about-image.animate {
opacity: 1;

transform: translateX(0);

}

.about-image img {
width: 100%;
max-width: 480px;

height: 520px;

object-fit: cover;

border-radius: 15px;

box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.45);

transition: transform 0.4s ease;

}

.about-image:hover img {
transform: translateY(-8px);
}

.about-text {
flex: 1;

opacity: 0;

transform: translateX(50px);

transition:
    opacity 0.8s ease 0.15s,
    transform 0.8s ease 0.15s;

}

.about-text.animate {
opacity: 1;

transform: translateX(0);

}

.about-text h2 {
margin-bottom: 25px;
}

.about-text h2::after {
left: 0;

transform: none;

}

.about-text p {
margin-bottom: 20px;

color: #999999;

font-size: 16px;

line-height: 1.8;

}

/* =========================================================
EDUCATION LINK
========================================================= */

.education-link {
color: #ffffff;

border-bottom: 1px solid #555555;

transition:
    color 0.3s ease,
    border-color 0.3s ease;

}

.education-link:hover {
color: #cccccc;

border-color: #ffffff;

}

/* =========================================================
CONTACT
========================================================= */

.contact-content {
max-width: 1200px;

margin: 0 auto;

display: flex;

gap: 70px;

}

.contact-info {
flex: 1;

opacity: 0;

transform: translateX(-50px);

transition:
    opacity 0.8s ease,
    transform 0.8s ease;

}

.contact-info.animate {
opacity: 1;

transform: translateX(0);

}

.contact-info h3 {
margin-bottom: 20px;

font-size: 42px;

line-height: 1.2;

}

.contact-info p {
max-width: 550px;

margin-bottom: 30px;

color: #999999;

font-size: 16px;

line-height: 1.8;

}

.contact-details {
margin-top: 25px;
}

.contact-item {
display: flex;

align-items: center;

margin-bottom: 18px;

color: #aaaaaa;

transition:
    color 0.3s ease,
    transform 0.3s ease;

}

.contact-item:hover {
color: #ffffff;

transform: translateX(7px);

}

.contact-item i {
width: 35px;

flex-shrink: 0;

margin-right: 12px;

font-size: 18px;

color: #ffffff;

}

.contact-item a {
font-size: 15px;

word-break: break-word;

transition: color 0.3s ease;

}

.contact-item a:hover {
color: #ffffff;
}

/* =========================================================
CONTACT FORM
========================================================= */

.contact-form {
flex: 1;

padding: 35px;

background: #141414;

border: 1px solid #242424;

border-radius: 12px;

opacity: 0;

transform: translateX(50px);

transition:
    opacity 0.8s ease 0.15s,
    transform 0.8s ease 0.15s;

}

.contact-form.animate {
opacity: 1;

transform: translateX(0);

}

.form-group {
margin-bottom: 18px;
}

.form-group label {
display: block;

margin-bottom: 7px;

color: #dddddd;

font-size: 13px;
font-weight: 600;

}

.form-group input,
.form-group textarea {
width: 100%;

padding: 13px 15px;

background: #0d0d0d;

border: 1px solid #333333;

border-radius: 6px;

color: #ffffff;

font-size: 14px;

outline: none;

transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;

}

.form-group input::placeholder,
.form-group textarea::placeholder {
color: #666666;
}

.form-group input:focus,
.form-group textarea:focus {
border-color: #ffffff;

box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.06);

}

.form-group textarea {
min-height: 140px;

resize: vertical;

}

.submit-btn {
width: 100%;

padding: 13px;

border: 1px solid #ffffff;

border-radius: 6px;

background: #ffffff;

color: #111111;

font-size: 13px;
font-weight: 700;

transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;

}

.submit-btn:hover {
background: transparent;

color: #ffffff;

transform: translateY(-2px);

}

/* =========================================================
FOOTER
========================================================= */

footer {
background: #0b0b0b;

padding: 70px 0 25px;

border-top: 1px solid #222222;

}

.footer-content {
max-width: 1200px;

margin: 0 auto;

padding: 0 40px;

display: grid;

grid-template-columns:
    1.5fr 1fr 1fr 1.3fr;

gap: 50px;

}

.footer-col {
opacity: 0;

transform: translateY(30px);

transition:
    opacity 0.8s ease,
    transform 0.8s ease;

}

.footer-col.animate {
opacity: 1;

transform: translateY(0);

}

.footer-col h4 {
position: relative;

display: inline-block;

margin-bottom: 20px;

padding-bottom: 9px;

font-size: 17px;

}

.footer-col h4::after {
content: "";

position: absolute;

left: 0;
bottom: 0;

width: 35px;
height: 2px;

background: #ffffff;

}

.footer-col p {
max-width: 300px;

color: #888888;

font-size: 14px;

line-height: 1.7;

}

.footer-links {
list-style: none;
}

.footer-links li {
margin-bottom: 10px;
}

.footer-links a {
color: #888888;

font-size: 14px;

transition: color 0.3s ease;

}

.footer-links a:hover {
color: #ffffff;
}

/* =========================================================
FOOTER SOCIAL
========================================================= */

.footer-social {
display: flex;

gap: 10px;

margin-top: 20px;

}

.footer-social a {
width: 38px;
height: 38px;

display: flex;
align-items: center;
justify-content: center;

background: #181818;

border: 1px solid #292929;

border-radius: 50%;

color: #ffffff;

transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;

}

.footer-social a:hover {
background: #ffffff;

color: #111111;

transform: translateY(-3px);

}

/* =========================================================
COPYRIGHT
========================================================= */

.copyright {
max-width: 1200px;

margin: 50px auto 0;

padding: 20px 40px 0;

border-top: 1px solid #222222;

text-align: center;

color: #666666;

font-size: 13px;

}

/* =========================================================
RESPONSIVE - TABLET
========================================================= */

@media (max-width: 1100px) {

#main-header {
    width: 94%;

    padding: 18px 22px;
}

nav {
    gap: 18px;
}

nav > a {
    font-size: 13px;
}

.logo {
    font-size: 24px;
}

.hero {
    padding-left: 40px;
    padding-right: 40px;

    gap: 40px;
}

.hero-text h1 {
    font-size: 65px;
}

.hero img {
    height: 450px;
}

.projects-grid {
    grid-template-columns: repeat(2, 1fr);
}

#skills .projects-grid {
    grid-template-columns: repeat(2, 1fr);
}

.about-content {
    gap: 40px;
}

.about-image img {
    height: 450px;
}

.contact-content {
    gap: 40px;
}

.footer-content {
    grid-template-columns: repeat(2, 1fr);
}

}

/* =========================================================
RESPONSIVE - MOBILE
========================================================= */

@media (max-width: 768px) {

html {
    scroll-padding-top: 180px;
}

#main-header {
    width: 94%;

    top: 10px;

    padding: 15px 18px;

    flex-direction: column;

    gap: 15px;
}

#main-header.scrolled {
    width: 96%;

    top: 6px;

    padding: 12px 15px;
}

.logo {
    font-size: 24px;
}

nav {
    width: 100%;

    justify-content: center;

    gap: 12px 15px;

    flex-wrap: wrap;
}

nav > a {
    font-size: 12px;
}

.divider {
    display: none;
}

.social {
    gap: 7px;
}

.social a {
    width: 30px;
    height: 30px;
}

/* HERO */

.hero {
    min-height: auto;

    padding: 190px 25px 80px;

    flex-direction: column;

    text-align: center;

    gap: 50px;
}

.hero-text {
    max-width: 100%;
}

.hero-text h4 {
    font-size: 12px;

    letter-spacing: 2px;
}

.hero-text h1 {
    font-size: 55px;

    letter-spacing: -2px;
}

.hero-text p {
    font-size: 15px;

    line-height: 1.7;
}

.hero-text button {
    padding: 12px 22px;
}

.hero-image {
    width: 100%;
}

.hero img {
    width: 100%;

    height: 400px;

    max-width: 400px;

    transform: translateY(30px);
}

.hero img.animate {
    transform: translateY(0);
}

/* SECTIONS */

.projects,
.about,
.contact {
    padding: 80px 20px;
}

.section-heading {
    margin-bottom: 45px;
}

.section-heading h2,
.about-text h2 {
    font-size: 34px;
}

/* PROJECTS */

.projects-grid {
    grid-template-columns: 1fr;

    gap: 20px;
}

#skills .projects-grid {
    grid-template-columns: 1fr;
}

.project-img {
    height: 220px;
}

/* ABOUT */

.about-content {
    flex-direction: column;

    gap: 45px;
}

.about-image,
.about-text {
    width: 100%;
}

.about-image img {
    width: 100%;

    height: 420px;
}

/* CONTACT */

.contact-content {
    flex-direction: column;

    gap: 40px;
}

.contact-info h3 {
    font-size: 35px;
}

.contact-form {
    padding: 25px 20px;
}

/* FOOTER */

.footer-content {
    grid-template-columns: 1fr;

    gap: 35px;

    padding: 0 25px;
}

.copyright {
    margin-top: 40px;

    padding: 20px 25px 0;
}

}

/* =========================================================
SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

html {
    scroll-padding-top: 200px;
}

#main-header {
    width: 95%;

    padding: 13px 12px;
}

.logo {
    font-size: 21px;
}

nav {
    gap: 9px 10px;
}

nav > a {
    font-size: 10px;
}

.social a {
    width: 28px;
    height: 28px;
}

.social i {
    font-size: 13px;
}

.hero {
    padding-top: 205px;
}

.hero-text h1 {
    font-size: 45px;

    letter-spacing: -1.5px;
}

.hero-text p {
    font-size: 14px;
}

.hero img {
    height: 350px;
}

.project-content {
    padding: 20px;
}

.project-content h3 {
    font-size: 19px;
}

.project-content p {
    font-size: 13px;
}

.about-image img {
    height: 350px;
}

.contact-item {
    align-items: flex-start;
}

.contact-item a {
    font-size: 13px;
}

.contact-item i {
    margin-top: 2px;
}

.footer-content {
    padding: 0 20px;
}

.copyright {
    padding-left: 20px;
    padding-right: 20px;
}

}

/* =========================================================
REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

html {
    scroll-behavior: auto;
}

*,
*::before,
*::after {
    scroll-behavior: auto !important;

    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;

    transition-duration: 0.01ms !important;
}

}