/* Base Styles and Variables */
:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4cc9f0;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --text-color: #495057;
    --gray-color: #e9ecef;
    --font-main: 'Poppins', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body.dark-mode {
    --primary-color: #4cc9f0;
    --secondary-color: #4361ee;
    --accent-color: #3f37c9;
    --dark-color: #121212;
    --light-color: #f8f9fa;
    --text-color: #e9ecef;
    --gray-color: #1e1e1e;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: var(--light-color);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

body.dark-mode {
    background-color: var(--dark-color);
    color: var(--text-color);
}

body.dark-mode header {
    background-color: rgba(18, 18, 18, 0.95);
    box-shadow: var(--box-shadow);
}

body.dark-mode header.scrolled {
    background-color: rgba(18, 18, 18, 0.98);
}

body.dark-mode .nav-links a {
    color: var(--text-color);
}

body.dark-mode .hero-section,
body.dark-mode .about-section,
body.dark-mode .resume-section {
    background-color: var(--dark-color);
}

body.dark-mode .portfolio-section,
body.dark-mode .contact-section {
    background-color: var(--gray-color);
}

body.dark-mode .portfolio-info h3 {
    color: var(--primary-color);
}

body.dark-mode .timeline-content h5 {
    color: #bbb;
}

body.dark-mode .portfolio-info p {
    color: #bbb;
}

body.dark-mode .skills span {
    background-color: #2a2a2a;
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-mode .skills span:hover {
    background-color: var(--primary-color);
    color: #fff;
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background-color: var(--gray-color);
    border-color: #444;
    color: var(--text-color);
}

body.dark-mode footer {
    background-color: #0a0a0a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .copyright p,
body.dark-mode .copyright span {
    color: #bbb;
}

body.dark-mode .highlight {
    color: var(--primary-color);
}

body.dark-mode .modal-content {
    background-color: #16161a;
    color: var(--text-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .modal-close {
    color: var(--text-color);
}

body.dark-mode .gallery-item {
    background-color: var(--gray-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-mode .contact-card p,
body.dark-mode .contact-card a {
    color: #bbb;
}

body.dark-mode .contact-card i {
    color: var(--light-color);
}

body.dark-mode .social-icon {
    background-color: var(--dark-color);
    color: #bbb;
}

body.dark-mode .social-icon:hover {
    background-color: var(--primary-color);
    color: #fff;
}

body.dark-mode .modal-description h3,
body.dark-mode .project-details-section h4,
body.dark-mode .project-details-section h5,
body.dark-mode .modal-detail h4,
body.dark-mode .timeline h3,
body.dark-mode .tech-table {
    background-color: var(--gray-color);
}

body.dark-mode .tech-table th {
    background-color: #2a2a2a;
    color: var(--primary-color);
    border-bottom: 1px solid #444;
}

body.dark-mode .tech-table td {
    border-bottom: 1px solid #333;
    color: #bbb;
}

body.dark-mode .tech-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .project-downloads h3,
body.dark-mode .contact-card h3,
body.dark-mode .contact-form h3,
body.dark-mode .social-links h3 {
    color: #64dfdf;
}

body.dark-mode .timeline-date {
    color: #4cc9f0;
}

body.dark-mode .timeline-dot {
    background-color: #4cc9f0;
}

body.dark-mode .timeline-content,
body.dark-mode .contact-card,
body.dark-mode .social-links,
body.dark-mode .contact-form,
body.dark-mode .portfolio-item {
    background-color: var(--gray-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-mode .project-quote {
    border-left: 4px solid #4cc9f0;
    background-color: rgba(76, 201, 240, 0.1);
    color: #e9ecef;
}

body.dark-mode .timeline-container::after {
    background-color: #333;
}

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

ul {
    list-style: none;
}

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

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

section {
    padding: 100px 0;
    position: relative;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.4);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

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

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.2);
}

/* Header and Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

header.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.98);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

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

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    position: relative;
    font-weight: 500;
    transition: var(--transition);
}

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

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

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

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

.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.theme-switch-wrapper {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.theme-switch {
    display: inline-block;
    position: relative;
    width: 60px;
    height: 30px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
}

.slider .fa-sun {
    color: #f39c12;
    font-size: 14px;
}

.slider .fa-moon {
    color: #f5f5f5;
    font-size: 14px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: var(--transition);
    z-index: 2;
}

input:checked+.slider {
    background-color: var(--primary-color);
}

input:checked+.slider:before {
    transform: translateX(30px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.language-switcher {
    margin-right: 20px;
}

.language-switcher select {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    padding: 5px 10px;
    font-size: 0.9rem;
    color: var(--text-color);
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

body.dark-mode .language-switcher select {
    color: var(--text-color);
    border-color: var(--secondary-color);
}

.language-switcher select:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.nav-right {
    display: flex;
    align-items: center;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    margin: 0 auto;
    border-radius: 2px;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--gray-color);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

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

.image-container {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    border: 8px solid var(--light-color);
    box-shadow: var(--box-shadow);
    position: relative;
}

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

.image-container:hover img {
    transform: scale(1.05);
}

.highlight {
    color: var(--primary-color);
}

.profession {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.4;
}

.profession-alt {
    display: block;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--secondary-color);
    opacity: 0.8;
}

.tagline {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

/* Animation for text */
.animate-text {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.animate-text-delay {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards 0.3s;
}

.animate-text-delay-2 {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards 0.6s;
}

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

/* Scroll Down Indicator */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.scroll-down span {
    display: block;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
    transform: rotate(45deg);
    margin: -10px;
    animation: scrollDown 2s infinite;
}

.scroll-down span:nth-child(2) {
    animation-delay: 0.2s;
}

.scroll-down span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes scrollDown {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-20px, -20px);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: rotate(45deg) translate(20px, 20px);
    }
}

/* About Section */
.about-section {
    background-color: var(--light-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    height: 400px;
    /* Fixed height for the slideshow container */
    flex: 1;
    max-width: 400px;
}

.slideshow {
    width: 100%;
    height: 100%;
    position: relative;
}

.slideshow img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slideshow img.active {
    opacity: 1;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.5s ease;
}

.about-image img:hover {
    transform: scale(1.02);
}

.about-text {
    flex: 1.5;
}

.about-text h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.skills-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.skill-category h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.skill-category i {
    color: var(--primary-color);
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skills span {
    background-color: var(--gray-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.skills span:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    transform: translateY(-3px);
}

/* Portfolio Section */
.portfolio-section {
    background-color: var(--gray-color);
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    background-color: transparent;
    border: none;
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    color: var(--text-color);
}

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

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

.portfolio-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--light-color);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
}

.portfolio-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.portfolio-img {
    height: 250px;
    overflow: hidden;
}

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

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

.portfolio-info {
    padding: 25px;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.02));
}

.portfolio-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.portfolio-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.portfolio-links {
    display: flex;
    gap: 15px;
}

.portfolio-link,
.portfolio-detail {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--gray-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.portfolio-link:hover,
.portfolio-detail:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Portfolio Modal */
.portfolio-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.portfolio-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--light-color);
    border-radius: calc(var(--border-radius) * 1.5);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.portfolio-modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-color);
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-body {
    padding: 30px;
}

.modal-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.modal-image {
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    height: auto;
}

.modal-description h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.modal-text {
    line-height: 1.6;
    color: var(--text-color);
}

.project-details-section {
    margin-top: 30px;
}

.project-details-section h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 25px 0 15px;
    border-bottom: 2px solid var(--gray-color);
    padding-bottom: 5px;
}

.project-details-section h5 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin: 20px 0 10px;
}

.project-details-section ul,
.project-details-section ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.project-details-section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.project-details-section li ul {
    margin-top: 8px;
    margin-bottom: 0;
}

.project-quote {
    border-left: 4px solid var(--primary-color);
    background-color: var(--gray-color);
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-style: italic;
}

.project-quote p {
    margin-bottom: 10px;
}

.project-quote p:last-child {
    margin-bottom: 0;
}

.tech-table-container {
    overflow-x: auto;
    margin-bottom: 20px;
}

.tech-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--light-color);
}

