/* Base styles */
:root {
    --primary-color: #2563eb;
    --secondary-color: #3b82f6;
    --accent-color: #f97316;
    --dark-color: #1e293b;
    --light-color: #f1f5f9;
    --gray-color: #94a3b8;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --max-width: 1200px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #334155;
    background-color: #fff;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #f4f4f4;
    color: #333;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    background: #e4e4e4;
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.1);
}

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

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

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-outline:hover {
    background: #fff;
    color: var(--primary-color);
}

.btn-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    margin: 0 0.25rem;
}

.btn-circle:hover {
    transform: translateY(-3px) scale(1.05);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Section styles */
.section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section-line {
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 0 auto 1rem;
    display: block;
}

.section-subtitle {
    color: var(--gray-color);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.bg-light {
    background: var(--light-color);
}

.text-center {
    text-align: center;
    margin-top: 2rem;
}

/* Image placeholders for demo */
.image-placeholder {
    display: none;
}

img[src$=".jpg"]:not([src^="data:"]):not([src*="base64"]) {
    min-height: 50px;
    background-color: #f0f0f0;
}

img[src$=".jpg"] + .image-placeholder {
    display: none;
}

img[src$=".jpg"][src^="data:"],
img[src$=".jpg"][src*="base64"],
img:not([src]),
img[src=""],
img[src="#"],
img[src="about:blank"],
img[src^="javascript:"] {
    display: none;
}

img[src$=".jpg"][src^="data:"]:not([src*="base64"]) + .image-placeholder,
img[src$=".jpg"][src=""] + .image-placeholder,
img[src$=".jpg"][src="#"] + .image-placeholder,
img[src$=".jpg"][src="about:blank"] + .image-placeholder,
img[src$=".jpg"][src^="javascript:"] + .image-placeholder,
img:not([src]) + .image-placeholder,
img.broken + .image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    background-color: #f5f5f5;
    color: #888;
    font-size: 0.9em;
    border-radius: 8px;
}

.image-placeholder i {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #555;
}

.image-placeholder.small {
    padding: 15px;
}

.image-placeholder.small i {
    font-size: 1.5em;
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(5px);
    transition: all 0.4s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 2rem;
    position: relative;
}

.nav-links a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

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

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

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

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

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark-color);
    transition: all 0.3s ease;
}

/* Hero section */
.hero {
    height: 100vh;
    position: relative;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    z-index: -1;
}

.hero-background.parallax {
    background-image: 
        linear-gradient(135deg, rgba(37, 99, 235, 0.8) 0%, rgba(59, 130, 246, 0.8) 100%),
        url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-content {
    max-width: 800px;
    padding: 0 1rem;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
    animation: fadeInDown 1s ease;
}

.hero .tagline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s forwards;
}

.hero-buttons {
    margin-bottom: 4rem;
    animation: fadeInUp 1s ease 0.4s forwards;
}

.hero-buttons .btn {
    margin: 0 0.5rem;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: fadeInUp 1s ease 0.8s forwards, bounce 2s ease infinite 2s;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 20px;
    margin: 0 auto 10px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: mouseWheel 1.5s ease infinite;
}

.scroll-text {
    color: #fff;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* About section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 50px;
}

.about-text p {
    margin-bottom: 20px;
    color: #1e293b;
    font-weight: 400;
    font-size: 1.1rem;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
}

.dark-mode .about-text p {
    color: #e2e8f0;
}

.about-buttons {
    margin-top: 2rem;
}

.image-border {
    position: relative;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    z-index: 1;
    overflow: hidden;
}

.image-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    opacity: 0.1;
    z-index: -1;
}

.image-border::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(37, 99, 235, 0.1), transparent 30%);
    animation: rotate 10s linear infinite;
    z-index: -1;
}

/* Skills section updated - Better visuals */
.skills-content {
    margin-top: 3rem;
}

.skills-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
}

