/* Base Styles */
:root {
    --primary-color: #D67D3E; /* Warm Terracotta - Elegant & Modern */
    --primary-light: #E8A87C; /* Soft Peach - Gentle & Aesthetic */
    --primary-dark: #9C4A1A; /* Rich Brown - Strong & Professional */
    --secondary-color: #C38D9E; /* Muted Mauve - Balanced & Stylish */
    --dark-bg: #FAF3E0; /* Soft Cream - Light & Clean */
    --darker-bg: #F5E6CA; /* Warm Beige - Elegant & Neutral */
    --card-bg: #FFFFFF; /* Crisp White - Clean & Minimal */
    --text-light: #2E2E2E; /* Deep Charcoal - High Readability */
    --text-gray: #6D6D6D; /* Smooth Neutral Gray */
    --border-color: #D6C7AE; /* Soft Beige Borders */
    --shadow-color: rgba(214, 125, 62, 0.2); /* Warm Glow Effect */
    --transition: all 0.3s ease-in-out;
    --border-radius: 12px;
    --box-shadow: 0 6px 14px rgba(214, 125, 62, 0.15); /* Elegant Soft Shadows */
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--darker-bg);
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

button {
    cursor: pointer;
    font-family: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-heading {
    text-align: center;
    margin-bottom: 4rem;
}

.section-heading h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
}

.underline {
    height: 4px;
    width: 60px;
    background: var(--primary-color);
    margin: 0 auto;
    position: relative;
}

.underline::before {
    content: '';
    position: absolute;
    height: 4px;
    width: 40px;
    background: var(--secondary-color);
    left: -20px;
    top: 0;
}

.highlight {
    color: var(--primary-light);
    font-weight: 500;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 5%;
    background: var(--darker-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(118, 118, 118, 0.3);
    transition: var(--transition);
}

header.scrolled {
    padding: 0.8rem 5%;
    background: var(--darker-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    /* background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); */
    /* -webkit-background-clip: text; */
    /* background-clip: text; */
    /* -webkit-text-fill-color: transparent; */
    font-family: 'Montserrat', sans-serif;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

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

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

.resume-btn {
    padding: 0.5rem 1.2rem;
    background: var(--primary-color);
    color: white !important;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
}

.resume-btn:hover {
    /* background: var(--primary-dark); */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(235, 166, 37, 0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-light);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 6rem 5% 3rem;
    background: linear-gradient(to bottom, var(--darker-bg), var(--dark-bg));
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-family: 'Montserrat', sans-serif;
}

.hero-text h1 span {
    display: block;
    color: #D67D3E;
    /* background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); */
    /* -webkit-background-clip: text; */
    /* background-clip: text; */
    /* -webkit-text-fill-color: transparent; */
}

.typing-container {
    height: 50px;
    margin: 1.5rem 0;
}

#typing-text {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-dark);
    position: relative;
}

#typing-text::after {
    content: '|';
    right: -10px;
    animation: blink 0.8s infinite;
}

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

.hero-description {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    font-weight: 500;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.primary-btn, .secondary-btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.primary-btn {
    background: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background: #e2772a;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(235, 166, 37, 0.3);
}

.secondary-btn {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

.social-icons {
    display: flex;
    gap: 1.2rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--card-bg);
    color: var(--text-gray);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icons a:hover {
    color: white;
    background: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(235, 166, 37, 0.3);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-card {
    position: relative;
    width: 350px;
    height: 350px;
    border-radius: 30px;
    /* overflow: hidden; */
    display: flex;
    justify-content: center;
    align-items: center;
    /* box-shadow: var(--box-shadow); */
}



.blob {
    position: absolute;
    width: min(530px, 90vw);
    height: min(530px, 90vw);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 43% 57% 70% 30% / 30% 44% 56% 70%;
    animation: blob-animation 8s infinite;
    background-image: url(../images/profile-new1.jpg);
    background-position: top;
    background-size: cover;
}


@keyframes blob-animation {
    0% { border-radius: 43% 57% 70% 30% / 30% 44% 56% 70%; }
    25% { border-radius: 70% 30% 46% 54% / 30% 30% 70% 70%; }
    50% { border-radius: 40% 60% 70% 30% / 60% 40% 60% 40%; }
    75% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    100% { border-radius: 43% 57% 70% 30% / 30% 44% 56% 70%; }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-gray);
    border-radius: 20px;
    position: relative;
    margin: 0 auto 10px;
}

.wheel {
    width: 6px;
    height: 6px;
    background: var(--text-light);
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: wheel 1.5s infinite;
}

@keyframes wheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(20px); }
}

.arrow span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--text-gray);
    border-right: 2px solid var(--text-gray);
    transform: rotate(45deg);
    margin: 0 auto;
    animation: arrow 1.5s infinite;
}

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

/* About Section */
.about {
    padding: 8rem 5%;
    background: linear-gradient(to bottom, var(--dark-bg), var(--darker-bg));
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-cta {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-color));
    top: 0;
    left: 0;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(233, 122, 43, 0.6);
}

.stat-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-grey);
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
}

.stat-title {
    font-size: 1rem;
    color: var(--text-gray);
}

