/* Global Styles: Defines root variables and base styles */
:root {
    --primary-color: #4361ee;
    --secondary-color: #1a1a2e;
    --accent-color: #3a0ca3;
    --light-color: #f8f9fa;
    --dark-color: #14213d;
    --text-color: #4a4a4a;
    --text-light: #6c757d;
    --bg-light: #f1f8ff;
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 10px;
    --gradient: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    --technical-color: #ff6f61;
    --professional-color: #6f42c1;
    --background-color: #f9f9f9;
    --glow-color: rgba(67, 97, 238, 0.5);
    --error-color: #e63946;
    --glass-bg: rgba(255, 255, 255, 0.15); /* For frosted glass effect */
}

/* Reset default margins and paddings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Smooth scrolling behavior */
html {
    scroll-behavior: smooth;
}

/* Base body styles */
body {
    background-color: #fff;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, opacity 0.3s ease;
    z-index: 9999;
    opacity: 0;
    mix-blend-mode: difference;
}

/* Cursor hover effects */
.portfolio-item:hover ~ .custom-cursor,
.skill-item:hover ~ .custom-cursor,
.btn:hover ~ .custom-cursor {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.5);
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--dark-color);
    line-height: 1.2;
}

h2.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

h2.section-title span {
    color: var(--primary-color);
}

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

p {
    margin-bottom: 15px;
}

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

/* Button Styles */
.btn {
    display: inline-block;
    padding: 14px 35px;
    background: var(--gradient);
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 0 0 transparent;
    will-change: transform, box-shadow;
}

.btn:hover {
    background: linear-gradient(135deg, #3a0ca3 0%, #4361ee 100%);
    transform: translateY(-3px);
    box-shadow: 0 0 20px var(--glow-color);
}

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

.btn.secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 20px var(--glow-color);
}

.btn.ripple::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.4s ease;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.btn.ripple:active::after {
    transform: translate(-50%, -50%) scale(1);
}

.btn:active {
    transform: translateY(1px) !important;
}

img {
    max-width: 100%;
    height: auto;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

img.lazy-load {
    opacity: 0;
}

img.lazy-load.loaded {
    opacity: 1;
}

/* Error Message */
.error-message {
    text-align: center;
    color: var(--error-color);
    background-color: rgba(230, 57, 70, 0.1);
    padding: 20px;
    border-radius: var(--border-radius);
    margin: 20px 0;
    font-size: 1rem;
    font-weight: 500;
    animation: fadeIn 0.5s ease;
}

/* Header Styles */
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);
    transition: var(--transition);
}

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

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

.logo a {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark-color);
}

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

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links li a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-color);
    position: relative;
}

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

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

.menu-toggle, .close-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
}

.dark-mode-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--dark-color);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background: var(--bg-light);
    padding: 20px;
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
}

.hero-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.hero-text h1 {
    font-size: 3.5rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.hero-text h3 {
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.hero-text p {
    max-width: 500px;
    margin-bottom: 25px;
}

.typed-text {
    color: var(--primary-color);
    font-weight: 700;
}

.cursor {
    display: inline-block;
    width: 4px;
    height: 1.5rem;
    background-color: var(--primary-color);
    vertical-align: middle;
    animation: blink 1s infinite;
}

.cursor.typing {
    animation: none;
}

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

.hero-btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.resume-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3a0ca3 0%, #4361ee 100%);
    z-index: -1;
    transition: transform 0.5s ease;
    transform: scaleX(0);
    transform-origin: right;
}

.resume-btn:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.contact-btn {
    animation: gentlePulse 3s infinite;
}

@keyframes gentlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-image {
    flex: 0 0 300px;
}

.image-wrapper {
    width: 350px;
    height: 350px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    position: relative;
    transition: var(--transition);
    will-change: transform;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.image-wrapper img.fade-out {
    opacity: 0;
    transform: scale(0.95);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.2) 0%, rgba(58, 12, 163, 0.2) 100%);
    z-index: 1;
    transition: var(--transition);
}

.hero-image:hover .image-wrapper {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.hero-image:hover .image-overlay {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1) 0%, rgba(58, 12, 163, 0.1) 100%);
}

/* Frosted Glass Effect for Hero Image Transition */
.image-wrapper.glass-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); /* For Safari */
    z-index: 2;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.image-wrapper.glass-effect::before {
    opacity: 1;
}

.image-wrapper.glass-effect {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.image-wrapper.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--primary-color);
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 12px;
    display: block;
}

.arrow-down {
    width: 24px;
    height: 24px;
    border: 2px solid var(--primary-color);
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    margin: 0 auto;
}

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

/* Skills Section */
.skills-section {
    background-color: var(--bg-light);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

.skill-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.skill-bars {
    margin-top: 20px;
}

.bar {
    margin-bottom: 15px;
}

.bar .info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.bar .info span {
    font-weight: 500;
    color: var(--dark-color);
}

.progress-line {
    height: 10px;
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 5px;
    position: relative;
}

.progress-line span {
    position: absolute;
    height: 100%;
    left: 0;
    top: 0;
    background-color: var(--primary-color);
    border-radius: 5px;
    width: 0;
    transition: width 1s ease;
}

/* Skills Preview */
.skills-preview {
    margin: 20px auto;
    padding: 15px;
    background: var(--background-color);
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    font-family: 'Cosmic Sans MS', cursive;
}

.skills-preview h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    text-align: center;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-family: 'Cosmic Sans MS', cursive;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    justify-items: center;
    padding: 0 10px;
}

.skill-item {
    position: relative;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    perspective: 1000px;
    font-family: 'Cosmic Sans MS', cursive;
}

