/* Styling */
*{
    margin: 0;
    padding: 0;
    font-family: 'poppins', sans-serif;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body{
    background: #080808;
    color: #fff;
}

/* ----------------- header -------------------- */
#header{
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    padding-top: 100px;
    padding-bottom: 100px;
}

.container{
    padding: 10px 10%;
}

/* base nav layout (still applies because nav has same structure) */
nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* sticky nav: always visible */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #080808;
    z-index: 1000;
    padding: 10px 10%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,0,79,0.08);
}

/* text logo */
.logo-text{
    font-size: 44px;
    font-weight: 800;
    color: #ff004f;
    letter-spacing: 1px;
}

/* menu */
.logo{
    width: 140px;
}

nav ul{
    margin: 0;
    padding: 0;
}
nav ul li{
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}

nav ul li a{
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    position: relative;
}

nav ul li a::after{
    content: '';
    width: 0;
    height: 3px;
    background: #ff004f;
    position: absolute;
    left: 0;
    bottom: -0px;
    transition: .5s;
}

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

/* header text */
.header-text{
    margin-top: 8%;
    font-size: 30px;
    text-align: left;
}

.header-text h2{
    font-size: 60px;
    margin-top: 20px;
    line-height: 1.02;
}

.header-text h2 span{
    margin-top: 20px;
    color: #ff004f;
    font-weight: 400;
}

/* typing cursor */
.cursor {
    display: inline-block;
    margin-left: 6px;
    animation: blink 0.7s steps(1) infinite;
    color: #ff004f;
    font-weight: 700;
}
@keyframes blink {
    50% { opacity: 0; }
}

/* ------------------ about section ---------------- */
#about{
    padding: 80px 0;
    color: #ababab;
    min-height: 65vh; /* increased height per request */
}

.row{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center; /* vertical align image with content */
    gap: 24px;
}

.about-col-1{
    flex-basis: 40%;
    display: flex;
    justify-content: center;
}

.about-col-1 img{
    width: 100%;
    border-radius: 15px;
    object-fit: cover;
}

.about-col-2{
    flex-basis: 55%;
}

.sub-title{
    font-size: 36px;
    font-weight: 600;
    color: #fff;
}

.tab-titles{
    display: flex;
    margin: 20px 0 20px;
}

.tab-links{
    margin-right: 40px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    color: #fff;
}

.tab-links::after{
    content: '';
    width: 0;
    height: 3px;
    background: #ff004f;
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.25s;
}

.tab-links:hover::after{
    width: 100%;
}

.tab-links.active::after {
    width: 100%;
}

/* tab content */
.tab-contents{
    display: none;
}

.tab-contents.active-tab{
    display: block;
}

/* Experience list styling */
#experience ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#experience ul li {
    margin-bottom: 8px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,0,79,0.1);
    font-size: 0.95rem;
}

#experience ul li span {
    font-weight: bold;
    color: rgba(255,0,79,1);
    margin-right: 8px;
}

/* "See Tech Stack" link */
#experience p a {
    color: rgba(255,0,79,1);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

#experience p a:hover {
    color: #fff;
}

/* Skills list styled like social links */
.skills-list{
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skills-list li{
    list-style: none;
}

.skill-link{
    text-decoration: none;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    transition: transform .12s, color .12s;
}

.skill-link i{
    color: #ff004f;
}

/* on hover mimic social link interaction */
.skill-link:hover{
    transform: translateY(-3px);
    color: #ffb6c6;
}

/* Tech stack chips */
.tech-stack-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.tech-stack-list span {
    padding: 6px 12px;
    border-radius: 8px;
    background: #1a1a1a;
    color: #fff;
    font-weight: 600;
    transition: all 0.5s ease; /* Smooth animation */
    cursor: pointer;
}

.tech-stack-list span:hover {
    transform: translateY(-3px);
    background: rgba(255,0,79,1);
    border-color: rgba(255,0,79,1);
}

/* -------------------- Portfolio -------------------------*/

#portfolio{
    padding: 50px 0;
}

.work-list {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 50px;
    justify-content: space-between;
}

.work {
    flex: 1 1 calc(33.333% - 40px);
    max-width: calc(33.333% - 40px);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    max-height: 300px;
}

.work img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: 0.5s;
}


@media (max-width: 1024px) {
    .work {
        flex: 1 1 calc(50% - 40px);
        max-width: calc(50% - 40px);
    }
}

@media (max-width: 640px) {
    .work {
        flex: 1 1 100%;
        max-width: 100%;
    }
}


.layer{
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0,0,0,0.55), #ff004f);
    border-radius: 12px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0 40px;
    font-size: 14px;
    transition: height 0.5s;
}

.layer h3{
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.layer p{
    font-size: 18px;
    font-weight: 600px;
}

.layer a{
    margin-top: 20px;
    text-decoration: none;
    color: #ff004f;
    line-height: 60px;
    font-size: 18px;
    background: #fff;
    height: 60px;
    width: 60px;
    border-radius: 50%;
    text-align: center;
}

.work:hover img{
    transform: scale(1.1);
}

.work:hover .layer{
    height: 100%;
}

.btn {
    margin: 70px auto 0;
    border-radius: 10px;
}

.btn a {
    width: fit-content;
    white-space: nowrap; /* Prevents text from wrapping */
    text-decoration: none;
    display: block;
    margin: 50px auto;
    padding: 14px 50px;
    color: #fff;
    border: 1px solid #ff004f;
    position: relative;
    z-index: 1;
    transition-duration: 0.5s;
    border-radius: 10px;
    text-transform: uppercase;
    font-weight: bold;
}


.btn a span {
    display: block;
    width: 0%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: #fff;
    z-index: -1;
    transition: 0.5s;
    border-radius: 10px;
}

.btn a:hover span {
    background: #ff004f;
    color: #fff;
    width: 100%;
}

.btn-download {
    margin: 20px 0; 
    text-align: left;
}


.btn-download a {
    margin: 0;
}



/* Contact Layout */
.contact-wrapper {
    display: flex;
    align-items: stretch;  /* make divider match tallest column */
    gap: 40px;
}

/* Left & Right columns */
.contact-left,
.contact-right {
    flex: 1;
}

/* Divider Line */
.contact-divider {
    width: 3px;
    background-color: #ff004f; /* same as button red */
    flex-shrink: 0;
}

/* Section Headings */
.contact-left .sub-title,
.contact-right .sub-title {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Contact Info Text */
.contact-left p,
.contact-right p {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}

/* Icons */
.contact-left p i,
.contact-right p i {
    margin-right: 20px; /* increased gap between icon & text */
    font-size: 25px;
    color: #ff004f;
}

/* Social Links Styled Like Contact Info */
.contact-right p a {
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Hover effect for social links */
.contact-right p a:hover {
    color: #ff004f;
    transform: translateY(-3px); /* moves up slightly */
}

/* Download Resume Button Alignment */
.btn-download {
    margin: 20px 0;
    text-align: left;
}

.btn-download a {
    margin: 0;
}

/* Responsive for Small Screens */
@media (max-width: 768px) {
    .contact-wrapper {
        flex-direction: column;
    }
    .contact-divider {
        display: none;
    }
    .header-text{
        margin-top: 18%;
        text-align: center;
    }
    .logo-text{ font-size: 36px; }
}

/* About responsive */
@media (max-width: 900px) {
    .about-col-1{ flex-basis: 45%; }
    .about-col-2{ flex-basis: 50%; }
}
@media (max-width: 680px) {
    .row{ flex-direction: column; }
    .about-col-1, .about-col-2 { width: 100%; }
    .header-text h1{ font-size: 40px; text-align: center; }
}
