/* ===== GLOBAL STYLES ===== */
:root {
    --primary-color: #ff1f44;
    --primary-dark: #c41835;
    --primary-light: #ff4d6d;
    --dark-color: #121212;
    --darker-color: #0a0a0a;
    --light-color: #f4f4f4;
    --gray-color: #888;
    --transition: all 0.3s ease;
    --glow: 0 0 10px var(--primary-color);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, var(--darker-color) 0%, #1a0a0f 100%);
    color: var(--light-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

a {
    text-decoration: none;
    color: var(--light-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    color: var(--light-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

section {
    padding: 100px 5%;
    min-height: 100vh;
}

/* ===== PARTICLES BACKGROUND ===== */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

/* ===== CUSTOM CURSOR ===== */
.cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
    transition: transform 0.2s ease;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    opacity: 0.7;
}

.cursor-follower {
    position: fixed;
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.5;
}

/* ===== NAVIGATION BAR ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    background: rgba(10, 10, 10, 0.8);
}

.navbar.scrolled {
    padding: 1rem 5%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo a {
    position: relative;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light), var(--primary-color));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
    transition: all 0.6s ease;
    padding: 8px 16px;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    box-shadow: 
        0 0 5px rgba(255, 31, 68, 0.2),
        inset 0 0 5px rgba(255, 31, 68, 0.1);
}

.logo a:hover {
    transform: scale(1.05) rotate(360deg);
    filter: drop-shadow(0 0 8px var(--primary-color));
    box-shadow: 
        0 0 15px rgba(255, 31, 68, 0.4),
        inset 0 0 15px rgba(255, 31, 68, 0.2);
}

.logo a::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    opacity: 0.3;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.logo a:hover::before {
    opacity: 0.7;
}

.logo a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 31, 68, 0.1), transparent);
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logo a:hover::after {
    opacity: 1;
}

.logo-polygon {
    width: 36px;
    height: 36px;
    position: relative;
    transform-style: preserve-3d;
    animation: polygonRotate 4s linear infinite;
    perspective: 1000px;
}

.logo-polygon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 50%, var(--primary-dark) 100%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transform: translateZ(0px);
    box-shadow: 
        0 0 15px rgba(255, 31, 68, 0.6),
        0 4px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.logo-polygon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--primary-light) 100%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transform: translateZ(-4px);
    filter: brightness(0.7);
    box-shadow: 
        0 0 20px rgba(255, 31, 68, 0.4),
        0 8px 16px rgba(0, 0, 0, 0.4);
}

.logo-polygon .inner-polygon {
    position: absolute;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    background: linear-gradient(135deg, var(--darker-color) 0%, #1a0a0f 50%, var(--dark-color) 100%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transform: translateZ(2px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 12px;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(255, 31, 68, 0.8);
}

@keyframes polygonRotate {
    0% {
        transform: rotateY(0deg) rotateX(0deg) rotateZ(0deg);
    }
    25% {
        transform: rotateY(90deg) rotateX(15deg) rotateZ(0deg);
    }
    50% {
        transform: rotateY(180deg) rotateX(0deg) rotateZ(0deg);
    }
    75% {
        transform: rotateY(270deg) rotateX(-15deg) rotateZ(0deg);
    }
    100% {
        transform: rotateY(360deg) rotateX(0deg) rotateZ(0deg);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.nav-links {
    display: flex;
    justify-content: space-between;
    width: 50%;
}

.nav-links li a {
    color: var(--light-color);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.nav-links li a i {
    font-size: 0.9em;
    opacity: 0.8;
    transition: var(--transition);
}

.nav-links li a:hover i {
    opacity: 1;
    transform: scale(1.1);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary-color);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--light-color);
    margin: 5px;
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding-top: 130px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    animation: fadeIn 1s ease-in-out;
}

.profile-image {
    margin-bottom: 2rem;
}

.image-container {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    border: 4px solid var(--primary-color);
    box-shadow: var(--glow);
    transition: var(--transition);
}

.image-container:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--primary-color);
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.name {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 5px rgba(255, 31, 68, 0.3);
}

.tagline {
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: 1rem;
}

.spacer {
    height: 30px;
    width: 100%;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--primary-color);
    color: var(--light-color);
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-dark);
    transition: var(--transition);
    z-index: -1;
}

.cta-button:hover {
    box-shadow: var(--glow);
    transform: translateY(-3px);
}

.cta-button:hover::before {
    width: 100%;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding-top: 120px;
}

.bio-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5rem;
    gap: 3rem;
}

.bio-text {
    flex: 1;
}

.bio-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.bio-text p {
    margin-bottom: 1.5rem;
    color: var(--gray-color);
}

.facts-container {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.fact-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: var(--transition);
}

.fact-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 31, 68, 0.1);
    box-shadow: var(--glow);
}

.fact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.fact-item h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.photo-collage {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 1rem;
}

.collage-item {
    overflow: hidden;
    border-radius: 10px;
    transition: var(--transition);
}

.collage-item:hover {
    transform: scale(1.05);
    box-shadow: var(--glow);
}

.collage-item:nth-child(1) {
    grid-column: 1 / 3;
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.collage-item:hover img {
    transform: scale(1.1);
}

/* Timeline */
.timeline-container {
    padding: 2rem 0;
}

.timeline-container h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-color);
}

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

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    animation: fadeIn 1s ease-in-out;
}

.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(--primary-color);
    border-radius: 50%;
    z-index: 1;
    box-shadow: var(--glow);
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-date {
    position: absolute;
    top: 15px;
    right: -150px;
    color: var(--primary-color);
    font-weight: bold;
}

.timeline-item:nth-child(even) .timeline-date {
    left: -150px;
    right: auto;
    text-align: right;
}

.timeline-content {
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: var(--transition);
}

.timeline-content:hover {
    background: rgba(255, 31, 68, 0.1);
    box-shadow: var(--glow);
    transform: translateY(-5px);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* CTA Container for About Page */
.cta-container {
    text-align: center;
    margin: 3rem 0;
    animation: fadeIn 1s ease-in-out;
}

/* ===== PROJECTS SECTION ===== */
.projects-section {
    padding-top: 120px;
}

.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    margin: 0 0.5rem 1rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--light-color);
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--light-color);
    box-shadow: var(--glow);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--glow);
}

