@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

:root {
    --bg-color: #0a192f;
    --second-bg-color: #112240;
    --text-color: #8892b0;
    --main-color: #64ffda;
    --accent-color: #b74b4b;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-padding-top: 80px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background-color: rgba(10, 25, 47, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-size: 3rem;
    color: var(--accent-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--accent-color);
    display: none;
    cursor: pointer;
}

nav a {
    font-size: 1.8rem;
    color: white;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
}

nav a:hover {
    color: var(--accent-color);
}

nav a.active {
    color: var(--accent-color);
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-color);
}

section {
    min-height: 100vh;
    padding: 10rem 9% 5rem;
}

.home {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    flex-direction: row;
    min-height: calc(100vh - 15rem);
}

.home-content {
    flex: 1;
    max-width: 600px;
}

.home-img {
    flex: 0 0 auto;
}

.home-content h1 {
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
    color: #ccd6f6;
}

span {
    color: var(--accent-color);
}

.home-content h3 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #ccd6f6;
}

.home-content p {
    font-size: 1.6rem;
    line-height: 1.8;
}

.home-img {
    border-radius: 50%;
}

.home-img img {
    width: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--accent-color);
    cursor: pointer;
    transition: 0.3s ease;
}

.home-img img:hover {
    transform: scale(1.05);
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: transparent;
    border-radius: 4rem;
    font-size: 1.6rem;
    color: var(--accent-color);
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid var(--accent-color);
    transition: 0.3s ease;
    cursor: pointer;
    margin-top: 2rem;
}

.btn:hover {
    transform: scale(1.03);
    background-color: var(--accent-color);
    color: black;
    box-shadow: 0 0 25px var(--accent-color);
}

.typing-text {
    font-size: 3.4rem;
    font-weight: 600;
    min-height: 50px;
}

.typing-text span {
    position: relative;
}

.heading {
    text-align: center;
    font-size: 4.5rem;
    color: #ccd6f6;
    margin-bottom: 1rem;
}

.heading-underline {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    margin: 0 auto 3rem;
}

.sub-heading {
    text-align: center;
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 5rem;
}

/* About Section */
.about {
    background-color: var(--bg-color);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.about-box {
    background-color: var(--second-bg-color);
    padding: 3rem;
    border-radius: 2rem;
    border: 2px solid rgba(100, 255, 218, 0.1);
    transition: 0.3s ease;
}

.about-box:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.about-box h3 {
    font-size: 2.4rem;
    color: #ccd6f6;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.about-box h3 i {
    color: var(--accent-color);
}

.about-box p {
    font-size: 1.6rem;
    line-height: 1.8;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
}

.info-item i {
    color: var(--accent-color);
    font-size: 2rem;
}

.info-item strong {
    color: #ccd6f6;
}

.social-link {
    color: var(--main-color);
    transition: color 0.3s;
}

.social-link:hover {
    color: var(--accent-color);
}

.language-bar {
    margin-bottom: 2rem;
}

.language-bar p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 1.6rem;
}

.language-bar .lang-level {
    color: var(--accent-color);
}

.language-bar .bar {
    height: 8px;
    background-color: rgba(100, 255, 218, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.language-bar .bar .progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), #64ffda);
    border-radius: 10px;
}

/* Skills Section */
.skills {
    background-color: var(--second-bg-color);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 5rem;
}

.skill-box {
    background-color: var(--bg-color);
    padding: 3rem 2rem;
    border-radius: 2rem;
    text-align: center;
    border: 2px solid rgba(100, 255, 218, 0.1);
    transition: 0.3s ease;
}

.skill-box:hover {
    border-color: var(--accent-color);
    transform: translateY(-10px);
}

.skill-box i {
    font-size: 5rem;
    margin-bottom: 2rem;
}

.skill-box h3 {
    font-size: 2.2rem;
    color: #ccd6f6;
    margin-bottom: 1rem;
}

.skill-box p {
    font-size: 1.4rem;
}

.skill-bars {
    margin-top: 3rem;
}

.skill-progress {
    margin-bottom: 3rem;
}

