/* --- Core Standards --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: #0d1117; color: #c9d1d9;
    font-family: 'JetBrains Mono', monospace; line-height: 1.6;
    overflow-x: hidden; min-height: 100vh;
}

/* --- Navigation (Fixed & Centered) --- */
nav {
    padding: 20px 40px; border-bottom: 1px solid #30363d;
    background-color: #0d1117; position: sticky; top: 0; z-index: 1000;
}
.nav-links { 
    display: flex; justify-content: space-around; list-style: none; 
    max-width: 1000px; margin: 0 auto; 
}
.nav-links a { 
    text-decoration: none; font-weight: 700; font-size: 1rem; 
    transition: 0.3s; position: relative;
}
.nav-item.active a::after { content: ''; position: absolute; width: 100%; height: 2px; bottom: -5px; left: 0; background: currentColor; }

/* Colors */
.blue { color: #58a6ff; } .orange { color: #d29922; } .green { color: #3fb950; }
.purple { color: #bc8cff; } .red { color: #ff7b72; } .yellow { color: #e3b341; }

/* --- Home Page (Restored) --- */
.home-main {
    height: calc(100vh - 80px); display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center; padding: 40px;
}
.hero-placeholder { 
    font-size: 1.2rem; color: #8b949e; margin-bottom: 30px; 
    padding: 20px; border: 1px dashed #30363d; border-radius: 8px;
}
.content h1 { font-size: 4rem; color: #fff; margin-bottom: 10px; }
.content h2 { font-size: 1.8rem; color: #8b949e; margin-bottom: 30px; }
.content p { max-width: 900px; font-size: 1.1rem; text-align: justify; margin: 0 auto; }

/* --- Certificates (Fixed Badges) --- */
.cert-container { max-width: 1000px; margin: 40px auto; padding: 0 20px; }
.cert-card { 
    background: #161b22; border: 1px solid #30363d; border-left: 6px solid #30363d; 
    padding: 30px; margin-bottom: 20px; border-radius: 12px;
}
.cert-header { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 1.3rem; color: #fff; }

/* THE FIX: Badges no longer span the whole width */
.cert-badge { 
    display: inline-block; 
    padding: 6px 16px; border-radius: 4px; font-size: 0.85rem; 
    color: #fff; font-weight: 700; margin-bottom: 15px; 
}

/* Color Mappings */
.border-green { border-left-color: #3fb950 !important; } .bg-green { background: #238636; }
.border-purple { border-left-color: #bc8cff !important; } .bg-purple { background: #8957e5; }
.border-blue { border-left-color: #58a6ff !important; } .bg-blue { background: #1f6feb; }
.border-red { border-left-color: #ff7b72 !important; } .bg-red { background: #da3633; }
.border-yellow { border-left-color: #e3b341 !important; } .bg-yellow { background: #9e6a03; }

/* --- Experience (Refined) --- */
.exp-main { display: flex; flex-direction: column; align-items: center; padding: 60px 20px; }
.terminal-window {
    background: #0d1117; border: 1px solid #30363d; border-radius: 12px;
    width: 100%; max-width: 800px; overflow: hidden;
}
.terminal-bar { background: #161b22; padding: 15px; display: flex; align-items: center; border-bottom: 1px solid #30363d; }
.buttons { display: flex; gap: 8px; margin-right: 15px; }
.buttons span { width: 12px; height: 12px; border-radius: 50%; }
.close { background: #ff5f56; } .minimize { background: #ffbd2e; } .maximize { background: #27c93f; }
.terminal-body { padding: 40px; text-align: left; font-size: 1.2rem; }

/* Syntax */
.keyword { color: #ff7b72; } .function { color: #d2a8ff; } .variable { color: #ffa657; } .string { color: #a5d6ff; }

.poke-btn {
    background: #161b22; border: 1px solid #30363d; color: #fff;
    padding: 12px 30px; border-radius: 8px; cursor: pointer; margin-top: 30px;
}
/* New Color */
.pink { color: #ff79c6; }

/* --- Resume Form Styling --- */
.form-container {
    max-width: 600px;
    margin: 60px auto;
    padding: 40px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.form-group { margin-bottom: 20px; text-align: left; }

.form-group label {
    display: block;
    color: #8b949e;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
}

.form-group input:focus { border-color: #ff79c6; outline: none; }

/* Submission Button */
.submit-btn {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 1px solid #ff79c6;
    color: #ff79c6;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 6px;
}

.submit-btn:hover { background: rgba(255, 121, 198, 0.1); transform: translateY(-3px); }

/* Hidden Honeypot to catch bots */
.hidden { display: none; }

/* --- Projects Layout --- */
.projects-container {
    max-width: 700px; /* Slimmer width for that IG feel */
    margin: 40px auto;
    padding: 0 20px;
}

.project-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    margin-bottom: 50px;
    overflow: hidden;
}

.project-header {
    padding: 15px 20px;
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
    border-bottom: 1px solid #30363d;
}

/* Instagram-style Carousel */
.image-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Hide scrollbar for Chrome/Safari below */
}
.image-carousel::-webkit-scrollbar { display: none; }

.image-carousel img {
    width: 100%;
    flex-shrink: 0;
    scroll-snap-align: start;
    object-fit: cover;
    aspect-ratio: 4 / 5; /* IG Portrait style */
}

/* Content Section */
.project-content { padding: 20px; }

.project-description {
    text-align: justify; /* Your specific request for justified alignment */
    color: #c9d1d9;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Skills/Tags */
.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}
.tag {
    background: #21262d;
    border: 1px solid #30363d;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #8b949e;
}

.project-date {
    font-size: 0.85rem;
    color: #8b949e;
    text-transform: uppercase;
    font-weight: 600;
}
/* --- Instagram-Style Projects Layout --- */
.projects-container {
    max-width: 700px; 
    margin: 40px auto;
    padding: 0 20px;
}

.project-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    margin-bottom: 50px;
    overflow: hidden;
}

.project-header {
    padding: 20px;
    font-weight: 700;
    font-size: 1.8rem; /* Magnified for your Majesty */
    color: #fff;
    text-align: center; /* Centered in the band */
    border-bottom: 1px solid #30363d;
}

/* Horizontal Scroll for Images */
.image-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; 
}
.image-carousel::-webkit-scrollbar { display: none; }

.image-carousel img {
    width: 100%;
    flex-shrink: 0;
    scroll-snap-align: start;
    object-fit: contain; 
    background: #0d1117;
    aspect-ratio: 4 / 3; 
}

.project-content { padding: 20px; }

.project-description {
    text-align: justify; /* Aligned as commanded */
    color: #c9d1d9;
    margin-top: 15px;
    line-height: 1.6;
    font-size: 1rem;
}

.project-date {
    font-size: 0.8rem;
    color: #8b949e;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.tag {
    background: #21262d;
    border: 1px solid #30363d;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #8b949e;
}
.profile-img {
    width: 280px;  /* Slightly larger for better presence */
    height: 280px;
    border-radius: 50%;
    /* 'object-position' allows us to move the photo down or up inside the circle */
    object-fit: cover; 
    object-position: center 20%; /* Adjusts the crop to show more of the top/face */
    border: 3px solid #ff79c6;
    display: block;
    margin: 20px auto;
    box-shadow: 0 0 25px rgba(255, 121, 198, 0.4);
    background-color: #0d1117; /* Adds a dark background if the photo has edges */
}
/* --- Royal Project Refinements --- */

/* Centered Header Band for Projects */
.project-header {
    padding: 20px;
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center; /* Centered as commanded */
    color: #fff;
    border-bottom: 1px solid #30363d;
    background-color: #161b22;
}

/* Instagram-Style Pagination Dots */
.carousel-dots {
    text-align: center;
    padding: 10px 0;
    background-color: #161b22;
}

.dot {
    height: 6px;
    width: 6px;
    background-color: #484f58; /* Inactive grey */
    border-radius: 50%;
    display: inline-block;
    margin: 0 3px;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #ffb86c; /* Your signature orange */
}

/* Justified Description Text */
.project-description {
    text-align: justify; /* Perfectly aligned edges */
    text-justify: inter-word;
    line-height: 1.6;
    color: #c9d1d9;
    margin-top: 15px;
}

/* Date Styling under Tags */
.project-date {
    font-size: 0.8rem;
    color: #8b949e;
    font-weight: 600;
    margin-top: 8px;
    letter-spacing: 0.5px;
}
/* --- Unified Royal Headings --- */
.royal-heading {
    font-size: 2.5rem; 
    color: #bd93f9;    /* Royal Purple */
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin: 60px 0 30px 0;
    font-family: 'JetBrains Mono', monospace;
    border-bottom: 2px solid #30363d;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 10px;
}

/* Optional grid to keep certificates neat */
.cert-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}
/* Core Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: #0d1117; color: #c9d1d9;
    font-family: 'JetBrains Mono', monospace; line-height: 1.6;
    overflow-x: hidden; min-height: 100vh;
}

/* Nav Pillar */
nav {
    padding: 15px 40px; border-bottom: 1px solid #30363d;
    background-color: rgba(13, 17, 23, 0.95); position: sticky; top: 0; z-index: 1000;
}
.nav-links { display: flex; justify-content: space-between; list-style: none; max-width: 1200px; margin: 0 auto; }
.nav-item a { text-decoration: none; font-weight: 700; position: relative; transition: 0.3s; }
.nav-item.active a::after { width: 100%; }
.nav-item a::after { content: ''; position: absolute; width: 0; height: 3px; bottom: -5px; left: 0; background-color: currentColor; transition: 0.3s; }

/* Royal Palette */
.blue { color: #58a6ff; } .orange { color: #d29922; } .green { color: #3fb950; }
.purple { color: #bc8cff; } .red { color: #ff7b72; } .yellow { color: #e3b341; }

/* Home View (Scroll-Free) */
.home-main {
    height: calc(100vh - 70px); display: flex; flex-direction: column;
    align-items: center; justify-content: space-evenly; padding: 20px;
}
.hero-placeholder { width: 100%; height: 40vh; border: 1px dashed #30363d; border-radius: 6px; display: flex; justify-content: center; align-items: center; }
.content { text-align: center; max-width: 900px; }
.content h1 { font-size: 3rem; color: #fff; margin-bottom: 5px; }
.content h2 { font-size: 1.5rem; color: #8b949e; margin-bottom: 20px; }
.content p { text-align: justify; font-size: 0.95rem; }

/* Certificate Archive */
.cert-container { max-width: 800px; margin: 40px auto; padding: 0 20px; }
.cert-main-title { text-align: center; font-size: 2.5rem; margin-bottom: 40px; color: #fff; }
.year-section { margin-bottom: 50px; }
.year-label { color: #8b949e; border-bottom: 1px solid #30363d; padding-bottom: 8px; margin-bottom: 20px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }
.cert-card { background: #161b22; border: 1px solid #30363d; border-left: 5px solid #30363d; padding: 25px; margin-bottom: 15px; border-radius: 8px; transition: 0.3s ease; }
.cert-card:hover { transform: translateX(10px); background: #1c2128; }
.cert-header { display: flex; justify-content: space-between; margin-bottom: 8px; font-weight: 700; color: #fff; }
.cert-meta { color: #58a6ff; font-size: 0.9rem; margin-bottom: 12px; }
.cert-badge { display: inline-block; padding: 4px 12px; border-radius: 4px; font-size: 0.7rem; color: #fff; font-weight: 700; margin-bottom: 12px; text-transform: uppercase; }

/* Role Definitions */
.border-green { border-left-color: #3fb950 !important; } .bg-green { background: #238636; }
.border-purple { border-left-color: #bc8cff !important; } .bg-purple { background: #8957e5; }
.border-blue { border-left-color: #58a6ff !important; } .bg-blue { background: #1f6feb; }
.border-red { border-left-color: #ff7b72 !important; } .bg-red { background: #da3633; }
.border-yellow { border-left-color: #e3b341 !important; } .bg-yellow { background: #9e6a03; }

/* Entrance Animations */
.fade-in { animation: fadeInUp 0.8s ease forwards; }
.fade-in-delay { animation: fadeInUp 0.8s ease forwards 0.4s; opacity: 0; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }