:root {
    --bg-color: #0f0f1b;
    --primary-color: #00fff7;
    --secondary-color: #ff4f81;
    --text-color: #f1f1f1;
    --card-bg: rgba(255, 255, 255, 0.04);
    --shadow-color: rgba(0, 255, 247, 0.3);
    --header-height: 80px;
    --transition-speed: 0.3s;
    --heading-font: 'Orbitron', sans-serif;
    --body-font: 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

a {
    text-decoration: none;
    color: var(--text-color);
    transition: all var(--transition-speed) ease;
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
    position: relative;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.loader .text {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.loader .dots {
    display: flex;
}

.loader .dots span {
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background-color: var(--primary-color);
    border-radius: 50%;
    animation: loader 1.5s infinite ease-in-out;
}

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

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

@keyframes loader {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(-15px);
        opacity: 0.5;
    }
}

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

/* Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-speed) ease;
}

#navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    transition: all var(--transition-speed) ease;
}

.logo a {
    font-family: var(--heading-font);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: 1px;
}

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

.nav-links ul {
    display: flex;
}

.nav-links li {
    margin-left: 2.5rem;
}

.nav-links a {
    position: relative;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

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

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

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

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

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

/* Scrolled Navbar */
.scrolled {
    background-color: rgba(15, 15, 27, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0;
}

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

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

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.glitch-text {
    position: relative;
    color: var(--text-color);
    animation: glitch 2s infinite;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch-text::before {
    color: var(--primary-color);
    z-index: -1;
    animation: glitch-effect 3s infinite;
}

.glitch-text::after {
    color: var(--secondary-color);
    z-index: -2;
    animation: glitch-effect 2s infinite;
}

@keyframes glitch-effect {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-3px, 3px);
    }
    40% {
        transform: translate(-3px, -3px);
    }
    60% {
        transform: translate(3px, 3px);
    }
    80% {
        transform: translate(3px, -3px);
    }
    100% {
        transform: translate(0);
    }
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    min-height: 2.2rem;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 15px var(--shadow-color);
}

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

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

.btn-secondary:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
}

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

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-color);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 2px;
    margin-top: 10px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(15px);
        opacity: 0;
    }
}

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

.arrow {
    width: 15px;
    height: 15px;
    border-right: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    transform: rotate(45deg);
    margin: -5px;
    animation: arrow 1.5s infinite;
}

.arrow:nth-child(2) {
    animation-delay: 0.2s;
}

.arrow:nth-child(3) {
    animation-delay: 0.4s;
}

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

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    display: inline-block;
    position: relative;
    margin-bottom: 1rem;
}

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

.underline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.section-title:hover .underline::before {
    transform: scaleX(2.5);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px var(--shadow-color);
}

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

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

.image-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 15, 27, 0.8), transparent);
}

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #f1f1f1cc;
}

.personal-info {
    margin: 2rem 0;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.info-item span:first-child {
    min-width: 120px;
    font-weight: 600;
}

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

.info-item a {
    color: var(--primary-color);
}

.info-item a:hover {
    text-decoration: underline;
}

.social-links {
    margin-top: 2rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: var(--card-bg);
    color: var(--text-color);
    border-radius: 50%;
    margin-right: 10px;
    transition: all var(--transition-speed) ease;
}

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

/* Skills Section */
.skills-content {
    max-width: 900px;
    margin: 0 auto;
}

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

.category {
    padding: 0.8rem 1.5rem;
    background-color: var(--card-bg);
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.category:hover,
.category.active {
    background-color: var(--primary-color);
    color: var(--bg-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 247, 0.3);
}

.skills-category {
    display: none;
}

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

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

.skill-item {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-speed) ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

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

.skill-info h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.progress-container {
    position: relative;
}

.progress-bar {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    width: 0;
    transition: width 1.5s ease-in-out;
}

.progress-percentage {
    position: absolute;
    right: 0;
    top: -25px;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

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

.filter-btn {
    padding: 0.8rem 1.5rem;
    background-color: var(--card-bg);
    color: var(--text-color);
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    font: inherit;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--bg-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 247, 0.3);
}

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

.project-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all var(--transition-speed) ease;
    transform-style: preserve-3d;
    perspective: 1000px;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

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

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

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(15, 15, 27, 0.9));
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

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

.overlay-content a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: var(--card-bg);
    color: var(--text-color);
    border-radius: 50%;
    margin: 0 5px;
    transition: all var(--transition-speed) ease;
}

.overlay-content a:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
}

.project-info {
    padding: 1.5rem;
}

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

.project-info p {
    font-size: 0.9rem;
    color: #f1f1f1cc;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.tech-tag {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
}

