:root {
    --accent: #e83351;
    --bg-dark: #121212;
    --text-main: #ffffff;
    --text-dim: #b0b0b0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Source Code Pro', monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow: hidden; 
}

/* --- NAVIGATION --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 10%;
    background: rgba(18, 18, 18, 0.95);
    z-index: 1000;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none; /* Removes default underline */
    color: var(--text-main); /* Keeps it white */
    transition: color 0.3s ease;
    display: inline-block;  /* Gives it a predictable box model */
    line-height: 1;         /* Forces a consistent height */
    vertical-align: middle;
}

.nav-logo:hover {
    color: var(--accent); /* Changes to pinkish-red on hover */
}

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

.nav-links a {
    text-decoration: none;
    color: #999;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

/* --- SCROLL SNAP CONTAINER --- */
.scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
}

.page-section {
    height: 100vh;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10%;
}

/* --- HOME SECTION: NAME & QUOTE --- */
.hero-layout {
    display: flex;
    align-items: center;
    gap: 60px;
    justify-content: center;
}

.name-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
    height: 1.2em;
}

 .name-container span {
     display: block;
     transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
     color: #ffffff;
     font-family: "EB Garamond", serif; 
     font-size: 3.8rem;
 }

.english {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateY(15px);
    letter-spacing: 2px;
}

.name-container:hover .telugu {
    opacity: 0;
    transform: translateY(-15px);
}

.name-container:hover .english {
    opacity: 1;
    transform: translateY(0);
}

.edison-quote {
    margin-top: 15px;
    max-width: 550px;
    font-family: "EB Garamond", serif; 
    font-style: italic;
    font-size: 1.6rem;
    line-height: 1.5;
    color: #ffffff;
    border-left: 3px solid var(--accent);
    padding-left: 25px;
}

.edison-quote cite {
    display: block;
    margin-top: 20px;
    font-family: 'Source Code Pro', monospace; 
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-style: normal;
    font-weight: 700;
}

/* --- ABOUT SECTION --- */
.about-container {
    max-width: 800px;
}

.about-bio {
    font-size: 1.2rem; 
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-main);
    text-align: justify;
}

.resume-cta {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cursor {
    color: var(--accent);
    font-weight: bold;
}

.about-link {
    color: var(--text-main);
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
}

/* --- SKILLS SECTION --- */
.skills-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.category-label {
    font-size: 1rem;
    color: var(--text-dim);
    white-space: nowrap;
    font-weight: 300;
}

.terminal-head {
    color: var(--accent);
    font-size: 2.2rem;
    font-weight: 200; 
    margin-bottom: 35px;
    text-transform: lowercase;
    letter-spacing: 1px;
}

.hash { 
    color: #333; 
    font-weight: 400;
}

.tech-stack {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.chip {
    background-color: #2a2a2a;
    color: #ffffff;
    padding: 4px 12px;
    font-size: 0.85rem;
    border-radius: 0;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.chip:hover {
    border: 1px solid var(--accent);
    background-color: #1a1a1a;
    cursor: default;
}

/* --- PROJECTS --- */
.project-item {
    margin-bottom: 30px;
    padding: 25px;
    border: 1px solid #222;
    transition: border-color 0.3s ease;
}

.project-item:hover {
    border-color: #444; 
}

.project-header {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 10px;
    text-transform: lowercase;
}

.description {
    color: var(--text-main);
    font-weight: 300;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

/* CAPITALIZED AND UNDERLINED LABELS */
.description strong, 
.project-link-wrapper strong {
    text-transform: uppercase;
    letter-spacing: 1px;
}

.description u, 
.project-link-wrapper u {
    text-underline-offset: 3px;
}

.project-link-wrapper {
    margin-bottom: 10px;
}

/* PINKISH-RED REPO LINK */
.repo-link {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.repo-link:hover {
    text-decoration: underline;
    filter: brightness(1.2);
}

.project-item .tech-stack {
    margin-top: 25px; 
}

/* --- CONTACT FORM --- */
#contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px; /* Aligned width */
    width: 100%;
}

.form-group {
    width: 100%;
}

.form-group input,
.form-group textarea {
    width: 100%; /* Ensures equal alignment */
    border: 1px solid #444;
    background-color: #1a1a1a;
    padding: 15px;
    font-family: inherit;
    color: var(--text-main);
    outline: none;
}

.form-group textarea {
    min-height: 150px;
    resize: none; /* Disables manual resizing */
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
}

#contact-form button {
    width: 100%; /* Matches input width */
    background-color: var(--accent);
    color: #fff;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-weight: 700;
    text-transform: lowercase;
    transition: background-color 0.3s ease;
}

#contact-form button:hover {
    background-color: #ff4a68;
}

/* --- IMAGES --- */
.profile-pic {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    filter: grayscale(100%);
    border: 1px solid #333;
}

.social-links-vertical {
    margin-top: 35px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-row {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--text-main);
    transition: color 0.3s ease;
    font-size: 1rem;
}

.social-row i {
    font-size: 1.4rem;
    width: 28px; /* Fixed width for icon alignment */
    text-align: center;
}

.social-row:hover, 
.social-row:hover i, 
.social-row:hover span {
    color: var(--accent);
}

.discord-item {
    position: relative;
    cursor: default;
}

.copy-button {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    margin-left: 8px;
    transition: color 0.2s;
}

.copy-button:hover {
    color: var(--accent);
}

#copy-status {
    position: absolute;
    left: 100%;
    margin-left: 15px;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
    pointer-events: none;
}

#copy-status.active {
    opacity: 1;
}

