/* Base Styles */
:root {
    --primary-color: #e63946;
    --secondary-color: #1a1a1a;
    --text-color: #1a1a1a;
    --bg-color: #f8f9fa;
    --nav-bg: rgba(248, 249, 250, 0.9);
    --mobile-nav-bg: rgba(248, 249, 250, 0.95);
    --social-icon-color: #1a1a1a;
    --social-icon-hover: #e63946;
    --toggle-bg: #1a1a1a;
    --toggle-ball: #f8f9fa;
    --hero-image-shadow: rgba(230, 57, 70, 0.3);
    --box-shadow-color: rgba(230, 57, 70, 0.9);
    --about-shadow: rgba(230, 57, 70, 0.4);
    --particle-bg: #ffffff;
    /* Light background */
    --particle-color: #e63946;
    --card-bg: #ffffff;
}

[data-theme="dark"] {
    --primary-color: #00f5d4;
    --secondary-color: #f8f9fa;
    --text-color: #f8f9fa;
    --bg-color: #1a1a1a;
    --nav-bg: rgba(26, 26, 26, 0.9);
    --mobile-nav-bg: rgba(26, 26, 26, 0.95);
    --social-icon-color: #f8f9fa;
    --social-icon-hover: #00f5d4;
    --toggle-bg: #f8f9fa;
    --toggle-ball: #1a1a1a;
    --hero-image-shadow: rgba(0, 245, 212, 0.3);
    --box-shadow-color: rgba(0, 245, 212, 0.9);
    --about-shadow: rgba(0, 245, 212, 0.4);
    --particle-bg: #0b0f1a;
    /* Dark background */
    --particle-color: #00f5d4;
    --card-bg: #212121;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s, color 0.3s, fill 0.3s;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--nav-bg);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: padding 0.3s, background-color 0.3s;
}
header.scrolled {
    padding: 0.5rem 5%; }
/* Logo Switching */
.logo img {
    height: 100px;
    /* Adjust size */
    transition: transform 0.3s, opacity 0.3s;
}

.logo-dark {
    display: none;
}

[data-theme="dark"] .logo-light {
    display: none;
}

[data-theme="dark"] .logo-dark {
    display: block; }

.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.desktop-nav a:hover::after {
    width: 100%;
}

/* Mobile Menu Button */
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    /* Space between theme toggle and hamburger */ }

.mobile-menu-btn {
    display: flex !important;
    /* Force visibility */
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    margin: 0;
    transition: all 0.3s ease-in-out;
    
}
.mobile-menu-btn:hover .line {
    background: var(--primary-color) !important; }


.mobile-menu-btn .line-top,
.mobile-menu-btn .line-bottom,
.mobile-menu-btn .line-middle {
    width: 25px;
    height: 2px;
    background: var(--text-color);
    transition: all 0.3s ease-in-out;
}
.mobile-menu-btn .line-top:hover,.mobile-menu-btn .line-bottom:hover,.mobile-menu-btn .line-middle:hover {
    background: var(--primary-color);
}

/* Transform into "X" when open */
.mobile-menu-btn.open .top {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.open .middle {
    opacity: 0;
}

.mobile-menu-btn.open .bottom {
    transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav (Fullscreen) */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    transition: right 0.3s;
    z-index: 1000;
    padding: 80px 20px;
}

.mobile-nav.active {
    right: 0; }

/* Typing Animation */
.typing-text {
    color: var(--primary-color);
    /* Dynamically changes with theme */
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    } }

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center; /* Center the links */
}

.mobile-nav a {
  display: inline-block; /* or block */
  text-decoration: none;
  color: var(--text-color);
  font-size: 1.2rem;
  font-weight: 500;
  transition: transform 0.3s ease, color 0.3s ease,opacity 0.3s ease;
}

.mobile-nav a:hover {
  transform: scale(1.08);
  color: var(--primary-color);
}
.mobile-nav a:active {
    opacity: 0.6;
}
/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 5% 4rem;
    gap: 5rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--hero-image-shadow);
    transition: transform 0.3s;
}

