/* Base styles */
:root {
    --bg-primary: #000;
    --text-primary: #c7c7c7;
    --text-secondary: #c7c7c7;
    --text-light: #c7c7c7;
    --border-color: #b4b4b4;
    --bg-transparent: rgba(0, 0, 0, 0.904);
    --accent-primary: #7A4FF4;
    --accent-secondary: #9D6CFF;
    /* --bg-blur: blur(12px); */
}

/* Smooth animations */
* {
    transition: all 0.3s ease;
}

/* Enhanced glass morphism effect */
#cardss {
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

#cardss::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(122, 79, 244, 0.1), transparent);
    transition: left 0.8s ease;
}

#cardss:hover::before {
    left: 100%;
}

#cardss:hover {
    border-color: rgba(122, 79, 244, 0.3);
    box-shadow: 0 12px 40px rgba(122, 79, 244, 0.2);
    transform: translateY(-5px);
}

/* Start of Selection */
body {
    /* background: url('/static/main.jpeg') no-repeat center center fixed; */
    background-size: cover; 
    margin: 0;
    font-family: 'CodeNewRoman', sans-serif;
    background-color: #0f0f1b;
    max-width: 100vw;
    overflow-x: hidden;
}
/* End of Selection */


/* Layout */
.main-div {
    position: relative;
    inset: 20px;
    gap: 25px;
    color: var(--text-primary);
    display: flex;
    border: none;
    min-height: calc(100vh - 40px);
}

/* Card styling improvements - Enhanced version */
.card-body {
    padding: 30px;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 1.3em;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #7A4FF4, #9D6CFF);
    border-radius: 2px;
}