.project-img {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tech-stack span {
    font-size: 0.8rem;
    padding: 0.2rem 0.8rem;
    margin: 0 0.5rem 0.5rem 0;
    background: rgba(255, 31, 68, 0.2);
    border-radius: 20px;
    color: var(--light-color);
}

.project-info p {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.project-links {
    display: flex;
    justify-content: space-between;
}

.project-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--light-color);
    border-radius: 5px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.project-btn:hover {
    background: var(--primary-color);
    color: var(--light-color);
    box-shadow: var(--glow);
}

/* ===== SKILLS SECTION ===== */
.skills-section {
    padding-top: 120px;
}

.skills-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.category-btn {
    padding: 0.5rem 1.5rem;
    margin: 0 0.5rem 1rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--light-color);
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary-color);
    color: var(--light-color);
    box-shadow: var(--glow);
}

.skills-category {
    display: none;
}

.skills-category.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 31, 68, 0.1);
    box-shadow: var(--glow);
}

.skill-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.skill-icon img {
    width: 60px;
    height: 60px;
    margin: 0 auto;
}

.skill-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--light-color);
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    position: relative;
    animation: skillFill 2s ease-in-out;
}

.skill-percentage {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* ===== BLOG SECTION ===== */
.blog-section {
    padding-top: 120px;
}

.featured-post {
    display: flex;
    margin-bottom: 4rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
}

.featured-post:hover {
    transform: translateY(-10px);
    box-shadow: var(--glow);
}

.featured-img {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.featured-post:hover .featured-img img {
    transform: scale(1.1);
}

.post-date {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-color);
    color: var(--light-color);
    padding: 0.5rem;
    border-radius: 5px;
    text-align: center;
    box-shadow: var(--glow);
}

.post-date .day {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.post-date .month {
    font-size: 0.8rem;
    text-transform: uppercase;
}

.featured-content {
    flex: 1;
    padding: 2rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.post-tags span {
    font-size: 0.8rem;
    padding: 0.2rem 0.8rem;
    margin: 0 0.5rem 0.5rem 0;
    background: rgba(255, 31, 68, 0.2);
    border-radius: 20px;
    color: var(--light-color);
}

.featured-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.featured-content p {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
}

.read-more {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.read-more i {
    margin-left: 0.5rem;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--primary-light);
}

.read-more:hover i {
    transform: translateX(5px);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--glow);
}

.blog-img {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-img img {
    transform: scale(1.1);
}

.blog-content {
    padding: 1.5rem;
}

.blog-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.blog-content p {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pagination a {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.3rem;
    border: 1px solid var(--primary-color);
    color: var(--light-color);
    border-radius: 5px;
    transition: var(--transition);
}

.pagination a.active,
.pagination a:hover {
    background: var(--primary-color);
    color: var(--light-color);
    box-shadow: var(--glow);
}

.pagination a.next {
    display: flex;
    align-items: center;
}

.pagination a.next i {
    margin-left: 0.5rem;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding-top: 120px;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
}

.contact-info {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.contact-info p {
    color: var(--gray-color);
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    margin-top: 0.3rem;
}

.info-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.info-item p {
    color: var(--gray-color);
    margin-bottom: 0;
}

.social-links {
    display: flex;
    margin: 2rem 0;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 1rem;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--glow);
}

.calendly-widget {
    margin: 2rem 0;
}

.calendly-widget h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.calendly-btn,
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: var(--light-color);
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
}

.calendly-btn:hover,
.whatsapp-btn:hover {
    background: var(--primary-dark);
    box-shadow: var(--glow);
    transform: translateY(-3px);
}

.whatsapp-btn {
    background: #25D366;
    margin-top: 1rem;
}

.whatsapp-btn:hover {
    background: #128C7E;
}

.whatsapp-btn i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.contact-form {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 0;
    font-size: 1rem;
    color: var(--light-color);
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--gray-color);
    outline: none;
    transition: var(--transition);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 0;
    font-size: 1rem;
    color: var(--gray-color);
    pointer-events: none;
    transition: var(--transition);
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:valid ~ label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.form-group .focus-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.form-group input:focus ~ .focus-border,
.form-group textarea:focus ~ .focus-border {
    width: 100%;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 2rem;
    background: var(--primary-color);
    color: var(--light-color);
    border: none;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: var(--primary-dark);
    box-shadow: var(--glow);
    transform: translateY(-3px);
}

.submit-btn i {
    margin-left: 0.5rem;
    transition: var(--transition);
}

.submit-btn:hover i {
    transform: translateX(5px);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes skillFill {
    from {
        width: 0;
    }
    to {
        width: var(--skill-width);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 1024px) {
    .nav-links {
        width: 60%;
    }
    
    .bio-container,
    .contact-container {
        flex-direction: column;
    }
    
    .featured-post {
        flex-direction: column;
    }
    
    .featured-img {
        height: 300px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-dot {
        left: 20px;
        right: auto;
    }
    
    .timeline-item:nth-child(even) .timeline-dot {
        left: 20px;
    }
    
    .timeline-date {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        margin-bottom: 10px;
        display: inline-block;
    }
    
    .timeline-item:nth-child(even) .timeline-date {
        left: auto;
        text-align: left;
    }
}

@media screen and (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    .navbar {
        padding: 1rem 5%;
    }
    
    .nav-links {
        position: absolute;
        right: 0;
        top: 70px;
        height: calc(100vh - 70px);
        background: rgba(10, 10, 10, 0.95);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        z-index: 999;
    }
    
    .nav-links li {
        opacity: 0;
    }
    
    .burger {
        display: block;
    }
    
    .nav-active {
        transform: translateX(0%);
    }
    
    .name {
        font-size: 3rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .facts-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .projects-grid,
    .skills-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-container,
    .skills-categories {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn,
    .category-btn {
        width: 80%;
        margin-bottom: 0.5rem;
    }
}

@media screen and (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }
    
    .name {
        font-size: 2.5rem;
    }
    
    .image-container {
        width: 150px;
        height: 150px;
    }
    
    .nav-links {
        width: 70%;
    }
    
    .timeline-content {
        padding: 15px;
    }
    
    .timeline-item {
        padding-left: 50px;
    }
    
    .timeline::after {
        left: 21px;
    }
    
    .timeline-dot {
        left: 10px;
    }
    
    .timeline-item:nth-child(even) .timeline-dot {
        left: 10px;
    }
}

/* ===== SLIDE IN ANIMATION ===== */
@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}