/* CSS Variables for Theming */
:root {
    /* Light Theme Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --text-primary: var(--text-color, #333333);
    --text-secondary: var(--text-light, #666666);
    --accent-color: var(--primary-color, #4361ee);
    --accent-gradient: linear-gradient(135deg, var(--gradient-start, #4361ee) 0%, var(--gradient-end, #3a0ca3) 100%);
    --border-color: var(--border-color, #dee2e6);
    --shadow-color: var(--shadow-color, rgba(0, 0, 0, 0.1));
    --card-bg: var(--card-bg, #ffffff);
    --card-shadow: var(--card-shadow, 0 10px 30px rgba(0, 0, 0, 0.07));
    --section-padding: 100px 0;
    --section-title-color: #000000;
}

/* Dark Theme Colors */
html[data-theme="dark"] {
    --primary-color: #4cc9f0;
    --primary-rgb: 76, 201, 240;
    --primary-dark: #3a86ff;
    --accent-color: #f72585;
    --accent-rgb: 247, 37, 133;
    --text-color: #4cc9f0;
    --text-light: #a0aec0;
    --bg-color: #121212;
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --text-primary: #4cc9f0;
    --text-secondary: #a0aec0;
    --border-color: #2d3748;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --card-bg: #1a1a1a;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --gradient-start: #4cc9f0;
    --gradient-end: #f72585;
    --accent-gradient: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    --section-title-color: #ffffff;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-primary);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: var(--accent-color);
}

/* Section Styles */
section {
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    font-size: 2.5rem;
    color: var(--section-title-color);
    width: 100%;
    display: block;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    transform: none !important;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--nav-bg, rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px var(--shadow-color);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 5px 20px var(--shadow-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content:space-around;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--logo-color, var(--accent-color));
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    padding: 5px 10px;
    z-index: 5;
}

.logo::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    padding: 2px;
    background: var(--accent-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo:hover::before {
    opacity: 1;
}

.logo-name {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    position: relative;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(var(--primary-rgb), 0.3);
}

.logo-name::after {
    content: 'ALJESH';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0.3;
    filter: blur(4px);
    transform: translateZ(-1px);
    animation: pulseLogo 3s infinite alternate;
}

.logo-title {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.4rem;
    opacity: 0.9;
    position: relative;
    transform: translateZ(0);
}

.logo-title::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

.logo:hover .logo-title::before {
    width: 100%;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: var(--nav-text, var(--text-primary)) !important;
    padding: 0.5rem 1rem;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 10px;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link:hover::before {
    width: calc(100% - 20px);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-primary);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0.03;
    clip-path: polygon(30% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    background-image: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: titleReveal 1.5s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-subtitle {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    animation: subtitleReveal 1.5s 0.5s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.typed-text {
    color: var(--accent-color);
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: buttonsReveal 1.5s 1s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    z-index: -1;
    transition: all 0.5s ease;
}

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

.btn-outline::before {
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
}

.btn-outline:hover {
    color: white;
}

.btn-outline:hover::before {
    transform: scaleX(1);
    opacity: 1;
}

.btn:not(.btn-outline) {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
}

.btn:not(.btn-outline):hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(67, 97, 238, 0.4);
}

/* About Section */
.about-content {
    position: relative;
    overflow: visible;
    perspective: 1000px;
    transform-style: preserve-3d;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.5s ease;
}

.about-image .image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    transition: transform 0.7s ease-in-out;
}

.about-image:hover .image-wrapper {
    transform: scale(1.03);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid transparent;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--accent-color) 0%, transparent 50%, var(--accent-color) 100%) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transform: scale(1.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.about-image:hover::before {
    opacity: 0.7;
    transform: scale(1);
}

.about-image::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: var(--accent-gradient);
    filter: blur(80px);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: all 0.7s ease;
}

.about-image:hover::after {
    opacity: 0.4;
    transform: translate(-20px, 20px);
}

.image-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-radius: 20px;
    border-image: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)) 1;
    transform: scale(0.9);
    opacity: 0.7;
    transition: all 0.5s ease;
}

.about-image:hover .image-decoration {
    transform: scale(1.05);
    opacity: 1;
}

.about-image img {
    width: 100%;
    height: auto;
    vertical-align: middle;
    transform: scale(1);
    transition: all 0.5s ease;
}

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

.about-text {
    flex: 2;
    color: var(--text-color, #4cc9f0);
    line-height: 1.8;
    transition: color 0.3s ease;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
}

.about-text p {
    position: relative;
    z-index: 1;
}

.about-text::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background: var(--accent-gradient);
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.1;
    top: -20px;
    left: -20px;
    z-index: 0;
    transition: all 0.8s ease;
}

.about-text:hover::before {
    transform: translate(30px, 30px);
    opacity: 0.2;
}

/* Animated highlight for text */
.about-text p {
    background-image: linear-gradient(transparent 0%, transparent 90%, rgba(var(--accent-rgb), 0.1) 90%, rgba(var(--accent-rgb), 0.1) 100%);
    background-repeat: no-repeat;
    background-size: 0% 100%;
    transition: background-size 1s ease;
}

.about-text:hover p {
    background-size: 100% 100%;
}

/* Skills Section */
.skills-category {
    margin-bottom: 60px;
    position: relative;
}

.skills-category h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--text-color, #4cc9f0);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.skills-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-gradient);
    transition: width 0.5s ease;
}

.skills-category h3:hover::after {
    width: 100%;
}

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

.skill-item {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transform: translateY(30px);
    opacity: 0;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-item.animate {
    transform: translateY(0);
    opacity: 1;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--accent-gradient);
    transition: height 0.5s ease;
    z-index: -1;
}

.skill-item:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

.skill-item:hover::before {
    height: 100%;
    opacity: 0.1;
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--accent-color);
    display: inline-block;
    transition: all 0.5s ease;
}

.skill-item:hover .skill-icon {
    transform: scale(1.2) rotate(10deg);
    color: #fff;
}

.skill-item h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-color, #4cc9f0);
    transition: color 0.3s ease;
    visibility: visible !important;
    opacity: 1 !important;
}

.skill-progress-container {
    position: relative;
    margin-top: 25px;
}

.skill-progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.skill-progress-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.skill-progress-value {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.skill-progress-bar {
    width: 100%;
    height: 10px;
    background-color: var(--bg-secondary);
    border-radius: 50px;
    overflow: hidden;
    position: relative;
}

.skill-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0) 100%);
    transform: translateX(-100%);
}

.skill-item:hover .skill-progress-bar::after {
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skill-progress {
    height: 100%;
    background: var(--accent-gradient);
    width: 0;
    border-radius: 50px;
    transition: width 1.5s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    box-shadow: 0 0 10px rgba(67, 97, 238, 0.5);
}

.skill-counter {
    position: absolute;
    top: -30px;
    right: 0;
    font-size: 0.9rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
}

.skill-item:hover .skill-counter {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Projects Section */
.projects-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 25px;
    background: var(--bg-secondary);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

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

.project-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.5s ease;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

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

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

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

.project-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1;
}

.project-card:hover .project-image::before {
    opacity: 1;
}

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

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

.project-content {
    padding: 25px;
}

.project-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

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

.project-category {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent-color);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.project-category-web {
    background: rgba(67, 97, 238, 0.1);
    color: #4361ee;
}

.project-category-app {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.project-category-other {
    background: rgba(238, 67, 150, 0.1);
    color: #e94c89;
}

.project-tech {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

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

.timeline::before {
    content: '';
    position: absolute !important;
    top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 3px !important;
    height: 100% !important;
    background: var(--accent-gradient) !important;
    border-radius: 2px !important;
    z-index: 1 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    width: 100%;
}

.timeline-content {
    position: relative;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    width: calc(50% - 40px);
    transition: all 0.3s ease;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 30px;
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    left: -46px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: -46px;
}

.timeline-content .date {
    display: inline-block;
    padding: 5px 15px;
    background: var(--accent-gradient);
    color: white !important;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    float: left;
    clear: both;
}

.timeline-content-body {
    clear: both;
    padding-top: 15px;
}

.timeline-content h3 {
    margin: 10px 0;
    color: var(--text-primary);
    font-size: 1.4rem;
    position: relative;
    clear: both;
    display: block;
}

.timeline-content h3[data-degree="bachelor"],
.timeline-content h3:contains("🎓 Bachelor") {
    position: relative;
    display: inline-block;
}

.timeline-content h3[data-degree="bachelor"]::after,
.timeline-content h3:contains("🎓 Bachelor")::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.5s ease;
}

.timeline-content:hover h3[data-degree="bachelor"]::after,
.timeline-content:hover h3:contains("🎓 Bachelor")::after {
    width: 100%;
}

.timeline-content h3.bachelor-title,
.timeline-content h3.freelancer-title {
    position: relative;
    display: inline-block;
}

.timeline-content h3.bachelor-title::after,
.timeline-content h3.freelancer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.5s ease;
}

.timeline-content:hover h3.bachelor-title::after,
.timeline-content:hover h3.freelancer-title::after {
    width: 100%;
}

.timeline-content h4 {
    margin-bottom: 15px;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

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

.contact-info {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
}

.contact-info h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

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

.contact-form {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
}

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

.form-control {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
    outline: none;
}

/* Footer */
.footer {
    background-color: var(--bg-secondary);
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
    perspective: 1000px;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gradient);
    box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.6);
    animation: pulseGlow 4s infinite alternate;
}

.footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 100%, rgba(var(--primary-rgb), 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.footer-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.07;
    background: 
        linear-gradient(45deg, transparent 48%, var(--primary-color) 49%, var(--primary-color) 51%, transparent 52%) 0 0 / 40px 40px,
        linear-gradient(-45deg, transparent 48%, var(--accent-color) 49%, var(--accent-color) 51%, transparent 52%) 0 0 / 40px 40px;
    filter: blur(1px);
    animation: moveBackgroundPattern 120s linear infinite;
}

.footer-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0;
    animation: floatParticle 10s infinite;
}

.particle:nth-child(odd) {
    background: var(--accent-color);
}

.particle:nth-child(1) { top: 20%; left: 10%; width: 6px; height: 6px; animation-delay: 0s; }
.particle:nth-child(2) { top: 60%; left: 20%; width: 8px; height: 8px; animation-delay: 1s; }
.particle:nth-child(3) { top: 40%; left: 50%; width: 10px; height: 10px; animation-delay: 2s; }
.particle:nth-child(4) { top: 70%; left: 80%; width: 7px; height: 7px; animation-delay: 3s; }
.particle:nth-child(5) { top: 30%; left: 90%; width: 9px; height: 9px; animation-delay: 4s; }

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
    transform-style: preserve-3d;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
}

.footer-section {
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 20px;
    border-radius: 16px;
    background: rgba(var(--bg-secondary-rgb, 30, 30, 30), 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transform: translateZ(0);
}

.footer-section:hover {
    transform: translateY(-5px) translateZ(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: rgba(var(--bg-secondary-rgb, 30, 30, 30), 0.3);
}

.footer-section::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: var(--accent-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.footer-section:hover::before {
    opacity: 1;
}

.footer-section h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--text-color);
    position: relative;
    display: inline-block;
    transform: translateZ(10px);
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.5s ease;
}

.footer-section:hover h3::after {
    width: 100%;
}

.footer-section ul {
    list-style: none;
    transform: translateZ(5px);
}

.footer-section ul li {
    margin-bottom: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.footer-section ul li::before {
    content: '→';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-section ul li:hover {
    transform: translateX(10px);
}

.footer-section ul li:hover::before {
    opacity: 1;
    left: -15px;
}

.footer-section ul li a {
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: var(--text-color);
}

.footer-section ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

.footer-section ul li a:hover::after {
    width: 100%;
}

.footer-newsletter {
    margin-top: 20px;
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
    position: relative;
    overflow: hidden;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.newsletter-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    border-radius: 50px 0 0 50px;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px var(--primary-color);
}

.newsletter-btn {
    padding: 0 25px;
    background: var(--accent-gradient);
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 0 50px 50px 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.newsletter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-100%) skewX(-15deg);
    transition: all 0.5s ease;
}

.newsletter-btn:hover::before {
    transform: translateX(100%) skewX(-15deg);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(var(--border-color-rgb, 45, 55, 72), 0.3);
    color: var(--text-secondary);
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--accent-gradient);
    transition: width 0.5s ease;
}

.footer:hover .footer-bottom::before {
    width: 50%;
}

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

.social-link-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1.2rem;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.social-link-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link-footer i {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.social-link-footer:hover {
    transform: translateY(-5px) scale(1.1);
}

.social-link-footer:hover::before {
    opacity: 1;
}

.social-link-footer:hover i {
    color: white;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(var(--accent-rgb), 0.4);
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: var(--accent-gradient);
    opacity: 0.5;
    filter: blur(5px);
    animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
    0% { opacity: 0.2; transform: scale(1); }
    100% { opacity: 0.6; transform: scale(1.05); }
}

@keyframes floatParticle {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    20% { opacity: 0.6; }
    80% { opacity: 0.6; }
    100% { transform: translateY(-100px) translateX(20px); opacity: 0; }
}

@keyframes moveBackgroundPattern {
    0% { background-position: 0 0; }
    100% { background-position: 1000px 1000px; }
}

/* Media Queries for Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .newsletter-form {
        flex-direction: column;
        border-radius: 16px;
    }
    
    .newsletter-input {
        width: 100%;
        border-radius: 16px 16px 0 0;
        padding: 15px;
    }
    
    .newsletter-btn {
        width: 100%;
        padding: 15px;
        border-radius: 0 0 16px 16px;
    }
}

/* Animation Keyframes */
@keyframes titleReveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Mobile Navigation */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    margin: 2px 0;
    transition: 0.3s;
}

/* Media Queries */
@media (max-width: 992px) {
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-image {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -40px;
        right: auto;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--bg-primary);
        flex-direction: column;
        padding: 80px 20px 30px;
        gap: 20px;
        box-shadow: -10px 0 30px var(--shadow-color);
        transition: all 0.4s ease;
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 20px !important;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }
    
    .timeline-content::before {
        left: -36px !important;
        right: auto !important;
    }
}

@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .timeline-content {
        width: calc(100% - 40px);
        margin-left: 40px;
        padding: 20px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -30px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.d-none {
    display: none !important;
}

@keyframes pulseLogo {
    0% { filter: blur(4px); opacity: 0.2; transform: translateZ(-1px); }
    100% { filter: blur(8px); opacity: 0.5; transform: translateZ(-1px) scale(1.1); }
} 