.hero-image img:hover {
    transform: translateY(-5px);
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    color: var(--text-color);
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform 0.3s;
}

.social-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--social-icon-color);
    transition: fill 0.3s,box-shadow 0.3s ease-in-out;
}

.social-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 5px var(--hero-image-shadow);
}
.social-icon:active{
    transform: none;
}
.social-icon:hover svg {
    fill: var(--social-icon-hover);
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    margin: 0;
}

.theme-switch {
    display: none;
}

.theme-toggle-label {
    width: 50px;
    height: 26px;
    background-color: var(--toggle-bg);
    display: flex;
    border-radius: 50px;
    align-items: center;
    justify-content: space-between;
    padding: 5px;
    position: relative;
    cursor: pointer;
}

.toggle-ball {
    width: 20px;
    height: 20px;
    background-color: var(--toggle-ball);
    position: absolute;
    top: 3px;
    left: 3px;
    border-radius: 50%;
    transition: transform 0.3s linear;
}
.toggle-ball:hover {
    transform: scale(1.08);
}

.theme-switch:checked+.theme-toggle-label .toggle-ball {
    transform: translateX(24px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .hero-image {
        margin-bottom: 2rem;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .theme-toggle {
        margin-left: auto;
        margin-right: 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .social-icons {
        gap: 1rem;
    }

    .social-icon {
        width: 36px;
        height: 36px;
    }

    .social-icon svg {
        width: 20px;
        height: 20px;
    }

    .mobile-nav {
        width: 80%;
    }
    .header-right {
        gap: 0.5rem;
    }
}
.about {
    padding: 6rem 5% 4rem;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: left;
    scroll-margin-top: 100px;
    /* Adjust scroll offset for fixed header */
}

.about-container {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.about p {
    font-size: 1.1rem;
    line-height: 1.8;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.about .intro {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.about-block {
    background-color: transparent;
    padding: 1.5rem;
    border-left: 3px solid var(--primary-color);
    border-radius: 12px;
    transition: all 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 0;
}

/* Cool Hover Effects */
.about-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            var(--primary-color),
            transparent 60%);
    opacity: 0.05;
    transition: left 0.4s ease;
    z-index: -1;
}

.about-block:hover::before {
    left: 0;
}

.about-block:hover {
    transform: translateY(-8px);
    border-left: 3px solid var(--social-icon-hover);
    /* Red or cyan */
    box-shadow: 0 6px 20px var(--about-shadow);
}

.about-block h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.about-block .emoji {
    display: inline-block;
    transition: transform 0.3s ease;
}

.about-block:hover .emoji {
    transform: rotate(10deg) scale(1.3);
}

.about-block p,
.about-block ul {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
}

.about-block ul {
    padding-left: 1rem;
    list-style-type: disc;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}
.language-cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
    border-radius: 8%;
}

.language-card {
    position: relative;
    width: 180px;
    height: 180px;
    padding: 1rem;
    border-radius: 8%;
    background: var(--bg-color);
    z-index: 0;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s ease;
}

.language-card::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    z-index: -1;
    background: linear-gradient(135deg, var(--primary-color), transparent, var(--primary-color));
    background-size: 300% 300%;
    animation: borderLoop 4s linear infinite;
    border-radius: 8%;
    padding: 2px;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: destination-out;
    margin: 0;
}

.language-card:hover {
    transform: scale(1.05);
}

@keyframes animateBorder {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Inner content */
.card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    height: 100%;
}

.card-inner img {
    width: 36px;
    height: 36px;
    transition: transform 0.3s ease,box-shadow 0.3s ease-in-out;
}

.language-card:hover img {
    transform: scale(1.2) rotate(5deg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.label {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.language-card:hover .label {
    opacity: 1;
    transform: translateY(0);
}
.projects {
    padding: 4rem 2rem;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.project-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.project-card {
    width: 120px;
    height: 150px;
    padding: 1rem;
    background-color: var(--bg-secondary);
    border-radius: 8%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 3px solid;
    border-image: linear-gradient(to right, var(--accent-start), var(--accent-end)) 1;
    
}

.project-card .icon {
    width: 64px;
    height: 64px;
    transition: transform 0.3s ease;
}

.project-card .icon svg {
    width: 100%;
    height: 100%;
    transition: filter 0.3s ease, transform 0.3s ease;
    filter: grayscale(1) brightness(0.8);
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px var(--box-shadow-color);;    
}

.project-card:hover .icon svg {
    filter: brightness(1.2) drop-shadow(0 0 5px var(--accent-start));
    transform: rotate(10deg) scale(1.1);
}

.project-card .label {
    margin-top: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    color: transparent;
    background: linear-gradient(to right, var(--accent-start), var(--accent-end));
    -webkit-background-clip: text;
    background-clip: text;
}

.project-card:hover .label {
    opacity: 1;
    transform: translateY(0);
}
:root {
    --accent-start: #e63946;
    --accent-end: #e6abff;
    --bg-secondary: rgba(255, 255, 255, 0.05);
    --text-color: #ccc;
}

[data-theme='dark'] {
    --accent-start: #6dc7ff;
    --accent-end: #00f5d4;
    --bg-secondary: rgba(255, 255, 255, 0.05);
    --text-color: #fff;
}

[data-theme='light'] {
    --accent-start: #e63946;
    --accent-end: #e6abff;
    --bg-secondary: rgba(0, 0, 0, 0.05);
    --text-color: #222;
}
/* Experience Section */
.experience-section {
    padding: 4rem 5% 2rem;
    position: relative;
}

.experience-section .section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.timeline {
    position: relative;
    margin-left: 20px;
    padding-left: 30px;
    border-left: 3px solid var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-dot {
    position: absolute;
    left: -11px;
    top: 5px;
    width: 16px;
    height: 16px;
    background: var(--bg-color);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    z-index: 1;
}

.timeline-content {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-3px);
}

.timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: var(--text-color);
}

.timeline-content .date {
    font-size: 0.9rem;
    color: var(--primary-color);
    display: inline-block;
    margin-bottom: 0.6rem;
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 0.7rem;
    line-height: 1.5;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tags span {
    padding: 0.25rem 0.7rem;
    font-size: 0.75rem;
    border-radius: 20px;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--text-color);
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.tech-tags span:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color));
    background-size: 200%;
    animation: pulse 1s ease infinite;
    box-shadow: 0 0 10px var(--primary-color);
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline {
        border-left: none;
        margin-left: 0;
        padding-left: 0;
    }

    .timeline-dot {
        display: none;
    }

    .timeline-content {
        border-left: 3px solid var(--primary-color);
        padding-left: 1rem;
    }
}

.timeline-dot {
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% {
    box-shadow: 0 0 0px var(--primary-color);
  }
  50% {
    box-shadow: 0 0 12px var(--primary-color);
  }
}
.timeline-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-out;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}
.contact-section {
    padding: 5rem 5% 4rem;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.contact-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
    text-align: center;
}
.contact-info {
    flex: 1;
    min-width: 280px;
}

.contact-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-info .subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.contact-info .info-line {
    display: flex;
    align-items: center;
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: var(--text-color);
    transition: transform 0.3s ease;
}

.contact-info .info-line svg {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
    fill: var(--text-color);
    transition: fill 0.3s ease, transform 0.3s ease;
}

.contact-info .info-line:hover svg {
    fill: var(--primary-color);
    transform: scale(1.2) rotate(5deg);
}

.contact-form {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    /* subtle backdrop */
    border: 1.5px solid var(--primary-color);
    /* themed subtle border */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    /* soft shadow */
    backdrop-filter: blur(6px);
    transition: border 0.3s ease, box-shadow 0.3s ease;
    margin-top: 50px;
}
.contact-form:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.input-group {
    position: relative;
    width: 100%;
}

.input-group input,
.input-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--text-color);
    padding: 1.25rem 1rem 0.5rem 2.5rem;
    font-size: 1rem;
    color: var(--text-color);
    transition: border-color 0.3s;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.input-group label {
    position: absolute;
    top: 1rem;
    left: 2.5rem;
    font-size: 1rem;
    color: var(--text-color);
    pointer-events: none;
    transition: 0.3s ease all;
}

.input-group input:focus~label,
.input-group textarea:focus~label,
.input-group input:not(:placeholder-shown)~label,
.input-group textarea:not(:placeholder-shown)~label {
    top: -0.50rem;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.form-icon {
    position: absolute;
    top: 50%;
    left: 0.5rem;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    fill: var(--text-color);
    transition: fill 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.input-group:hover .form-icon {
    fill: var(--primary-color);
    transform: scale(1.1) rotate(5deg);
}

.submit-btn {
    width: 100%;
    padding: 0.9rem 1rem;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    background: var(--primary-color);
    color: var(--bg-color);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    /* Required for ripple */
    z-index: 0; }
.submit-btn:hover {
    transform: scale(1.05);
}

/* Responsive Tweaks */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        gap: 2.5rem;
    }

    .submit-btn {
        align-self: center;
    }
}
.mail-id {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease-in-out;
    margin-bottom: 3vh;
}
.mail-id:hover {
    color: var(--primary-color);
}


.contact-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-social .social-icons svg {
    width: 24px;
    height: 24px;
    fill: var(--text-color);
    transition: fill 0.3s, transform 0.3s;
}

.contact-social .social-icons svg:hover {
    fill: var(--primary-color);
    transform: scale(1.2) rotate(5deg);
}
/* Ripple container (button must have overflow hidden) */


/* Ripple span */
.submit-btn::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    background: rgba(255, 255, 255, 0.5);
    /* Ripple color */
    animation: ripple 0.6s linear;
    pointer-events: none;
}

