:root {
    /* Dark Theme (default) - Enhanced color palette */
    --primary: #0a192f;
    --secondary: #112240;
    --accent: #64ffda;
    --accent-rgb: 100, 255, 218;
    --accent-secondary: #ff6b6b;
    --accent-secondary-rgb: 255, 107, 107;
    --light: #f8f9fa;
    --dark: #020c1b;
    --gray: #8892b0;
    --text: #ccd6f6;
    --border: #2d3952;
    --card-bg: #112240;
    --gradient-start: #0a192f;
    --gradient-end: #112240;
    --shadow: rgba(2, 12, 27, 0.7);
    --shadow-light: rgba(100, 255, 218, 0.1);
    --scrollbar-thumb: #64ffda;
    --scrollbar-track: #0a192f;
    --navbar-bg: rgba(10, 25, 47, 0.95);
    --input-bg: rgba(17, 34, 64, 0.8);
    --input-border: #2d3952;
    --input-focus: #64ffda;
    --button-hover: #4cd1b0;
    --card-glow: rgba(100, 255, 218, 0.15);
}

[data-theme="light"] {
    --primary: #f8f9fa;
    --secondary: #edf2f7;
    --accent: #0056b3;
    --accent-rgb: 0, 86, 179;
    --accent-secondary: #e94057;
    --accent-secondary-rgb: 233, 64, 87;
    --light: #ffffff;
    --dark: #1a202c;
    --gray: #4a5568;
    --text: #2d3748;
    --border: #e2e8f0;
    --card-bg: #ffffff;
    --gradient-start: #f8f9fa;
    --gradient-end: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.05);
    --shadow-light: rgba(0, 86, 179, 0.08);
    --scrollbar-thumb: #0056b3;
    --scrollbar-track: #f8f9fa;
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --input-bg: rgba(255, 255, 255, 0.95);
    --input-border: #cbd5e0;
    --input-focus: #0056b3;
    --button-hover: #004494;
    --card-glow: rgba(0, 86, 179, 0.12);
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--primary);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    scroll-behavior: smooth;
    cursor: none;
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }
}

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

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Header */
header {
    background: linear-gradient(-45deg, var(--primary), var(--secondary), #193d59, #1d4350);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
    position: relative;
    overflow: hidden;
    padding: 170px 0 120px;
    text-align: center;
    margin-top: 70px;
    box-shadow: 0 4px 30px var(--shadow);
    z-index: 1;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--primary), transparent);
    z-index: 1;
}

header::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle at center, rgba(var(--accent-rgb), 0.1) 0%, transparent 25%);
    animation: rotateGradient 20s linear infinite;
    z-index: 0;
}

.profile {
    position: relative;
    z-index: 2;
}

.profile h1 {
    font-size: 4rem;
    margin-bottom: 15px;
    color: var(--light);
    text-shadow: 0 2px 15px var(--shadow);
    animation: fadeInDown 1s ease;
    letter-spacing: -0.5px;
}

.profile h2 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 25px;
    color: var(--accent);
    animation: fadeInUp 1s ease 0.3s both;
    letter-spacing: 1px;
}

.highlight {
    color: var(--accent);
    font-weight: 700;
    position: relative;
    display: inline-block;
    text-shadow: 0 0 10px rgba(var(--accent-rgb), 0.4);
}

.highlight::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 6px;
    background: var(--accent);
    bottom: 0;
    left: 0;
    opacity: 0.3;
    border-radius: 10px;
}

.tagline {
    font-size: 1.35rem;
    max-width: 700px;
    margin: 0 auto 35px;
    color: var(--gray);
    animation: fadeIn 1s ease 0.6s both;
    font-weight: 300;
    line-height: 1.8;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--light);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px var(--shadow);
    animation: float 3s ease-in-out infinite;
}

.social-icon:hover {
    background-color: var(--accent);
    color: var(--dark);
    transform: translateY(-5px) scale(1.05);
}

.social-icon:nth-child(1) {
    animation-delay: 0s;
}

.social-icon:nth-child(2) {
    animation-delay: 0.5s;
}

.social-icon:nth-child(3) {
    animation-delay: 1s;
}

.social-icon:nth-child(4) {
    animation-delay: 1.5s;
}

/* Sections */
.section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    color: var(--text);
    font-weight: 700;
    padding-bottom: 15px;
    animation: fadeInUp 1s ease;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--accent);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px;
    animation: expandWidth 1.5s ease-in-out;
}

.section-hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.section-visible {
    opacity: 1;
    transform: translateY(0);
}

.section-highlight {
    animation: highlightSection 1s ease;
}

