/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--accent);
    color: var(--accent-foreground);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transition: transform 0.2s, opacity 0.2s;
    opacity: 0;
    pointer-events: none;
    z-index: 90;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.btn:active {
    transform: translateY(0) scale(0.96);
}

/* Theme Toggle */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--foreground);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.theme-toggle:hover {
    background-color: var(--muted);
}

#theme-toggle {
    display: none !important;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background-color: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #22C55E;
    border-radius: 50%;
}

.status-text {
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
}

/* Tech/Skill Badge */
.tech-badge {
    padding: 0.25rem 0.75rem;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--muted-foreground);
    transition: all 0.2s;
    cursor: default;
}

.tech-badge:hover {
    background-color: var(--secondary);
    border-color: var(--accent);
    color: var(--foreground);
}

/* Shadcn-like Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
}

.badge-accent {
    background-color: rgba(0, 255, 102, 0.05);
    color: var(--accent);
    border: 1px solid rgba(0, 255, 102, 0.2);
}

/* Cards */
.card {
    background-color: var(--secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

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

/* Project Card specifics */
.project-image {
    height: 180px;
    background-color: var(--secondary);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    border: 1px solid rgba(var(--border), 0.5);
    overflow: hidden;
    position: relative;
}

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

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

.project-card:hover .module-grid {
    opacity: 0.5 !important;
}

.project-card:hover .material-icons-round {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
    height: 24px;
    overflow: hidden;
}

/* Tabs */
.tabs {
    margin-bottom: 2rem;
    overflow-x: auto;
}

.tab-list {
    display: inline-flex;
    background-color: var(--muted);
    padding: 4px;
    border-radius: var(--radius);
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    border-radius: calc(var(--radius) - 2px);
    color: var(--muted-foreground);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: var(--foreground);
}

.tab-btn.active {
    background-color: var(--background);
    color: var(--foreground);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Experience Item */
.experience-item {
    position: relative;
    border-left: 2px solid var(--border);
    padding-left: 2rem;
    padding-bottom: 2rem;
}

.experience-item:last-child {
    border-left-color: transparent;
}

.experience-dot {
    position: absolute;
    left: -9px;
    /* (2px border / 2) - (16px dot / 2) */
    top: 0;
    width: 16px;
    height: 16px;
    background-color: var(--background);
    border: 2px solid var(--primary);
    border-radius: 50%;
}

.experience-header {
    margin-bottom: 0.5rem;
}

.experience-responsibilities {
    margin-top: 1rem;
    padding-left: 1rem;
    list-style-type: disc;
    color: var(--muted-foreground);
}

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

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

.fade-in-up {
    opacity: 0;
    /* JS will add 'visible' class to trigger animation */
}

.fade-in-up.visible {
    animation: fadeInUp 0.6s ease forwards;
}

/* Custom Cyber Aesthetics */
.neon-box-text {
    color: transparent;
    -webkit-text-stroke: 2px var(--primary);
    text-shadow: 0 0 15px rgba(0, 255, 102, 0.2);
    font-family: 'Syncopate', sans-serif;
    display: inline-block;
    letter-spacing: 0;
}

/* About Section Styles (replacing inline styles) */
.about-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

.profile-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
    justify-content: center;
}

.profile-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.profile-image-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    flex-shrink: 0;
}

.profile-image-glow {
    position: absolute;
    inset: 0;
    border: 3px solid rgba(99, 102, 241, 0.3);
    border-radius: 2rem;
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.1);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2rem;
    position: relative;
    z-index: 1;
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent);
    border-radius: 2rem;
    font-size: 4rem;
    font-weight: bold;
}

.about-text-card {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.about-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stats-card {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 2rem;
    padding: 2rem;
}

/* Project Info Grid */
.project-info-grid {
    margin: 1.25rem 0;
}

.project-info-grid > div {
    padding: 0.6rem 0;
    transition: background-color 0.2s;
}

.project-info-grid > div:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.project-info-grid span:first-child {
    opacity: 0.5;
    font-weight: 700;
}

.project-card .btn-primary {
    letter-spacing: 2px;
    font-size: 10px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .project-info-grid span:first-child {
        min-width: 60px !important;
        font-size: 8px !important;
    }
    
    .project-info-grid span:last-child {
        font-size: 10px !important;
    }
}

/* Contact Section Styles */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.contact-item-icon {
    padding: 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 0.5rem;
    color: var(--accent);
}

.contact-socials {
    display: flex;
    gap: 1rem;
}

.contact-form-card {
    flex: 1.5;
    min-width: 300px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-input {
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--foreground);
    width: 100%;
}

.form-textarea {
    resize: vertical;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: #050505;
    width: 90%;
    max-width: 850px;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    position: relative;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

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

.modal-header-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .modal-header-text {
        padding: 2.5rem 1.5rem 1.25rem !important;
    }
    
    .modal-body-inner {
        padding: 1.25rem !important;
    }
    
    .modal-meta-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        margin-bottom: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--foreground);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 2;
}

.modal-close:hover {
    background: rgba(99, 102, 241, 0.2);
    color: var(--accent);
    transform: rotate(90deg);
}

.modal-header-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
    background-color: var(--secondary);
}

.modal-body-inner {
    padding: 2rem;
}

.modal-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
}