/* --- Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
  font-family: 'Consolas', 'Courier New', Courier, monospace; 
  line-height: 1.6;
  color: #c8d3f5;
  background-color: #000000;
  scroll-behavior: smooth;
}

/* --- Navigation Bar --- */
.navbar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    background-color:rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    border-bottom: 1px solid #00ff66;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.3);
}

.logo{
    font-size: 1.3rem;
    font-weight: bold;
    color: #00ff66;
    text-shadow: 0 0 8px rgba(0, 255, 102, 0.5);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #82aaff;
    transition: color 0.2s;
    font-weight: bold;
}

.nav-links a:hover {
    color: #00ff66;
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 5rem 1rem;
    background: linear-gradient(108deg, #1e293b, 0%, #0f172a, 100%);
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.highlight {
    color: #38bdf8;
}

.hero p {
    font-size: 1.2rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

/*--- Layout Containers & Headings---*/
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.bg-alt{
    background-color: #05050a;
    border: 1px solid #1a1b26;
    border-radius: 4px;
}

h2{
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #00ff66;
    border-bottom: 1px dashed #00ff66;
    display: inline-block;
    padding-bottom: 0.3rem;
}

.highlight {
    color: #00ff66;
}

/* --- About Section --- */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.profile-img{
    border-radius: 50%;
    border: 3px solid #38bdf8;
    width: 180px;
    height: 180px;
    object-fit: cover;
}

.about-text {
    flex: 1;
    min-width: 250px;
}

.skills {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge{
    background-color: #334155;
    color: #38bdf8;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* --- Projects Grid --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background-color: #0f172a;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #334155;
    transition: transform 0.2s, border-color 0.2s;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: #38bdf8;
}

.project-card h3 {
    margin-bottom: 0.5rem;
    color: #f1f5f9;
}

.tech-tag{
    color: #a855f7;
    font-size: 0.75rem;
    margin-top: 1rem;
    font-weight: bold;
    display: inline-block;
}

/* --- Silly Zone & List Styling --- */
.fun-list {
    margin-top: 1rem;
    margin-left: 1.5rem;
    line-height: 2;
}

.text-center {
    text-align: center;
}

.btn, .btn-outline{
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border-radius: 3px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s;
}

.btn{
    background-color: #000000;
    border: 1px solid #00ff66;
    color: #00ff66;
}

.btn:hover{
    background-color: #00ff66;
    color: #000000;
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.4);
}

.btn-outline{
    border: 1px solid #82aaff;
    color: #82aaff;
    background-color: transparent;
}

.btn-outline:hover{
    background-color: #82aaff;
    color: #000000;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.contact-intro{
    color: #94a3b8;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.social-card {
    display: flex;
    align-items: center;
    background-color: #030305;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #1a1b26;
    text-decoration: none;
    transition: all 0.25s ease;
}

.social-icon{
    width: 40px;
    height: 40px;
    background-color: #0a0b10;
    border: 1px solid #334155;
    color: #00ff66;
    font-weight: bold;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin-right: 1rem;
    transition: border-color 0.2s, background-color 0.2s;
}

.social-info{
    display: flex;
    flex-direction: column;
    flex: 1;
}

.social-label{
    color: #f1f5f9;
    font-size: 0.95rem;
    font-weight: bold;
}

.social-handle{
    color: #64748b;
    font-size: 0.8rem;
    transition: color 0.2s;
}

.social-arrow{
    color: #334155;
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.2s, transform 0.2s;
}

/*--- Hover Effects---*/
.social-card:hover{
    border-color: #00ff66;
    background-color: #060a08;
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.15);
    transform: translateY(-2px);
}

.social-card:hover .social-icon{
    border-color: #00ff66;
    background-color: #00ff6615;
}

.social-card:hover .social-handle{
    color: #82aaff;
}

.social-card:hover .social-arrow{
    color: #00ff66;
    transform: translate(2px, -2px);
}

.status-box {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px dashed #00ff66;
  background-color: #000000;
  font-size: 0.9rem;
}

.btn-outline{
    border: 1px solid #38bdf8;
    color: #38bdf8;
}

.btn-outline:hover{
    background-color: #38bdf8;
    color: #0f172a;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid #1e293b;
    color: #64748b;
    font-size: 0.85rem;
}

/*--- CRT Scanline Overlay ---*/
.scanline{
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    background-image: linear-gradient(
        rgba(18, 16, 16, 0) 50%,
        rgba(0, 0, 0, 0.25) 50%
    );
    background-size: 100% 4px;
    z-index: 999;
}

/* --- Glowing Card Effect --- */

.project-card {
    position: relative;
    background-color: #05050a;
    padding: 1.5rem;
    border-radius: 4px;
    border: 1px solid #1a1b26;
    transition: all 0.3s ease;
    overflow: hidden;
}

.project-card:hover {
    border-color: #00ff66;
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.25);
    transform: translateY(-5px);
}

/* --- Interactive Terminal Window --- */
.terminal-window {
    background-color: #030305;
    border: 1px solid #00ff66;
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.15);
    font-family: 'Consolas', 'Courier New', monospace;
    color: #00ff66;
    overflow: hidden;
}

.terminal-header {
    background-color: #0f111a;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid #1a1b26;
}

.dot{
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.red{ background-color: #ff5f56; }
.yellow{ background-color: #ffbd2e; }
.green{ background-color: #27c93f; }

.terminal-title {
    color: #64748b;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.terminal-body {
    padding: 1rem;
    max-height: 180px;
    overflow-y: auto;
    font-size: 0.9rem;
}

.term-line {
    margin-bottom: 0.4rem;
    color: #c8d3f5;
}

.term-cmd{
    color: #00ff66;
    font-weight: bold;
}

.terminal-input-row{
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: #090a10;
    border-top: 1px solid #1a1b26;
}

.prompt{
    color: #00ff66;
    font-weight: bold;
    margin-right: 0.5rem;
    text-shadow: 0 0 5px rgba(0, 255, 102, 0.6);
}

#terminal-input{
    background: transparent;
    border: none;
    color: #82aaff;
    font-family: inherit;
    font-size: inherit;
    outline: none;
    width: 100%;
}

#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {

    html, body{
        overflow-x: hidden;
        width: 100%;
    }

    .container {
        padding: 2.5rem 1rem;
    }

    .navbar {
        flex-direction: column;
        padding: 0.85rem 1rem;
        gap: 0.8rem;
        text-align: center;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.85rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero{
        padding: 3rem 1rem;
    }

    .hero h1 {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 1rem;
    }

    .terminal-window {
        margin: 1rem 0;
        width: 100%;
    }

    .terminal-body{
        padding: 0.75rem;
        font-size: 0.8rem;
        max-height: 220px;
    }

    .terminal-input-row{
        padding: 0.4rem 0.75rem;
    }

    #terminal-input{
        font-size: 0.8rem;
        min-width: 0;
    }

    .about-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-img {
        width: 130px;
        height: 130px;
    }

    .skills{
        justify-content: center;
    }

    .project-grid,
    .social-grid{
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .social-card{
        padding: 0.8rem;
    }

    .social-icon{
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }

    .social-label{
        font-size: 0.85rem;
    }

    .social-handle{
        font-size: 0.75rem;
        word-break: break-all;
    }

    .social-links {
        flex-direction: column;
        align-items: stretch;
    }
}