/* Animation */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    background: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    z-index: 1;
}
.footer {
    padding: 1.5rem 5%;
    background: linear-gradient(135deg,
            var(--primary-color),
            var(--primary-color));
    background-color: var(--primary-color);
    /* fallback */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--bg-color);
    text-align: center;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1);
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.footer p {
    font-size: 0.95rem;
    color: var(--bg-color);
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    color: var(--bg-color);
    transition: color 0.3s ease, transform 0.3s ease;
    font-size: 1.2rem;
}

.footer-socials a:hover {
    color: var(--text-color);
    transform: scale(1.2) rotate(5deg);
}
.page-background {
  position: relative;
  z-index: 0;
}

#particles-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
.resume-button {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-start;
}

.resume-button {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-start;
}

.download-resume {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.5rem;
    background: var(--text-color);
    /* theme-dependent */
    color: var(--bg-color);
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    z-index: 0;
    transition: color 0.3s ease, background-color 0.4s ease, transform 0.3s ease;
}

.download-resume::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    /* accent fill */
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.download-resume:hover::before {
    opacity: 1;
}

.download-resume:hover {
    color: var(--bg-color);
    transform: scale(1.04);
}

.download-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.download-resume:hover .download-icon {
    transform: translateY(2px);
}

/* Center on mobile */
@media (max-width: 768px) {
    .resume-button {
        justify-content: center;
    }
}

