/* --- Global Reset & Variable Tokens --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

* {
    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: #0b071e;
    --second-bg-color: #140e34;
    --text-color: #ffffff;
    --main-color: #02c8fa;
    --accent-glow: #8e1dff;

    /* Project tag colours */
    --tag-uiux:       #ff6bcb;
    --tag-webdev:     #02c8fa;
    --tag-mobile:     #ffc107;
    --tag-gamedev:    #4caf50;
    --tag-3d:         #ff7043;
    --tag-photoshop:  #31a8ff;
}

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

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

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

/* --- Common UI Components --- */
.btn {
    display: inline-block;
    padding: 1.2rem 2.8rem;
    border-radius: 4rem;
    font-size: 1.6rem;
    font-weight: 600;
    transition: .3s ease;
    cursor: pointer;
    text-align: center;
}

.main-btn {
    background: linear-gradient(45deg, var(--main-color), var(--accent-glow));
    color: var(--bg-color);
    box-shadow: 0 0 1.5rem rgba(125, 249, 255, 0.4);
}

.main-btn:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 2.5rem rgba(125, 249, 255, 0.8);
    transform: translateY(-2px);
}

.outline-btn {
    background: transparent;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    padding: 0.9rem 2rem;
    font-size: 1.4rem;
}

.outline-btn:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 1.5rem var(--main-color);
}

.heading {
    font-size: 4.5rem;
    text-align: center;
    margin-bottom: 6rem;
    font-weight: 700;
}

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

.gradient-text {
    background: linear-gradient(45deg, var(--main-color), var(--accent-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Typed Text Cursor --- */
.cursor {
    display: inline-block;
    color: var(--main-color);
    font-weight: 300;
    animation: blink 0.7s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* --- Header / Navigation Bar --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: rgba(11, 7, 30, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: background 0.3s ease;
}

.header.sticky {
    background: rgba(11, 7, 30, 0.9);
    border-bottom: 1px solid rgba(125, 249, 255, 0.1);
}

.logo {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 700;
}

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

.navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 500;
    transition: .3s;
}

.navbar {
    margin-left: -5rem;  
}

.navbar a:hover,
.navbar a.active { color: var(--main-color); }

.btn-contact {
    font-size: 1.5rem;
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 2rem;
    background: linear-gradient(45deg, var(--main-color), var(--accent-glow));
    color: var(--bg-color);
    box-shadow: 0 0 1rem rgba(125, 249, 255, 0.3);
    transition: 0.3s ease;
}

.btn-contact:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 2rem rgba(125, 249, 255, 0.7);
}

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

.home-content h1 {
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content h1 span { color: var(--main-color); }

.home-content h2 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.home-content p {
    font-size: 1.6rem;
    color: #b5b5b5;
    line-height: 1.8;
    max-width: 60rem;
}

.social-icons { margin: 2.5rem 0 3rem; }

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin-right: 1.5rem;
    transition: .3s ease;
}

.social-icons a:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 1.5rem var(--main-color);
    transform: scale(1.1);
}

.btn-group { display: flex; gap: 2rem; }

/* Profile Image Box with Animated Spinning Glow */
.home-img .img-box,
.about-img .img-box {
    position: relative;
    width: 40rem;
    height: 40rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.5s ease;
}

/* Spinning conic ring — tight glowing border */
.home-img .img-box::before,
.about-img .img-box::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #02c8fa,
        #8e1dff,
        #ff6bcb,
        #02c8fa,
        #8e1dff,
        #02c8fa
    );
    z-index: 0;
    animation: spinRing 4s linear infinite;
    filter: blur(2px);
}

/* Outer soft halo — slow counter-spin */
.home-img .img-box::after,
.about-img .img-box::after {
    content: '';
    position: absolute;
    inset: -22px;
    border-radius: 50%;
    background: conic-gradient(
        from 180deg,
        rgba(2, 200, 250, 0.6),
        rgba(142, 29, 255, 0.5),
        transparent,
        rgba(2, 200, 250, 0.4)
    );
    z-index: 0;
    animation: spinRing 6s linear infinite reverse;
    filter: blur(16px);
    opacity: 0.75;
}

/* Hover: speed up + sharpen */
.home-img .img-box:hover,
.about-img .img-box:hover {
    transform: translateY(-5px) scale(1.02);
}

.home-img .img-box:hover::before,
.about-img .img-box:hover::before {
    animation-duration: 2s;
    filter: blur(1px);
}

.home-img .img-box:hover::after,
.about-img .img-box:hover::after {
    animation-duration: 3s;
    opacity: 1;
}

/* Profile Photo Styling */
.home-img .img-box img,
.about-img .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--bg-color);
    background: var(--bg-color);
    position: relative;
    z-index: 2;
}