.skill-progress h4 {
    font-size: 2rem;
    color: #ccd6f6;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.progress-bar {
    height: 12px;
    background-color: rgba(100, 255, 218, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar .progress {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #ee5a6f, var(--accent-color));
    border-radius: 10px;
    transition: width 1s ease;
}

/* Projects Section */
.projects {
    background-color: var(--bg-color);
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.project-box {
    background-color: var(--second-bg-color);
    padding: 3rem;
    border-radius: 2rem;
    border: 2px solid rgba(100, 255, 218, 0.1);
    transition: 0.3s ease;
}

.project-box:hover {
    border-color: var(--accent-color);
    transform: translateY(-10px);
}

.project-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-bottom: 2rem;
}

.project-icon.yellow {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.project-icon.blue {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.project-icon.orange {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.project-icon.pink {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.project-icon.green {
    background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%);
}

.project-icon.purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.project-icon.teal {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.project-box h3 {
    font-size: 2.4rem;
    color: #ccd6f6;
    margin-bottom: 1.5rem;
}

.project-box p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tag {
    padding: 0.5rem 1.5rem;
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--accent-color);
    border-radius: 2rem;
    font-size: 1.3rem;
    border: 1px solid var(--accent-color);
}

/* Inquire Button */
.btn-inquire {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--main-color);
    color: var(--main-color);
    border-radius: 3rem;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-inquire:hover {
    background: var(--main-color);
    color: var(--bg-color);
    transform: translateY(-2px);
}

/* Repo Loading */
.repo-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 5rem 2rem;
    font-size: 1.8rem;
    color: var(--text-color);
}

.repo-loading i {
    display: block;
    margin-bottom: 2rem;
}

/* Education Section */
.education {
    background-color: var(--second-bg-color);
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(180deg, var(--accent-color), #64ffda);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 2rem 4rem;
    position: relative;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--accent-color);
    border: 4px solid var(--bg-color);
    top: 3rem;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.left::after {
    right: -12px;
}

.right::after {
    left: -12px;
}

.timeline-content {
    padding: 3rem;
    background-color: var(--bg-color);
    border-radius: 2rem;
    border: 2px solid rgba(100, 255, 218, 0.1);
    transition: 0.3s ease;
}

.timeline-content:hover {
    border-color: var(--accent-color);
    transform: scale(1.02);
}

.timeline-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: var(--accent-color);
    color: black;
    border-radius: 2rem;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-date {
    font-size: 1.6rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-content h3 {
    font-size: 2.2rem;
    color: #ccd6f6;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.timeline-content p {
    font-size: 1.5rem;
}

/* Affiliations Section */
.affiliations {
    background-color: var(--bg-color);
}

.affiliations-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.affiliation-box {
    background-color: var(--second-bg-color);
    padding: 3rem;
    border-radius: 2rem;
    border: 2px solid rgba(100, 255, 218, 0.1);
    transition: 0.3s ease;
}

.affiliation-box:hover {
    border-color: var(--accent-color);
    transform: translateY(-10px);
}

.affiliation-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-bottom: 2rem;
}

.affiliation-icon.code {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.affiliation-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: rgba(100, 255, 218, 0.2);
    color: var(--accent-color);
    border-radius: 2rem;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.affiliation-box h3 {
    font-size: 2.2rem;
    color: #ccd6f6;
    margin-bottom: 1rem;
}

.affiliation-date {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.affiliation-box p {
    font-size: 1.5rem;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    background-color: var(--second-bg-color);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background-color: var(--bg-color);
    border-radius: 1.5rem;
    border: 2px solid rgba(100, 255, 218, 0.1);
    transition: 0.3s ease;
}

.contact-item:hover {
    border-color: var(--accent-color);
    transform: translateX(10px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2.5rem;
    color: white;
}

.contact-icon.phone {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.contact-icon.email {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
}

.contact-icon.location {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.contact-icon.facebook {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.contact-icon.instagram {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.contact-text h4 {
    font-size: 1.6rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.contact-text p {
    font-size: 1.8rem;
    color: #ccd6f6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.input-box {
    position: relative;
}

.input-box label {
    display: block;
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.input-box input,
.input-box textarea,
.input-box select {
    width: 100%;
    padding: 1.5rem 2rem;
    font-size: 1.6rem;
    color: #ccd6f6;
    background-color: var(--bg-color);
    border-radius: 1rem;
    border: 2px solid rgba(100, 255, 218, 0.1);
    transition: 0.3s ease;
}

.input-box input:focus,
.input-box textarea:focus,
.input-box select:focus {
    border-color: var(--accent-color);
}

.input-box textarea {
    resize: none;
    height: 150px;
}

/* Error Messages */
.error-msg {
    display: none;
    font-size: 1.2rem;
    color: #ff6b6b;
    margin-top: 0.5rem;
}

.error-msg.show {
    display: block;
}

.btn-submit {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.8rem;
    background: linear-gradient(90deg, var(--accent-color), #64ffda);
    color: white;
    border-radius: 3rem;
    cursor: pointer;
    transition: 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.btn-submit:hover {
    transform: scale(1.02);
    box-shadow: 0 0 25px var(--accent-color);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: var(--second-bg-color);
    border: 2px solid rgba(100, 255, 218, 0.2);
    border-radius: 2rem;
    padding: 4rem;
    max-width: 600px;
    width: 90%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--accent-color);
}

.modal-content h2 {
    font-size: 2.8rem;
    color: #ccd6f6;
    margin-bottom: 1rem;
}

.modal-content p {
    font-size: 1.6rem;
    color: var(--text-color);
    margin-bottom: 3rem;
}

/* Toast */
#toast {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    padding: 1.5rem 2.5rem;
    background: var(--second-bg-color);
    border: 2px solid var(--main-color);
    border-radius: 1rem;
    font-size: 1.6rem;
    color: #ccd6f6;
    display: none;
    align-items: center;
    gap: 1rem;
    z-index: 99999;
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.3);
}

#toast.show {
    display: flex;
    animation: slideIn 0.3s ease;
}

#toast.error {
    border-color: #ff6b6b;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

footer {
    background-color: var(--bg-color);
    padding: 2rem 9%;
    text-align: center;
    border-top: 2px solid rgba(100, 255, 218, 0.1);
}

footer p {
    font-size: 1.6rem;
    color: var(--text-color);
}

/* Responsive Design */
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }
    .about-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 991px) {
    header {
        padding: 2rem 3%;
    }

    section {
        padding: 10rem 3% 2rem;
    }

    .home {
        flex-direction: column;
        gap: 4rem;
    }

    .home-content {
        max-width: 100%;
        text-align: center;
        order: 2;
    }

    .home-img {
        order: 1;
    }

    .home-img img {
        width: 50vw;
        max-width: 300px;
    }

    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 22px;
    }

    .right {
        left: 0%;
    }
}

@media (max-width: 768px) {
    #menu-icon {
        display: block;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background-color: rgba(17, 34, 64, 0.98);
        border-top: 2px solid var(--accent-color);
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
        display: none;
    }

    nav.active {
        display: block;
    }

    nav a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    .projects-container,
    .skills-container,
    .affiliations-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 450px) {
    html {
        font-size: 50%;
    }

    .heading {
        font-size: 3.5rem;
    }

    .home-img img {
        width: 70vw;
        max-width: 250px;
    }
}

