/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

/* ===== CSS Variables ===== */
:root {
    --bg-color: #0b0c10;
    --second-bg-color: #1f2833;
    --text-color: #c5c6c7;
    --main-color: #66fcf1;
    --accent-color: #45a29e;
    
    --glow-shadow: 0 0 15px var(--main-color);
    --glass-bg: rgba(31, 40, 51, 0.6);
    --glass-border: rgba(102, 252, 241, 0.2);
}

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

body {
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    position: relative;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: var(--main-color);
    border-radius: 10px;
}

/* ===== Background Blobs (Animated) ===== */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
    animation: float 10s infinite ease-in-out alternate;
}
.blob-1 {
    width: 400px;
    height: 400px;
    background: rgba(102, 252, 241, 0.2);
    top: 10%;
    left: -100px;
}
.blob-2 {
    width: 300px;
    height: 300px;
    background: rgba(69, 162, 158, 0.3);
    top: 50%;
    right: -50px;
    animation-delay: 2s;
}
.blob-3 {
    width: 500px;
    height: 500px;
    background: rgba(102, 252, 241, 0.15);
    bottom: -100px;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-50px) scale(1.1); }
}

/* ===== Typography ===== */
html {
    font-size: 62.5%;
}

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

.heading {
    text-align: center;
    font-size: 4.5rem;
    margin-bottom: 5rem;
    color: #fff;
}
.heading span {
    color: var(--main-color);
    text-shadow: 0 0 10px rgba(102, 252, 241, 0.5);
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 10px var(--main-color);
    font-size: 1.6rem;
    color: var(--bg-color);
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease;
    cursor: pointer;
}
.btn:hover {
    box-shadow: none;
    background: var(--text-color);
    color: var(--bg-color);
}

/* ===== Header / Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: rgba(11, 12, 16, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 2.5rem;
    color: #fff;
    font-weight: 800;
    cursor: default;
    text-shadow: 0 0 5px var(--main-color);
}

.nav-links {
    display: flex;
    list-style: none;
}
.nav-links li {
    margin-left: 3.5rem;
}
.nav-links a {
    font-size: 1.7rem;
    color: var(--text-color);
    font-weight: 600;
    transition: 0.3s;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--main-color);
    transition: width 0.3s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--main-color);
}

.menu-btn {
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
    cursor: pointer;
}

/* ===== Home Section ===== */
.home {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5rem;
}

.home-content {
    flex: 1;
}
.home-content h3 {
    font-size: 3.2rem;
    font-weight: 600;
    color: #fff;
}
.home-content h1 {
    font-size: 5.6rem;
    font-weight: 800;
    line-height: 1.3;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}
.home-content p {
    font-size: 1.6rem;
    margin: 2rem 0 4rem;
    line-height: 1.6;
}

.multiple-text {
    color: var(--main-color);
    text-shadow: var(--glow-shadow);
}
.cursor {
    color: var(--main-color);
    animation: blink 1s infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.social-media {
    margin-bottom: 3rem;
}
.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: 0.2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin-right: 1.5rem;
    transition: 0.3s ease;
}
.social-media a:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 10px var(--main-color);
    transform: translateY(-3px);
}

.home-img {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.profile-img {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 20px var(--main-color);
    border: 5px solid var(--bg-color);
    animation: pulse 4s infinite alternate;
}
@keyframes pulse {
    0% { box-shadow: 0 0 20px rgba(102, 252, 241, 0.4); transform: scale(1); }
    100% { box-shadow: 0 0 40px rgba(102, 252, 241, 0.8); transform: scale(1.02); }
}

/* ===== About Section ===== */
.about {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--second-bg-color);
    border-radius: 20px;
    margin: 5rem 9%;
    padding: 8rem 5%;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}
.about::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, var(--glass-border), transparent 30%);
    animation: rotate 10s linear infinite;
    z-index: 0;
}
.about-container {
    background: var(--bg-color);
    padding: 4rem;
    border-radius: 15px;
    z-index: 1;
    border: 1px solid var(--glass-border);
}
@keyframes rotate {
    100% { transform: rotate(360deg); }
}
.about-text h3 {
    font-size: 2.6rem;
    color: #fff;
    margin-bottom: 1.5rem;
}
.about-text p {
    font-size: 1.6rem;
    margin: 1.5rem 0;
    line-height: 1.7;
}

/* ===== Skills Section ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}
.skill-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    text-align: center;
    transition: 0.4s ease;
}
.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--main-color);
    box-shadow: var(--glow-shadow);
}
.skill-card i {
    font-size: 5rem;
    color: var(--main-color);
    margin-bottom: 1.5rem;
}
.skill-card h3 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 1rem;
}
.skill-card p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
}
.tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}
.tags span {
    background: rgba(102, 252, 241, 0.1);
    color: var(--main-color);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 1.2rem;
    border: 1px solid var(--glass-border);
}

/* ===== Experience Timeline ===== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--main-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}
.timeline-item:nth-child(odd) {
    left: 0;
}
.timeline-item:nth-child(even) {
    left: 50%;
}
.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--bg-color);
    border: 4px solid var(--main-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px var(--main-color);
}
.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}
.timeline-content {
    padding: 20px 30px;
    background: var(--glass-bg);
    position: relative;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}
.timeline-content h3 {
    font-size: 2rem;
    color: #fff;
}
.timeline-date {
    font-size: 1.3rem;
    color: var(--main-color);
    margin-bottom: 1rem;
    font-weight: 600;
}
.timeline-content p {
    font-size: 1.4rem;
}

/* ===== Contact Section ===== */
.contact {
    background: var(--second-bg-color);
}
.contact form {
    max-width: 700px;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
}
.contact form .input-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.contact form .input-box input,
.contact form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--bg-color);
    border-radius: 0.8rem;
    margin: 0.7rem 0;
    border: 1px solid var(--glass-border);
    transition: 0.3s;
}
.contact form .input-box input {
    width: 49%;
}
.contact form textarea {
    resize: none;
}
.contact form input:focus,
.contact form textarea:focus {
    border-color: var(--main-color);
    box-shadow: var(--glow-shadow);
}
.contact form .btn {
    margin-top: 2rem;
}

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

/* ===== Scroll Animation Classes ===== */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Media Queries ===== */
@media (max-width: 1200px) {
    html { font-size: 55%; }
}
@media (max-width: 991px) {
    .navbar { padding: 2rem 3%; }
    section { padding: 10rem 3% 2rem; }
    .home { flex-direction: column-reverse; gap: 3rem; text-align: center; }
    .home-content h1 { font-size: 5rem; }
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-item:nth-child(even) { left: 0%; }
    .timeline-item:nth-child(even) .timeline-dot,
    .timeline-item:nth-child(odd) .timeline-dot { left: 21px; }
}
@media (max-width: 768px) {
    .menu-btn { display: block; }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: rgba(11, 12, 16, 0.95);
        border-top: 1px solid var(--glass-border);
        flex-direction: column;
        display: none;
    }
    .nav-links.active { display: flex; }
    .nav-links li { margin: 1.5rem 0; text-align: center; }
    .contact form .input-box input { width: 100%; }
}
@media (max-width: 450px) {
    html { font-size: 50%; }
    .contact form .input-box input { width: 100%; }
}