@keyframes spinRing {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* --- About Section --- */
.about {
    background: var(--second-bg-color);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8rem;
    padding-top: 12rem;
    padding-bottom: 8rem;
    min-height: unset;
}

.about-content {
    flex: 1;
    max-width: 50rem;
}

.about-content h2 {
    text-align: left;
    margin-bottom: 2rem;
    font-size: 4.5rem;
    font-weight: 700;
}

.about-content p {
    font-size: 1.6rem;
    color: #b5b5b5;
    line-height: 1.8;
    margin-bottom: 3rem;
    max-width: 60rem;
}

/* --- Education Timeline --- */
.about-education {
    flex: 1;
    max-width: 46rem;
}

.education-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 3.5rem;
    color: var(--text-color);
}

.education-title span {
    color: var(--main-color);
}

.education-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

/* Vertical line — drawn per item, never below the last circle */
.edu-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 2.2rem;
    top: 4.6rem;
    bottom: 0;
    width: 2px;
    background: var(--main-color);
    opacity: 0.5;
    z-index: 0;
}

.edu-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding-bottom: 3.5rem;
    position: relative;
}

.edu-item:last-child {
    padding-bottom: 0;
}

.edu-icon {
    width: 4.6rem;
    height: 4.6rem;
    border-radius: 50%;
    background: var(--second-bg-color);
    border: 2px solid var(--main-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--main-color);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    transition: 0.3s ease;
}

.edu-item:hover .edu-icon {
    background: rgba(2, 200, 250, 0.12);
    box-shadow: 0 0 1.4rem rgba(2, 200, 250, 0.35);
}

.edu-details {
    padding-top: 0.6rem;
}

.edu-year {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--main-color);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.6rem;
    background: rgba(2, 200, 250, 0.08);
    padding: 0.3rem 1rem;
    border-radius: 2rem;
    border: 1px solid rgba(2, 200, 250, 0.2);
}

.edu-details h4 {
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.edu-details p {
    font-size: 1.4rem;
    color: #8e88b5;
    line-height: 1.6;
}

/* --- Skills Section --- */
.skills {
    padding-bottom: 8rem;
}

.skills-sub {
    text-align: center;
    font-size: 1.6rem;
    color: #8e88b5;
    margin-top: -4rem;
    margin-bottom: 5rem;
}

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

.skill-card {
    background: var(--second-bg-color);
    border: 1px solid #231b4d;
    border-radius: 2rem;
    padding: 2.8rem 2.4rem;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.skill-card:hover {
    border-color: var(--main-color);
    transform: translateY(-4px);
}

.skill-card-header {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    margin-bottom: 2rem;
}

.skill-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2rem;
    flex-shrink: 0;
}

.icon-cyan   { background: rgba(2,200,250,0.12);   color: var(--main-color); }
.icon-purple { background: rgba(142,29,255,0.12);  color: var(--accent-glow); }
.icon-amber  { background: rgba(255,193,7,0.12);   color: #ffc107; }
.icon-green  { background: rgba(76,175,80,0.12);   color: #4caf50; }

.skill-card-header h3 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
}

.skill-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.pill {
    font-size: 1.3rem;
    font-weight: 500;
    padding: 0.5rem 1.4rem;
    border-radius: 4rem;
    border: 1px solid transparent;
}

.pill-cyan   { background: rgba(2,200,250,0.1);   border-color: rgba(2,200,250,0.3);   color: var(--main-color); }
.pill-purple { background: rgba(142,29,255,0.1);  border-color: rgba(142,29,255,0.3);  color: var(--accent-glow); }
.pill-amber  { background: rgba(255,193,7,0.1);   border-color: rgba(255,193,7,0.3);   color: #ffc107; }
.pill-green  { background: rgba(76,175,80,0.1);   border-color: rgba(76,175,80,0.3);   color: #4caf50; }

/* Stats Row */
.skills-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    border-top: 1px solid #231b4d;
    padding-top: 4rem;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--second-bg-color);
    border: 1px solid #231b4d;
    border-radius: 2rem;
    padding: 2.5rem 3rem;
    min-width: 15rem;
    flex: 1 1 15rem;
    max-width: 20rem;
    transition: border-color 0.3s ease;
}

.stat-card:hover { border-color: var(--main-color); }

.stat-num {
    font-size: 3.6rem;
    font-weight: 700;
    color: var(--main-color);
}

.stat-label {
    font-size: 1.3rem;
    color: #8e88b5;
    margin-top: 0.5rem;
    text-align: center;
}

/* ================================================
   PROJECTS SECTION — TABBED LAYOUT
   ================================================ */
.projects {
    background: var(--second-bg-color);
    padding-bottom: 8rem;
}

/* --- Filter Tabs --- */
.projects-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-bottom: 5rem;
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1rem 2.2rem;
    font-size: 1.5rem;
    font-weight: 500;
    border-radius: 4rem;
    border: 2px solid #2e2558;
    background: transparent;
    color: #9d95c8;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--main-color);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.tab-btn span,
.tab-btn i { position: relative; z-index: 1; }

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

.tab-btn.active {
    border-color: transparent;
    color: var(--bg-color);
    font-weight: 600;
    box-shadow: 0 0 2rem rgba(125, 249, 255, 0.5);
}

.tab-btn.active::before { opacity: 1; }

/* --- Project Cards Grid --- */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
    gap: 3rem;
    align-items: start;
}

/* Card enter/exit animation */
.projects-box {
    background: var(--bg-color);
    border-radius: 2rem;
    overflow: hidden;
    border: 2px solid #1e1740;
    box-shadow: 0 0 1.5rem rgba(125,249,255,0.06);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease, opacity 0.35s ease;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.projects-box.hidden {
    display: none;
}

.projects-box.fade-in {
    animation: cardFadeIn 0.4s ease forwards;
}

@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)  scale(1); }
}