/* Skills Section */
.skills {
    padding: 8rem 5%;
    background: linear-gradient(to bottom, var(--darker-bg), var(--dark-bg));
}

.skills-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: box-shadow 1s ease;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(235, 166, 37, 0.3);
}

.skill-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.skill-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

.progress-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tags span {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    transition: var(--transition);
    border: 1px solid rgb(142, 142, 142);
    cursor: pointer;
}

.skill-tags span:hover {
    background: var(--primary-color);
    color: white;
}

/* Experience Section */
.experience {
    padding: 8rem 5%;
    background: linear-gradient(to bottom, var(--dark-bg), var(--darker-bg));
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
}

.tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--text-light);
}

.tab-content {
    max-width: 900px;
    margin: 0 auto;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 100%;
    background: rgba(132, 104, 104, 0.1);
    left: 0;
    top: 0;
    margin-left: 10px;
}

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

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    left: -30px;
    top: 5px;
    border: 4px solid var(--darker-bg);
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--primary-light);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

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

.badge {
    background: rgba(37, 99, 235, 0.2);
    color: var(--primary-light);
    font-size: 0.8rem;
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    margin-left: 0.5rem;
}

.timeline-content ul {
    margin-bottom: 1.5rem;
}

.timeline-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-gray);
}

.timeline-content ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.timeline-content .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-content .tags span {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
}

/* Projects Section */
.projects {
    padding: 8rem 5%;
    background: linear-gradient(to bottom, var(--darker-bg), var(--dark-bg));
}

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

.filter-btn {
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 1rem;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
}

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.project-content p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tags span {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-light);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--text-light);
}

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

.pagination button {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: var(--card-bg);
    color: var(--text-gray);
    border: none;
    font-size: 1rem;
    transition: var(--transition);
}

.pagination button.active, .pagination button:hover {
    background: var(--primary-color);
    color: white;
}

/* Contact Section */
.contact {
    padding: 8rem 5% 5rem;
    background: linear-gradient(to bottom, var(--dark-bg), var(--darker-bg));
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-10px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-card p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.contact-link {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-light);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.contact-link:hover {
    background: var(--primary-color);
    color: white;
}

.social-links {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    color: var(--text-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: white;
    background: var(--primary-color);
    transform: translateY(-5px);
}

.contact-form-container {
    flex: 1;
    min-width: 300px;
}

#contact-form {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--darker-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

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

/* Footer */
.footer {
    background: var(--darker-bg);
    padding: 3rem 5% 1.5rem;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.footer-logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Montserrat', sans-serif;
}

.footer-content p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    color: var(--text-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    color: white;
    background: var(--primary-color);
    transform: translateY(-5px);
}

.copyright {
    padding: 2rem 0 0;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-cta, .social-icons {
        justify-content: center;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-image {
        width: 100%;
    }

    .profile-card {
        width: 300px;
        height: 300px;
    }

    .blob {
        width: min(400px, 85vw);
        height: min(400px, 85vw);
    }
    
    .contact-content {
        flex-direction: column;
    }
}

@media screen and (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--darker-bg);
        flex-direction: column;
        gap: 0;
        height: 0;
        overflow: hidden;
        transition: var(--transition);
        opacity: 0;
    }
    
    .nav-links.active {
        height: auto;
        opacity: 1;
        padding: 2rem 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        display: block;
        padding: 1rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-description {
        max-width: 100%;
    }

    .section-heading h2 {
        font-size: 2rem;
    }

    .tabs {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .skills-content {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .social-links {
        grid-column: auto;
    }
}

@media screen and (max-width: 576px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    #typing-text {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }

    .hero-cta {
        flex-wrap: wrap;
    }

    .primary-btn, .secondary-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .timeline {
        padding-left: 29px;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }

    .timeline-content h3 {
        font-size: 1.1rem;
    }

    .skills-content {
        grid-template-columns: 1fr;
    }

    .tab-btn {
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        min-width: unset;
    }

    .contact-form-container {
        min-width: unset;
    }

    #contact-form {
        padding: 1.5rem;
    }

    .section-heading {
        margin-bottom: 2.5rem;
    }
}

@media screen and (max-width: 480px) {
    header {
        padding: 0.8rem 4%;
    }

    .hero {
        padding: 5rem 4% 3rem;
    }

    .hero-text h1 {
        margin-top: 40px;
        font-size: 1.8rem;
    }

    #typing-text {
        font-size: 1.1rem;
    }

    .social-icons a {
        width: 46px;
        height: 46px;
        font-size: 1rem;
    }

    .profile-card {
        width: 240px;
        height: 240px;
    }

    .blob {
        margin-top: 80px;
        width: min(320px, 80vw);
        height: min(320px, 80vw);
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .scroll-indicator{
        bottom: -45px;
    }

    .section-heading h2 {
        font-size: 1.7rem;
    }

    .tabs {
        flex-direction: column;
        align-items: center;
    }

    .tab-btn {
        width: 100%;
        max-width: 260px;
        text-align: center;
    }

    .timeline-dot {
        left: -26px;
    }

    .projects-filter {
        gap: 0.6rem;
    }

    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
}
.skill-card, 
.stat-card, 
.timeline-item, 
.project-card, 
.contact-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
}