@keyframes highlightSection {
    0% {
        box-shadow: 0 0 0 rgba(var(--accent-rgb), 0);
    }
    50% {
        box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.3);
    }
    100% {
        box-shadow: 0 0 0 rgba(var(--accent-rgb), 0);
    }
}

/* About Section */
.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
}

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

.skills-category h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--light);
    text-align: center;
}

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

.skill-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, var(--shadow-light) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-light);
    border-color: var(--accent);
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-card i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
    text-shadow: 0 0 10px rgba(var(--accent-rgb), 0.3);
}

.skill-card:hover i {
    transform: scale(1.1);
    color: var(--accent);
    text-shadow: 0 0 20px rgba(var(--accent-rgb), 0.5);
}

.skill-card span {
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
    color: var(--text);
    transition: color 0.3s ease;
}

.skill-card:hover span {
    color: var(--accent);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 40px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 30px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    box-shadow: 0 20px 40px var(--shadow-light);
    transform: translateY(-10px) scale(1.01);
    border-color: var(--accent);
}

.project-image {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background: var(--secondary);
}

.project-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease;
}

.project-card:hover .project-svg {
    transform: scale(1.05);
}

.project-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.project-header h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text);
    font-weight: 600;
    transition: color 0.3s ease;
    line-height: 1.3;
}

.project-card:hover .project-header h3 {
    color: var(--accent);
}

.project-links a {
    font-size: 1.2rem;
    margin-left: 15px;
    color: var(--gray);
    transition: all 0.3s ease;
}

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

.project-desc {
    font-size: 0.95rem;
    margin-bottom: 20px;
    color: var(--gray);
    line-height: 1.6;
    flex-grow: 1;
}

.project-features {
    margin-bottom: 20px;
}

.project-features li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    font-size: 0.9rem;
    color: var(--gray);
}

.project-features li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.tag {
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(var(--accent-rgb), 0.2);
    transform: translateY(-2px);
}

