/* ===============================
   Reset & Base
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: radial-gradient(circle at top, #07142c, #020617 70%);
    color: #c9d1d9;
}

/* ===============================
   Header
================================ */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #30363d;
    z-index: 1000;
}

.logo {
    color: #3fb950;
}

.header nav a {
    margin-left: 25px;
    text-decoration: none;
    color: #c9d1d9;
    font-size: 15px;
}

.header nav a:hover {
    color: #58a6ff;
}

/* ===============================
   Section Base
================================ */
.intro {
    min-height: 100vh;
    padding: 120px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.section {
    padding: 100px 10%;
}

/* ===============================
   Hero / Intro
================================ */
.intro {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.intro-left {
    max-width: 520px;
}

.intro-left h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 10px;
}

.role {
    font-size: 22px;
    color: #58a6ff;
}

.tagline {
    margin-top: 15px;
    color: #8b949e;
    line-height: 1.6;
    font-size: 20px;
}

/* Status */
.status {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #8b949e;
}

.dot-status {
    width: 8px;
    height: 8px;
    background: #3fb950;
    border-radius: 50%;
}

/* Tech Stack */
.tech-stack {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tech-stack span {
    background: #161b22;
    border: 1px solid #30363d;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 17px;
    color: #58a6ff;
}

/* Social */
.socials {
    margin-top: 20px;
    margin-left: 50px;
}

.socials a {
    margin-right: 15px;
    font-size: 22px;
    color: #58a6ff;
    margin-left: 40px;
}

.socials a:hover {
    color: #3fb950;
}



/* ===============================
   About
================================ */
.about {
    border-top: 1px solid #30363d;
}

.about-container {
    max-width: 700px;
}

.about h2 {
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.about p {
    color: #8b949e;
    line-height: 1.7;
    font-size: 25px;
}

.about-meta {
    margin-top: 25px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-family: monospace;
    font-size: 20px;
}

.about-meta span {
    color: #58a6ff;
}
/* About layout fix */
.about{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:80px;
}

/* Code block on right */
.code-window{
    /* background:#161b22; */
    /* border:1px solid #30363d; */
    border-radius:10px;
    padding:25px;
    width:420px;
    /* box-shadow:0 0 40px rgba(88,166,255,0.08); */
}

/* Code text */
.code-window pre{
    font-family:"Courier New", monospace;
    font-size:15px;
    line-height:1.7;
    font-size: 21px;
    /* color:#58a6ff; */
    margin-top: 14px;
    margin-left: 50px;
}
/* .about-wrapper{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:80px;
    flex-wrap:wrap;
} */

/* ===============================
   Education
================================ */
.education-text pre {
    font-family: "Courier New", monospace;
    font-size: 18px;      /* Increased from 15px */
    line-height: 1.9;
    color: #c9d1d9;
    white-space: pre-wrap;
}
.section-title {
    font-size: 32px;
    font-family: "Courier New", monospace;
    letter-spacing: 1px;
}

.about-wrapper{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:80px;
}

.about-container{
    flex:1;
}

.education-side{
    flex:1;
}
.about-wrapper{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:80px;
}

.about-container{
    flex:1;
}

.education-side{
    flex:1;
}


/* ===============================
   Projects
================================ */

.projects {
    border-top: 1px solid #30363d;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Featured Project */
.featured-project {
    grid-column: span 2;
}

.repo-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.repo-card:hover {
    border-color: #58a6ff;
    box-shadow: 0 0 30px rgba(88,166,255,0.12);
    transform: translateY(-5px);
}

.repo-card h3 {
    color: #58a6ff;
    margin-bottom: 12px;
    font-size: 22px;
}

.repo-card p {
    color: #8b949e;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.tech {
    display: block;
    margin: 12px 0;
    color: #3fb950;
    font-size: 14px;
    font-weight: 600;
}

/* Project Image */
.project-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 18px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: 0.4s;
}

.repo-card:hover img {
    transform: scale(1.05);
}

/* Project Buttons */

.project-links {
    margin-top: auto;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.project-links a {
    text-decoration: none;
    color: #58a6ff;
    border: 1px solid #30363d;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    transition: 0.3s;
}

.project-links a:hover {
    border-color: #58a6ff;
    background: rgba(88,166,255,0.08);
}

/* Mobile */

@media (max-width: 900px) {

    .featured-project {
        grid-column: span 1;
    }

    .projects-container {
        grid-template-columns: 1fr;
    }

}
/* ===============================
   Responsive
================================ */
@media (max-width: 900px) {
    .intro {
        flex-direction: column;
        gap: 40px;
    }

    .intro-left h1 {
        font-size: 42px;
    }

    .section {
        padding: 120px 5%;
    }

    .about-meta {
        grid-template-columns: 1fr;
    }
}
/* Right side container */
.right-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    font-size: 20px;
}

/* Profile photo */
.profile-photo {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #30363d;
    box-shadow: 0 0 40px rgba(88,166,255,0.15);
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hover effect (optional but nice) */
.profile-photo:hover {
    box-shadow: 0 0 60px rgba(88,166,255,0.35);
}
.skills {
    border-top: 1px solid #30363d;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}
.skill-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 25px;
    transition: 0.3s;
}

.skill-card:hover {
    border-color: #58a6ff;
    box-shadow: 0 0 30px rgba(88,166,255,0.1);
}
.skill-card h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #58a6ff;
}
.skill-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
.skill-box {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: 0.3s;
}

.skill-box i {
    font-size: 22px;
    margin-bottom: 8px;
    color: #58a6ff;
}

.skill-box span {
    display: block;
    font-size: 14px;
}

.skill-box:hover {
    border-color: #3fb950;
    transform: translateY(-4px);
}
@media (max-width: 1000px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}
.contact {
    border-top: 1px solid #30363d;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
}
.contact-info h3 {
    color: #58a6ff;
    margin-bottom: 15px;
}

.contact-info p {
    color: #c9d1d9;
    line-height: 1.6;
    margin-bottom: 15px;
}

.contact-details p {
    margin: 10px 0;
    font-size: 14px;
}

.contact-details i {
    color: #3fb950;
    margin-right: 8px;
}
.contact-socials {
    margin-top: 15px;
}

.contact-socials a {
    font-size: 20px;
    margin-right: 15px;
    color: #58a6ff;
    transition: 0.3s;
}

.contact-socials a:hover {
    color: #3fb950;
}
.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 12px;
    color: #c9d1d9;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #58a6ff;
}

.contact-form button {
    background: #238636;
    border: none;
    padding: 12px;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.contact-form button:hover {
    background: #2ea043;
}
@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

/* resume */
.resume-container{
    margin-top:20px;
}

.resume-btn{
    display:inline-block;
    margin-top: 20px;
    padding:14px 28px;
    background:rgba(35,134,54,0.4);
    color:white;
    text-decoration:none;
    border-radius:8px;
    font-size:16px;
    font-weight:600;
    transition:0.3s;
}

.resume-btn:hover{
    transform:translateY(-3px);
    box-shadow:0 6px 20px rgba(35,134,54,0.4);
}
.footer{
    text-align:center;
    padding:30px;
    border-top:1px solid #30363d;
    color:#8b949e;
}

/* ===================================
   Mobile Responsive (768px and below)
=================================== */

@media (max-width:768px){

    /* Header */

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

    .header nav{
        display:flex;
        flex-wrap:wrap;
        justify-content:center;
        gap:12px;
    }

    .header nav a{
        margin:0;
        font-size:14px;
    }

    /* Hero */

    .intro{
        flex-direction:column-reverse;
        text-align:center;
        padding:120px 20px 60px;
        gap:35px;
    }

    .intro-left{
        max-width:100%;
    }

    .intro-left h1{
        font-size:40px;
    }

    .role{
        font-size:22px;
    }

    .tagline{
        font-size:17px;
    }

    /* Profile */

    .profile-photo{
        width:220px;
        height:220px;
    }

    /* Social */

    .socials{
        margin:25px 0 0;
        display:flex;
        justify-content:center;
        flex-wrap:wrap;
    }

    .socials a{
        margin:0 10px;
        font-size:28px;
    }

    /* Resume Button */

    .resume-container{
        width:100%;
        margin-top:20px;
    }

    .resume-btn{
        width:100%;
        text-align:center;
    }

    /* About */

    .about{
        display:block;
    }

    .about-wrapper{
        flex-direction:column;
        gap:40px;
    }

    .about p{
        font-size:18px;
    }

    .about-meta{
        grid-template-columns:1fr;
        font-size:16px;
    }

    /* Education */

    .education-text pre{
        font-size:15px;
        line-height:1.7;
        overflow-x:auto;
    }

    /* Code Window */

    .code-window{
        width:100%;
        padding:0;
    }

    .code-window pre{
        margin:0;
        font-size:15px;
        overflow-x:auto;
    }

    /* Projects */

    .projects-container{
        grid-template-columns:1fr;
    }

    .featured-project{
        grid-column:auto;
    }

    .project-image{
        height:180px;
    }

    /* Skills */

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

    .skill-items{
        grid-template-columns:1fr;
    }

    /* Contact */

    .contact-container{
        grid-template-columns:1fr;
        gap:40px;
    }

    /* Common */

    .section{
        padding:80px 20px;
    }

}
/* ==========================
   Hamburger Menu
========================== */

.menu-btn{
    display:none;
    font-size:28px;
    color:#58a6ff;
    cursor:pointer;
}

@media(max-width:768px){

    .header{
        padding:18px 20px;
        flex-direction:row;
    }

    .menu-btn{
        display:block;
    }

    .navbar{
        position:absolute;
        top:70px;
        left:0;
        width:100%;
        background:#0d1117;

        display:flex;
        flex-direction:column;

        max-height:0;
        overflow:hidden;

        transition:.4s;
    }

    .navbar.active{
        max-height:400px;
        padding:15px 0;
    }

    .navbar a{
        margin:15px 0;
        text-align:center;
        font-size:18px;
    }
}