.projects-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 3rem rgba(125, 249, 255, 0.3);
    border-color: var(--main-color);
}

/* --- Project Image Wrap with Overlay --- */
.project-img-wrap {
    position: relative;
    overflow: hidden;
}

.project-img-wrap img {
    width: 100%;
    height: 22rem;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.projects-box:hover .project-img-wrap img {
    transform: scale(1.07);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 7, 30, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.6rem;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.projects-box:hover .project-overlay { opacity: 1; }

/* --- Overlay Icon Buttons --- */
.overlay-icon-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 2rem;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transform: translateY(12px);
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.projects-box:hover .overlay-icon-btn {
    transform: translateY(0);
}

.overlay-icon-btn:hover {
    background: var(--main-color);
    border-color: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 1.8rem rgba(125, 249, 255, 0.7);
    transform: scale(1.12) translateY(0);
}

/* --- Project Info --- */
.projects-info {
    padding: 2.5rem;
}

/* Category Tags */
.project-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0.4rem 1.2rem;
    border-radius: 2rem;
    margin-bottom: 1.2rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.uiux-tag       { background: rgba(255, 107, 203, 0.12); color: var(--tag-uiux);       border: 1px solid rgba(255,107,203,0.3); }
.webdev-tag     { background: rgba(2, 200, 250, 0.12);   color: var(--tag-webdev);     border: 1px solid rgba(2,200,250,0.3); }
.mobiledev-tag  { background: rgba(255,193,7,0.12);      color: var(--tag-mobile);     border: 1px solid rgba(255,193,7,0.3); }
.gamedev-tag    { background: rgba(76,175,80,0.12);      color: var(--tag-gamedev);    border: 1px solid rgba(76,175,80,0.3); }
.threed-tag     { background: rgba(255,112,67,0.12);     color: var(--tag-3d);         border: 1px solid rgba(255,112,67,0.3); }
.photoshop-tag  { background: rgba(49,168,255,0.12);     color: var(--tag-photoshop);  border: 1px solid rgba(49,168,255,0.3); }

.projects-info h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.projects-info p {
    font-size: 1.4rem;
    color: #8e88b5;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* --- Tech Tags --- */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tech-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    background: rgba(125, 249, 255, 0.07);
    border: 1px solid rgba(125, 249, 255, 0.2);
    color: #9d95c8;
    transition: 0.3s ease;
}

.tech-tag:hover {
    background: rgba(125, 249, 255, 0.15);
    border-color: var(--main-color);
    color: var(--main-color);
}

/* No results */
.no-results {
    text-align: center;
    font-size: 1.8rem;
    color: #5e5888;
    padding: 4rem 0;
    grid-column: 1 / -1;
}

/* ================================================
   CONTACT SECTION — UPDATED
   ================================================ */
.contact {
    padding-bottom: 8rem;
}

.contact-wrapper {
    display: flex;
    gap: 6rem;
    align-items: flex-start;
    max-width: 110rem;
    margin: 0 auto;
}

/* --- Left: Contact Details --- */
.contact-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.contact-details h3 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-color);
}

.contact-details > p {
    font-size: 1.5rem;
    color: #8e88b5;
    line-height: 1.8;
}

/* Info list */
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1.6rem;
}

.contact-info-icon {
    width: 4.8rem;
    height: 4.8rem;
    border-radius: 1.2rem;
    background: rgba(2, 200, 250, 0.1);
    border: 1px solid rgba(2, 200, 250, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--main-color);
    flex-shrink: 0;
    transition: 0.3s ease;
}