/* GitHub Stats Section */
.github-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.github-stats img {
    max-width: 100%;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Contact Section */
.contact-social-section {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.contact-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background-color: var(--card-bg);
    color: var(--text);
    border-radius: 8px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    box-shadow: 0 5px 15px var(--shadow);
}

.contact-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.contact-button:hover::before {
    opacity: 0.1;
}

.contact-button:hover {
    background-color: var(--accent);
    color: var(--dark);
    transform: translateY(-5px);
}

.contact-note {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

/* Footer */
footer {
    background-color: var(--dark);
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
}

/* Responsiveness */
@media (max-width: 768px) {
    .profile h1 {
        font-size: 2.8rem;
    }
    
    .profile h2 {
        font-size: 1.6rem;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 20px;
    }
    
    header {
        padding: 120px 0 80px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .primary-btn, .secondary-btn {
        width: 100%;
    }
    
    .contact-form-container {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .profile h1 {
        font-size: 2.2rem;
    }
    
    .profile h2 {
        font-size: 1.4rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .section {
        padding: 70px 0;
    }
    
    .skill-card {
        padding: 20px 15px;
    }
    
    .contact-button {
        width: 100%;
    }
    
    .github-stats img {
        width: 100%;
    }
}

/* Navbar */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    padding: 15px 0;
}

.navbar.scrolled {
    padding: 12px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    background: var(--navbar-bg);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.8rem;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.logo a:hover {
    text-shadow: 0 0 10px rgba(var(--accent-rgb), 0.5);
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-menu li a {
    color: var(--text);
    font-weight: 500;
    font-size: 1rem;
    padding: 8px 5px;
    position: relative;
    transition: all 0.3s ease;
}

.nav-menu li a:hover {
    color: var(--accent);
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.nav-toggle {
    display: none;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive Navbar */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: var(--primary);
        width: 100%;
        padding: 20px 0;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .nav-toggle {
        display: block;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 15px var(--shadow);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

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

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

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    background-color: rgba(var(--accent-rgb), 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.05) 0%, rgba(var(--accent-rgb), 0.1) 100%);
    transition: all 0.3s ease;
    transform: scale(0);
}

.theme-toggle:hover::before {
    transform: scale(1);
}

.theme-toggle:hover {
    background-color: rgba(var(--accent-rgb), 0.1);
}

/* Theme Toggle Ripple Animation */
.theme-toggle-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    opacity: 0.5;
    pointer-events: none;
    transition: transform 0.8s cubic-bezier(0.2, 0.95, 0.35, 1), opacity 0.8s cubic-bezier(0.2, 0.95, 0.35, 1);
    z-index: -1;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(90deg);
    }
    50% {
        transform: rotate(180deg);
    }
    75% {
        transform: rotate(270deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.theme-transition {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}

.theme-transition * {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Theme transition */
.theme-transition {
    transition: background-color 0.5s ease, color 0.5s ease;
}

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

/* CTA Buttons */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    animation: fadeInUp 1s ease 0.9s both;
}

.primary-btn, .secondary-btn {
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    outline: none;
    border: none;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.primary-btn {
    background: var(--accent);
    color: var(--dark);
    font-weight: 600;
}

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

.primary-btn:hover, .secondary-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(var(--accent-rgb), 0.2);
}

/* Skills Progress Bars */
.skills-progress {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 20px;
}

.progress-item {
    width: 100%;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.progress-info h4 {
    color: var(--text);
    font-size: 1rem;
    font-weight: 500;
}

.progress-percentage {
    color: var(--accent);
    font-weight: 600;
}

.progress-bar {
    height: 10px;
    width: 100%;
    background-color: var(--secondary);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.progress-value {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent), rgba(var(--accent-rgb), 0.8));
    border-radius: 20px;
    position: relative;
    animation: progressAnimation 1.5s ease-out forwards;
    box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.3);
}

@keyframes progressAnimation {
    to {
        width: var(--width, 0);
    }
}

.progress-value::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShine 2s infinite linear;
}

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

/* Contact Form */
.contact-form-container {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--secondary) 100%);
    border-radius: 10px;
    padding: 30px;
    max-width: 600px;
    margin: 0 auto 60px;
    box-shadow: 0 10px 30px var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.contact-form-container:hover {
    box-shadow: 0 15px 40px var(--shadow-light);
    transform: translateY(-5px);
    border-color: var(--accent);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border-radius: 5px;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease, transform 0.2s ease;
}

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

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
    background: rgba(var(--accent-rgb), 0.03);
}

.submit-btn {
    background-color: var(--accent);
    color: var(--dark);
    border: none;
    padding: 15px 25px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.submit-btn:hover {
    background-color: var(--button-hover);
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0);
}

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

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

.form-message {
    height: 40px;
    margin-top: 15px;
    font-weight: 500;
    text-align: center;
}

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

.form-message.error {
    color: #f44336;
}

/* Animated Background Gradient */
@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Floating Animation for Social Icons */
@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Glow effect for section titles */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 40px;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--light);
    text-shadow: 0 0 10px rgba(var(--accent-rgb), 0.3);
    animation: textGlow 2s ease-in-out infinite alternate;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 5px;
    background: var(--accent);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.5);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .primary-btn, .secondary-btn {
        width: 100%;
    }
    
    .contact-form-container {
        padding: 25px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Project Filter */
.project-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-btn {
    background-color: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.filter-btn:hover {
    background-color: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
    border-color: var(--accent);
}

.filter-btn.active {
    background-color: var(--accent);
    color: var(--dark);
    border-color: var(--accent);
}

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

.project-card {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.5s ease, transform 0.5s ease, filter 0.5s ease;
}

.project-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    position: absolute;
    pointer-events: none;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-btn {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
}

/* Add filtering animation */
.projects-grid {
    position: relative;
    min-height: 400px;
}

/* Loading Animation */
.loading-spinner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading .loading-spinner {
    display: flex;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: all 0.1s ease;
}

/* Hide custom cursor on mobile */
@media (max-width: 768px) {
    .cursor-ring, .trail-dot {
        display: none;
    }
}

/* Mobile device optimizations */
.mobile-device {
    cursor: auto !important;
}

.mobile-device .custom-cursor {
    display: none !important;
}

.mobile-device .primary-btn, 
.mobile-device .secondary-btn, 
.mobile-device .submit-btn,
.mobile-device .social-icon,
.mobile-device .skill-card,
.mobile-device .project-card {
    transform: none !important;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Account for fixed navbar */
    cursor: none;
}

@media (max-width: 768px) {
    html {
        cursor: auto;
    }
}

/* Text Selection */
::selection {
    background-color: rgba(var(--accent-rgb), 0.3);
    color: var(--accent);
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--accent);
    color: var(--dark);
    padding: 8px;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    font-weight: 600;
    z-index: 10000;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.skip-link:focus {
    top: 0;
    transform: translateY(0);
}

/* Form Error Messages */
.error-message {
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: 4px;
    min-height: 20px;
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.error-message.show {
    opacity: 1;
}

.form-group input.error,
.form-group textarea.error {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.15);
}

/* Focus indicators for better accessibility */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --accent: #00ff88;
        --text: #ffffff;
        --background: #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .preloader {
        display: none !important;
    }
    
    #typing-text {
        border-right: none !important;
    }
}

/* Typing cursor animation */
#typing-text {
    animation: blink-cursor 1.5s infinite;
    padding-right: 3px;
}