.tech-table th,
.tech-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--gray-color);
}

.tech-table th {
    background-color: var(--gray-color);
    font-weight: 600;
    color: var(--dark-color);
}

.tech-table tr:hover td {
    background-color: rgba(0, 0, 0, 0.02);
}

.modal-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.modal-gallery-section {
    margin: 40px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 20px;
}

.modal-gallery {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 20px;
}

.gallery-item {
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.gallery-image {
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gallery-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-image img:hover {
    transform: scale(1.02);
}

.gallery-description {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.6;
    text-align: center;
    padding: 0 10px;
}

.modal-detail h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

/* Resume Section */
.resume-section {
    background-color: var(--light-color);
}

.resume-content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 60px;
}

.resume-preview {
    flex: 1;
    max-width: 400px;
}

.resume-preview img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.5s ease;
}

.resume-preview img:hover {
    transform: scale(1.02);
}

.resume-download {
    flex: 1.5;
}

.resume-download h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.resume-download p {
    margin-bottom: 30px;
}

.timeline h3 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

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

.timeline-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background-color: var(--gray-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: calc(50% - 40px);
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: calc(50% + 40px);
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary-color);
    top: 10px;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -48px;
}

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

.timeline-date {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.timeline-content {
    background-color: var(--gray-color);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-content h4 {
    margin-bottom: 5px;
}

.timeline-content h5 {
    font-weight: 500;
    color: #666;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
    background-color: var(--gray-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.contact-card {
    background-color: var(--light-color);
    padding: 30px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.icon-box {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--light-color);
    font-size: 1.5rem;
}

.contact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.contact-card a {
    transition: var(--transition);
}

.contact-card a:hover {
    color: var(--primary-color);
}

.social-links {
    grid-column: span 2;
    background-color: var(--light-color);
    padding: 30px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
}

.social-links h3 {
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

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

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

.contact-form {
    background-color: var(--light-color);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-form h3 {
    margin-bottom: 30px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--gray-color);
    border-radius: var(--border-radius);
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    background-color: var(--light-color);
    color: var(--dark-color);
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background-color: var(--gray-color);
    border-color: #444;
    color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(94, 96, 206, 0.2);
}

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

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 30px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 20px;
}

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

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

.download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.contact-card p {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Responsive Design */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero-content,
    .about-content,
    .resume-content {
        flex-direction: column;
        text-align: center;
    }

    .about-image,
    .resume-preview {
        margin: 0 auto 40px;
    }

    .skills-container {
        align-items: center;
    }

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

    .contact-info {
        order: 2;
    }

    .contact-form {
        order: 1;
        margin-bottom: 40px;
    }

    .timeline-container::after {
        left: 40px;
    }

    .timeline-item {
        width: calc(100% - 80px);
        left: 80px;
    }

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

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

    .hero-cta {
        justify-content: center;
    }

    .tagline {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    section {
        padding: 80px 0;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--light-color);
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    body.dark-mode .nav-links {
        background-color: #1a1a2e;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .portfolio-link,
    .portfolio-detail {
        width: 44px;
        height: 44px;
    }

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

    .social-links {
        grid-column: span 1;
    }

    .image-container {
        width: 280px;
        height: 280px;
    }

    .modal-content {
        width: 95%;
        max-height: 95vh;
        border-radius: var(--border-radius);
    }

    .modal-body {
        padding: 20px 15px;
    }

    .modal-close {
        font-size: 1.8rem;
        top: 8px;
        right: 12px;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modal-title {
        font-size: 1.4rem;
        padding-right: 40px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .about-image {
        height: 280px;
        max-width: 100%;
        width: 100%;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .profession {
        font-size: 1.4rem;
    }

    .logo {
        font-size: 1.4rem;
    }

    nav {
        padding: 15px 0;
    }

    .nav-links {
        z-index: 900;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 10px 20px;
    }

    .theme-switch-wrapper {
        margin-right: 8px;
    }

    .language-switcher {
        margin-right: 8px;
    }

    .language-switcher select {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    section {
        padding: 60px 0;
    }

    .hero-cta {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .modal-details {
        grid-template-columns: 1fr;
    }

    .image-container {
        width: 220px;
        height: 220px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .modal-body {
        padding: 15px 12px;
    }

    .contact-form {
        padding: 20px 15px;
    }

    .social-icons {
        flex-wrap: wrap;
        gap: 15px;
    }

    .tech-table th,
    .tech-table td {
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    .project-details-section h4 {
        font-size: 1.05rem;
    }

    .about-image {
        height: 240px;
    }

    .filter-btn {
        padding: 7px 14px;
        font-size: 0.85rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .download-buttons {
        flex-direction: column;
    }

    .download-btn {
        text-align: center;
    }
}

@media (max-width: 400px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .image-container {
        width: 180px;
        height: 180px;
    }

    .hero-text h1 {
        font-size: 1.75rem;
    }

    .profession {
        font-size: 1.2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .portfolio-info {
        padding: 15px;
    }

    .portfolio-links {
        gap: 10px;
    }

    .contact-card {
        padding: 20px 15px;
    }

    .achievement-item {
        min-width: 140px;
        padding: 20px 15px;
    }

    .achievement-counter {
        font-size: 2.2rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    nav {
        padding: 12px 0;
    }

    .theme-switch {
        width: 48px;
        height: 26px;
    }

    .slider:before {
        height: 18px;
        width: 18px;
    }

    input:checked+.slider:before {
        transform: translateX(22px);
    }

    .language-switcher select {
        font-size: 0.75rem;
        padding: 3px 6px;
    }
}

/* Animated Background */
.animated-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 0.1;
    animation: float 15s infinite ease-in-out;
}

.shape1 {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -100px;
    animation-delay: 0s;
}

.shape2 {
    width: 400px;
    height: 400px;
    bottom: -200px;
    right: -150px;
    animation-delay: 3s;
}

.shape3 {
    width: 200px;
    height: 200px;
    bottom: 30%;
    left: 10%;
    animation-delay: 6s;
}

.shape4 {
    width: 150px;
    height: 150px;
    top: 30%;
    right: 10%;
    animation-delay: 9s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(30px, 20px) rotate(180deg);
    }

    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

body.dark-mode .shape {
    opacity: 0.15;
}

/* Achievements Section */
.achievements-section {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body.dark-mode .achievements-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.text-center {
    text-align: center;
}

.achievements-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 40px;
    gap: 20px;
}

.achievement-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 30px 20px;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

body.dark-mode .achievement-item {
    background-color: var(--dark-surface);
}

.achievement-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--light-color);
    font-size: 1.8rem;
}

.achievement-counter {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.achievement-item h4 {
    font-size: 1rem;
    font-weight: 500;
    color: #666;
}

body.dark-mode .achievement-item h4 {
    color: #aaa;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Portfolio Item Animation */
.portfolio-item {
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.filter-transition .portfolio-item {
    transition: transform 0.5s ease, opacity 0.5s ease, width 0.5s ease, height 0.5s ease;
}

/* Interactive Timeline */
.timeline-item {
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.5);
    box-shadow: 0 0 0 5px rgba(94, 96, 206, 0.2);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

body.dark-mode .timeline-item:hover .timeline-content {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Skill headings */
.section-title {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.skill-heading {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--dark-color);
}

.skill-heading i {
    margin-right: 10px;
    color: var(--primary-color);
}

/* Dark mode specific overrides */
body.dark-mode .section-title {
    color: #64dfdf;
}

body.dark-mode .skill-heading {
    color: #64dfdf;
}

body.dark-mode .skill-heading i {
    color: #64dfdf;
}

body.dark-mode .skill-heading span {
    color: #64dfdf;
}