@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

html {
    font-size: 62.5%;
}

body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: #0b0c10;
    color: #ffffff;
}

/* --- Header & Navigation --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background-color: rgba(11, 12, 16, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-size: 3rem;
    color: #4be2ec;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

nav a {
    font-size: 1.8rem;
    color: white;
    margin-left: 3rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active {
    color: #4be2ec;
    border-bottom: 3px solid #4be2ec;
}

/* --- Base Section & Typography --- */
section {
    min-height: 100vh;
    padding: 12rem 9% 5rem;
}

.heading {
    text-align: center;
    font-size: 4.5rem;
    margin-bottom: 4rem;
    font-weight: 700;
}

span {
    color: #4be2ec;
}

/* --- Home Section --- */
.home {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
}

.home-content h1 {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.2;
}

.home-content h3 {
    font-size: 3rem;
    margin: 1rem 0;
    font-weight: 600;
}

.home-content p {
    font-size: 1.6rem;
    line-height: 1.6;
    color: #c5c6c7;
    margin-bottom: 2rem;
}

.home-img img {
    width: 30vw;
    max-width: 350px;
    border-radius: 50%;
    box-shadow: 0 0 25px #4be2ec;
    transition: 0.3s ease;
}

.home-img img:hover {
    box-shadow: 0 0 40px #4be2ec;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.5rem;
    height: 4.5rem;
    background-color: transparent;
    border: 0.2rem solid #4be2ec;
    font-size: 2rem;
    border-radius: 50%;
    margin: 1rem 1.5rem 2rem 0;
    transition: 0.3s ease;
    color: #4be2ec;
}

.social-icons a:hover {
    color: #0b0c10;
    transform: translateY(-5px);
    background-color: #4be2ec;
    box-shadow: 0 0 20px #4be2ec;
}

.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    background-color: transparent;
    border-radius: 4rem;
    font-size: 1.6rem;
    color: #4be2ec;
    font-weight: 600;
    border: 2px solid #4be2ec;
    transition: 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background-color: #4be2ec;
    color: #0b0c10;
    box-shadow: 0 0 20px #4be2ec;
}

/* --- About Section --- */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.8rem;
    line-height: 1.8;
}

.sub-heading {
    font-size: 3rem;
    margin: 4rem 0 2rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skill-card {
    background: #1f2833;
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(75, 226, 236, 0.2);
    transition: 0.3s;
}

.skill-card i {
    font-size: 4rem;
    color: #4be2ec;
    margin-bottom: 1rem;
}

.skill-card h4 {
    font-size: 1.6rem;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: #4be2ec;
    box-shadow: 0 0 15px rgba(75, 226, 236, 0.3);
}

/* --- Projects Section --- */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.project-box {
    background-color: #1f2833;
    padding: 3rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(75, 226, 236, 0.2);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.project-icon {
    font-size: 3.5rem;
    color: #4be2ec;
    margin-bottom: 1.5rem;
}

.project-box h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.project-box p {
    font-size: 1.4rem;
    color: #c5c6c7;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-sm {
    padding: 0.8rem 2rem;
    background-color: #4be2ec;
    color: #0b0c10;
    border-radius: 2rem;
    font-size: 1.4rem;
    font-weight: 600;
    transition: 0.3s;
}

.btn-sm:hover {
    box-shadow: 0 0 15px #4be2ec;
}

.project-box:hover {
    transform: translateY(-8px);
    border-color: #4be2ec;
}

/* --- Education Section (Timeline) --- */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    border-left: 3px solid #4be2ec;
    padding-left: 3rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
}

.timeline-dot {
    position: absolute;
    left: -3.8rem;
    top: 0;
    width: 1.6rem;
    height: 1.6rem;
    background-color: #4be2ec;
    border-radius: 50%;
    box-shadow: 0 0 10px #4be2ec;
}

.timeline-date {
    font-size: 1.4rem;
    color: #4be2ec;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-content {
    background: #1f2833;
    padding: 2rem;
    border-radius: 1rem;
}

.timeline-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.timeline-content p {
    font-size: 1.4rem;
    color: #c5c6c7;
}

/* --- Contact Section --- */
.contact-content {
    display: flex;
    gap: 5rem;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    font-size: 1.6rem;
    color: #c5c6c7;
    margin-bottom: 3rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.info-item i {
    font-size: 2.5rem;
    color: #4be2ec;
}

.info-item span {
    display: block;
    font-size: 1.2rem;
    color: #888;
}

.info-item a, .info-item p {
    font-size: 1.6rem;
    color: #ffffff;
    margin-bottom: 0;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1.5rem;
    background: #1f2833;
    border: 1px solid rgba(75, 226, 236, 0.2);
    border-radius: 8px;
    font-size: 1.6rem;
    color: white;
    transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #4be2ec;
    box-shadow: 0 0 10px rgba(75, 226, 236, 0.3);
}

/* Responsive Media Queries */
@media (max-width: 995px) {
    header {
        padding: 2rem 5%;
    }
    .home {
        flex-direction: column-reverse;
        text-align: center;
        gap: 4rem;
    }
    .home-img img {
        width: 60vw;
    }
    .contact-content {
        flex-direction: column;
    }
}