@keyframes blink-cursor {
    0%, 50% {
        border-right-color: var(--accent);
    }
    51%, 100% {
        border-right-color: transparent;
    }
}

/* Ripple animation for interactive cards */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Enhanced card hover states */
.project-card,
.skill-card,
.blog-card {
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Performance optimizations for animations */
.project-card,
.skill-card,
.blog-card,
.parallax-element {
    transform: translateZ(0);
}

/* Magnetic hover effect for interactive elements */
.magnetic-hover {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.magnetic-hover:hover {
    transform: translateY(-5px) scale(1.02);
}

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

@supports (scroll-behavior: smooth) {
    html {
        scroll-behavior: smooth;
    }
}

/* Loading state improvements */
.loading-skeleton {
    background: linear-gradient(90deg, var(--card-bg) 25%, var(--border) 50%, var(--card-bg) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Enhanced focus states for better accessibility */
.primary-btn:focus-visible,
.secondary-btn:focus-visible,
.submit-btn:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    box-shadow: 0 0 0 5px rgba(var(--accent-rgb), 0.2);
}

/* Print styles */
@media print {
    .navbar,
    .back-to-top,
    .preloader,
    #particles-js {
        display: none !important;
    }
    
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    .section {
        page-break-inside: avoid;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}

/* Loading Animation for Page */
.loading {
    overflow: hidden;
}

.loading::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    z-index: 10000;
    animation: fadeOut 1s ease forwards 0.5s;
}

.loading::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(var(--accent-rgb), 0.3);
    border-top-color: var(--accent);
    border-radius: 50%;
    z-index: 10001;
    animation: spin 0.8s linear infinite, fadeOut 0.5s ease forwards 1s;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Add a subtle pulse animation to skill cards */
.skill-card i {
    transition: transform 0.3s ease, color 0.3s ease;
}

.skill-card:hover i {
    transform: scale(1.2);
    color: var(--accent);
    animation: pulse 1s infinite alternate;
}

/* Enhance project card hover effects */
.project-card {
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.5s ease, background-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Enhance section title presentation */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 40px;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--light);
    text-shadow: 0 0 10px rgba(var(--accent-rgb), 0.3);
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from {
        text-shadow: 0 0 5px rgba(var(--accent-rgb), 0.1), 0 0 10px rgba(var(--accent-rgb), 0.1);
    }
    to {
        text-shadow: 0 0 10px rgba(var(--accent-rgb), 0.3), 0 0 20px rgba(var(--accent-rgb), 0.2);
    }
}

/* Page content transition effect for theme change */
body {
    transition: background-color 0.5s ease, color 0.5s ease;
}

body.theme-transition * {
    transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease !important;
}

/* Project SVG Logos */
.project-svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.project-card:hover .project-svg {
    transform: scale(1.05);
}

.project-card:hover .project-svg text,
.project-card:hover .project-svg path,
.project-card:hover .project-svg rect,
.project-card:hover .project-svg circle {
    transition: all 0.5s ease;
}

.project-card:hover .project-svg text {
    fill: #ffffff;
}

.project-card:hover .project-svg [fill="#64ffda"] {
    filter: brightness(1.2);
}

.project-card:hover .project-svg [stroke="#64ffda"] {
    stroke-width: 3;
}

/* Project image sizing */
.project-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    height: 200px;
    background-color: #0a192f;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Fix for mobile devices */
@media (max-width: 768px) {
    .project-svg text {
        font-size: 20px;
    }
}

[data-theme="light"] .skill-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid var(--border);
    box-shadow: 0 8px 20px var(--shadow);
}

[data-theme="light"] .progress-bar {
    background-color: #e0e0e0;
}

[data-theme="light"] .progress-value {
    box-shadow: 0 0 10px rgba(0, 117, 101, 0.5);
}

[data-theme="light"] .project-card {
    box-shadow: 0 10px 30px var(--shadow);
    border: 1px solid var(--border);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

[data-theme="light"] .tag {
    background-color: #edf2f7;
    color: var(--accent);
    border: 1px solid #e2e8f0;
}

[data-theme="light"] a {
    color: var(--accent);
}

[data-theme="light"] a:hover {
    color: #004494;
    text-decoration: none;
}

[data-theme="light"] .skill-card span {
    font-weight: 600;
    color: #222222;
}

[data-theme="light"] .project-desc {
    color: #333333;
}

[data-theme="light"] .project-features li {
    color: #333333;
}

[data-theme="light"] .project-header h3 {
    color: var(--dark);
    font-weight: 600;
}

[data-theme="light"] .highlight::after {
    background: var(--accent);
    opacity: 0.2;
    height: 8px;
    bottom: 2px;
}

[data-theme="light"] .nav-menu li a {
    color: var(--dark);
}

[data-theme="light"] .nav-menu li a:hover {
    color: var(--accent);
}

[data-theme="light"] .nav-menu li a::after {
    background-color: var(--accent);
}

[data-theme="light"] button.primary-btn {
    background: var(--accent);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.4);
}

