/* Base Styles */
:root {
    --primary-color: #00f0ff;
    --secondary-color: #ff00f0;
    --accent-color: #7b00ff;
    --dark-color: #0a0a1a;
    --light-color: #f0f0f0;
    --text-color: #e0e0e0;
    --text-dark: #333;
    --success-color: #00ff88;
    --warning-color: #ffaa00;
    --error-color: #ff0044;
    
    --font-main: 'Orbitron', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
    --font-tech: 'Share Tech Mono', monospace;
    --font-sci-fi: 'Audiowide', cursive;
    
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 240, 255, 0.2);
    --text-shadow: 0 0 10px rgba(0, 240, 255, 0.7);
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-main);
    font-weight: 700;
}

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

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

ul {
    list-style: none;
}

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

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

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

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

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

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--dark-color);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.8);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--dark-color);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.8);
    transform: translateY(-3px);
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1001;
}

.theme-switch {
    display: none;
}

.theme-label {
    width: 60px;
    height: 30px;
    background: var(--dark-color);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    position: relative;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
    transition: var(--transition);
}

.theme-label i {
    font-size: 0.9rem;
    color: var(--primary-color);
}

.theme-label .fa-sun {
    color: var(--warning-color);
}

.theme-ball {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 4px;
    left: 5px;
    transition: transform 0.3s ease;
}

.theme-switch:checked + .theme-label .theme-ball {
    transform: translateX(28px);
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
    background-color: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(10px);
}

#navbar.scrolled {
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

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

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

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

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

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

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

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

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

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1002;
    transition: var(--transition);
    border-right: 1px solid rgba(0, 240, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

.sidebar-close {
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

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

.sidebar-links {
    flex: 1;
    padding: 20px 0;
}

.sidebar-links li {
    margin-bottom: 10px;
}

.sidebar-links a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-color);
    transition: var(--transition);
    font-family: var(--font-tech);
    font-size: 1.1rem;
}

.sidebar-links a i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}

.sidebar-links a:hover {
    background: rgba(0, 240, 255, 0.1);
    color: var(--primary-color);
    padding-left: 25px;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(0, 240, 255, 0.1);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 240, 255, 0.1) 0%, rgba(10, 10, 26, 0) 70%);
    z-index: -1;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-image img {
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--text-color);
}

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

/* Glitch Effect */
.glitch {
    position: relative;
}

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

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

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

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

/* Typewriter Effect */
.typewriter {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    height: 40px;
}

.typed-text {
    color: var(--secondary-color);
    font-weight: bold;
}

.cursor {
    display: inline-block;
    width: 3px;
    margin-left: 4px;
    background: var(--primary-color);
    animation: blink 1s infinite;
}

.cursor.typing {
    animation: none;
}

@keyframes blink {
    0%  { background: transparent; }
    50% { background: var(--primary-color); }
    100%  { background: transparent; }
}

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

.about-image {
    position: relative;
    flex: 1;
}

.about-image img {
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.02);
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.5);
}

.tech-stack {
    position: absolute;
    bottom: -20px;
    left: 40%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    background: rgba(10, 10, 26, 0.8);
    padding: 15px 25px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

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

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

.about-text {
    flex: 1;
}

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

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

.about-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.detail-item {
    display: flex;
    gap: 10px;
}

.detail-item span {
    font-weight: 600;
    color: var(--primary-color);
}

/* Skills Section */
.skills-content {
    display: flex;
    gap: 50px;
    margin-top: 50px;
}

.skills-technical, .skills-experience {
    flex: 1;
}

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

.bar {
    margin-bottom: 25px;
}

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

.bar .info span {
    font-weight: 600;
}

.progress-line {
    height: 10px;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.progress-line span {
    position: absolute;
    height: 100%;
    width: 0;
    top: 0;
    left: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 5px;
    animation: animate 1.5s cubic-bezier(1, 0, 0.5, 1) forwards;
}

@keyframes animate {
    100% {
        width: 100%;
    }
}

.html span {
    width: 95%;
}

.css span {
    width: 90%;
}

.js span {
    width: 85%;
}

.react span {
    width: 80%;
}

.node span {
    width: 75%;
}

.timeline {
    position: relative;
    margin-top: 30px;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 5px;
    left: -10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

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

.timeline-content h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.timeline-content p:first-of-type {
    font-weight: 600;
    margin-bottom: 10px;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(0, 240, 255, 0.1);
    opacity: 0;
    transform: translateY(20px);
}

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

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.2);
    border-color: rgba(0, 240, 255, 0.3);
}

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

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.project-links {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: var(--transition);
}

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

.project-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.project-link:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.project-info p {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

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

.project-tech span {
    padding: 5px 10px;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 5px;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 8px 20px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-tech);
    font-size: 0.9rem;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-color);
    color: var(--dark-color);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

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

.blog-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0, 240, 255, 0.1);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.2);
    border-color: rgba(0, 240, 255, 0.3);
}

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

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.blog-date {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: var(--dark-color);
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-family: var(--font-tech);
    line-height: 1;
}

