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

/* --- Global Reset & Variables --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'poppins', sans-serif;
}

:root{
    --bg-color: #1f242d;
    --second-bg-color: #323946;
    --text-color:#fff;
    --main-color:#0ef;
}

html{
    font-size: 62.5%;
    overflow-x: hidden;
}

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

/* --- Dynamic Tech Background --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../image/tech.jpg');
    background-repeat: repeat;
    opacity: 0.1;
    z-index: -1;
    animation: scrollBackground 90s linear infinite;
}

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

/* --- Header & Navigation --- */
.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}
.header.sticky{
    border-bottom: .1rem solid rgba(0,0,0,.2);
}
.logo{
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 600;
    cursor: default;
}
.logo span {
    color: var(--main-color);
    display: inline-block;
    animation: logoWiggle 1s ease-in-out infinite alternate;
}
.navbar a{
    font-size: 1.7rem;
    color: var(--text-color);
    margin: 4rem;
    transition: .3s;
}
.navbar a:hover,
.navbar a.active{
    color: var(--main-color);
}
#menu-icon{
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
}

/* --- Footer --- */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--second-bg-color);
}
.footer-text p{
    font-size: 1.6rem;
}
.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--main-color);
    border-radius: .8rem;
    transition: .5s ease;
}
.footer-iconTop a:hover{
    box-shadow: 0 0 1rem var(--main-color);
}
.footer-iconTop a i {
    font-size: 2.4rem;
    color: var(--second-bg-color);
}


/* =======================================
   ABOUT PAGE STYLES - MODERN REDESIGN
   ======================================= */

.about-page {
    padding: 12rem 9% 7rem;
    min-height: 100vh;
    max-width: 130rem;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(50px);
    animation: sectionFadeIn 1s ease 0.1s forwards;
}

.page-heading {
    text-align: center;
    font-size: 4.5rem;
    margin-bottom: 5rem;
}

/* --- Hero Section --- */
.about-hero {
    display: flex;
    align-items: center;
    gap: 4rem;
    background: linear-gradient(135deg, var(--second-bg-color), rgba(50, 57, 70, 0.9));
    border-radius: 2rem;
    padding: 4rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--main-color), #6366f1, var(--main-color));
}

/* Decorative circles */
.about-hero::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(0, 238, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.hero-image {
    position: relative;
    flex-shrink: 0;
}

.hero-image img {
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--main-color);
    box-shadow: 0 0 30px rgba(0, 238, 255, 0.3);
    position: relative;
    z-index: 1;
}

.hero-image-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    border: 2px dashed var(--main-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: rotate 20s linear infinite;
}

.hero-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.hero-name-badge {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.hero-name-badge h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, var(--main-color), #6366f1);
    color: var(--bg-color);
    padding: 0.6rem 1.4rem;
    border-radius: 3rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.role-badge i {
    font-size: 1.6rem;
    color: var(--bg-color);
}

.hero-tagline {
    font-size: 1.8rem;
    font-style: italic;
    color: var(--main-color);
    margin-bottom: 1.5rem;
}

.hero-bio {
    font-size: 1.5rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

/* Stats Section */
.hero-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--main-color);
}

.stat-label {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Contact Links */
.hero-contact {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    background: rgba(0, 238, 255, 0.1);
    border: 1px solid rgba(0, 238, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.contact-link i {
    font-size: 2rem;
    color: var(--main-color);
}

.contact-link:hover {
    background: var(--main-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 238, 255, 0.4);
}

.contact-link:hover i {
    color: var(--bg-color);
}

.location-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.7);
    margin-left: auto;
}

.location-badge i {
    color: var(--main-color);
}


/* --- Content Grid --- */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
}