[data-theme="light"] button.primary-btn:hover {
    background: var(--button-hover);
    box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.6);
}

[data-theme="light"] .about-highlights {
    gap: 25px;
}

[data-theme="light"] .highlight-item {
    background: #ffffff;
    border: 1px solid var(--border);
    box-shadow: 0 8px 20px var(--shadow);
}

[data-theme="light"] .highlight-item:hover {
    box-shadow: 0 12px 30px var(--shadow-light);
    transform: translateY(-5px);
}

[data-theme="light"] .contact-form-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px var(--shadow);
}

[data-theme="light"] .contact-form-container:hover {
    box-shadow: 0 15px 40px var(--shadow-light);
}

/* Preloader styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader {
    display: flex;
}

.circle {
    width: 20px;
    height: 20px;
    margin: 0 10px;
    border-radius: 50%;
    background-color: var(--accent);
    animation: bounce 1.4s ease infinite;
    transform: translateY(0);
}

.circle:nth-child(1) {
    animation-delay: 0s;
}

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

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

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-30px);
    }
}

/* Smooth scrolling improvements */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Adjust based on navbar height */
}

/* Accessibility improvements */
a:focus, button:focus {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* Mobile responsiveness improvements */
@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card:hover {
        transform: translateY(-5px);
    }
}

/* Skill level indicators */
.skill-level {
    width: 100%;
    height: 4px;
    background-color: rgba(var(--accent-rgb), 0.1);
    border-radius: 10px;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.skill-level-bar {
    height: 100%;
    background-color: var(--accent);
    border-radius: 10px;
    position: relative;
    transform: translateX(-100%);
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.section-visible .skill-level-bar {
    transform: translateX(0);
}

.skill-card {
    position: relative;
}

.skill-card::after {
    content: attr(data-skill-level);
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.6rem;
    background-color: var(--accent);
    color: var(--dark);
    padding: 2px 6px;
    border-radius: 10px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.skill-card:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* Add new animation for section titles */
@keyframes expandWidth {
    0% {
        width: 0;
    }
    100% {
        width: 80px;
    }
}

/* Add pulsing animation to highlight key elements */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(var(--accent-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Add a rotation animation for gradient backgrounds */
@keyframes rotateGradient {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* About Section Highlights */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 20px;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray);
}

.about-text p {
    margin-bottom: 20px;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.highlight-item {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    text-align: center;
}

.highlight-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-light);
    border-color: var(--accent);
}

.highlight-item i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.highlight-item:hover i {
    transform: scale(1.1);
    text-shadow: 0 0 20px rgba(var(--accent-rgb), 0.5);
}

.highlight-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text);
    font-weight: 600;
}

.highlight-item p {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.6;
}

/* Section CTA */
.section-cta {
    text-align: center;
    margin-top: 50px;
}

.section-cta .secondary-btn {
    padding: 12px 30px;
    font-size: 1.1rem;
}

/* Contact Intro */
.contact-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

/* Tooltip */
.tooltip {
    position: absolute;
    background: var(--card-bg);
    color: var(--text);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    z-index: 9999;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--card-bg);
}

/* Wave Animation */
.wave {
    display: inline-block;
    animation: wave 2.5s infinite;
    transform-origin: 70% 70%;
}

@keyframes wave {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

/* Form labels */
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--gray);
    font-weight: 500;
}

/* Skill level indicators */
.skill-level-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent);
    color: var(--dark);
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 600;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.skill-card:hover .skill-level-indicator {
    opacity: 1;
    transform: translateX(0);
}

/* Enhanced mobile styles */
@media (max-width: 768px) {
    .about-highlights {
        grid-template-columns: 1fr;
    }
    
    .highlight-item {
        padding: 20px;
    }
    
    .contact-intro {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .about-text {
        font-size: 1rem;
    }
}

/* Enhanced dark mode / light mode transition */
html.theme-transition,
html.theme-transition *,
html.theme-transition *:before,
html.theme-transition *:after {
    transition: all 0.5s ease !important;
    transition-delay: 0 !important;
}

/* Theme toggle button styling */
.theme-toggle {
    background: transparent;
    border: none;
    color: var(--accent);
    font-size: 1.2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.05) 0%, rgba(var(--accent-rgb), 0.1) 100%);
    transition: all 0.3s ease;
    transform: scale(0);
}