.skill-item:hover {
    transform: translateY(-5px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.skill-item:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.circular-progress {
    width: 80px;
    height: 80px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circular-progress svg {
    transform: rotate(-90deg);
}

.circular-progress .background-circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 8;
}

.circular-progress .progress-circle {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 226.2;
    stroke-dashoffset: 226.2;
    transition: stroke-dashoffset 1.5s ease-out;
}

.technical .progress-circle {
    stroke: var(--technical-color);
}

.professional .progress-circle {
    stroke: var(--professional-color);
}

.circular-progress .inner-circle {
    fill: #fff;
}

.circular-progress .percentage-text {
    position: absolute;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-color);
    text-align: center;
}

.skill-item span {
    display: block;
    font-size: 0.8rem;
    color: var(--dark-color);
    margin-top: 6px;
    font-weight: 500;
    max-width: 90px;
}

.tooltip {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.skill-item:hover .tooltip,
.skill-item:focus .tooltip {
    opacity: 1;
}

/* Dark Mode Styles for Skills Preview */
.dark-mode .skills-preview {
    background: var(--light-color);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.dark-mode .skills-preview h3 {
    color: var(--primary-color);
}

.dark-mode .circular-progress .background-circle {
    stroke: #4a4a4a;
}

.dark-mode .circular-progress .inner-circle {
    fill: var(--light-color);
}

.dark-mode .circular-progress .percentage-text {
    color: var(--text-color);
}

.dark-mode .skill-item span {
    color: var(--text-color);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1002;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: var(--border-radius);
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: bounceIn 0.5s ease;
    position: relative;
}

@keyframes bounceIn {
    0% { transform: scale(0.7); opacity: 0; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.modal-content h4 {
    margin: 0 0 10px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.modal-content .percentage {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.modal-content p {
    margin: 0 0 15px;
    color: var(--dark-color);
    font-size: 1rem;
}

.modal-content button {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.modal-content button:hover {
    background: var(--secondary-color);
    box-shadow: 0 0 15px var(--glow-color);
}

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

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

/* Portfolio Section */
.portfolio-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    margin: 0 10px 10px;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.filter-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.filter-btn:hover::after {
    left: 100%;
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--glow-color);
}

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

.portfolio-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 250px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.portfolio-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--glow-color);
}

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

.portfolio-item:hover img {
    transform: scale(1.1);
    filter: blur(2px);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(67, 97, 238, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    padding: 20px;
    text-align: center;
    color: #fff;
}

.portfolio-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: var(--transition);
}

.portfolio-overlay p {
    font-size: 0.9rem;
    transform: translateY(20px);
    transition: var(--transition);
    transition-delay: 0.1s;
}

.portfolio-link {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.portfolio-link a, .portfolio-link button {
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    transform: translateY(20px);
    transition: var(--transition);
    transition-delay: 0.2s;
    border: none;
    cursor: pointer;
}

.portfolio-link button:hover {
    transform: translateY(0) scale(1.1);
    box-shadow: 0 0 15px var(--glow-color);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p,
.portfolio-item:hover .portfolio-overlay a,
.portfolio-item:hover .portfolio-overlay button {
    transform: translateY(0);
}

/* Footer Styles */
footer {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 30px 0;
}

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

.footer-logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

.footer-logo a span {
    color: var(--primary-color);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px 0;
}

.footer-links a {
    color: #ccc;
    margin: 0 15px;
    transition: var(--transition);
}

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

.footer-copyright p {
    color: #aaa;
    font-size: 0.9rem;
}

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

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

.back-to-top:hover {
    background: linear-gradient(135deg, #3a0ca3 0%, #4361ee 100%);
    transform: translateY(-5px);
}

/* Modal Styles */
.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    transform: scale(0.7);
    transition: transform 0.5s ease;
}

.modal.show .modal-content {
    transform: scale(1);
    animation: bounceIn 0.5s ease;
}

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

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

.modal-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

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

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

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f1f1f1;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--dark-color);
    transition: var(--transition);
}

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

/* Project Modal Styles */
.project-modal-content img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.project-modal-content h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.project-modal-content p {
    font-size: 1rem;
    margin-bottom: 20px;
}

.project-modal-technologies h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.project-modal-technologies ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-modal-technologies li {
    background-color: var(--bg-light);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--dark-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.project-modal-technologies li:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 0 10px var(--glow-color);
}

.project-modal-technologies li::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.project-modal-technologies li:hover::after {
    left: 100%;
}

.project-modal-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.project-modal-links a {
    min-width: 120px;
    text-align: center;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.project-modal-links a:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--glow-color);
}

/* Dark Mode Styles */
.dark-mode {
    --primary-color: #4895ef;
    --secondary-color: #0f0f1a;
    --light-color: #1a1a2e;
    --dark-color: #f8f9fa;
    --text-color: #e2e2e2;
    --text-light: #b8b8b8;
    --bg-light: #0f0f1a;
    --error-color: #ff6b6b;
    --glass-bg: rgba(255, 255, 255, 0.1); /* Adjust for dark mode */
    background-color: #0f0f1a;
}

.dark-mode .container,
.dark-mode .modal-content,
.dark-mode .progress-line,
.dark-mode .form-group input,
.dark-mode .form-group textarea {
    background-color: var(--light-color);
    border-color: #2d2d42;
    color: var(--text-color);
}

.dark-mode .circular-progress .inner-circle {
    fill: var(--light-color);
}

.dark-mode .project-modal-technologies li {
    background-color: #2d2d42;
}

.dark-mode .error-message {
    background-color: rgba(255, 107, 107, 0.1);
}

.dark-mode .image-wrapper.glass-effect::before {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        margin-bottom: 40px;
    }

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

    .hero-image {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .menu-toggle, .close-menu {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
    }

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

    .nav-links li {
        margin: 15px 0;
    }

    .close-menu {
        position: absolute;
        top: 30px;
        right: 30px;
    }

    .dark-mode-toggle {
        position: absolute;
        top: 30px;
        left: 30px;
    }

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

    .hero-text h3 {
        font-size: 1.5rem;
    }

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

@media (max-width: 600px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 8px;
    }

    .circular-progress {
        width: 65px;
        height: 65px;
    }

    .circular-progress svg {
        width: 65px;
        height: 65px;
    }

    .circular-progress .percentage-text {
        font-size: 0.8rem;
    }

    .skill-item span {
        font-size: 0.7rem;
    }

    .project-modal-content img {
        height: 150px;
    }

    .project-modal-links {
        flex-direction: column;
        align-items: center;
    }

    .project-modal-links a {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }

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

    .hero-text h3 {
        font-size: 1.2rem;
    }

    .hero-btns {
        flex-direction: column;
    }

    .btn.secondary {
        margin-top: 15px;
    }

    .portfolio-filter {
        justify-content: flex-start;
    }

    .filter-btn {
        margin: 0 10px 10px 0;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .image-wrapper.glass-effect::before {
        transition: none !important;
    }
}