/* Global Styles */
html, body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: #000;
    scroll-behavior: smooth;
}

.unselectable {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.container {
    max-width: 1200px;
    margin: 30px;
    padding: 60px 20px
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease-in-out;
    z-index: 1000; /* Ensure navbar stays on top */
}

nav {
    margin-left: auto;
    margin-right: 70px;
}

.logo {
    font-size: 1.5em;
    font-weight: 700;
    cursor: pointer;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline-block;
}

nav ul li a {
    text-decoration: none;
    color: black;
    font-size: 1em;
    font-weight: 400;
    padding: 10px;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* Mobile-Friendly Navbar */
@media (max-width: 768px) {
    nav ul li {
        display: block;
    }
}

/* Responsive styles for smaller desktops and tablets */
@media (max-width: 1200px) {
    h2 {
        font-size: 5em;
    }
    .description {
        font-size: 2.5em;
    }
    .intro {
        font-size: 1.8em;
    }
    h1 {
        font-size: 8em;
    }
    .card-image img {
        width: 450px;
        height: 320px;
    }
    .card-text {
        margin-right: 20px;
    }
}
/* Sections */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

h1 {
    font-size: 10em;
    font-weight: 600;
    margin: 0;
}

.colour-hover {
    color: #000;
    transition: 1.5s;
}

.colour-hover:hover {
    color: rgb(255, 146, 182);
}

svg {
    fill: blue;
}

h2 {
    font-size: 6em;
    font-weight: 700;
    margin-bottom: 20px;
}

p {
    font-size: 1.2em;
}

.intro {
    font-size: 2em;
    font-weight: 400;
    text-align: right;
}

/* About Section */
.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.description {
    font-size: 3em;
    font-weight: 700;
}

.text {
    max-width: 400px;
}

@media (max-width: 992px) {
    h1 {
        font-size: 6em;
    }
    h2 {
        font-size: 4em;
    }
    .description {
        font-size: 2em;
    }
    .intro {
        font-size: 1.5em;
    }
    .card {
        padding: 20px;
    }
    .card, .about-content {
        flex-direction: column;
        text-align: center;
    }
    .card-text, .card-image {
        width: 100%;
        margin: 0;
    }
    .card-image {
        margin-top: 20px;
    }
}
.images {
    display: flex;
    gap: 20px;
}

.images img {
    width: 250px;
    border-radius: 10px;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons img {
    width: 30px;
    cursor: pointer;
    transition: transform 0.2s;
}

.social-icons img:hover {
    transform: scale(1.2);
}

.black-logo {
    color: #000;
}

/* Navbar Hide on Scroll */
.hidden {
    transform: translateY(-100%);
}

#typing-text {
    font-size: 1.5em;
    font-weight: 400;
    border-right: 3px solid black; /* Cursor effect */
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    animation: blinkCursor 0.8s infinite; /* Add blinking animation */
}

@keyframes blinkCursor {
    50% {
        border-color: transparent;
    }
}

/* Cards for Project section */
.card {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #000;
    margin-top: 30px;
    padding: 40px;
    border-radius: 10px;
    transition: transform 0.2s;
}

.card:hover {
    transform: scale(1.02);
}

.card-text {
    flex: 1;
    margin-right: 40px;
}

h3 {
    font-size: 2em;
}

.card-image {
    float: right;
    display: flex;
}

.card-image img {
    width: 570px;
    height: 400px;
    border: 2px solid black;
    border-radius: 10px;
    object-fit: cover;
}
  
.learn-more {
    display: inline-block;
    margin-top: 10px;
    background-color: black;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.5s;
}

.learn-more:hover {
    background-color: white;
    border: solid 1px #000;
    color: black;
}

.year {
    font-weight: 700;
}
  
p {
    text-align: justify;
}

/* Project Filter Buttons */
.filter-buttons {
    margin: 20px 0;
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 8px 16px;
    cursor: pointer;
    border: 1px solid #000;
    background-color: #fff;
    color: #000;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
    background-color: #000;
    color: #fff;
}

/* Mobile Specific Styles */
@media (max-width: 767px) {
    .container {
        margin: 15px;
        padding: 40px 10px;
    }

    header {
        padding: 15px 20px;
    }

    nav {
        margin-right: 0;
    }

    h1 {
        font-size: 4em;
    }
    h2 {
        font-size: 3em;
    }
    h3 {
        font-size: 1.5em;
    }
    .description {
        font-size: 1.5em;
        text-align: center;
    }
    .intro {
        font-size: 1.2em;
    }
    p {
        font-size: 1em;
    }

    .card-image img {
        width: 100%;
        height: auto;
    }

    .timeline {
        padding-left: 30px;
    }
    .timeline-dot {
        left: -39px;
    }
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Experience Section */
.timeline {
    position: relative;
    width: 100%;
    margin-top: 50px;
    padding-left: 50px;
    border-left: 3px solid #000;
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: -59px; /* (padding-left + border-width/2) - dot-width/2 */
    top: 5px;
    height: 15px;
    width: 15px;
    background-color: #000;
    border-radius: 50%;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 5px 0;
}

.timeline-title {
    transition: 1.5s;
}

.timeline-title:hover{
    text-decoration: underline;
    color: rgb(255, 146, 182);
}

.timeline-header h3 {
    margin: 0;
}

.timeline-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    padding: 0 10px;
}

.timeline-body.active {
    padding: 20px 10px;
    max-height: 200px; /* Adjust if your description is longer */
    transition: max-height 0.5s ease-in, padding 0.5s ease-in;
}

.timeline-body p {
    margin: 0;
}

/* footer */
.footer {
    margin-left: 30px;
    margin-bottom: 10px;
}