.about-right {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* --- Card Styles --- */
.about-card {
    background: linear-gradient(135deg, var(--second-bg-color), rgba(50, 57, 70, 0.9));
    border-radius: 2rem;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--main-color), #6366f1, var(--main-color));
    border-radius: 2rem 2rem 0 0;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

.card-header i {
    font-size: 2.6rem;
    color: var(--main-color);
}

.card-header h3 {
    font-size: 2.2rem;
    font-weight: 600;
}


/* --- Timeline Styles --- */
.timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1rem;
    bottom: 1rem;
    width: 3px;
    background: linear-gradient(180deg, var(--main-color), transparent);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 2rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -3rem;
    top: 0;
    width: 4rem;
    height: 4rem;
    background: var(--bg-color);
    border: 3px solid var(--main-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.timeline-marker i {
    font-size: 1.8rem;
    color: var(--main-color);
}

.timeline-date {
    display: inline-block;
    background: rgba(0, 238, 255, 0.15);
    color: var(--main-color);
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.timeline-content h4 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.timeline-org {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.8rem;
}

.timeline-content p {
    font-size: 1.4rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
}


/* --- Expertise Grid --- */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}

.expertise-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    background: rgba(0, 238, 255, 0.05);
    border: 1px solid rgba(0, 238, 255, 0.15);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.expertise-item:hover {
    background: rgba(0, 238, 255, 0.1);
    border-color: rgba(0, 238, 255, 0.3);
    transform: translateX(5px);
}

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

.expertise-item span {
    font-size: 1.3rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}


/* --- Skills Tags --- */
.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tag {
    background: rgba(0, 238, 255, 0.1);
    color: var(--main-color);
    padding: 0.8rem 1.4rem;
    border-radius: 3rem;
    font-size: 1.3rem;
    font-weight: 500;
    border: 1px solid rgba(0, 238, 255, 0.2);
    transition: all 0.3s ease;
}

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


/* =======================================
   KEYFRAMES
   ======================================= */

@keyframes sectionFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes logoWiggle {
    0% { color: var(--text-color); transform: translateY(0px); }
    100% { color: var(--main-color); transform: translateY(-2px); }
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes scrollBackground {
    from { background-position-y: 0; }
    to { background-position-y: 100vh; }
}


/* =======================================
   MEDIA QUERIES
   ======================================= */

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

@media(max-width:991px){
    .about-page {
        padding: 12rem 3% 7rem;
    }

    .about-hero {
        flex-direction: column;
        text-align: center;
        padding: 3rem;
    }

    .hero-name-badge {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-contact {
        justify-content: center;
    }

    .location-badge {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
    }

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

    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:768px){
    #menu-icon{
        display: block;
    }
    .navbar{
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0,0,0,.2);
        box-shadow: 0 .5rem 1rem rgba(0,0,0,.2);
        display: none;
    }
    .navbar.active{
        display: block;
    }
    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    .about-page {
        padding-top: 10rem;
    }

    .hero-image img {
        width: 15rem;
        height: 15rem;
    }

    .hero-name-badge h1 {
        font-size: 2.8rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 2rem;
    }

    .stat-item {
        flex: 1;
        min-width: 80px;
    }

    .timeline {
        padding-left: 2rem;
    }

    .timeline-marker {
        width: 3.5rem;
        height: 3.5rem;
        left: -2rem;
    }

    .timeline-marker i {
        font-size: 1.5rem;
    }

    .timeline-item {
        padding-left: 1.5rem;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .about-card {
        padding: 2.5rem;
    }
}

/* Extra small devices (phones, 480px and down) */
@media(max-width:480px){
    html {
        font-size: 50%;
    }

    .about-page {
        padding-top: 8rem;
        padding-left: 2%;
        padding-right: 2%;
    }

    .page-heading {
        font-size: 3rem;
    }

    .about-hero {
        padding: 2rem;
    }

    .hero-image img {
        width: 12rem;
        height: 12rem;
    }

    .hero-name-badge h1 {
        font-size: 2.4rem;
    }

    .role-badge {
        font-size: 1.1rem;
        padding: 0.5rem 1rem;
    }

    .hero-tagline {
        font-size: 1.4rem;
    }

    .hero-bio {
        font-size: 1.3rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 1rem;
    }

    .contact-link {
        width: 4rem;
        height: 4rem;
    }

    .contact-link i {
        font-size: 1.8rem;
    }

    .about-card {
        padding: 2rem;
    }

    .card-header h3 {
        font-size: 1.8rem;
    }

    .card-header i {
        font-size: 2.2rem;
    }

    .timeline-content h4 {
        font-size: 1.6rem;
    }

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

    .timeline-org {
        font-size: 1.2rem;
    }

    .expertise-item {
        padding: 1rem;
    }

    .expertise-item span {
        font-size: 1.1rem;
    }

    .skill-tag {
        padding: 0.6rem 1rem;
        font-size: 1.1rem;
    }

    .footer-text p {
        font-size: 1.3rem;
    }
}
