:root {
    --bg-main: #fffcf2;
    --bg-soft: #ccc5b9;
    --dark: #403d39;
    --darker: #252422;
    --accent: #eb5e28;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: var(--bg-main);
    color: var(--dark);
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    background: var(--bg-main);
    display: flex;
    justify-content: space-between;
    padding: 15px 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 100;
}

.navbar ul {
    display: flex;
    list-style: none;
}

.navbar a {
    text-decoration: none;
    margin-left: 20px;
    color: var(--dark);
}

.navbar a:hover {
    color: var(--accent);
}

/* Hero */
.hero {
    min-height: 100vh; /* Full screen height */
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 40px;
}

/* Optional: remove extra spacing from top */
body {
    margin: 0;
}

/* Make content nicely centered */
.hero-text {
    max-width: 70000px;
}
.hero-img {
    position: relative;
    display: inline-block;
}

.hero img {
    width: 380px;

    mask-image: linear-gradient(to bottom, black 75%, transparent 90%);
    opacity: 0;
    transform: translateX(80px);
    animation: slideInRight 2s ease forwards;
}

.hero img:hover {
    transform: scale(1.05);
}
@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.btn {
    background: var(--accent);
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    display: inline-block;
    margin-top: 15px;
}
.btn:hover {
    opacity: 0.8;
}

/* Sections */
.section {
    padding: 50px 20px;
    text-align: center;
}

.alt {
    background: var(--bg-soft);
}

/* Skills */
.skills {
    padding: 80px 20px;
    text-align: center;
    background: var(--bg-main);
}

.skills-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

/* Card */
.skill-card {
    background: var(--bg-soft);
    padding: 30px;
    border-radius: 15px;
    width: 180px;
    transition: 0.3s;
}

.skill-card:hover {
    transform: translateY(-10px);
}
.skill-bar {
    width: 60%;
    margin: 15px auto;
    background: var(--bg-soft);
    border-radius: 20px;
    overflow: hidden;
}

.skill-bar div {
    background: var(--accent);
    padding: 8px;
    border-radius: 20px;
}

/* Circle */
.circle {
    width: 100px;
    height: 100px;
    margin: 15px auto;
    border-radius: 50%;
    border: 8px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Projects */
.projects {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    width: 250px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Contact */
form {
    display: flex;
    flex-direction: column;
    width: 80%;
    max-width: 400px;
    margin: auto;
}

input, textarea {
    margin: 10px 0;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
}

/* Footer */
footer {
    background: var(--darker);
    color: white;
    text-align: center;
    padding: 20px;
}

/* Responsive */
@media(max-width:768px){
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .hero img {
        margin-top: 20px;
    }
}
.section {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease;
}

.section.show {
    opacity: 1;
    transform: translateY(0);
}
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: scale(1.05);
}
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}
.progress div {
    width: 0;
    height: 10px;
    background: var(--accent);
    transition: width 1s ease;
}
.hero-text {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideIn 2s ease forwards;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.typing {
    font-size: 18px;
    border-right: 2px solid var(--accent);
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    padding-right: 5px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}
.hero h1 {
    font-size: 3rem; /* Main heading */
    font-weight: 600;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem; /* tagline + description */
    margin-top: 10px;
}

.typing {
    font-size: 1.1rem; /* typing animation text */
}
.about {
    padding: 80px 20px;
    text-align: center;
    background: var(--bg-main);
}

/* Heading */
.about h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

.about h2 span {
    color: var(--accent);
}

/* Underline */
.underline {
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 10px auto 30px;
    border-radius: 10px;
}

/* Description */
.about-text {
    max-width: 700px;
    margin: auto;
    font-size: 1.1rem;
    color: var(--dark);
    line-height: 1.6;
}

/* Cards Layout */
.about-cards {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 50px;
    flex-wrap: wrap;
}

/* Card */
.about-card {
    background: var(--bg-soft);
    padding: 30px 20px;
    border-radius: 15px;
    width: 280px;
    transition: all 0.35s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    
    /* Important fix */
    border: 1px solid transparent;
}

/* Hover Effect */
.about-card:hover {
    transform: translateY(-12px) scale(1.02);
    
    /* smooth border instead of jump */
    border-color: var(--accent);

    /* depth + soft glow */
    box-shadow: 
        0 12px 30px rgba(0,0,0,0.15),
        0 0 10px var(--accent);
}
.about-card i {
    transition: 0.3s;
}

.about-card:hover i {
    transform: scale(1.2);
    color: var(--accent);
}

/* Icon */
.icon {
    font-size: 30px;
    margin-bottom: 15px;
}

/* Card Text */
.about-card h3 {
    margin-bottom: 10px;
}

.about-card {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease;
}

.about-card.show {
    opacity: 1;
    transform: translateY(0);
}
.about {
    min-height: 100vh;
    padding: 80px 20px;
    text-align: center;
}
.education {
    padding: 80px 20px;
    background: var(--bg-main);
    text-align: center;
}

/* Heading */
.education h2 span {
    color: var(--accent);
}

/* Timeline Line */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 50px auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background: var(--accent);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Timeline Item */
.timeline-item {
    padding: 20px 40px;
    position: relative;
    width: 50%;
}

/* Left Side */
.timeline-item.left {
    left: 0;
    text-align: right;
}

/* Right Side */
.timeline-item.right {
    left: 50%;
}

/* Dot */
.timeline-item::before {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background: var(--accent);
    border-radius: 50%;
    top: 30px;
    right: -8px;
    z-index: 1;
}

.timeline-item.right::before {
    left: -8px;
}

/* Content Box */
.content {
    background: var(--bg-soft);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Tag */
.tag {
    font-size: 12px;
    color: var(--accent);
    font-weight: bold;
}

/* Text */
.content h3 {
    margin: 10px 0;
}

.content h4 {
    font-size: 14px;
    color: var(--dark);
}

.content p {
    font-size: 14px;
    margin-top: 10px;
}
.timeline-item {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.6s ease;
}

.timeline-item.show {
    opacity: 1;
    transform: translateY(0);
}
@media(max-width:768px){

    .timeline::after {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        text-align: left;
    }

    .timeline-item.left,
    .timeline-item.right {
        left: 0;
    }

    .timeline-item::before {
        left: 12px;
    }
}
.contact {
    padding: 80px 20px;
    background: var(--bg-soft);
    text-align: center;
}

/* Heading */
.contact h2 span {
    color: var(--accent);
}

/* Layout */
.contact-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Left Side */
.contact-info {
    max-width: 350px;
    text-align: left;
}

.info-item {
    margin-top: 20px;
    font-size: 14px;
}

/* Form */
.contact-form {
    background: var(--bg-main);
    padding: 25px;
    border-radius: 12px;
    width: 350px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    margin: 10px 0;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: var(--bg-soft);
}

.contact-form textarea {
    height: 120px;
}

/* Button */
.contact-form button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
}

.contact-form button:hover {
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--darker);
    color: white;
    padding: 20px;
    text-align: center;
}