.theme-toggle:hover::before {
    transform: scale(1);
}

.theme-toggle:hover {
    background-color: rgba(var(--accent-rgb), 0.1);
}

/* Theme Toggle Ripple Animation */
.theme-toggle-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    opacity: 0.5;
    pointer-events: none;
    transition: transform 0.8s cubic-bezier(0.2, 0.95, 0.35, 1), opacity 0.8s cubic-bezier(0.2, 0.95, 0.35, 1);
    z-index: -1;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(90deg);
    }
    50% {
        transform: rotate(180deg);
    }
    75% {
        transform: rotate(270deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.theme-transition {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}

.theme-transition * {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}

[data-theme="light"] header {
    background: linear-gradient(-45deg, var(--primary), var(--secondary), #e6f2ff, #cce4ff);
    background-size: 400% 400%;
}

[data-theme="light"] header::before {
    background: radial-gradient(circle at center, rgba(var(--accent-rgb), 0.08) 0%, transparent 35%);
}

[data-theme="light"] header::after {
    background: linear-gradient(to top, var(--primary), transparent);
}

[data-theme="light"] .profile h1 {
    color: var(--dark);
    text-shadow: 0 2px 10px rgba(var(--accent-rgb), 0.1);
}

[data-theme="light"] .profile h2 {
    color: var(--accent);
}

[data-theme="light"] .tagline {
    color: var(--gray);
}

[data-theme="light"] .section-title {
    color: var(--dark);
    letter-spacing: 1px;
}

[data-theme="light"] .section-title::after {
    background: linear-gradient(90deg, var(--accent) 0%, rgba(var(--accent-rgb), 0.4) 100%);
    height: 4px;
}

[data-theme="light"] .project-card:hover {
    box-shadow: 0 15px 40px var(--shadow-light);
    transform: translateY(-8px);
}

[data-theme="light"] .project-header h3 {
    color: var(--dark);
    font-weight: 600;
}

[data-theme="light"] .project-links a {
    color: var(--accent);
}

[data-theme="light"] .project-links a:hover {
    color: var(--button-hover);
}

[data-theme="light"] .tag:hover {
    background-color: #e2e8f0;
    color: var(--button-hover);
}

[data-theme="light"] .skill-card:hover {
    box-shadow: 0 12px 30px var(--shadow-light);
    transform: translateY(-5px);
}

[data-theme="light"] .theme-toggle {
    background: linear-gradient(135deg, #f8f9fa 0%, #e2e8f0 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    color: var(--accent);
    border: 1px solid var(--border);
}

[data-theme="light"] .theme-toggle:hover {
    box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.15);
    color: var(--button-hover);
}

[data-theme="light"] .theme-toggle::before {
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.05) 0%, rgba(var(--accent-rgb), 0.1) 100%);
}

[data-theme="light"] .about-highlights {
    gap: 25px;
}

[data-theme="light"] .highlight-item {
    background: #ffffff;
    border: 1px solid var(--border);
    box-shadow: 0 8px 20px var(--shadow);
}

[data-theme="light"] .highlight-item:hover {
    box-shadow: 0 12px 30px var(--shadow-light);
    transform: translateY(-5px);
}

[data-theme="light"] .contact-form-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px var(--shadow);
}

[data-theme="light"] .contact-form-container:hover {
    box-shadow: 0 15px 40px var(--shadow-light);
}

/* Blog Section Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s ease;
    transform: translateY(0);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px var(--shadow-light);
}

.blog-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

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

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

.blog-date {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: var(--accent);
    color: var(--dark);
    border-radius: 8px;
    padding: 8px 12px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    box-shadow: 0 4px 10px rgba(var(--accent-rgb), 0.3);
}

.blog-date .day {
    font-size: 20px;
    font-weight: 700;
}

.blog-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.blog-tag {
    background-color: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.blog-tag:hover {
    background-color: var(--accent);
    color: var(--dark);
}

.blog-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
    color: var(--light);
    transition: color 0.3s ease;
}

.blog-card:hover .blog-title {
    color: var(--accent);
}

.blog-excerpt {
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.6;
    flex-grow: 1;
}

.blog-read-more {
    align-self: flex-start;
    padding: 8px 0;
    font-weight: 500;
    font-size: 15px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-read-more i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.blog-read-more:hover {
    color: var(--accent);
}

.blog-read-more:hover i {
    transform: translateX(5px);
}

.blog-read-more::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.blog-read-more:hover::after {
    width: 100%;
}

.section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 30px;
    color: var(--gray);
    font-size: 18px;
    line-height: 1.6;
}

/* Testimonials Section Styles */
.testimonials-slider {
    display: flex;
    overflow: hidden;
    margin: 40px auto;
    max-width: 900px;
    position: relative;
    height: 350px; /* Set a fixed height for the slider container */
}