.loading-projects {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 0;
}

.spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(-50%);
}

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

.timeline-icon {
    position: absolute;
    left: 50%;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--bg-color);
    font-size: 1.2rem;
    transform: translateX(-50%);
    z-index: 1;
    box-shadow: 0 0 15px var(--shadow-color);
}

.timeline-content {
    position: relative;
    width: calc(50% - 50px);
    padding: 1.5rem;
    background-color: var(--card-bg);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-speed) ease;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background-color: var(--card-bg);
    transform: rotate(45deg);
}

.timeline-content.right {
    margin-left: auto;
}

.timeline-content:not(.right)::before {
    right: -10px;
}

.timeline-content.right::before {
    left: -10px;
}

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

.timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.timeline-content p {
    font-size: 0.9rem;
    color: #f1f1f1cc;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition-speed) ease;
}

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

.contact-card-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact-card:hover .contact-card-icon {
    background-color: var(--primary-color);
    color: var(--bg-color);
}

.contact-card-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-card-content p {
    font-size: 0.9rem;
    color: #f1f1f1cc;
}

.contact-social {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-speed) ease;
}

.contact-social:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-social h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

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

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border-radius: 50%;
    transition: all var(--transition-speed) ease;
}

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

.contact-form-container {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group:nth-child(3),
.form-group:nth-child(4),
.contact-form button {
    grid-column: 1 / -1;
}

.form-input-container {
    position: relative;
    overflow: hidden;
}

.form-input-container input,
.form-input-container textarea {
    width: 100%;
    padding: 1rem 0;
    font-size: 1rem;
    color: var(--text-color);
    background-color: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    outline: none;
    font-family: var(--body-font);
}

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

.form-input-container label {
    position: absolute;
    top: 1rem;
    left: 0;
    color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
    transition: all 0.3s ease;
}

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

.input-highlight {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.form-input-container input:focus ~ .input-highlight,
.form-input-container textarea:focus ~ .input-highlight {
    transform: scaleX(1);
}

.form-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(15, 15, 27, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    transform: scale(0.9);
}

.form-message.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.form-message i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.form-message.success i {
    color: #4CAF50;
}

.form-message.error i {
    color: #F44336;
}

.form-message p {
    font-size: 1.2rem;
    text-align: center;
}

/* Footer */
footer {
    background-color: rgba(15, 15, 27, 0.8);
    backdrop-filter: blur(10px);
    padding: 3rem 0 1rem;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo a {
    font-family: var(--heading-font);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: 1px;
}

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

.footer-logo p {
    font-size: 0.9rem;
    color: #f1f1f1cc;
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    justify-content: center;
}

.footer-links a {
    position: relative;
    padding-left: 15px;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
    transform: translateY(-50%);
    transition: all var(--transition-speed) ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-links a:hover::before {
    background-color: var(--secondary-color);
}

.footer-social {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
}

.footer-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border-radius: 50%;
    transition: all var(--transition-speed) ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #f1f1f1cc;
}

.scroll-to-top {
    position: absolute;
    top: 25px;
    right: 50px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--bg-color);
    font-size: 1.2rem;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 0 15px var(--shadow-color);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 15, 27, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--bg-color);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 10px;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.5s ease;
}

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

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    z-index: 10;
}

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

.modal-body {
    padding: 2rem;
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.modal-header h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.modal-image {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem;
}

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

.modal-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.modal-description,
.modal-tech {
    margin-bottom: 2rem;
}

.modal-description h3,
.modal-tech h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.modal-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.modal-links {
    grid-column: 1 / -1;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modal-links .btn {
    min-width: 150px;
}

/* Media Queries */
@media (max-width: 1024px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-icon {
        left: 30px;
        transform: translateX(-50%);
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 60px;
    }
    
    .timeline-content.right {
        margin-left: 60px;
    }
    
    .timeline-content::before {
        left: -10px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links,
    .footer-social {
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: rgba(15, 15, 27, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.5s ease;
        z-index: 999;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links ul {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-links li {
        margin: 1.5rem 0;
    }
    
    .hamburger {
        display: block;
        z-index: 1000;
    }
    
    .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-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .skills-categories,
    .projects-filter {
        flex-direction: column;
        align-items: center;
    }
    
    .category,
    .filter-btn {
        width: 100%;
        text-align: center;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .modal-details {
        grid-template-columns: 1fr;
    }
    
    .modal-links {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .project-card {
        min-height: auto;
    }
    
    .project-img {
        height: 150px;
    }
}

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

.fade-in {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

.delay-5 {
    animation-delay: 0.5s;
}