.socials {
    margin-top: 10px;
}

.socials a {
    margin: 0 10px;
    text-decoration: none;
    color: white;
    font-size: 18px;
}
@media(max-width:768px){
    .contact-container {
        flex-direction: column;
        align-items: center;
    }

    .contact-info {
        text-align: center;
    }
}
.projects-section {
    background: var(--bg-soft); /* different from contact */
    padding: 80px 20px;
    text-align: center;
}
.projects-section {
    padding: 80px 20px;
    text-align: center;
    background: var(--bg-main); /* same as skills */
}

.projects-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Project Card (MATCH SKILL CARD STYLE) */
.project-card {
    background: var(--bg-soft);
    padding: 25px;
    border-radius: 15px;
    width: 220px;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.project-card:hover {
    transform: translateY(-10px);
}
.projects-section h2 {
    margin-bottom: 10px;
}

.projects-container {
    margin-top: 50px;
}

@media (max-width: 768px) {

    .projects-section {
        padding: 60px 15px;
    }

    .projects-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .project-card {
        width: 90%;          /* full width feel */
        max-width: 320px;    /* prevent too large */
        padding: 20px;
    }

    .project-card h3 {
        font-size: 18px;
    }

    .project-card p {
        font-size: 14px;
    }
}
@media (max-width: 768px) {

    h2 {
        font-size: 1.8rem;
    }

    section {
        padding: 60px 15px;
    }
}
@media (max-width: 768px) {

    .navbar ul {
        display: none; /* hide menu (optional) */
    }
}
@media (max-width: 768px) {

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 15px;
    }

}
@media (max-width: 768px) {

    .hero h1 {
        font-size: 1.8rem;   /* reduce size */
        line-height: 1.3;
    }

}
@media (max-width: 768px) {

    .hero p,
    .typing {
        font-size: 1rem;
        white-space: normal;   /* 🔥 VERY IMPORTANT */
    }

}
.hero-text {
    max-width: 100%;
    word-wrap: break-word;
}
@media (max-width: 768px) {

    .hero img {
        width: 250px;
        margin-top: 20px;
    }

}
.hero h1 {
    font-size: clamp(1.8rem, 5vw, 3rem);
}