.contact-info-item:hover .contact-info-icon {
    background: rgba(2, 200, 250, 0.2);
    box-shadow: 0 0 1.2rem rgba(2, 200, 250, 0.3);
}

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

.info-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--main-color);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.contact-info-text a,
.contact-info-text span {
    font-size: 1.5rem;
    color: #b5b5b5;
    transition: color 0.3s;
}

.contact-info-text a:hover {
    color: var(--main-color);
}

/* Social icons row */
.contact-socials {
    display: flex;
    gap: 3.4rem;
}

.contact-socials a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    font-size: 1.8rem;
    color: var(--main-color);
    transition: .3s ease;
}

.contact-socials a:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 1.5rem var(--main-color);
    transform: scale(1.1);
}

/* Email button */
.email-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.6rem;
    align-self: flex-start;
}

.email-btn i {
    font-size: 1.6rem;
}

/* --- Right: Contact Form --- */
.contact-form {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

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

.contact-form .textarea-box {
    display: flex;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1.8rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: transparent;
    border-radius: 1.5rem;
    border: 2px solid var(--main-color);
    box-shadow: 0 0 1rem rgba(125, 249, 255, 0.1);
    resize: none;
}

.contact-form textarea {
    height: 18rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    box-shadow: 0 0 2rem rgba(125, 249, 255, 0.4);
}

.contact-form .btn {
    align-self: flex-start;
    padding: 1.5rem 4rem;
}

/* --- Footer Section --- */
.footer {
    background: var(--bg-color);
    padding: 5rem 9%;
    border-top: 1px solid #231b4d;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.footer-social a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.5rem;
    height: 4.5rem;
    background: transparent;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 0 1rem;
    transition: .3s ease;
}

.footer-social a:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 1.5rem var(--main-color);
}

.footer-links { display: flex; gap: 3rem; flex-wrap: wrap; justify-content: center; }

.footer-links a { font-size: 1.6rem; color: #b5b5b5; transition: 0.3s; }
.footer-links a:hover { color: var(--main-color); }

.copyright { font-size: 1.4rem; color: #555170; text-align: center; }

/* --- Responsive Breakpoints --- */
@media (max-width: 991px) {
    html { font-size: 55%; }
    header { padding: 2rem 4%; }
    section { padding: 10rem 4% 2rem; }
    .home { flex-direction: column-reverse; text-align: center; margin-top: 5rem; }
    .home-content p { margin: 0 auto; }
    .btn-group { justify-content: center; }
    .about { flex-direction: column; text-align: center; gap: 5rem; }
    .about-content h2 { text-align: center; }
    .about-content { max-width: 100%; }
    .about-education { max-width: 100%; width: 100%; }
    .education-title { text-align: center; }
    .contact-wrapper { flex-direction: column; gap: 4rem; }
    .email-btn { align-self: center; }
    .contact-form .btn { align-self: center; }
    .projects-container { grid-template-columns: repeat(auto-fill, minmax(28rem, 1fr)); }
    .skills-grid { grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }
}

@media (max-width: 768px) {
    .navbar { display: none; }
    .projects-tabs { gap: 0.8rem; }
    .tab-btn { padding: 0.8rem 1.6rem; font-size: 1.3rem; }
    .projects-container { grid-template-columns: 1fr; }
    .skills-grid { grid-template-columns: 1fr; }
    .skills-stats { gap: 1.5rem; }
    .stat-card { max-width: 100%; }
    .contact-wrapper { flex-direction: column; }
    .contact-details { align-items: center; text-align: center; }
    .contact-info-item { flex-direction: column; text-align: center; }
    .contact-socials { justify-content: center; }
    .about { flex-direction: column; }
    .edu-item { flex-direction: row; }
}

.edu-item {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.edu-icon {
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.4s ease;
}

.edu-item:hover .edu-icon {
    transform: scale(1.12) rotate(-5deg);
}


/* --- Custom Cursor --- */
.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--main-color);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
    box-shadow: 0 0 8px var(--main-color), 0 0 16px var(--main-color);
}

.cursor-ring {
    width: 35px;
    height: 35px;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: all 0.12s ease;
    opacity: 0.6;
    box-shadow: 0 0 10px var(--main-color), inset 0 0 10px rgba(2, 200, 250, 0.1);
}

.cursor-ring.hovering {
    width: 55px;
    height: 55px;
    opacity: 1;
    background: rgba(2, 200, 250, 0.08);
    border-color: var(--accent-glow);
    box-shadow: 0 0 20px var(--accent-glow), inset 0 0 15px rgba(142, 29, 255, 0.15);
}

.cursor-dot.hovering {
    transform: translate(-50%, -50%) scale(1.8);
    background: var(--accent-glow);
    box-shadow: 0 0 12px var(--accent-glow), 0 0 24px var(--accent-glow);
}

* { cursor: none; }