.blog-date .day {
    font-size: 1.5rem;
    font-weight: bold;
    display: block;
}

.blog-date .month {
    font-size: 0.9rem;
    text-transform: uppercase;
}

.blog-content {
    padding: 20px;
}

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-family: var(--font-tech);
}

.blog-meta span i {
    margin-right: 5px;
}

.blog-content h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.blog-content h3 a {
    color: var(--text-color);
    transition: var(--transition);
}

.blog-content h3 a:hover {
    color: var(--primary-color);
}

.blog-content p {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.blog-read-more i {
    margin-left: 5px;
    transition: var(--transition);
}

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

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

.blog-cta {
    text-align: center;
    margin-top: 50px;
}

/* Resume Section */
.resume-content {
    display: flex;
    gap: 50px;
    margin-top: 50px;
}

.resume-download {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.resume-download img {
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
    transition: var(--transition);
}

.resume-download img:hover {
    transform: scale(1.02);
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.5);
}

.resume-skills {
    flex: 1;
}

.resume-skills h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.resume-skills ul {
    margin-bottom: 40px;
}

.resume-skills li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.resume-skills li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.education-item {
    margin-bottom: 25px;
}

.education-item h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

/* Contact Section */
.contact-content {
    display: flex;
    gap: 50px;
    margin-top: 50px;
}

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

.contact-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 240, 255, 0.1);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 240, 255, 0.2);
    border-color: rgba(0, 240, 255, 0.3);
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-item h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.social-links {
    grid-column: span 2;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-links a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 240, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

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

.contact-form {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid rgba(0, 240, 255, 0.1);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 5px;
    color: var(--text-color);
    font-family: var(--font-secondary);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

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

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 30px 0;
    text-align: center;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

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

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light-color);
    font-family: var(--font-main);
}

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

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-color);
    transition: var(--transition);
}

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

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

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

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

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

/* Light Theme Styles */
[data-theme="light"] {
    --primary-color: #0070f3;
    --secondary-color: #7928ca;
    --accent-color: #00a8e8;
    --dark-color: #ffffff;
    --light-color: #1a1a1a;
    --text-color: #333333;
    --text-dark: #f0f0f0;
    --success-color: #00cc66;
    --warning-color: #ff9900;
    --error-color: #ff0044;
    --box-shadow: 0 5px 15px rgba(0, 112, 243, 0.2);
    --text-shadow: 0 0 10px rgba(0, 112, 243, 0.7);
}

[data-theme="light"] body {
    background-color: var(--dark-color);
    color: var(--text-color);
}

[data-theme="light"] .nav-links a,
[data-theme="light"] .sidebar-links a,
[data-theme="light"] .blog-content h3 a {
    color: var(--light-color);
}

[data-theme="light"] #navbar,
[data-theme="light"] .sidebar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

[data-theme="light"] .project-card,
[data-theme="light"] .blog-card,
[data-theme="light"] .contact-item,
[data-theme="light"] .contact-form,
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .project-card:hover,
[data-theme="light"] .blog-card:hover,
[data-theme="light"] .contact-item:hover {
    box-shadow: 0 10px 30px rgba(0, 112, 243, 0.2);
    border-color: var(--primary-color);
}

[data-theme="light"] .theme-label {
    background: var(--light-color);
    border-color: var(--primary-color);
}

[data-theme="light"] .theme-label i {
    color: var(--primary-color);
}

[data-theme="light"] .theme-ball {
    background: var(--primary-color);
}

/* Loading State */
.btn.loading {
    position: relative;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    border: 3px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: button-loading-spinner 1s linear infinite;
}

@keyframes button-loading-spinner {
    from { transform: rotate(0turn); }
    to { transform: rotate(1turn); }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .container {
        width: 95%;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content, .about-content, .skills-content, 
    .resume-content, .contact-content {
        flex-direction: column;
    }
    
    .hero-image, .about-image, .resume-download {
        margin-bottom: 40px;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .social-links {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .projects-grid, .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .project-filters {
        gap: 5px;
    }
    
    .filter-btn {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
    
    .theme-toggle {
        top: 20px;
        right: 20px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }
    
    .about-details {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        width: 100%;
        left: -100%;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .form-group input, 
    .form-group textarea {
        padding: 12px;
    }
}

/* Mobile Landscape */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        padding: 100px 0;
    }
    
    .hero .container {
        flex-direction: row;
    }
    
    .hero-content {
        margin-bottom: 0;
    }
}

/* Tablet Portrait */
@media (min-width: 768px) and (max-width: 992px) and (orientation: portrait) {
    .hero-image img {
        max-width: 300px;
    }
    
    .about-image img {
        max-width: 80%;
        margin: 0 auto;
    }
}

/* Print Styles */
@media print {
    body * {
        visibility: hidden;
    }
    
    #resume, #resume * {
        visibility: visible;
    }
    
    #resume {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    
    .btn, .theme-toggle, .sidebar, .navbar {
        display: none !important;
    }
}