.skills-progress-section {
    padding: 5rem 5% 4rem;
    text-align: center;
}

.progress-heading {
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2.5rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem 3rem;
    max-width: 900px;
    margin: 0 auto;
    justify-content: center;
}

.skill {
    background: var(--card-bg, rgba(255, 255, 255, 0.03));
    padding: 1.2rem 1rem;
    border-radius: 12px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill:hover {
    transform: scale(1.04);
    box-shadow: 0 0 15px var(--primary-color);
}

.skill-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.6rem;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.skill-label span {
    flex-grow: 1;
}

.skill-icon {
    width: 20px;
    height: 20px;
    margin-right: 6px;
    fill: var(--text-color);
    transition: transform 0.3s ease, fill 0.3s ease;
}

.skill:hover .skill-icon {
    fill: var(--primary-color);
    transform: scale(1.2) rotate(6deg);
}

.icon-wrapper {
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
}
.skill-icon.dark {
    display: none;
}

[data-theme="dark"] .skill-icon.light {
    display: none;
}

[data-theme="dark"] .skill-icon.dark {
    display: inline-block;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

.fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(270deg,
            var(--primary-color),
            var(--primary-color),
            transparent);
    background-size: 300% 100%;
    animation: flow 5s linear infinite;
    border-radius: 10px;
    position: relative;
    transition: width 1.2s ease-in-out;
}

.fill-label {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: var(--bg-color);
    font-weight: bold;
    opacity: 0.9;
}

@keyframes flow {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}
/* ==== Work Page Styling ==== */
.work-page {
    padding: 5rem 5% 3rem;
    background-color: var(--bg-color);
    color: var(--text-color);
    position: relative;
    overflow: hidden;
}

/* ==== Section Title ==== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
}

/* ==== Carousel Wrapper ==== */
.work-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    overflow: visible;
}