/* --- MOBILE --- */
@media (max-width: 768px) {
    .hero-layout { flex-direction: column; text-align: center; }
    .name-container span { font-size: 2.5rem; }
    .skills-row { flex-direction: column; align-items: flex-start; gap: 10px; }
    .project-item { padding: 20px; }
    .page-section { padding: 0 5%; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.container-relative {
    position: relative;
    width: 240px;
    height: 240px;
}

.vinyl-outer {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    animation: spin 4s linear infinite;
    animation-play-state: paused;
}

.vinyl-outer.playing {
    animation-play-state: running;
}

.vinyl-outer.paused {
    animation-play-state: running;
    animation-direction: reverse;
}

.vinyl-disc {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: repeating-radial-gradient(
        circle at center,
        #1a1a1a 0px,
        #1a1a1a 3px,
        #2c2c2c 3px,
        #2c2c2c 5px
    );
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.vinyl-outer.playing .vinyl-disc {
    opacity: 1;
}

.vinyl-label {
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
    transition: width 0.6s ease, height 0.6s ease;
}

.vinyl-outer.playing .vinyl-label {
    width: 200px;
    height: 200px;
}

.vinyl-label img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.6s ease, opacity 0.3s ease;
}

.vinyl-outer.playing .vinyl-label img {
    filter: grayscale(0%);
}

.vinyl-outer.paused .vinyl-label img {
    filter: grayscale(100%);
}

.vinyl-label img.swapping {
    opacity: 0;
}

.needle-wrap {
    position: absolute;
    top: -8px;
    right: -34px;
    width: 60px;
    height: 110px;
    pointer-events: none;
    transform-origin: 30px 8px;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    transform: rotate(-28deg);
    opacity: 0;
}

.needle-wrap.visible {
    opacity: 1;
}

.needle-wrap.on-record {
    transform: rotate(0deg);
}

/* --- NAVBAR PLAYER --- */
.navbar-player {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.navbar-player.visible {
    opacity: 1;
    pointer-events: all;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ctrl-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: opacity 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ctrl-btn svg {
    width: 14px;
    height: 14px;
    fill: var(--accent);
}

.ctrl-btn:hover { opacity: 0.6; }
.ctrl-btn:active { transform: scale(0.9); }

.player-song {
    font-size: 10px;
    color: #444;
    letter-spacing: 1px;
    white-space: nowrap;
    text-align: center;
}