.skills-group {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dark-mode .skills-group {
    background-color: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.skills-group:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.dark-mode .skills-group:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.skills-group h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    font-weight: 700;
}

.dark-mode .skills-group h3 {
    color: white;
}

.skills-group h3 i {
    margin-right: 0.8rem;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.dark-mode .skills-group h3 i {
    color: #60a5fa;
}

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

.skill-item {
    padding: 0.75rem 1.25rem;
    background-color: #f1f5f9;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dark-mode .skill-item {
    background-color: #2d3748;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.skill-item:hover {
    background-color: rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.dark-mode .skill-item:hover {
    background-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.skill-item span {
    font-weight: 600;
    color: #334155;
    font-size: 0.95rem;
}

.dark-mode .skill-item span {
    color: #e2e8f0;
}

/* Projects section */
.projects-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    margin: 0.5rem;
    border: none;
    background: transparent;
    color: var(--gray-color);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

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

.filter-btn:hover::after, .filter-btn.active::after {
    width: 30px;
}

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

.project-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dark-mode .project-card {
    background-color: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.dark-mode .project-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.project-image {
    height: 240px;
    background-color: #f5f5f5;
    position: relative;
    overflow: hidden;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(59, 130, 246, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
    transform: translateY(0);
}

.project-info {
    padding: 1.5rem;
}

.project-category {
    display: inline-block;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.dark-mode .project-category {
    color: #60a5fa;
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--dark-color);
    font-weight: 700;
}

.dark-mode .project-info h3 {
    color: white;
}

.project-info p {
    color: #4b5563;
    margin-bottom: 1.2rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.dark-mode .project-info p {
    color: #e2e8f0;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-badge {
    background: #f1f5f9;
    color: #334155;
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dark-mode .tech-badge {
    background-color: #2d3748;
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Current section */
.current-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.experience-highlights {
    margin-top: 20px;
}

.current-item {
    padding: 2.5rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.current-item:hover {
    transform: translateY(-10px);
}

.current-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.current-item:hover i {
    transform: scale(1.1);
    color: var(--secondary-color);
}

.current-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.current-item p {
    color: #4b5563;
}

/* Testimonials */
.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-items {
    position: relative;
    height: 320px;
}

.testimonial-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    transform: translateX(50px);
}

.testimonial-item.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.testimonial-content {
    background: #fff;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    text-align: left;
}

.quote {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4b5563;
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 2rem;
}

.quote::before {
    content: '\201C';
    font-size: 4rem;
    position: absolute;
    left: 0;
    top: -1.5rem;
    color: var(--primary-color);
    opacity: 0.2;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
    flex-shrink: 0;
}

.author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    color: var(--dark-color);
}

.author-info span {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.prev-btn, .next-btn {
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.prev-btn:hover, .next-btn:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.testimonial-dots {
    display: flex;
    margin: 0 1rem;
}

.dot {
    width: 10px;
    height: 10px;
    background: #cbd5e1;
    border-radius: 50%;
    margin: 0 0.3rem;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Timeline for resume */
.timeline-section {
    position: relative;
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline {
    position: relative;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
}

.timeline-wrapper {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 30px;
}

.timeline-wrapper.left {
    left: 0;
    text-align: right;
}

.timeline-wrapper.right {
    left: 50%;
    text-align: left;
}

.timeline-wrapper::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: white;
    border: 4px solid var(--primary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.5);
}

.timeline-wrapper.right::after {
    left: -10px;
}

.timeline-content {
    padding: 25px;
    background-color: white;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.timeline-date {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 10px;
}

.timeline-content h3 {
    color: #1e293b;
    font-size: 1.4rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.dark-mode .timeline-content h3 {
    color: #f1f5f9;
}

.timeline-content h4 {
    color: #334155;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.dark-mode .timeline-content h4 {
    color: #e2e8f0;
}

.timeline-content p {
    margin-bottom: 0;
    color: #475569;
}

.dark-mode .timeline-content p {
    color: #e2e8f0;
}

/* Resume section */
.resume-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.resume-content p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #4b5563;
}

.resume-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Contact section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.contact-info {
    padding: 2rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.contact-info p {
    margin-bottom: 2rem;
    color: #4b5563;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1.2rem;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--dark-color);
}

.contact-item p {
    color: #4b5563;
    margin-bottom: 0;
}

.contact-social {
    display: flex;
    gap: 1rem;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--light-color);
    color: var(--primary-color);
    border-radius: 50%;
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.contact-form {
    background: #fff;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: #4b5563;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-notice {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.form-notice p {
    color: #4b5563;
    margin: 0;
    font-size: 0.95rem;
}

.form-notice a {
    font-weight: 500;
}

.contact-direct {
    margin-top: 1.5rem;
    text-align: center;
}

.contact-direct .btn {
    padding: 0.8rem 1.8rem;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: #fff;
    padding: 4rem 0 1rem;
    text-align: center;
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
}

.social-links {
    display: flex;
    justify-content: center;
}

.social-links a {
    color: #fff;
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 1.5rem 0;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.back-to-top {
    position: absolute;
    right: 30px;
    bottom: 30px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
}

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

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

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-15px) translateX(-50%);
    }
    60% {
        transform: translateY(-7px) translateX(-50%);
    }
}

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

@keyframes rotate {
    100% {
        transform: rotate(1turn);
    }
}

@keyframes skillFill {
    0% {
        width: 0;
    }
    100% {
        width: var(--skill-percent, 0);
    }
}

/* Responsive design */
@media (max-width: 992px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .about-content, 
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .skills-groups {
        grid-template-columns: 1fr;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-wrapper {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-wrapper.right {
        left: 0;
    }
    
    .timeline-wrapper.left::after,
    .timeline-wrapper.right::after {
        left: 21px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 70px 0;
    }
    
    .navbar .container {
        padding: 1rem;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

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

    .section h2 {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    /* Testimonials mobile adjustments */
    .testimonial-items {
        height: 380px;
    }
    
    .testimonial-content {
        padding: 1.5rem;
    }
    
    .testimonial-author {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .author-image {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-buttons .btn {
        margin-bottom: 1rem;
    }
    
    .about-content,
    .contact-content {
        text-align: center;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .contact-item i {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .social-links,
    .contact-social {
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    /* Mobile contact form adjustments */
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-notice {
        padding: 0.8rem;
    }
    
    .skills-list {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

/* Add styling for project timeline display */
.project-timeline {
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    display: inline-block;
    padding: 4px 12px;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 16px;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.dark-mode .project-timeline {
    color: #60a5fa;
    background-color: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Work Experience Section */
.experience-content {
    max-width: 800px;
    margin: 0 auto;
}

.experience-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.experience-card:hover {
    transform: translateY(-5px);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.experience-company h3 {
    font-size: 1.6rem;
    color: var(--dark-color);
    margin-bottom: 0.2rem;
}

.experience-date {
    font-size: 0.9rem;
    color: var(--primary-color);
    padding: 6px 15px;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 20px;
    display: inline-block;
    font-weight: 600;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.dark-mode .experience-date {
    color: #60a5fa;
    background-color: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.experience-title h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-top: 0.2rem;
}

.experience-body {
    margin-bottom: 1.5rem;
}

.experience-body p {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    color: #4b5563;
}

.experience-duties {
    margin-left: 10px;
}

.experience-duties li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    color: var(--dark-color);
    font-size: 0.95rem;
    line-height: 1.6;
    background-color: #f1f5f9;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dark-mode .experience-duties li {
    background-color: #2d3748;
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.experience-duties li i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 16px;
    position: relative;
    top: 2px;
}

.dark-mode .experience-duties li i {
    color: #60a5fa;
}

.experience-footer {
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.experience-feedback {
    font-style: italic;
    color: #666;
    text-align: center;
}

.experience-feedback i {
    color: var(--primary-color);
    font-size: 0.8rem;
    margin: 0 0.3rem;
}

@media (max-width: 768px) {
    .experience-header {
        flex-direction: column;
    }
    .experience-title {
        margin-top: 1rem;
    }
}

/* Experience Section New Styles */
.experience-company-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.company-name {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.05rem;
}

.dark-mode .company-name {
    color: #60a5fa;
}

/* Task bullet points */
.highlight-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    padding: 10px 15px;
    background-color: #f1f5f9;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dark-mode .highlight-item {
    background-color: #2d3748;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.highlight-item:hover {
    background-color: rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.dark-mode .highlight-item:hover {
    background-color: rgba(59, 130, 246, 0.2);
}

.highlight-item i {
    color: var(--primary-color);
    margin-right: 12px;
    font-size: 16px;
    flex-shrink: 0;
}

.dark-mode .highlight-item i {
    color: #60a5fa;
}

.highlight-item span {
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.5;
}

.dark-mode .highlight-item span {
    color: #e2e8f0;
}

/* Add styling for the testimonial image placeholders to always show */
.author-image .image-placeholder.small {
    display: flex;
    width: 60px;
    height: 60px;
    background-color: #f0f0f0;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
}

.author-image .image-placeholder.small i {
    font-size: 1.5rem;
    color: #94a3b8;
} 