/* =========================================
   HUD LAYOUT & IRON MAN AESTHETICS (REFACTORED)
   ========================================= */

:root {
    --bg-dark: #050505;
    --bg-panel: rgba(10, 15, 20, 0.85);
    --primary-cyan: #00f3ff;
    --secondary-blue: #0066ff;
    --accent-red: #ff3333;
    --text-main: #e0e6ed;
    --text-muted: #8892b0;
    --border-tech: 1px solid rgba(0, 243, 255, 0.3);
    --tech-glow: 0 0 10px rgba(0, 243, 255, 0.2);
}

/* --- Base --- */
body {
    background-color: var(--bg-dark);
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)),
        url('../images/circuit-bg.png');
    font-family: 'Rajdhani', sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
}

/* --- Tech Card Design (The "Futuristic Data Card") --- */
.tech-card {
    background: var(--bg-panel);
    border: 1px solid rgba(0, 243, 255, 0.1);
    position: relative;
    padding: 30px;
    margin-bottom: 30px;
    clip-path: polygon(0 0,
            100% 0,
            100% calc(100% - 20px),
            calc(100% - 20px) 100%,
            0 100%);
    /* Cut corner bottom-right */
    transition: all 0.3s ease;
}

.tech-card::before {
    /* Top-left accent */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-top: 2px solid var(--primary-cyan);
    border-left: 2px solid var(--primary-cyan);
}

.tech-card::after {
    /* Bottom-right accent */
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 2px;
    background: var(--primary-cyan);
    transform: rotate(-45deg);
    transform-origin: bottom right;
}

.tech-card:hover {
    box-shadow: 0 0 20px var(--tech-glow);
    border-color: rgba(0, 243, 255, 0.5);
    transform: translateY(-5px);
}

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

.card-header h3 {
    font-family: 'Michroma', sans-serif;
    font-size: 1.2rem;
    color: var(--primary-cyan);
    margin: 0;
    text-transform: uppercase;
}

.card-icon {
    font-size: 1.5rem;
    color: var(--text-muted);
}

/* --- Header & Nav --- */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.9);
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 15px 0;
}

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

.site-title {
    font-family: 'Michroma', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.site-title .highlight {
    color: var(--primary-cyan);
}

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

.nav-links a {
    font-family: 'Michroma', sans-serif;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary-cyan);
    text-shadow: 0 0 8px var(--primary-cyan);
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.hero-label {
    font-size: 0.9rem;
    color: var(--accent-red);
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-family: 'Michroma', sans-serif;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    border-left: 3px solid var(--primary-cyan);
    padding-left: 20px;
}

.btn-tech {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(90deg, transparent 5%, var(--primary-cyan) 5%, var(--primary-cyan) 95%, transparent 95%);
    color: #000;
    font-family: 'Michroma', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
    transition: 0.3s;
    cursor: pointer;
    border: none;
}

.btn-tech:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--primary-cyan);
}

/* --- Sections --- */
.section-title {
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-family: 'Michroma', sans-serif;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title .count {
    font-size: 1.5rem;
    color: var(--primary-cyan);
    border: 1px solid var(--primary-cyan);
    padding: 5px 10px;
    border-radius: 4px;
}

/* --- About & Skills --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.skill-row {
    margin-bottom: 20px;
}

.skill-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-family: 'Michroma', sans-serif;
    font-size: 0.9rem;
}

.skill-bar-container {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    background: var(--primary-cyan);
    width: 0;
    position: relative;
    box-shadow: 0 0 10px var(--primary-cyan);
    transition: width 1.5s ease-out;
}

/* --- Portfolio --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-img-container {
    height: 200px;
    background: #000;
    position: relative;
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
    overflow: hidden;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 243, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-overlay span {
    border: 1px solid var(--primary-cyan);
    padding: 10px 20px;
    color: var(--primary-cyan);
    font-family: 'Michroma', sans-serif;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.project-content {
    padding: 25px;
}

.project-meta {
    font-size: 0.8rem;
    color: var(--primary-cyan);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.btn-link {
    display: inline-block;
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

.btn-link:hover {
    color: var(--primary-cyan);
    text-shadow: 0 0 5px var(--primary-cyan);
}

/* --- Contact Form --- */
.contact-form input,
.contact-form textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 243, 255, 0.3);
    padding: 15px;
    color: #fff;
    margin-bottom: 20px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
    outline: none;
}

/* --- Footer --- */
.site-footer {
    border-top: 1px solid rgba(0, 243, 255, 0.1);
    padding: 40px 0;
    margin-top: 80px;
    background: #020202;
    text-align: center;
    color: var(--text-muted);
}

.footer-socials a {
    margin: 0 15px;
    color: var(--text-main);
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .site-title {
        font-size: 1.2rem;
    }

    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        gap: 15px;
        font-size: 0.7rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-content {
        width: 100%;
    }

    .hero-visual {
        height: 300px;
        margin-bottom: 30px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-description {
        margin: 0 auto 30px;
        border-left: none;
        border-top: 2px solid var(--primary-cyan);
        padding-top: 10px;
    }

    .about-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Keyframes --- */
@keyframes spin {
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes spin-reverse {
    100% {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 40px var(--primary-cyan);
    }

    100% {
        box-shadow: 0 0 80px var(--primary-cyan), 0 0 120px rgba(0, 243, 255, 0.5);
    }
}