.testimonial-card {
    min-width: 100%;
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 25px var(--shadow);
    transition: all 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    opacity: 0.8;
    transform: translateX(100%);
}

.testimonial-card.active {
    transform: translateX(0);
    opacity: 1;
    z-index: 2;
}

.testimonial-content {
    position: relative;
    margin-bottom: 30px;
}

.quote-icon {
    font-size: 30px;
    color: var(--accent);
    opacity: 0.3;
    position: absolute;
    top: -10px;
    left: -10px;
}

.testimonial-content p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text);
    font-style: italic;
}

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

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 5px;
}

.author-title {
    font-size: 14px;
    color: var(--gray);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--gray);
    opacity: 0.3;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.dot:hover {
    opacity: 0.7;
}

/* Light Theme Styles for Blog and Testimonials */
[data-theme="light"] .blog-card {
    background-color: var(--card-bg);
    box-shadow: 0 5px 15px var(--shadow);
}

[data-theme="light"] .blog-title {
    color: var(--dark);
}

[data-theme="light"] .blog-excerpt {
    color: var(--gray);
}

[data-theme="light"] .testimonial-card {
    background-color: var(--card-bg);
}

[data-theme="light"] .author-name {
    color: var(--dark);
}

[data-theme="light"] .testimonial-content p {
    color: var(--text);
}