/* Enhanced badge styling */
.badge {
    background: linear-gradient(135deg, #7A4FF4, #9D6CFF);
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    font-size: 0.7em;
    padding: 4px 8px;
}

/* Gradient text effects */
.profile-content h3 {
    background: linear-gradient(135deg, #7A4FF4, #9D6CFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Enhanced timeline styling */
.timeline-dot {
    background: linear-gradient(135deg, #7A4FF4, #9D6CFF);
    box-shadow: 0 0 10px rgba(122, 79, 244, 0.5);
}

/* Scroll bar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #7A4FF4, #9D6CFF);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #6A3FE4, #8D5CFF);
}

@media (min-width: 1000px) {
    .main-div {
        position: fixed;
        flex-direction: row;
    }
    
    .left-section {
        flex: 0 0 calc(75% - 10px);
        max-height: 100vh;
        overflow-y: auto;
    }
    
    .right-section {
        flex: 0 0 calc(25% - 10px);
        display: flex;
        flex-direction: column;
        gap: 20px;
        background-color: var(--bg-transparent);
        backdrop-filter: var(--bg-blur);
        max-height: 100vh;
        overflow-y: auto;
    }
}

/* Social media links styling */
.social-connections {
    margin-top: 20px !important;
    padding: 15px 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-connections a {
    display: inline-block;
    margin-right: 20px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.social-connections a:hover {
    transform: scale(1.3) translateY(-3px);
    opacity: 1;
}

.social-connections a:hover i {
    color: #7A4FF4 !important;
    text-shadow: 0 0 10px rgba(122, 79, 244, 0.5);
}

/* Technology section styling */
.tech-category-title {
    color: var(--text-primary);
    font-size: 1.1em;
    margin-bottom: 15px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

/* Ensure all text in work experience and education sections is white */
.terminal-section, .terminal-section * {
    color: #c7c7c7 !important;
}

.terminal-section .timeline-item,
.terminal-section .timeline-item *,
.terminal-section .timeline-header,
.terminal-section .timeline-header *,
.terminal-section .timeline-position,
.terminal-section .timeline-date,
.terminal-section .timeline-company,
.terminal-section .timeline-contact {
    color: #c7c7c7 !important;
}

/* Override any purple text in these sections */
.terminal-section .timeline-contact {
    color: #c7c7c7 !important;
    text-shadow: 0 0 5px rgba(199, 199, 199, 0.4);
}

.tech-icon {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.tech-icon:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

/* Button styling improvements */
.btn-outline-primary {
    border: 2px solid #7A4FF4;
    color: #7A4FF4;
    background: transparent;
    border-radius: 6px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-outline-primary:hover {
    background: #7A4FF4;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(122, 79, 244, 0.4);
}
@media (max-width: 1001px) {
    body {
        overflow-y: auto;
        overflow-x: hidden;
        width: 100%;
    }

    .main-div {
        min-height: 100vh;
        flex-direction: column;
        width: 95%;
        margin: 2.5%;
        inset: 0;
        position: relative;
    }
    
    .left-section {
        flex: 1;
        order: 2;
        width: 100%;
        margin-top: 20px;
    }

    .right-section {
        flex: 0 0 auto;
        order: 1;
        margin-bottom: 20px;
        width: 100%;
        height: auto;
        overflow: visible;
        background-color: var(--bg-transparent);
        backdrop-filter: var(--bg-blur);
        min-height: fit-content;
        overflow-y: visible;
        padding: 20px;
        border-radius: 10px;
    }

    .nav {
        display: none;
    }

    .profile-content {
        height: auto;
        min-height: fit-content;
        padding-bottom: 20px;
    }
    
    .social-connections {
        padding: 15px 0 !important;
        text-align: center;
    }
}

.left-section {
    display: flex;
    flex-direction: column;
    align-self: right;
}

.right-section {
    border: 1px solid var(--border-color);
    overflow-y: auto;
    scrollbar-width: none;
    background-color: var(--bg-transparent);
    backdrop-filter: var(--bg-blur)
}

/* Navigation */
.nav {
    width: 100%;
    height: 60px;
    background-color: var(--bg-transparent);
    backdrop-filter: var(--bg-blur);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.nav-text {
    font-size: 20px;
    padding-left: 20px;
    display: inline-flex;
}

.nav-link-space {
    padding-left: 20px;
}

/* Content */
.main-content {
    flex: 1;
    overflow-y: auto;
    /* padding: 30px;
    border: 1px solid var(--border-color); */
    
    scrollbar-width: none; 
    -ms-overflow-style: none; 
    /* background-color: var(--bg-transparent);
    backdrop-filter: var(--bg-blur) */
}

.content-wrapper {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Cards */
.card {
    background-color: var(--bg-transparent);
    backdrop-filter: var(--bg-blur);
    background-color: transparent;
    border-radius: 0;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.profile-card {
    height: 90%;
}

.profile-card a {
    margin-right: 15px;
}

.profile-content {
    padding: 20px;
    height: 300px;   
}

/* Buttons */
.btn-outline-light {
    border-radius: 0;
    border: 1px solid var(--border-color);
}

/* Typography */
a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

p {
    color: var(--text-secondary);
}

li {
    color: var(--text-primary);
}

/* Utilities */
.separator {
    height: 1px;
    width: 100%;
    background-color: var(--border-color);
    margin: 0;
}

.space {
    padding-top: 5px;
}

.no-select {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Custom padding styles */
.p-3.custom-padding.flex-grow-1 {
    height: auto;
    overflow: visible;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.p-3.custom-padding.flex-grow-1::-webkit-scrollbar {
    display: none;
}

/* Footer */
.footer {
    width: 100%;
    margin-top: 20px;
    padding: 16px 0 1px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-transparent);
    backdrop-filter: var(--bg-blur)
}

/* Overlays */
#jumpscare-overlay,
#love-overlay {
    position: fixed;
    inset: 0;
    background-color: var(--bg-primary);
    display: none;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
    font-size: 50px;
    z-index: 9999;
}

.love-message {
    position: absolute;
    color: var(--text-primary);
    text-align: center;
}

#loading-screen {
    position: fixed;
    inset: 0;
    background: rgb(0, 0, 0);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    z-index: 9998;
}

.box {
    border: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    border-radius: 0;
}

.card-body {
    background-color: var(--bg-transparent);
}

/* Secret Gallery Modal Styles */
.secret-gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

.secret-gallery-modal.active {
    opacity: 1;
}

.secret-gallery-content {
    position: relative;
    width: 95%;
    max-width: 1400px;
    margin: 30px auto;
    background: var(--bg-primary);
    border: 1px solid var(--text-secondary);
    padding: 25px;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.secret-gallery-modal.active .secret-gallery-content {
    transform: translateY(0);
    opacity: 1;
}

.category-section {
    margin-bottom: 40px;
}

.category-title {
    color: var(--text-primary);
    font-family: 'CodeNewRoman', monospace;
    font-size: 1.8em;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--text-secondary);
}

.secret-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 10px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    border: 1px solid var(--text-secondary);
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.02);
    border-color: var(--text-primary);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.gallery-item img, 
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
    filter: brightness(1.1);
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    transform: translateY(0);
}

.gallery-item-title {
    color: var(--text-primary);
    font-family: 'CodeNewRoman', monospace;
    font-size: 1em;
    margin: 0;
}

.gallery-item-desc {
    color: var(--text-secondary);
    font-size: 0.85em;
    margin: 8px 0 0;
    font-family: monospace;
    opacity: 0.8;
}

/* Video controls styling */
.gallery-item video::-webkit-media-controls-panel {
    background: rgba(0, 0, 0, 0.7);
}

.gallery-item video::-webkit-media-controls-play-button,
.gallery-item video::-webkit-media-controls-volume-slider,
.gallery-item video::-webkit-media-controls-mute-button,
.gallery-item video::-webkit-media-controls-timeline {
    filter: invert(1);
}

/* Preview Modal Styles */
.preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.preview-modal.active {
    opacity: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preview-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.preview-content img,
.preview-content video {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.preview-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s ease;
}

.preview-close:hover {
    color: #fff;
}

.preview-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 20px;
    transition: all 0.3s ease;
    z-index: 10001;
}

.preview-nav:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.preview-prev {
    left: 20px;
}

.preview-next {
    right: 20px;
}

.preview-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--text-primary);
    font-family: 'CodeNewRoman', monospace;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .secret-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .category-title {
        font-size: 1.5em;
    }
    
    .secret-gallery-content {
        padding: 15px;
        margin: 15px auto;
    }
}
