/* ===========================
   Bala Gokul Portfolio
   style.css
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    background:#0d1117;
    color:#e6edf3;
    font-family:'JetBrains Mono', monospace;
    line-height:1.7;
    overflow-x:hidden;
}

/* Matrix Canvas */

#matrix{
    position:fixed;
    inset:0;
    z-index:-2;
    opacity:.08;
}

/* Container */

.container{
    width:min(1100px,90%);
    margin:auto;
}

/* Navigation */

nav{
    position:fixed;
    top:0;
    width:100%;
    z-index:1000;
    backdrop-filter:blur(12px);
    background:rgba(13,17,23,.8);
    border-bottom:1px solid #30363d;
}

.nav-container{
    display:flex;
    justify-content:space-between;
    align-items:center;
    height:70px;
}

.logo{
    color:#58a6ff;
    font-size:1.2rem;
    font-weight:bold;
}

nav ul{
    display:flex;
    list-style:none;
    gap:25px;
}

nav a{
    text-decoration:none;
    color:#c9d1d9;
    transition:.3s;
}

nav a:hover{
    color:#58a6ff;
}

/* Hero */

header{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding-top:70px;
}

.hero h1{
    margin-top:40px;
    font-size:3rem;
}

.hero p{
    max-width:820px;
    margin:25px auto;
    color:#b9c2cc;
    font-size:1.05rem;
}

/* Terminal */

.terminal{
    max-width:800px;
    margin:auto;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 10px 40px rgba(0,0,0,.5);
}

.terminal-header{
    background:#21262d;
    padding:12px;
    display:flex;
    gap:8px;
}

.red,
.yellow,
.green{
    width:12px;
    height:12px;
    border-radius:50%;
}

.red{
    background:#ff5f56;
}

.yellow{
    background:#ffbd2e;
}

.green{
    background:#27c93f;
}

.terminal-body{
    background:#161b22;
    text-align:left;
    padding:30px;
}

pre{
    color:#3fb950;
    white-space:pre-wrap;
    font-size:1rem;
}

/* Buttons */

.hero-buttons{
    margin-top:40px;
}

.btn{
    display:inline-block;
    text-decoration:none;
    padding:14px 28px;
    border-radius:8px;
    margin:10px;
    transition:.3s;
}

.primary{
    background:#238636;
    color:white;
}

.primary:hover{
    background:#2ea043;
    transform:translateY(-3px);
}

.secondary{
    border:1px solid #58a6ff;
    color:#58a6ff;
}

.secondary:hover{
    background:#58a6ff;
    color:white;
}

/* Sections */

section{
    padding:90px 0;
}

section h2{
    text-align:center;
    margin-bottom:45px;
    font-size:2rem;
    color:#58a6ff;
}

/* Cards */

.card{
    background:#161b22;
    border:1px solid #30363d;
    border-radius:15px;
    padding:35px;
}

/* Skills */

.skill{
    margin:28px 0;
}

.skill-title{
    display:flex;
    justify-content:space-between;
    margin-bottom:8px;
}

.bar{
    width:100%;
    height:14px;
    background:#22272e;
    border-radius:30px;
    overflow:hidden;
}

.fill{
    width:0;
    height:100%;
    border-radius:30px;
    background:linear-gradient(90deg,#238636,#58a6ff);
    transition:2s;
}

/* Tech Grid */

.tech-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:25px;
}

.tech-card{
    background:#161b22;
    border:1px solid #30363d;
    border-radius:14px;
    padding:30px;
    text-align:center;
    transition:.35s;
}

.tech-card:hover{
    transform:translateY(-8px);
    border-color:#58a6ff;
    box-shadow:0 0 25px rgba(88,166,255,.15);
}

.tech-card i{
    font-size:3rem;
    margin-bottom:20px;
    color:#58a6ff;
}

.tech-card h3{
    margin-bottom:12px;
}

/* Timeline */

.timeline{
    max-width:900px;
    margin:auto;
}

.timeline-item{
    margin:25px 0;
    background:#161b22;
    border-left:4px solid #58a6ff;
    padding:25px;
    border-radius:0 10px 10px 0;
}

/* Projects */

.project-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:25px;
}

.project-card{
    background:#161b22;
    border:1px solid #30363d;
    border-radius:15px;
    padding:25px;
    transition:.3s;
}

.project-card:hover{
    transform:translateY(-8px);
    border-color:#58a6ff;
}

.project-card h3{
    color:#58a6ff;
    margin-bottom:12px;
}

/* Contact */

.contact-links{
    margin-top:40px;
    display:flex;
    justify-content:center;
    gap:25px;
    flex-wrap:wrap;
}

.contact-links a{
    text-decoration:none;
    color:white;
    padding:15px 30px;
    background:#21262d;
    border-radius:8px;
    transition:.3s;
}

.contact-links a:hover{
    background:#58a6ff;
}

.contact-links i{
    margin-right:8px;
}

/* Footer */

footer{
    border-top:1px solid #30363d;
    text-align:center;
    padding:35px;
    color:#8b949e;
}

/* Scroll Animation */

.fade{
    opacity:0;
    transform:translateY(40px);
    transition:1s;
}

.fade.show{
    opacity:1;
    transform:translateY(0);
}

/* Scrollbar */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-thumb{
    background:#30363d;
}

::-webkit-scrollbar-thumb:hover{
    background:#58a6ff;
}

/* Responsive */

@media(max-width:900px){

nav ul{
    gap:15px;
    font-size:.9rem;
}

.hero h1{
    font-size:2.2rem;
}

}

@media(max-width:700px){

.nav-container{
    flex-direction:column;
    height:auto;
    padding:15px;
}

nav ul{
    flex-wrap:wrap;
    justify-content:center;
    margin-top:12px;
}

header{
    padding-top:140px;
}

.hero h1{
    font-size:2rem;
}

.hero p{
    font-size:.95rem;
}

.terminal-body{
    padding:18px;
}

pre{
    font-size:.85rem;
}

.contact-links{
    flex-direction:column;
}

.tech-grid,
.project-grid{
    grid-template-columns:1fr;
}

}