/* Responsive styles for Blog and Testimonials */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        padding: 25px;
    }
    
    .testimonial-content p {
        font-size: 16px;
    }
    
    .blog-card {
        max-width: 450px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .testimonial-card {
        padding: 20px;
    }
    
    .testimonial-author {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .testimonial-avatar {
        width: 50px;
        height: 50px;
    }
}

/* Project Search Styles */
.project-search-container {
    display: flex;
    align-items: center;
    max-width: 500px;
    margin: 20px auto 40px;
    position: relative;
    background-color: var(--input-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s ease;
}

.project-search-container:focus-within {
    box-shadow: 0 8px 20px var(--shadow-light);
    transform: translateY(-2px);
}

.search-icon {
    position: absolute;
    left: 15px;
    font-size: 18px;
    color: var(--accent);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.project-search-input {
    width: 100%;
    padding: 15px 45px;
    border: 2px solid var(--input-border);
    border-radius: 10px;
    background-color: transparent;
    color: var(--text);
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.project-search-input::placeholder {
    color: var(--gray);
    opacity: 0.7;
}

.project-search-input:focus {
    border-color: var(--accent);
}

.project-search-input:focus + .search-icon {
    color: var(--accent);
    opacity: 1;
}

.search-clear-btn {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.search-clear-btn:hover {
    opacity: 1;
    background-color: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
}

.no-results-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background-color: var(--card-bg);
    border-radius: 10px;
    margin: 30px auto;
    max-width: 500px;
    box-shadow: 0 5px 15px var(--shadow);
    text-align: center;
    gap: 15px;
}

.no-results-message i {
    font-size: 40px;
    color: var(--accent);
    opacity: 0.5;
    margin-bottom: 10px;
}

.no-results-message p {
    color: var(--text);
    font-size: 18px;
    margin-bottom: 15px;
}

.clear-search-btn {
    background-color: var(--accent);
    color: var(--dark);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.clear-search-btn:hover {
    background-color: var(--button-hover);
    transform: translateY(-2px);
}

/* Light theme styles for project search */
[data-theme="light"] .project-search-container {
    background-color: var(--input-bg);
}

[data-theme="light"] .project-search-input {
    color: var(--text);
    border-color: var(--input-border);
}

[data-theme="light"] .project-search-input::placeholder {
    color: var(--gray);
}

[data-theme="light"] .search-icon {
    color: var(--accent);
}

[data-theme="light"] .no-results-message {
    background-color: var(--card-bg);
}

[data-theme="light"] .clear-search-btn {
    background-color: var(--accent);
    color: white;
}

/* Responsive styles for project search */
@media (max-width: 768px) {
    .project-search-container {
        max-width: 100%;
        margin: 20px 0 30px;
    }
    
    .project-search-input {
        padding: 12px 40px;
        font-size: 15px;
    }
    
    .search-icon {
        font-size: 16px;
    }
    
    .no-results-message {
        padding: 30px 20px;
    }
}

/* Blog Article Modal Styles */
.article-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.95);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-modal-content {
    background-color: var(--card-bg);
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.article-modal-content::-webkit-scrollbar {
    width: 8px;
}

.article-modal-content::-webkit-scrollbar-track {
    background: var(--secondary);
    border-radius: 0 10px 10px 0;
}

.article-modal-content::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

.article-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: transparent;
    border: none;
    color: var(--accent);
    font-size: 24px;
    cursor: pointer;
    z-index: 1;
    transition: transform 0.3s ease, color 0.3s ease;
}

.article-close-btn:hover {
    transform: rotate(90deg);
    color: var(--accent-secondary);
}

.article-header {
    margin-bottom: 20px;
}

.article-header h2 {
    color: var(--light);
    font-size: 28px;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: var(--gray);
    flex-wrap: wrap;
    gap: 15px;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-featured-image {
    margin-bottom: 30px;
}

.article-featured-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.article-text {
    color: var(--text);
    line-height: 1.8;
    font-size: 16px;
}

.article-text h3 {
    color: var(--light);
    font-size: 22px;
    margin: 30px 0 15px;
}

.article-text p {
    margin-bottom: 20px;
}

.article-text ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.article-text li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 5px;
}

.article-text li::before {
    content: "•";
    color: var(--accent);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Responsive styles for article modal */
@media (max-width: 768px) {
    .article-modal-content {
        padding: 20px;
        width: 95%;
    }
    
    .article-header h2 {
        font-size: 24px;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .article-text {
        font-size: 15px;
    }
    
    .article-text h3 {
        font-size: 20px;
    }
}

/* Light theme styles for article modal */
[data-theme="light"] .article-modal {
    background-color: rgba(248, 249, 250, 0.95);
}

[data-theme="light"] .article-modal-content {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .article-header h2 {
    color: var(--dark);
}

[data-theme="light"] .article-text h3 {
    color: var(--dark);
}

[data-theme="light"] .article-text {
    color: var(--text);
}

[data-theme="light"] .article-text li::before {
    color: var(--accent);
}

[data-theme="light"] .primary-btn {
    background: var(--accent);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.4);
}

[data-theme="light"] .primary-btn:hover {
    background: var(--button-hover);
    box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.6);
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: all 0.1s ease;
}

.cursor-ring {
    width: 30px;
    height: 30px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    z-index: 9999;
    pointer-events: none;
    transition: width 0.3s, height 0.3s, border-color 0.3s;
    mix-blend-mode: difference;
}

.trailing-dots {
    position: fixed;
    z-index: 9998;
    pointer-events: none;
}

.trail-dot {
    width: 4px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: transform 0.1s linear, opacity 0.2s ease;
}

.cursor-hover .cursor-ring {
    width: 50px;
    height: 50px;
    border-color: #fff;
    border-width: 3px;
    transition: all 0.2s ease;
}

.cursor-hover .trail-dot {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.8 !important;
}

.cursor-enlarged .cursor-ring {
    transform: translate(-50%, -50%) scale(0.8);
    background-color: rgba(var(--accent-rgb), 0.1);
}

[data-theme="light"] .cursor-ring {
    border-color: var(--accent);
}

[data-theme="light"] .trail-dot {
    background-color: var(--accent);
}

[data-theme="light"] .cursor-hover .cursor-ring {
    border-color: var(--dark);
}

[data-theme="light"] .cursor-hover .trail-dot {
    background-color: var(--dark);
}

/* Hide custom cursor on mobile */
@media (max-width: 768px) {
    .cursor-ring, .trail-dot {
        display: none;
    }
}

/* Mobile device optimizations */
.mobile-device {
    cursor: auto !important;
}

.mobile-device .custom-cursor {
    display: none !important;
}

.mobile-device .primary-btn, 
.mobile-device .secondary-btn, 
.mobile-device .submit-btn,
.mobile-device .social-icon,
.mobile-device .skill-card,
.mobile-device .project-card {
    transform: none !important;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}

.cursor-dot {
    display: none; /* Hide old cursor dot */
}

.cursor-outline {
    display: none; /* Hide old cursor outline */
}

.cursor-hover .cursor-dot,
[data-theme="light"] .cursor-dot,
[data-theme="light"] .cursor-outline,
[data-theme="light"] .cursor-hover .cursor-dot,
[data-theme="light"] .cursor-hover .cursor-outline {
    display: none; /* Hide all old cursor styles */
}

@media (max-width: 768px) {
    .cursor-dot, .cursor-outline {
        display: none;
    }
    
    .cursor-ring, .trail-dot {
        display: none;
    }
}