/* --- Home Redesign Variables --- */
:root {
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --accent-color: #6c5ce7;
    --text-color: #2d3436;
    --text-light: #dfe6e9;
}

/* --- General Utilities --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, #0984e3, #e84393);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* --- Hero Slider (3D Coverflow-ish) --- */
.hero-slider-container {
    perspective: 1000px;
    overflow: hidden;
    padding: 2rem 0;
    position: relative;
    height: 400px;
    /* Adjust based on image aspect ratio */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide {
    position: absolute;
    width: 60%;
    /* Main slide width */
    max-width: 800px;
    transition: all 0.5s ease-in-out;
    opacity: 0;
    transform: translateX(100%) scale(0.8) rotateY(-15deg);
    z-index: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.hero-slide.active {
    opacity: 1;
    transform: translateX(0) scale(1) rotateY(0);
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.hero-slide.prev {
    opacity: 0.6;
    transform: translateX(-60%) scale(0.8) rotateY(15deg);
    z-index: 5;
}

.hero-slide.next {
    opacity: 0.6;
    transform: translateX(60%) scale(0.8) rotateY(-15deg);
    z-index: 5;
}

.hero-slide img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.hero-slide:hover img {
    transform: scale(1.05);
}

/* --- Tech Grid (Premium Cards) --- */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tech-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tech-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

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

.tech-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.1));
}

.tech-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

/* Description Tooltip/Modal Area */
.tech-desc-area {
    min-height: 100px;
    margin-top: 2rem;
    padding: 2rem;
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.tech-desc-area.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Terminal Playground (Interactive) --- */
.terminal-wrapper {
    background: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    font-family: 'Fira Code', monospace;
    max-width: 900px;
    margin: 0 auto;
}

.terminal-header {
    background: #2d2d2d;
    padding: 10px 15px;
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.terminal-body {
    display: flex;
    flex-direction: column;
    padding: 0;
}

@media (min-width: 768px) {
    .terminal-body {
        flex-direction: row;
        height: 350px;
    }
}

.terminal-pane {
    flex: 1;
    padding: 20px;
    color: #d4d4d4;
    font-size: 0.9rem;
    overflow-y: auto;
}

.terminal-pane.request {
    border-right: 1px solid #333;
    background: #1e1e1e;
}

.terminal-pane.response {
    background: #252526;
}

.code-line {
    display: block;
    margin-bottom: 5px;
    line-height: 1.5;
}

.keyword {
    color: #c586c0;
}

.string {
    color: #ce9178;
}

.function {
    color: #dcdcaa;
}

.number {
    color: #b5cea8;
}

.comment {
    color: #6a9955;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background: #d4d4d4;
}

.hero-slide.prev {
    opacity: 0.6;
    transform: translateX(-60%) scale(0.8) rotateY(15deg);
    z-index: 5;
}

.hero-slide.next {
    opacity: 0.6;
    transform: translateX(60%) scale(0.8) rotateY(-15deg);
    z-index: 5;
}

.hero-slide img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.hero-slide:hover img {
    transform: scale(1.05);
}

/* --- Tech Grid (Premium Cards) --- */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tech-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tech-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

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

.tech-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.1));
}

.tech-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

/* Description Tooltip/Modal Area */
.tech-desc-area {
    min-height: 100px;
    margin-top: 2rem;
    padding: 2rem;
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.tech-desc-area.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Terminal Playground (Interactive) --- */
.terminal-wrapper {
    background: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    font-family: 'Fira Code', monospace;
    max-width: 900px;
    margin: 0 auto;
}

.terminal-header {
    background: #2d2d2d;
    padding: 10px 15px;
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.terminal-body {
    display: flex;
    flex-direction: column;
    padding: 0;
}

@media (min-width: 768px) {
    .terminal-body {
        flex-direction: row;
        height: 350px;
    }
}

.terminal-pane {
    flex: 1;
    padding: 20px;
    color: #d4d4d4;
    font-size: 0.9rem;
    overflow-y: auto;
}

.terminal-pane.request {
    border-right: 1px solid #333;
    background: #1e1e1e;
}

.terminal-pane.response {
    background: #252526;
}

.code-line {
    display: block;
    margin-bottom: 5px;
    line-height: 1.5;
}

.keyword {
    color: #c586c0;
}

.string {
    color: #ce9178;
}

.function {
    color: #dcdcaa;
}

.number {
    color: #b5cea8;
}

.comment {
    color: #6a9955;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background: #d4d4d4;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* --- Sign-In Modal --- */
#loginModal {
    background: rgba(0, 0, 0, 0.6);
}

#signpopup {
    background: var(--whitish);
}

.flashing-text {
    font-weight: bold;
    color: #e84393;
    margin: 1rem 0;
    animation: flash 1s infinite;
}

@keyframes flash {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.2;
    }
}

.privacy-disclaimer {
    font-size: 0.8rem;
    color: #666;
    margin-top: 1.5rem;
    line-height: 1.4;
}