/* ==== Carousel Scroll Area ==== */
.work-carousel {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    display: flex;
    justify-content: center;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; }

/* ==== HIDE SCROLLBAR ==== */
.work-carousel::-webkit-scrollbar {
    display: none;
}

.work-carousel {
    scrollbar-width: none;
}
.work-carousel-wrapper {
    overflow: visible;
}



.work-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
/* ==== Carousel Track ==== */
.work-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    padding: 0 1rem; }

.work-card {
    flex: 0 0 45%;
    max-width: 45%;
    scroll-snap-align: center;
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    backdrop-filter: blur(6px);
    transition: transform 0.4s ease, opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.92) rotateY(8deg);
    opacity: 0.4;
}

/* Center card effect */
.work-card.center {
    transform: scale(1) rotateY(0deg);
    opacity: 1;
    z-index: 2;
}
/* Hover effect */
.work-card:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border: 2px solid var(--primary-color);
}

/* Icon inside card */
.work-icon {
    margin-bottom: 1.2rem;
}

.tech-icon {
    width: 48px;
    height: 48px;
    fill: var(--text-color);
    transition: fill 0.3s ease, transform 0.3s ease;
}

.work-card:hover .tech-icon {
    fill: var(--primary-color);
    transform: scale(1.2) rotate(6deg);
}

/* Card text content */
.work-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    text-align: center;
}

.work-description {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    text-align: center;
}

/* Link buttons */
.work-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.work-btn {
    padding: 0.5rem 1.3rem;
    border-radius: 8px;
    font-weight: 600;
    background: var(--primary-color);
    color: var(--bg-color);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.work-btn:hover {
    transform: scale(1.05);
    background: var(--text-color);
    color: var(--primary-color);
}

.work-btn.ghost {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.work-btn.ghost:hover {
    background: var(--primary-color);
    color: var(--bg-color);
}

.work-btn.disabled {
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none;
}

/* ==== Arrow Buttons ==== */
.arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    z-index: 10;
    padding: 0.4rem;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.arrow-btn.left {
    left: 1rem;
}

.arrow-btn.right {
    right: 1rem;
}

.arrow-icon {
    width: 32px;
    height: 32px;
    stroke: var(--primary-color);
    transition: stroke 0.3s ease, transform 0.3s ease;
}

.arrow-btn:hover .arrow-icon {
    transform: scale(1.2);
    stroke: var(--accent-color, var(--primary-color));
    filter: drop-shadow(0 0 6px var(--primary-color));
}

/* === Responsive Fixes === */
@media (max-width: 1024px) {
    .work-card {
        flex: 0 0 60%;
        max-width: 60%;
    }
}

@media (max-width: 768px) {
    .work-card {
        flex: 0 0 85%;
        max-width: 85%;
        transform: scale(0.96);
    }

    .arrow-btn {
        display: none;
    }

    .work-carousel-wrapper {
        padding: 0 0.5rem;
    }

    .work-carousel {
        scroll-padding: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .work-card {
        flex: 0 0 92%;
        max-width: 92%;
        padding: 1.5rem 1rem;
    } }
* {
    box-sizing: border-box;     }
@media (max-width: 600px) {
  .work-card {
    flex: 0 0 90%;
    max-width: 90vw;
    width: 90vw;
    padding: 1.5rem;
    margin: 1rem auto;
  }

  .work-carousel {
    padding: 0 1rem;
  }

  .work-track {
    padding: 0 0.5rem;
  }
}

